Skip to content

Commit 8eed0c7

Browse files
committed
chore: add eigenlayer contracts v1.4.2 and update anvil state
1 parent 5607821 commit 8eed0c7

20 files changed

+2235
-3287
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@
3737
[submodule "contracts/lib/risc0-ethereum"]
3838
path = contracts/lib/risc0-ethereum
3939
url = https://github.com/risc0/risc0-ethereum
40+
[submodule "contracts/eigenlayer_contracts/eigenlayer-contracts"]
41+
path = contracts/eigenlayer_contracts/eigenlayer-contracts
42+
url = https://github.com/Layr-Labs/eigenlayer-contracts.git

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ install_foundry:
7575
install_eigenlayer_cli_devnet: ## Install Eigenlayer CLI v0.11.3 (Devnet compatible)
7676
curl -sSfL https://raw.githubusercontent.com/layr-labs/eigenlayer-cli/master/scripts/install.sh | sh -s -- v0.11.3
7777

78+
anvil_deploy_all_contracts: anvil_deploy_eigen_contracts anvil_deploy_risc0_contracts anvil_deploy_sp1_contracts anvil_deploy_aligned_contracts
79+
7880
anvil_deploy_eigen_contracts:
7981
@echo "Deploying Eigen Contracts..."
8082
. contracts/scripts/anvil/deploy_eigen_contracts.sh
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# README
2+
3+
This directory contains the Eigenlayer contracts, version `v1.4.2`.
4+
5+
These contracts are used in our Anvil deployment.
6+
7+
As of this writing, they align with the Eigenlayer contracts deployed on Mainnet and Holesky Testnet.
Submodule eigenlayer-contracts added at 336cab3

contracts/foundry.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ fs_permissions = [
99
{ access = "read", path = "./script/deploy" },
1010
{ access = "read-write", path = "./deployments" },
1111
]
12+
13+
# Enables or disables the optimizer
14+
optimizer = true
15+
# The number of optimizer runs
16+
optimizer_runs = 200
17+
# Whether or not to use the Yul intermediate representation compilation pipeline
18+
via_ir = true
19+
# Override the Solidity version (this overrides `auto_detect_solc`)
20+
solc_version = '0.8.27'

contracts/script/deploy/EigenLayerDeployer.s.sol

Lines changed: 0 additions & 711 deletions
This file was deleted.

contracts/script/deploy/utils/ExistingDeploymentParser.sol

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ contract ExistingDeploymentParser is Script, Test {
142142
eigenLayerPauserReg = PauserRegistry(
143143
stdJson.readAddress(existingDeploymentData, ".addresses.eigenLayerPauserReg")
144144
);
145-
slasher = Slasher(stdJson.readAddress(existingDeploymentData, ".addresses.slasher"));
146-
slasherImplementation = Slasher(
147-
stdJson.readAddress(existingDeploymentData, ".addresses.slasherImplementation")
148-
);
149145
delegationManager = DelegationManager(stdJson.readAddress(existingDeploymentData, ".addresses.delegationManager"));
150146
delegationManagerImplementation = DelegationManager(
151147
stdJson.readAddress(existingDeploymentData, ".addresses.delegationManagerImplementation")
@@ -168,15 +164,6 @@ contract ExistingDeploymentParser is Script, Test {
168164
eigenPodManagerImplementation = EigenPodManager(
169165
stdJson.readAddress(existingDeploymentData, ".addresses.eigenPodManagerImplementation")
170166
);
171-
delayedWithdrawalRouter = DelayedWithdrawalRouter(
172-
stdJson.readAddress(existingDeploymentData, ".addresses.delayedWithdrawalRouter")
173-
);
174-
delayedWithdrawalRouterImplementation = DelayedWithdrawalRouter(
175-
stdJson.readAddress(existingDeploymentData, ".addresses.delayedWithdrawalRouterImplementation")
176-
);
177-
beaconOracle = IBeaconChainOracle(
178-
stdJson.readAddress(existingDeploymentData, ".addresses.beaconOracle")
179-
);
180167
eigenPodBeacon = UpgradeableBeacon(stdJson.readAddress(existingDeploymentData, ".addresses.eigenPodBeacon"));
181168
eigenPodImplementation = EigenPod(
182169
payable(stdJson.readAddress(existingDeploymentData, ".addresses.eigenPodImplementation"))

contracts/script/output/devnet/alignedlayer_deployment_output.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"addresses": {
3-
"alignedLayerProxyAdmin": "0x9E545E3C0baAB3E08CdfD552C960A1050f373042",
4-
"alignedLayerServiceManager": "0x851356ae760d987E095750cCeb3bC6014560891C",
5-
"alignedLayerServiceManagerImplementation": "0x4c5859f0F772848b2D91F1D83E2Fe57935348029",
6-
"blsApkRegistry": "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49",
7-
"blsApkRegistryImplementation": "0x9d4454B023096f34B160D6B654540c56A1F81688",
8-
"indexRegistry": "0x95401dc811bb5740090279Ba06cfA8fcF6113778",
9-
"indexRegistryImplementation": "0x4826533B4897376654Bb4d4AD88B7faFD0C98528",
10-
"operatorStateRetriever": "0xCD8a1C3ba11CF5ECfa6267617243239504a98d90",
11-
"pauserRegistry": "0xa82fF9aFd8f496c3d6ac40E2a0F282E47488CFc9",
12-
"registryCoordinator": "0xf5059a5D33d5853360D16C683c16e67980206f36",
13-
"registryCoordinatorImplementation": "0x36C02dA8a0983159322a80FFE9F24b1acfF8B570",
14-
"serviceManagerRouter": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
15-
"stakeRegistry": "0x998abeb3E57409262aE5b751f60747921B33613E",
16-
"stakeRegistryImplementation": "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF",
17-
"batcherPaymentService": "0x7bc06c482DEAd17c0e297aFbC32f6e63d3846650",
18-
"batcherPaymentServiceImplementation": "0x7969c5eD335650692Bc04293B07F5BF2e7A673C0"
3+
"alignedLayerProxyAdmin": "0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690",
4+
"alignedLayerServiceManager": "0xa82fF9aFd8f496c3d6ac40E2a0F282E47488CFc9",
5+
"alignedLayerServiceManagerImplementation": "0x36C02dA8a0983159322a80FFE9F24b1acfF8B570",
6+
"blsApkRegistry": "0x95401dc811bb5740090279Ba06cfA8fcF6113778",
7+
"blsApkRegistryImplementation": "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF",
8+
"indexRegistry": "0x851356ae760d987E095750cCeb3bC6014560891C",
9+
"indexRegistryImplementation": "0x998abeb3E57409262aE5b751f60747921B33613E",
10+
"operatorStateRetriever": "0x5f3f1dBD7B74C6B46e8c44f98792A1dAf8d69154",
11+
"pauserRegistry": "0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB",
12+
"registryCoordinator": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
13+
"registryCoordinatorImplementation": "0x9d4454B023096f34B160D6B654540c56A1F81688",
14+
"serviceManagerRouter": "0x9E545E3C0baAB3E08CdfD552C960A1050f373042",
15+
"stakeRegistry": "0xf5059a5D33d5853360D16C683c16e67980206f36",
16+
"stakeRegistryImplementation": "0x4826533B4897376654Bb4d4AD88B7faFD0C98528",
17+
"batcherPaymentService": "0x2bdCC0de6bE1f7D2ee689a0342D76F52E8EFABa3",
18+
"batcherPaymentServiceImplementation": "0x82e01223d51Eb87e16A03E24687EDF0F294da6f1"
1919
},
2020
"chainInfo": {
2121
"chainId": 31337,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"addresses": {
3-
"batcherPaymentService": "0x7bc06c482DEAd17c0e297aFbC32f6e63d3846650",
4-
"batcherPaymentServiceImplementation": "0x7969c5eD335650692Bc04293B07F5BF2e7A673C0"
3+
"batcherPaymentService": "0x2bdCC0de6bE1f7D2ee689a0342D76F52E8EFABa3",
4+
"batcherPaymentServiceImplementation": "0x82e01223d51Eb87e16A03E24687EDF0F294da6f1"
55
}
66
}
Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
{
22
"addresses": {
3+
"TestToken": "0x09635F643e140090A9A8Dcd712eD6285858ceBef",
4+
"allocationManager": "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
5+
"allocationManagerImplementation": "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE",
36
"avsDirectory": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
47
"avsDirectoryImplementation": "0x9A676e781A523b5d0C0e43731313A708CB607508",
58
"baseStrategyImplementation": "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F",
6-
"beaconOracle": "0x0000000000000000000000000000000000000000",
7-
"delayedWithdrawalRouter": "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318",
8-
"delayedWithdrawalRouterImplementation": "0x68B1D87F95878fE05B998F19b66F4baba5De1aed",
99
"delegationManager": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
1010
"delegationManagerImplementation": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
1111
"eigenLayerPauserReg": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
1212
"eigenLayerProxyAdmin": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
1313
"eigenPodBeacon": "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
1414
"eigenPodImplementation": "0x610178dA211FEF7D417bC0e6FeD39F05609AD788",
15-
"eigenPodManager": "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
16-
"eigenPodManagerImplementation": "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE",
15+
"eigenPodManager": "0x0165878A594ca255338adfa4d48449f69242Eb8F",
16+
"eigenPodManagerImplementation": "0x0B306BF915C4d645ff596e518fAf3F9669b97016",
1717
"emptyContract": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
18-
"rewardsCoordinator": "0x0165878A594ca255338adfa4d48449f69242Eb8F",
19-
"rewardsCoordinatorImplementation": "0x0B306BF915C4d645ff596e518fAf3F9669b97016",
20-
"slasher": "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
21-
"slasherImplementation": "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1",
18+
"numStrategiesDeployed": 0,
19+
"permissionController": "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318",
20+
"permissionControllerImplementation": "0x68B1D87F95878fE05B998F19b66F4baba5De1aed",
21+
"rewardsCoordinator": "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
22+
"rewardsCoordinatorImplementation": "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1",
2223
"strategies": {
23-
"MOCK": "0xc5a5C42992dECbae36851359345FE25997F5C42d"
24+
"WETH": "0xc5a5C42992dECbae36851359345FE25997F5C42d"
2425
},
26+
"strategy": "0xc5a5C42992dECbae36851359345FE25997F5C42d",
2527
"strategyManager": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",
26-
"strategyManagerImplementation": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82"
28+
"strategyManagerImplementation": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82",
29+
"token": {
30+
"tokenProxyAdmin": "0x0000000000000000000000000000000000000000",
31+
"EIGEN": "0x0000000000000000000000000000000000000000",
32+
"bEIGEN": "0x0000000000000000000000000000000000000000",
33+
"EIGENImpl": "0x0000000000000000000000000000000000000000",
34+
"bEIGENImpl": "0x0000000000000000000000000000000000000000",
35+
"eigenStrategy": "0x0000000000000000000000000000000000000000",
36+
"eigenStrategyImpl": "0x0000000000000000000000000000000000000000"
37+
}
2738
},
2839
"chainInfo": {
2940
"chainId": 31337,
3041
"deploymentBlock": 0
3142
},
32-
"numStrategies": 1,
3343
"parameters": {
44+
"communityMultisig": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
3445
"executorMultisig": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
3546
"operationsMultisig": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
36-
"pauserMultisig": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
47+
"pauserMultisig": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
48+
"timelock": "0x0000000000000000000000000000000000000000"
3749
}
3850
}

0 commit comments

Comments
 (0)