Skip to content

Commit 57d3209

Browse files
authored
fix: update eigenlayer contracts for devnet (#1932)
1 parent 68089e0 commit 57d3209

36 files changed

+2489
-3206
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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export OPERATOR_ADDRESS ?= $(shell yq -r '.operator.address' $(CONFIG_FILE))
88
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
99

1010
OPERATOR_VERSION=v0.15.2
11-
EIGEN_SDK_GO_VERSION_DEVNET=v0.1.13
11+
EIGEN_SDK_GO_VERSION_DEVNET=v0.2.0-beta.1
1212
EIGEN_SDK_GO_VERSION_TESTNET=v0.2.0-beta.1
1313
EIGEN_SDK_GO_VERSION_MAINNET=v0.2.0-beta.1
1414

@@ -73,7 +73,9 @@ install_foundry:
7373
curl -L https://foundry.paradigm.xyz | bash
7474

7575
install_eigenlayer_cli_devnet: ## Install Eigenlayer CLI v0.11.3 (Devnet compatible)
76-
curl -sSfL https://raw.githubusercontent.com/layr-labs/eigenlayer-cli/master/scripts/install.sh | sh -s -- v0.11.3
76+
curl -sSfL https://raw.githubusercontent.com/layr-labs/eigenlayer-cli/master/scripts/install.sh | sh -s -- v0.13.0
77+
78+
anvil_deploy_all_contracts: anvil_deploy_eigen_contracts anvil_deploy_risc0_contracts anvil_deploy_sp1_contracts anvil_deploy_aligned_contracts
7779

7880
anvil_deploy_eigen_contracts:
7981
@echo "Deploying Eigen Contracts..."
@@ -346,7 +348,7 @@ operator_remove_from_whitelist:
346348

347349
operator_deposit_into_mock_strategy:
348350
@echo "Depositing into mock strategy"
349-
$(eval STRATEGY_ADDRESS = $(shell jq -r '.addresses.strategies.MOCK' contracts/script/output/devnet/eigenlayer_deployment_output.json))
351+
$(eval STRATEGY_ADDRESS = $(shell jq -r '.addresses.strategies.WETH' contracts/script/output/devnet/eigenlayer_deployment_output.json))
350352
@go run operator/cmd/main.go deposit-into-strategy \
351353
--config $(CONFIG_FILE) \
352354
--strategy-address $(STRATEGY_ADDRESS) \

aggregation_mode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ make start_proof_aggregator_gpu AGGREGATOR="sp1|risc0"
6161
1. Get latest aggregated proof:
6262

6363
```shell
64-
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
64+
cast call 0xc351628EB244ec633d5f21fBD6621e1a683B1181 "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
6565
```
6666

6767
2. Get aggregated proof info:
6868

6969
```shell
70-
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
70+
cast call 0xc351628EB244ec633d5f21fBD6621e1a683B1181 "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
7171
```

batcher/aligned-sdk/src/core/constants.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub const BUMP_MAX_RETRY_DELAY: u64 = 3600; // seconds
5252
/// NETWORK ADDRESSES ///
5353
/// BatcherPaymentService
5454
pub const BATCHER_PAYMENT_SERVICE_ADDRESS_DEVNET: &str =
55-
"0x7bc06c482DEAd17c0e297aFbC32f6e63d3846650";
55+
"0x7969c5eD335650692Bc04293B07F5BF2e7A673C0";
5656
pub const BATCHER_PAYMENT_SERVICE_ADDRESS_HOLESKY: &str =
5757
"0x815aeCA64a974297942D2Bbf034ABEe22a38A003";
5858
pub const BATCHER_PAYMENT_SERVICE_ADDRESS_HOLESKY_STAGE: &str =
@@ -63,7 +63,7 @@ pub const BATCHER_PAYMENT_SERVICE_ADDRESS_MAINNET_STAGE: &str =
6363
"0x88ad27EfBeF16b6fC5b2E40c5155d61876f847c5";
6464

6565
/// AlignedServiceManager
66-
pub const ALIGNED_SERVICE_MANAGER_DEVNET: &str = "0x851356ae760d987E095750cCeb3bC6014560891C";
66+
pub const ALIGNED_SERVICE_MANAGER_DEVNET: &str = "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8";
6767
pub const ALIGNED_SERVICE_MANAGER_HOLESKY: &str = "0x58F280BeBE9B34c9939C3C39e0890C81f163B623";
6868
pub const ALIGNED_SERVICE_MANAGER_HOLESKY_STAGE: &str =
6969
"0x9C5231FC88059C086Ea95712d105A2026048c39B";
@@ -79,7 +79,7 @@ pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_HOLESKY_STAGE: &str =
7979
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_HOLESKY: &str =
8080
"0xe84CD4084d8131841CE6DC265361f81F4C59a1d4";
8181
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_DEVNET: &str =
82-
"0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc";
82+
"0xFD471836031dc5108809D173A067e8486B9047A3";
8383

8484
/// Batcher URL's
8585
pub const BATCHER_URL_DEVNET: &str = "ws://localhost:8080";

config-files/config-proof-aggregator-mock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
eth_rpc_url: http://localhost:8545
22
eth_ws_url: ws://localhost:8545
33
max_proofs_in_queue: 1000
4-
proof_aggregation_service_address: 0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07
5-
aligned_service_manager_address: 0x851356ae760d987E095750cCeb3bC6014560891C
4+
proof_aggregation_service_address: 0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f
5+
aligned_service_manager_address: 0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8
66
last_aggregated_block_filepath: config-files/proof-aggregator.last_aggregated_block.json
77
ecdsa:
88
private_key_store_path: config-files/anvil.proof-aggregator.ecdsa.key.json

config-files/config-proof-aggregator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aligned_service_manager_address: "0x851356ae760d987E095750cCeb3bC6014560891C"
2-
proof_aggregation_service_address: "0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc"
1+
aligned_service_manager_address: "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8"
2+
proof_aggregation_service_address: "0xFD471836031dc5108809D173A067e8486B9047A3"
33
eth_rpc_url: "http://localhost:8545"
44
eth_ws_url: "ws://localhost:8545"
55
max_proofs_in_queue: 1000

contracts/deployments/31337.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"CREATE2_SALT": "0x0000000000000000000000000000000000000000000000000000000000000009",
3-
"SP1_VERIFIER_GATEWAY_GROTH16": "0xB146FbFdFeC2a5182b3Cef9becE03290224256D5",
4-
"V4_0_0_RC3_SP1_VERIFIER_GROTH16": "0x93a993C79738eA5D8836e42C6c422259684639Dc"
3+
"SP1_VERIFIER_GATEWAY_GROTH16": "0x06530DD13aFB697B81E2d602a279EBAEC8Ca2E31",
4+
"V4_0_0_RC3_SP1_VERIFIER_GROTH16": "0x14C66A76b06A414e62048c50e4d21B295ad2Cb0C"
55
}
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'

0 commit comments

Comments
 (0)