Skip to content

brevis-network/eigenlayer-middleware

 
 

Repository files navigation

EigenLayer Middleware

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.

Getting Started

Branching

The main branches we use are:

  • dev (default): The most up-to-date branch, containing the work-in-progress code for upcoming releases
  • testnet-holesky: Our current testnet deployment

Documentation

Basics

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.

Deep Dive

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.

Building and Running Tests

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

Deployments

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.

Current Mainnet Deployment

No contracts have been deployed to mainnet yet.

Current Testnet Deployment

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.

Name Solidity Proxy Implementation Notes
RegistryCoordinator RegistryCoordinator.sol 0x5301...3490 0xC908...bfa0 Proxy: OpenZeppelin [email protected]
StakeRegistry StakeRegistry.sol 0xBDAC...a270 0xa8d2...98E5 Proxy: OpenZeppelin [email protected]
IndexRegistry IndexRegistry.sol 0x2E3D...7a5D 0x889B...420d Proxy: OpenZeppelin [email protected]
BLSApkRegistry BLSApkRegistry.sol 0x066c...730D 0x885C...e064 Proxy: OpenZeppelin [email protected]
OperatorStateRetriever OperatorStateRetriever.sol - 0xB4ba...6C67
ProxyAdmin OpenZeppelin [email protected] - 0xB043...5c15
EigenDAServiceManager eigenda/EigenDAServiceManager.sol 0xD4A7...e84b 0xa722...67f3 Proxy: OpenZeppelin [email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.8%
  • Other 0.2%