diff --git a/docs/core/AllocationManager.md b/docs/core/AllocationManager.md index 9ce1b5701..39c9afc46 100644 --- a/docs/core/AllocationManager.md +++ b/docs/core/AllocationManager.md @@ -366,10 +366,16 @@ This method makes an external call to the `IAVSRegistrar.registerOperator` metho * for one or more operator sets. This method should revert if registration * is unsuccessful. * @param operator the registering operator + * @param avs the AVS the operator is registering for. This should be the same as IAVSRegistrar.avs() * @param operatorSetIds the list of operator set ids being registered for * @param data arbitrary data the operator can provide as part of registration - */ -function registerOperator(address operator, uint32[] calldata operatorSetIds, bytes calldata data) external; +*/ +function registerOperator( + address operator, + address avs, + uint32[] calldata operatorSetIds, + bytes calldata data + ) external; ``` *Effects*: @@ -431,9 +437,10 @@ This method makes an external call to the `IAVSRegistrar.deregisterOperator` met * @notice Called by the AllocationManager when an operator is deregistered from * one or more operator sets. If this method reverts, it is ignored. * @param operator the deregistering operator + * @param avs the AVS the operator is deregistering from. This should be the same as IAVSRegistrar.avs() * @param operatorSetIds the list of operator set ids being deregistered from - */ -function deregisterOperator(address operator, uint32[] calldata operatorSetIds) external; +*/ +function deregisterOperator(address operator, address avs, uint32[] calldata operatorSetIds) external; ``` *Effects*: @@ -853,18 +860,34 @@ interface IAVSRegistrar { * for one or more operator sets. This method should revert if registration * is unsuccessful. * @param operator the registering operator + * @param avs the AVS the operator is registering for. This should be the same as IAVSRegistrar.avs() * @param operatorSetIds the list of operator set ids being registered for * @param data arbitrary data the operator can provide as part of registration */ - function registerOperator(address operator, uint32[] calldata operatorSetIds, bytes calldata data) external; + function registerOperator( + address operator, + address avs, + uint32[] calldata operatorSetIds, + bytes calldata data + ) external; /** * @notice Called by the AllocationManager when an operator is deregistered from * one or more operator sets. If this method reverts, it is ignored. * @param operator the deregistering operator + * @param avs the AVS the operator is deregistering from. This should be the same as IAVSRegistrar.avs() * @param operatorSetIds the list of operator set ids being deregistered from */ - function deregisterOperator(address operator, uint32[] calldata operatorSetIds) external; + function deregisterOperator(address operator, address avs, uint32[] calldata operatorSetIds) external; + + /** + * @notice Returns true if the AVS is supported by the registrar + * @param avs the AVS to check + * @return true if the AVS is supported, false otherwise + */ + function supportsAVS( + address avs + ) external view returns (bool); } ```