-
Notifications
You must be signed in to change notification settings - Fork 57
Redistribution for AVS developers #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
0256e60
Minimal restructure to demo Concept/How To/Reference/Tutorial approach
MadelineAu f7c9d9a
fixed redirects and urls
wesfloyd bd627ef
Addressing review comments
MadelineAu feae197
Merge branch 'devRestruture' of github.com:MadelineAu/eigenlayer-docs…
MadelineAu 96bbf96
Added redirects
MadelineAu 5264329
fixed redirects
MadelineAu 4e5b0bd
more redirect fixing
MadelineAu 8bff2ec
Merge branch 'MadelineAu-devRestruture'
MadelineAu 9f63380
Merge remote-tracking branch 'upstream/main'
MadelineAu af864c0
Merge remote-tracking branch 'upstream/main'
MadelineAu c49b0e8
Merge remote-tracking branch 'upstream/main'
MadelineAu 7e430a0
Merge remote-tracking branch 'upstream/main'
MadelineAu 0e1a6eb
Merge remote-tracking branch 'upstream/main'
MadelineAu 3ed0774
Merge remote-tracking branch 'upstream/main'
MadelineAu 8130497
Merge remote-tracking branch 'upstream/main'
MadelineAu 37281a6
Merge remote-tracking branch 'upstream/main'
MadelineAu cf76167
Merge remote-tracking branch 'upstream/main'
MadelineAu 6126940
Merge remote-tracking branch 'upstream/main'
MadelineAu 34fad65
Merge remote-tracking branch 'upstream/main'
MadelineAu e8465ae
Merge remote-tracking branch 'upstream/main'
MadelineAu d5ab33c
Merge remote-tracking branch 'upstream/main'
MadelineAu 18f4927
Merge remote-tracking branch 'upstream/main'
MadelineAu cbaee98
Merge remote-tracking branch 'upstream/main'
MadelineAu 549d047
Merge remote-tracking branch 'upstream/main'
MadelineAu cd0e391
Merge remote-tracking branch 'upstream/main'
MadelineAu c8e803b
Merge remote-tracking branch 'upstream/main'
MadelineAu a6f98f5
Merge remote-tracking branch 'upstream/main'
MadelineAu 3b96134
Merge remote-tracking branch 'upstream/main'
MadelineAu 302897a
Merge remote-tracking branch 'upstream/main'
MadelineAu b8088f9
Merge remote-tracking branch 'upstream/main'
MadelineAu a6db476
Merge remote-tracking branch 'upstream/main'
MadelineAu e29e2bb
Merge remote-tracking branch 'upstream/main'
MadelineAu d6b182f
Merge remote-tracking branch 'upstream/main'
MadelineAu c8cce79
Merge remote-tracking branch 'upstream/main'
MadelineAu 92693e5
Merge remote-tracking branch 'origin/main'
MadelineAu 18abfb2
Merge remote-tracking branch 'origin/main'
MadelineAu eaf1858
Added Slash Escrow factory
MadelineAu d8fb385
Added AVS dev redistribution docs
MadelineAu 5809354
Review rework
MadelineAu 45a2120
review rework
MadelineAu 0fa4229
Fixing broken links
MadelineAu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 30 additions & 5 deletions
35
docs/developers/HowTo/build/operator-sets/create-operator-sets.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,45 @@ | ||
--- | ||
sidebar_position: 1 | ||
sidebar_position: 2 | ||
title: Create Operator Sets | ||
--- | ||
|
||
:::tip | ||
If you're new to Operator Sets in EigenLayer, review the [Operator Sets concepts](../../../../eigenlayer/concepts/operator-sets/operator-sets-concept.md) before continuing with this topic. | ||
::: | ||
|
||
Creating Operator Sets for an AVS is managed by the [AllocationManager core contract](../../../Concepts/eigenlayer-contracts/core-contracts.md). | ||
Creating Operator Sets for an AVS is managed by the [AllocationManager core contract](../../../Concepts/eigenlayer-contracts/core-contracts.md). Before Operator Sets can be created, | ||
[AVS metadata must be registered](../register-avs-metadata.md). | ||
|
||
[Strategies](../../../../eigenlayer/concepts/operator-sets/strategies-and-magnitudes) 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](#create-operator-set). Slashed funds are burnt. | ||
* [Redistributing](#create-redistributing-operator-set). Slashed funds are sent to the [`redistributionRecipient`](../../../Concepts/slashing/slashing-concept-developers.md#redistribution-recipient). | ||
|
||
The Operator Set type cannot be changed. | ||
|
||
## Create Operator Set | ||
|
||
To create an Operator Set, call the [`createOperatorSets`](https://github.com/Layr-Labs/eigenlayer-contracts/blob/9a19503e2a4467f0be938f72e80b11768b2e47f9/docs/core/AllocationManager.md#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. | ||
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. | ||
|
||
Once created, [update the AVS metadata](update-avs-metadata.md) to provide information on the Operator Set to Stakers and Operators. | ||
## Complete Operator Set Configuration | ||
|
||
For information on adding Strategies to an Operator Set after creation, refer to [Modify Strategy Composition](modify-strategy-composition.md). | ||
Once created: | ||
1. [Update the AVS metadata](update-avs-metadata.md) to provide information on the Operator Set to Stakers and Operators. | ||
2. If required, [add additional Strategies](modify-strategy-composition.md) to the Operator Set. |
12 changes: 11 additions & 1 deletion
12
...wTo/build/slashing/design-operator-set.md → ...uild/operator-sets/design-operator-set.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...build/slashing/migrate-to-operatorsets.md → .../operator-sets/migrate-to-operatorsets.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 5 | ||
title: Migrate to Operator Sets | ||
--- | ||
|
||
|
8 changes: 6 additions & 2 deletions
8
docs/developers/HowTo/build/operator-sets/modify-strategy-composition.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 4 | ||
title: Modify Strategy Composition | ||
--- | ||
|
||
An Operator Set requires at least one [Strategy](../../../../eigenlayer/concepts/operator-sets/strategies-and-magnitudes). | ||
|
||
To add Strategies to an existing Operator Set, call the [`addStrategiesToOperatorSet`](https://github.com/Layr-Labs/eigenlayer-contracts/blob/9a19503e2a4467f0be938f72e80b11768b2e47f9/docs/core/AllocationManager.md#addstrategiestooperatorset) function. | ||
|
||
To remove Strategies from an Operator Set, call the [`removeStrategiesFromOperatorSet`](https://github.com/Layr-Labs/eigenlayer-contracts/blob/9a19503e2a4467f0be938f72e80b11768b2e47f9/docs/core/AllocationManager.md#removestrategiesfromoperatorset) function. | ||
To remove Strategies from an Operator Set, call the [`removeStrategiesFromOperatorSet`](https://github.com/Layr-Labs/eigenlayer-contracts/blob/9a19503e2a4467f0be938f72e80b11768b2e47f9/docs/core/AllocationManager.md#removestrategiesfromoperatorset) function. | ||
|
||
:::note | ||
The Native Eth strategy cannot be added to Redistributing Operator Sets. | ||
::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phileigenlabs for review