Skip to content

Commit 8cf3522

Browse files
authored
Merge pull request #29 from rabbitprincess/feature/v1.9.2
Feature/v1.9.2
2 parents 826ea67 + 6fcc0ec commit 8cf3522

10 files changed

Lines changed: 18 additions & 14 deletions

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ buildx: buildx-init buildx-run buildx-bridge
2222
buildx-init:
2323
docker buildx build \
2424
--platform linux/amd64,linux/arm64 \
25-
-t dreamcacao/builderism_init:1.9.1 \
25+
-t dreamcacao/builderism_init:1.9.2 \
2626
-t dreamcacao/builderism_init:latest \
2727
--push ./init
2828

2929
buildx-run:
3030
docker buildx build \
3131
--platform linux/amd64,linux/arm64 \
32-
-t dreamcacao/builderism_run:1.9.1 \
32+
-t dreamcacao/builderism_run:1.9.2 \
3333
-t dreamcacao/builderism_run:latest \
3434
--push ./run
3535

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ It support 4 steps to operate OP Stack node
3232
- Most of time is spent on contract deployment.
3333
- If you see `[all process is done! check config files.]` message, init process is successfully done.
3434

35-
**Q. Init failed with message 'Please try to change your RPC url to an archive node if the issue persists.'**
36-
- It seems to be problem of foundry.
37-
- you can use other rpc provider like `infura`, `quicknode` instead of `publicNode`.
38-
3935
**Q. I want to change configuration not in ENV files.**
4036
- you can modify all `entrypoint` as needed.
4137
- all script is mounted in docker volume, so there is no need to rebuild docker images.

envs/base-sepolia.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ L2_BRIDGE_URL="http://host.docker.internal:3000/"
2020

2121
RUN_MODE="replica"
2222
L2_SUPERCHAIN_NETWORK="base-sepolia"
23-
OP_EXECUTION_SEQUENCER_HTTP="=https://sepolia-sequencer.base.org"
23+
OP_EXECUTION_SEQUENCER_HTTP="https://sepolia-sequencer.base.org"
2424
OP_NODE_P2P_BOOTNODES="enr:-J64QBwRIWAco7lv6jImSOjPU_W266lHXzpAS5YOh7WmgTyBZkgLgOwo_mxKJq3wz2XRbsoBItbv1dCyjIoNq67mFguGAYrTxM42gmlkgnY0gmlwhBLSsHKHb3BzdGFja4S0lAUAiXNlY3AyNTZrMaEDmoWSi8hcsRpQf2eJsNUx-sqv6fH4btmo2HsAzZFAKnKDdGNwgiQGg3VkcIIkBg,enr:-J64QFa3qMsONLGphfjEkeYyF6Jkil_jCuJmm7_a42ckZeUQGLVzrzstZNb1dgBp1GGx9bzImq5VxJLP-BaptZThGiWGAYrTytOvgmlkgnY0gmlwhGsV-zeHb3BzdGFja4S0lAUAiXNlY3AyNTZrMaEDahfSECTIS_cXyZ8IyNf4leANlZnrsMEWTkEYxf4GMCmDdGNwgiQGg3VkcIIkBg"

envs/custom-holesky.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ALT_DA_SERVER=
1919
##################################################
2020
# init node configuration #
2121
##################################################
22+
L1_RPC_URL_DEPLOY="https://holesky.drpc.org"
2223
PRIORITY_GAS_PRICE=1
2324
GOVERNANCE_TOKEN_SYMBOL=
2425

envs/custom-mainnet.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ALT_DA_SERVER=
1919
##################################################
2020
# init node configuration #
2121
##################################################
22+
L1_RPC_URL_DEPLOY="https://eth.drpc.org"
2223
PRIORITY_GAS_PRICE=1
2324
GOVERNANCE_TOKEN_SYMBOL=
2425

envs/custom-sepolia.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ALT_DA_SERVER=
1919
##################################################
2020
# init node configuration #
2121
##################################################
22+
L1_RPC_URL_DEPLOY="https://sepolia.drpc.org"
2223
PRIORITY_GAS_PRICE=10000
2324
GOVERNANCE_TOKEN_SYMBOL=
2425

init/1_init_environment.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export DEPLOYMENT_CONTEXT=$L2_CHAIN_ID
1919
export FAUCET_ADDRESS=${FAUCET_ADDRESS:-""}
2020
export FAUCET_PRIVATE_KEY=${FAUCET_PRIVATE_KEY:-""}
2121

22+
# overwrite l1 rpc address only for deploy
23+
if [ ! -z "${L1_RPC_URL_DEPLOY:-}" ]; then
24+
export L1_RPC_URL=$L1_RPC_URL_DEPLOY
25+
fi
26+
2227
# set priority gas price
2328
if [ -z "${PRIORITY_GAS_PRICE:-}" ]; then
2429
export PRIORITY_GAS_PRICE=10000

init/4_deploy_contract.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ forge script scripts/deploy/Deploy.s.sol:Deploy \
1111
--rpc-url $L1_RPC_URL \
1212
--priority-gas-price $PRIORITY_GAS_PRICE
1313

14-
echo "[deploy contract done!]"
14+
echo "[deploy contract done, start to deploy L2Genesis]"
1515

1616
CONTRACT_ADDRESSES_PATH="./deployments/$L1_CHAIN_ID-deploy.json" \
1717
DEPLOY_CONFIG_PATH="./deployments/$DEPLOYMENT_CONTEXT/.deploy" \

init/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ENV PATH="~/.foundry/bin:${PATH}"
2222

2323
# clone optimism repository
2424
ENV OP_REPO=https://github.com/ethereum-optimism/optimism.git
25-
ENV OP_VERSION=${OP_VERSION:-v1.9.1}
25+
ENV OP_VERSION=${OP_VERSION:-v1.9.2}
2626
RUN mkdir -p ~/optimism && cd ~/optimism && \
2727
git clone $OP_REPO --depth 1 --branch $OP_VERSION --single-branch . && \
2828
git switch -c $OP_VERSION && \
@@ -33,8 +33,8 @@ RUN mkdir -p ~/optimism && cd ~/optimism && \
3333
COPY *.sh /script/
3434
RUN chmod +x /script/*.sh
3535

36-
ENTRYPOINT ["/bin/bash", "-c", "\
37-
chmod +x /script/*.sh && \
36+
ENTRYPOINT ["/bin/bash", "-c", \
37+
"chmod +x /script/*.sh && \
3838
source /script/1_init_environment.sh && \
3939
/script/2_faucet.sh && \
4040
/script/3_generate_config.sh && \

run/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
FROM golang:1.22 as op
1+
FROM golang:1.22 AS op
22

33
WORKDIR /app
44

55
ENV OP_REPO=https://github.com/ethereum-optimism/optimism.git
6-
ENV OP_VERSION=${OP_VERSION:-v1.9.1}
6+
ENV OP_VERSION=${OP_VERSION:-v1.9.2}
77

88
RUN git clone $OP_REPO --depth 1 --branch op-node/$OP_VERSION --single-branch . && \
99
git switch -c branch-$OP_VERSION && \
1010
make -C op-node VERSION=$OP_VERSION op-node && \
1111
make -C op-batcher VERSION=$OP_VERSION op-batcher && \
1212
make -C op-proposer VERSION=$OP_VERSION op-proposer
1313

14-
FROM golang:1.22 as geth
14+
FROM golang:1.22 AS geth
1515

1616
WORKDIR /app
1717

0 commit comments

Comments
 (0)