Skip to content

Commit cce82fd

Browse files
committed
remove make command ethereum_package_update_network_params
1 parent d0cf70f commit cce82fd

File tree

4 files changed

+71
-502
lines changed

4 files changed

+71
-502
lines changed

Makefile

-5
Original file line numberDiff line numberDiff line change
@@ -1238,11 +1238,6 @@ __ETHEREUM_PACKAGE__: ## ____
12381238
ethereum_package_start: ## Starts the ethereum_package environment
12391239
kurtosis run --enclave aligned github.com/ethpandaops/ethereum-package --args-file network_params.yaml
12401240

1241-
ethereum_package_update_network_params:
1242-
@yq e -i -P ".network_params.additional_preloaded_contracts = $$( \
1243-
jq '.accounts' contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json \
1244-
)" network_params.yaml
1245-
12461241
ethereum_package_inspect: ## Prints detailed information about the net
12471242
kurtosis enclave inspect aligned
12481243

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
3+
RPC_URL="http://localhost:8545"
4+
5+
cd contracts
6+
7+
ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS=$(jq -r '.addresses.alignedLayerServiceManager' ./script/output/devnet/alignedlayer_deployment_output.json)
8+
9+
sleep 1
10+
11+
# Deploy the contracts
12+
forge script script/deploy/AlignedLayerDeployer.s.sol \
13+
./script/output/devnet/eigenlayer_deployment_output.json \
14+
./script/deploy/config/devnet/aligned.devnet.config.json \
15+
./script/output/devnet/alignedlayer_deployment_output.json \
16+
--rpc-url $RPC_URL \
17+
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
18+
--broadcast \
19+
--sig "run(string memory existingDeploymentInfoPath, string memory deployConfigPath, string memory outputPath)"
20+
21+
22+
ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS=$(jq -r '.addresses.alignedLayerServiceManager' ./script/output/devnet/alignedlayer_deployment_output.json)
23+
24+
# Can't deploy on another script, current open issue: https://github.com/foundry-rs/foundry/issues/7952
25+
forge script ../examples/verify/script/VerifyBatchInclusionCallerDeployer.s.sol \
26+
"$ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS" \
27+
--rpc-url $RPC_URL \
28+
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
29+
--broadcast \
30+
--sig "run(address _targetContract)"
31+
32+
output_path=./script/output/devnet/batcher_deployment_output.json
33+
34+
# Deploy Batcher Payments Contract
35+
forge script script/deploy/BatcherPaymentServiceDeployer.s.sol \
36+
./script/deploy/config/devnet/batcher-payment-service.devnet.config.json \
37+
$output_path \
38+
--rpc-url $RPC_URL \
39+
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
40+
--broadcast \
41+
--sig "run(string batcherConfigPath, string outputPath)"
42+
43+
# Extract the batcher payment service values from the output
44+
batcher_payment_service_proxy=$(jq -r '.addresses.batcherPaymentService' $output_path)
45+
batcher_payment_service_implementation=$(jq -r '.addresses.batcherPaymentServiceImplementation' $output_path)
46+
47+
# Give initial funds to ServiceManager for the Batcher
48+
cast send $ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS "depositToBatcher(address)()" $batcher_payment_service_proxy --value 1ether --private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --rpc-url $RPC_URL
49+
50+
cd ..
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
RPC_URL="http://localhost:59139"
4+
5+
sleep 1
6+
7+
cd contracts
8+
9+
# Deploy the contracts
10+
forge script script/deploy/EigenLayerDeployer.s.sol \
11+
--rpc-url $RPC_URL \
12+
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
13+
--broadcast \
14+
--slow \
15+
--sig "run(string memory configFile)" -- eigen.devnet.config.json
16+
17+
cd ..

network_params.yaml

+4-497
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)