Prathamesh Musale
9ca108e877
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675) - Updated Dockerfiles - Added a separate service to generate L2 config files - Updated service dependency for `op-geth` and `op-node` - Passed lighthouse beacon API endpoint to the `op-node` command - Updated path for artifact generated by L1 contracts deployment Co-authored-by: Adwait Gharpure <69599306+Adw8@users.noreply.github.com> Reviewed-on: #3
23 lines
634 B
Bash
Executable File
23 lines
634 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
set -x
|
|
fi
|
|
|
|
CERC_L1_RPC="${CERC_L1_RPC:-${DEFAULT_CERC_L1_RPC}}"
|
|
CERC_L1_CHAIN_ID="${CERC_L1_CHAIN_ID:-${DEFAULT_CERC_L1_CHAIN_ID}}"
|
|
DEPLOYMENT_CONTEXT="$CERC_L1_CHAIN_ID"
|
|
|
|
# Start op-proposer
|
|
ROLLUP_RPC="http://op-node:8547"
|
|
PROPOSER_KEY=$(cat /l2-accounts/accounts.json | jq -r .ProposerKey)
|
|
L2OO_ADDR=$(cat /l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json | jq -r .L2OutputOracleProxy)
|
|
|
|
op-proposer \
|
|
--poll-interval=12s \
|
|
--rpc.port=8560 \
|
|
--rollup-rpc=$ROLLUP_RPC \
|
|
--l2oo-address="${L2OO_ADDR#0x}" \
|
|
--private-key="${PROPOSER_KEY#0x}" \
|
|
--l1-eth-rpc=$CERC_L1_RPC
|