Create Operator Sets
If you're new to Operator Sets in EigenLayer, review the Operator Sets concepts before continuing with this topic.
Creating Operator Sets for an AVS is managed by the AllocationManager core contract. Before Operator Sets can be created, AVS metadata must be registered.
Strategies can be added to Operator Sets when the Operator is created, or Strategies can be added to an existing Operator Set.
Operator Sets are either:
- Non-redistributing. Slashed funds are burnt.
- Redistributing. Slashed funds are sent to the
redistributionRecipient
.
The Operator Set type cannot be changed.
Create Operator Set
To create an Operator Set, call the createOperatorSets
function.
To add strategies when creating an Operator Set, specify a params
array containing the strategies.
On creation, an id
is assigned to the Operator Set. Together the AVS address
and id
are a unique identifier for the Operator Set.
For non-redistributing Operator Sets, the redistributionRecipient
is the DEFAULT_BURN_ADDRESS
.
Create Redistributing Operator Set
To create a redistributing Operator Set, call the createRedistributingOperatorSets
function.
To add strategies when creating an Operator Set, specify a params
array containing the strategies.
Native ETH cannot be added as a strategy for redistributing Operator Sets because redistribution of native ETH is not supported.
Specify the address to receive slashed funds in redistributionRecipients
. The redistributionRecipient
can only be set
when creating the Operator Set and cannot be changed.
On creation, an id
is assigned to the Operator Set. Together the AVS address
and id
are a unique identifier for the Operator Set.
Complete Operator Set Configuration
Once created:
- Update the AVS metadata to provide information on the Operator Set to Stakers and Operators.
- If required, add additional Strategies to the Operator Set.