Migrate to Operator Sets
The AVSDirectory method will be deprecated in a future upgrade. All AVSs will need to migrate to Operator Sets before the upcoming deprecation of AVSDirectory.
Operator Sets are required to slash. To migrate to, and start using, Operator Sets:
Migrating now gives time to switch existing quorums over to Operator Sets. After the migration has occurred, integrations with slashing can go live on Testnet, followed by Mainnet. M2 registration and Operator Set registration can operate in parallel.
Upgrade middleware contracts
To migrate to Operator Sets:
- Upgrade middleware contracts to handle the callback from the AllocationManager. The upgrade provides the RegistryCoordinator the hooks to handle the callback from the AllocationManager.
- From the ServiceManager call, add an account to update the AVSRegistrar:
- With setAppointee where the target is the AllocationManager.
- The selector is the setAVSRegistrar selector.
- Call setAVSRegistrar on the AllocationManager from the appointee account and set the RegistryCoordinator as your AVSRegistrar so that it becomes the destination for registration and deregistration hooks
See example RegistryCoordinator implementation with the new hooks.
Integrate the AllocationManager
Integrate the AllocationManager by:
- Creating Operator Sets through the AllocationManager.
- Adding (or later removing) specific Strategies to that Operator Set to enable Operators to secure the AVS.
- Specifying an additional AVSRegistrar contract that applies business logic to gate Operator registration to an Operator Set.
Communicate to Operators
- Communicate to Operators how to:
- Register for Operator Sets using the new registration pathway.
- Allocate slashable stake for slashable Operator Sets.
- Migrate to distribution of tasks based on the delegated and slashable stake of Operators registered to the AVS’s Operator Sets.
To ensure community and incentive alignment, AVSs need to conduct offchain outreach to communicate the purpose and task/security makeup of their Operator Sets with their Operators and Stakers before beginning registration. Include any potential hardware, software, or stake requirements in the communication. The AVS decides task distribution within an Operator Set.