All of the information contained in this early Alpha release of the Anzen Protocol Contracts is likely to change prior to the launch of the protocol. This is released in this early state for research and educational purposes, and covers only a limited set of possible implementations and features of the Anzen Protocol.
The source code for each contract is in the contracts/
directory.
Contract | Description | Deployment |
---|---|---|
AVSReservesManagerFactory | Factory for deploying AVSReservesManager contracts | 0x8...1A0 |
AVSReservesManager | Coordinates payment emmissions from the AVS to the AVS operators | 0x4...A77 |
SafetyFactorOracle | Provides a safety factor feed for the given AVS | 0xb...083 |
MockPaymentManager | Mock eigenlayer payment manager for testing purposes | 0xb...2ab |
MockAVS | Mock AVS for testing purposes |
graph TD;
AVS-.->|Leverage Eigenlayer security to do valuable work| AVSRewardToken;
AVSRewardToken-->|Emmisions Schedule| Reserves;
Reserves-->|Rate-based Payout| EigenlayerPaymentsManager;
EigenlayerPaymentsManager-->|Claimable Tokens|Operators;
SafetyFactorOracle-.->|Adjustments to rate of payments|Reserves
Anzen-.->|Safety Factor Calculation/Consensus|SafetyFactorOracle;
Reserves-->|Performance Fee: % emission savings|Anzen;
Operators-.->|Provide economic security|AVS;
$ cd contracts
$ forge build
$ forge test
$ forge fmt
$ forge snapshot
$ anvil
forge script script/Deploy.s.sol:Deploy --rpc-url "https:ethereum-goerli.publicnode.com" --broadcast --verify -vvvv
$ forge --help
$ anvil --help
$ cast --help