Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions contracts/scripts/ethereum-package/deploy_aligned_contracts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

RPC_URL="http://localhost:8545"

cd contracts

ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS=$(jq -r '.addresses.alignedLayerServiceManager' ./script/output/devnet/alignedlayer_deployment_output.json)

sleep 1

# Deploy the contracts
forge script script/deploy/AlignedLayerDeployer.s.sol \
./script/output/devnet/eigenlayer_deployment_output.json \
./script/deploy/config/devnet/aligned.devnet.config.json \
./script/output/devnet/alignedlayer_deployment_output.json \
--rpc-url $RPC_URL \
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
--broadcast \
--sig "run(string memory existingDeploymentInfoPath, string memory deployConfigPath, string memory outputPath)"


ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS=$(jq -r '.addresses.alignedLayerServiceManager' ./script/output/devnet/alignedlayer_deployment_output.json)

# Can't deploy on another script, current open issue: https://github.com/foundry-rs/foundry/issues/7952
forge script ../examples/verify/script/VerifyBatchInclusionCallerDeployer.s.sol \
"$ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS" \
--rpc-url $RPC_URL \
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
--broadcast \
--sig "run(address _targetContract)"

output_path=./script/output/devnet/batcher_deployment_output.json

# Deploy Batcher Payments Contract
forge script script/deploy/BatcherPaymentServiceDeployer.s.sol \
./script/deploy/config/devnet/batcher-payment-service.devnet.config.json \
$output_path \
--rpc-url $RPC_URL \
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
--broadcast \
--sig "run(string batcherConfigPath, string outputPath)"

# Extract the batcher payment service values from the output
batcher_payment_service_proxy=$(jq -r '.addresses.batcherPaymentService' $output_path)
batcher_payment_service_implementation=$(jq -r '.addresses.batcherPaymentServiceImplementation' $output_path)

# Give initial funds to ServiceManager for the Batcher
cast send $ALIGNED_LAYER_SERVICE_MANAGER_ADDRESS "depositToBatcher(address)()" $batcher_payment_service_proxy --value 1ether --private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --rpc-url $RPC_URL

cd ..
17 changes: 17 additions & 0 deletions contracts/scripts/ethereum-package/deploy_eigen_contracts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

RPC_URL="http://localhost:59139"

sleep 1

cd contracts

# Deploy the contracts
forge script script/deploy/EigenLayerDeployer.s.sol \
--rpc-url $RPC_URL \
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
--broadcast \
--slow \
--sig "run(string memory configFile)" -- eigen.devnet.config.json

cd ..
501 changes: 4 additions & 497 deletions network_params.yaml

Large diffs are not rendered by default.

Loading