Skip to content

Commit 78d1b62

Browse files
authored
Merge pull request #38 from rabbitprincess/feature/v1.12.2
Feature/v1.12.2
2 parents 3d5c930 + 978c0f8 commit 78d1b62

13 files changed

Lines changed: 71 additions & 311 deletions

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
init:
44
docker compose --env-file common.env -f init/docker-compose.yml -p builderism-init up
55

6+
init-down:
7+
docker compose --env-file common.env -f init/docker-compose.yml -p builderism-init down
8+
69
run:
710
docker compose --env-file common.env -f run/docker-compose.yml -p builderism-run up
811

12+
run-down:
13+
docker compose --env-file common.env -f run/docker-compose.yml -p builderism-run down
14+
915
scan:
1016
docker compose --env-file common.env -f scan/docker-compose.yml -p builderism-scan up
1117

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ reqenv "L1_RPC_URL"
1212
reqenv "L1_CHAIN_ID"
1313
reqenv "L2_CHAIN_ID"
1414

15-
echo "[1/5] : init environment variables"
15+
echo "[1/3] : init environment variables"
1616

1717
export IMPL_SALT=$(openssl rand -hex 32)
1818
export DEPLOYMENT_CONTEXT=$L2_CHAIN_ID

init/2_faucet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
FAUCET_PRIVATE_KEY="$FAUCET_PRIVATE_KEY"
66
FAUCET_ADDRESS="$FAUCET_ADDRESS"
77

8-
echo "[2/5] : faucet eth to environment accounts"
8+
echo "[2/3] : faucet eth to environment accounts"
99
send_eth() {
1010
receiver_address="$1"
1111
amount_to_eth="$2"

init/3_config.jsonnet

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

init/3_deploy.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
set -eu
3+
4+
echo "[3/3] : generate config"
5+
6+
cd ~/optimism/op-deployer/bin
7+
8+
./op-deployer init --l1-chain-id $L1_CHAIN_ID --l2-chain-ids $L2_CHAIN_ID --workdir .op-deployer
9+
10+
sed -i \
11+
-e "s/baseFeeVaultRecipient = \".*\"/baseFeeVaultRecipient = \"$ADMIN_ADDRESS\"/" \
12+
-e "s/l1FeeVaultRecipient = \".*\"/l1FeeVaultRecipient = \"$ADMIN_ADDRESS\"/" \
13+
-e "s/sequencerFeeVaultRecipient = \".*\"/sequencerFeeVaultRecipient = \"$ADMIN_ADDRESS\"/" \
14+
-e "s/l2ProxyAdminOwner = \".*\"/l2ProxyAdminOwner = \"$ADMIN_ADDRESS\"/" \
15+
-e "s/systemConfigOwner = \".*\"/systemConfigOwner = \"$ADMIN_ADDRESS\"/" \
16+
-e "s/unsafeBlockSigner = \".*\"/unsafeBlockSigner = \"$ADMIN_ADDRESS\"/" \
17+
-e "s/batcher = \".*\"/batcher = \"$BATCHER_ADDRESS\"/" \
18+
-e "s/proposer = \".*\"/proposer = \"$PROPOSER_ADDRESS\"/" \
19+
.op-deployer/intent.toml
20+
21+
cp .op-deployer/intent.toml /config/intent.toml
22+
23+
./op-deployer apply --workdir .op-deployer --l1-rpc-url $L1_RPC_URL --private-key $ADMIN_PRIVATE_KEY
24+
./op-deployer inspect genesis --workdir .op-deployer $L2_CHAIN_ID > .op-deployer/genesis.json
25+
./op-deployer inspect rollup --workdir .op-deployer $L2_CHAIN_ID > .op-deployer/rollup.json
26+
27+
cp .op-deployer/state.json /config/state.json
28+
cp .op-deployer/genesis.json /config/genesis.json
29+
cp .op-deployer/rollup.json /config/rollup.json
30+
31+
32+
echo "[all process is done! check config files.]"

init/3_generate_config.sh

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

init/4_deploy_contract.sh

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

init/5_export_genesis.sh

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

0 commit comments

Comments
 (0)