Script clean up

This commit is contained in:
Roy Crihfield 2024-08-18 09:43:53 -04:00
parent 189ae577c4
commit 114963d57c
3 changed files with 8 additions and 17 deletions

View File

@ -1,5 +1,3 @@
version: '3.7'
services: services:
# Generates and funds the accounts required when setting up the L2 chain (outputs to volume l2_accounts) # Generates and funds the accounts required when setting up the L2 chain (outputs to volume l2_accounts)
# Creates / updates the configuration for L1 contracts deployment # Creates / updates the configuration for L1 contracts deployment

View File

@ -4,35 +4,28 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x set -x
fi fi
CERC_L1_CHAIN_ID="${CERC_L1_CHAIN_ID:-${DEFAULT_CERC_L1_CHAIN_ID}}"
CERC_L1_RPC="${CERC_L1_RPC:-${DEFAULT_CERC_L1_RPC}}" CERC_L1_RPC="${CERC_L1_RPC:-${DEFAULT_CERC_L1_RPC}}"
DEPLOYMENT_CONTEXT="$CERC_L1_CHAIN_ID"
CERC_L1_BEACON="${CERC_L1_BEACON:-${DEFAULT_CERC_L1_BEACON}}" CERC_L1_BEACON="${CERC_L1_BEACON:-${DEFAULT_CERC_L1_BEACON}}"
deploy_config_file="/l2-config/$DEPLOYMENT_CONTEXT.json"
l1_deployment_file="/l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json"
l2_allocs_file="/l2-config/allocs-l2.json"
genesis_outfile="/l2-config/genesis.json"
rollup_outfile="/l2-config/rollup.json"
# Start op-node # Start op-node
SEQ_KEY=$(cat /l2-accounts/accounts.json | jq -r .SeqKey) rollup_config=/l2-config/rollup.json
seq_key=$(cat /l2-accounts/accounts.json | jq -r .SeqKey)
jwt_file=/l2-config/l2-jwt.txt jwt_file=/l2-config/l2-jwt.txt
L2_AUTH="http://op-geth:8551" l2_auth="http://op-geth:8551"
RPC_KIND=any # this can optionally be set to a preset for common node providers like Infura, Alchemy, etc. rpc_kind=any # this can optionally be set to a preset for common node providers like Infura, Alchemy, etc.
exec op-node \ exec op-node \
--l2=$L2_AUTH \ --l2=$l2_auth \
--l2.jwt-secret=$jwt_file \ --l2.jwt-secret=$jwt_file \
--sequencer.enabled \ --sequencer.enabled \
--sequencer.l1-confs=5 \ --sequencer.l1-confs=5 \
--verifier.l1-confs=4 \ --verifier.l1-confs=4 \
--rollup.config=$rollup_outfile \ --rollup.config=$rollup_config \
--rpc.addr=0.0.0.0 \ --rpc.addr=0.0.0.0 \
--rpc.port=8547 \ --rpc.port=8547 \
--p2p.disable \ --p2p.disable \
--rpc.enable-admin \ --rpc.enable-admin \
--p2p.sequencer.key="${SEQ_KEY#0x}" \ --p2p.sequencer.key="${SEQ_KEY#0x}" \
--l1=$CERC_L1_RPC \ --l1=$CERC_L1_RPC \
--l1.rpckind=$RPC_KIND \ --l1.rpckind=$rpc_kind \
--l1.beacon=$CERC_L1_BEACON --l1.beacon=$CERC_L1_BEACON

View File

@ -68,7 +68,7 @@ laconic-so --stack ~/cerc/fixturenet-optimism-stack/stack/fixturenet-optimism de
### Ports ### Ports
It is usually necessary to expose certain container ports on one or more the host's addresses to allow incoming connections. It is usually necessary to expose certain container ports on one or more of the host's addresses to allow incoming connections.
Any ports defined in the Docker compose file are exposed by default with random port assignments, bound to "any" interface (IP address 0.0.0.0), but the port mappings can be customized by editing the "spec" file generated by `laconic-so deploy init`. Any ports defined in the Docker compose file are exposed by default with random port assignments, bound to "any" interface (IP address 0.0.0.0), but the port mappings can be customized by editing the "spec" file generated by `laconic-so deploy init`.
In addition, a stack-wide port mapping "recipe" can be applied at the time the In addition, a stack-wide port mapping "recipe" can be applied at the time the