EigenLayer is a set of smart contracts deployed on Ethereum that enable restaking of assets to secure new services called AVSs (actively validated services). The core contracts that enable these features can be found in the eigenlayer-contracts
repo.
The main branches we use are:
dev (default)
: The most up-to-date branch, containing the work-in-progress code for upcoming releasestestnet-holesky
: Our current testnet deploymentmainnet
: Our current mainnet deployment
To get a basic understanding of EigenLayer, check out You Could've Invented EigenLayer. Note that some of the document's content describes features that do not exist yet (like the Slasher). To understand more about how restakers and operators interact with EigenLayer, check out these guides:
Most of this content is intro-level and describes user interactions with the EigenLayer core contracts, but it should give you a good enough starting point.
For shadowy super-coders:
- The most up-to-date technical documentation can be found in /docs.
- To get an idea of how users interact with these contracts, check out the integration tests: /test/integration
- To explore the EigenLayer core contracts, check out the core repo technical docs here.
The middleware contracts are available for testnet integration and experimentation. As with the rest of the testnet code, these contracts have not yet been fully audited. Internal security reviews are in progress, and we're preparing to engage external auditors. We're providing these now so AVSs can begin testing slashing conditions, Operator Sets, and related functionality, and so Operators can simulate slashing and test allocations. For more details, see ELIP-002.
For Operators:
We provide scripts to deploy a mock service manager and allocate some stake to a mock Operator Set in these scripts. We've reduced various safety delays on testnet to better simulate operational flows. Additional information on these delays is in ELIP-002. For AVSs:
We provide a migration path for existing M2 environments (LINK). While this requires understanding the provided script, the Developer Experience will improve before Mainnet launch. Note that this is a gradual migration process to new Operator Sets, not a direct upgrade of existing Operator Sets. We also provide scripts to spin up new service managers from scratch. In all cases, you’ll need to register existing Operators or spin up new Operators and allocate funds to them. These testing flows will improve as we refine the scripts and contracts. Stay tuned for updates, and feel free to reach out with any questions.
This repository uses Foundry. See the Foundry docs for more info on installation and usage. If you already have foundry, you can build this project and run tests with these commands:
foundryup
forge build
forge test
The contracts in this repo are meant to be deployed by each AVS that wants to use them. The addresses listed below refer to EigenDA's deployment, and are included as an example.
The current mainnet deployment is from our M2 mainnet release. You can view the deployed contract addresses below, or check out the code itself on the mainnet
branch.
The current testnet deployment is on holesky, is from our M2 beta release. You can view the deployed contract addresses below, or check out the code itself on the testnet-holesky
branch.