Skip to main content

Manage Registered Operators

AVSRegistrar

The AVSRegistrar is called when operators register for and deregister from Operator Sets. By default (if the stored address is 0), the call is made to the ServiceManager contract for the AVS. If the AVS has set a different contract as the AVSRegistrar, the specified contract is called.

Setting AVSRegistrar

To set a contract as the AVSRegistrar, call the setAVSRegistrar function. The target contract must also implement supportsAVS(AVS) returning TRUE or setting the contract as the AVSRegistrar fails.

Respond to Operator Registrations to Operator Sets

Operators use the registerForOperatorSets function to register for AVS's operator sets. AVSs can reject ineligible Operators based on their own custom logic specified in the AVSRegistrar.

For an AVS to reject an Operator attempting to join an Operator Set, the call from AllocationManager to the IAVSRegistrar.registerOperator function must revert.

Deregister Operators from, or respond to Operator deregistrations, from Operator Sets

Deregistration from an Operator Set can be triggered by either the Operator, or the AVS for the Operator Set, using the deregisterFromOperatorSets function.

Similar to when an Operator registers for an Operator Set, if the call to IAVSRegistrar.deregisterOperator reverts, the deregistration also reverts and does not occur.