@@ -45,9 +45,11 @@ l3node=false
4545consensusclient=false
4646redundantsequencers=0
4747lightClientAddr=0xb6eb235fa509e3206f959761d11e3777e16d0e98
48+ lightClientAddrForL3=0x5e36aa9caaf5f708fca5c04d2d4c776a62b2b258
4849dev_build_nitro=false
4950dev_build_blockscout=false
5051espresso=false
52+ l2_espresso=false
5153latest_espresso_image=false
5254l3_custom_fee_token=false
5355l3_token_bridge=false
@@ -96,6 +98,7 @@ while [[ $# -gt 0 ]]; do
9698 --espresso)
9799 simple=false
98100 espresso=true
101+ l2_espresso=true
99102 shift
100103 ;;
101104 --latest-espresso-image)
@@ -277,13 +280,21 @@ elif ! $simple; then
277280fi
278281if $l3node ; then
279282 NODES=" $NODES l3node"
283+ export ESPRESSO_DEPLOYER_ALT_CHAIN_PROVIDERS=" http://sequencer:8547"
284+ export ESPRESSO_DEPLOYER_ALT_MNEMONICS=" indoor dish desk flag debris potato excuse depart ticket judge file exit"
285+ export ESPRESSO_SEQUENCER_DEPLOYER_ALT_INDICES=" 6"
280286fi
281287if $blockscout ; then
282288 NODES=" $NODES blockscout"
283289fi
284290
285291if $espresso ; then
286- if $force_build ; then
292+ if $l3node ; then
293+ # If we run the `l3node` with enabling espresso mode, then the
294+ # l2 node will run without `espresso` mode.
295+ l2_espresso=false
296+ fi
297+ if $force_build && $l2_espresso ; then
287298 INITIAL_SEQ_NODES=" $INITIAL_SEQ_NODES espresso-dev-node"
288299 else
289300 NODES=" $NODES espresso-dev-node"
@@ -396,9 +407,10 @@ if $force_init; then
396407 docker compose run scripts send-l1 --ethamount 0.0001 --from user_l1user --to user_l1user_b --wait --delay 500 --times 1000000 > /dev/null &
397408
398409 l2ownerAddress=` docker compose run scripts print-address --account l2owner | tail -n 1 | tr -d ' \r\n' `
410+ echo $l2ownerAddress
399411
400412 echo == Writing l2 chain config
401- docker compose run scripts --l2owner $l2ownerAddress write-l2-chain-config --espresso $espresso
413+ docker compose run scripts --l2owner $l2ownerAddress write-l2-chain-config --espresso $l2_espresso
402414
403415 sequenceraddress=` docker compose run scripts print-address --account sequencer | tail -n 1 | tr -d ' \r\n' `
404416 l2ownerKey=` docker compose run scripts print-private-key --account l2owner | tail -n 1 | tr -d ' \r\n' `
@@ -407,13 +419,14 @@ if $force_init; then
407419 echo == Deploying L2 chain
408420 docker compose run -e PARENT_CHAIN_RPC=" http://geth:8545" -e DEPLOYER_PRIVKEY=$l2ownerKey -e PARENT_CHAIN_ID=$l1chainid -e CHILD_CHAIN_NAME=" arb-dev-test" -e MAX_DATA_SIZE=117964 -e OWNER_ADDRESS=$l2ownerAddress -e WASM_MODULE_ROOT=$wasmroot -e SEQUENCER_ADDRESS=$sequenceraddress -e AUTHORIZE_VALIDATORS=10 -e CHILD_CHAIN_CONFIG_PATH=" /config/l2_chain_config.json" -e CHAIN_DEPLOYMENT_INFO=" /config/deployment.json" -e CHILD_CHAIN_INFO=" /config/deployed_chain_info.json" -e LIGHT_CLIENT_ADDR=$lightClientAddr rollupcreator create-rollup-testnode
409421 docker compose run --entrypoint sh rollupcreator -c " jq [.[]] /config/deployed_chain_info.json > /config/l2_chain_info.json"
422+ docker compose run --entrypoint sh rollupcreator -c " cat /config/l2_chain_info.json"
410423
411424 if $simple ; then
412425 echo == Writing configs
413426 docker compose run scripts write-config --simple
414427 else
415428 echo == Writing configs
416- docker compose run scripts write-config --espresso $espresso --lightClientAddress $lightClientAddr
429+ docker compose run scripts write-config --espresso $l2_espresso --lightClientAddress $lightClientAddr
417430
418431 echo == Initializing redis
419432 docker compose up --wait redis
@@ -460,7 +473,7 @@ if $force_init; then
460473 echo == Writing l3 chain config
461474 l3owneraddress=` docker compose run scripts print-address --account l3owner | tail -n 1 | tr -d ' \r\n' `
462475 echo l3owneraddress $l3owneraddress
463- docker compose run scripts --l2owner $l3owneraddress write-l3-chain-config
476+ docker compose run scripts --l2owner $l3owneraddress write-l3-chain-config --espresso $espresso
464477
465478 if $l3_custom_fee_token ; then
466479 echo == Deploying custom fee token
@@ -474,7 +487,7 @@ if $force_init; then
474487 l3ownerkey=` docker compose run scripts print-private-key --account l3owner | tail -n 1 | tr -d ' \r\n' `
475488 l3sequenceraddress=` docker compose run scripts print-address --account l3sequencer | tail -n 1 | tr -d ' \r\n' `
476489
477- docker compose run -e DEPLOYER_PRIVKEY=$l3ownerkey -e PARENT_CHAIN_RPC=" http://sequencer:8547" -e PARENT_CHAIN_ID=412346 -e CHILD_CHAIN_NAME=" orbit-dev-test" -e MAX_DATA_SIZE=104857 -e OWNER_ADDRESS=$l3owneraddress -e WASM_MODULE_ROOT=$wasmroot -e SEQUENCER_ADDRESS=$l3sequenceraddress -e AUTHORIZE_VALIDATORS=10 -e CHILD_CHAIN_CONFIG_PATH=" /config/l3_chain_config.json" -e CHAIN_DEPLOYMENT_INFO=" /config/l3deployment.json" -e CHILD_CHAIN_INFO=" /config/deployed_l3_chain_info.json" $EXTRA_L3_DEPLOY_FLAG rollupcreator create-rollup-testnode
490+ docker compose run -e DEPLOYER_PRIVKEY=$l3ownerkey -e PARENT_CHAIN_RPC=" http://sequencer:8547" -e PARENT_CHAIN_ID=412346 -e CHILD_CHAIN_NAME=" orbit-dev-test" -e MAX_DATA_SIZE=104857 -e OWNER_ADDRESS=$l3owneraddress -e WASM_MODULE_ROOT=$wasmroot -e SEQUENCER_ADDRESS=$l3sequenceraddress -e AUTHORIZE_VALIDATORS=10 -e CHILD_CHAIN_CONFIG_PATH=" /config/l3_chain_config.json" -e CHAIN_DEPLOYMENT_INFO=" /config/l3deployment.json" -e CHILD_CHAIN_INFO=" /config/deployed_l3_chain_info.json" -e LIGHT_CLIENT_ADDR= $lightClientAddrForL3 $EXTRA_L3_DEPLOY_FLAG rollupcreator create-rollup-testnode
478491 docker compose run --entrypoint sh rollupcreator -c " jq [.[]] /config/deployed_l3_chain_info.json > /config/l3_chain_info.json"
479492
480493 echo == Funding l3 funnel and dev key
0 commit comments