mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 16:13:47 +00:00
settlement rpc is arg to hyperlane dockerfiles
This commit is contained in:
parent
a62c304c69
commit
da1535bd88
5 changed files with 11 additions and 7 deletions
|
|
@ -7,19 +7,19 @@ up-prod-settlement:
|
|||
|
||||
up-dev-settlement:
|
||||
@if [ ! -f .env ]; then echo "Error: .env file not found. Please populate the .env file before running this command."; exit 1; fi
|
||||
AGENT_BASE_IMAGE=shaspitz/hyperlane-agent-mac:6985064 SETTLEMENT_RPC_URL=http://localhost:8545 docker compose --profile settlement up -d --build
|
||||
AGENT_BASE_IMAGE=nil SETTLEMENT_RPC_URL=nil docker compose --profile settlement up -d --build
|
||||
|
||||
up-dev-bridge:
|
||||
@if [ ! -f .env ]; then echo "Error: .env file not found. Please populate the .env file before running this command."; exit 1; fi
|
||||
AGENT_BASE_IMAGE=shaspitz/hyperlane-agent-mac:6985064 SETTLEMENT_RPC_URL=http://localhost:8545 docker compose --profile bridge up -d --build
|
||||
AGENT_BASE_IMAGE=shaspitz/hyperlane-agent-mac:6985064 SETTLEMENT_RPC_URL=http://172.29.0.98:8545 docker compose --profile bridge up -d --build
|
||||
|
||||
up-prod-bridge:
|
||||
@if [ ! -f .env ]; then echo "Error: .env file not found. Please populate the .env file before running this command."; exit 1; fi
|
||||
AGENT_BASE_IMAGE=gcr.io/abacus-labs-dev/hyperlane-agent@sha256:854f92966eac6b49e5132e152cc58168ecdddc76c2d390e657b81bdaf1396af0 SETTLEMENT_RPC_URL=http://34.215.163.180:8545 docker compose --profile bridge up -d --build
|
||||
AGENT_BASE_IMAGE=gcr.io/abacus-labs-dev/hyperlane-agent@sha256:854f92966eac6b49e5132e152cc58168ecdddc76c2d390e657b81bdaf1396af0 SETTLEMENT_RPC_URL=http://172.29.0.98:8545 docker compose --profile bridge up -d --build
|
||||
|
||||
up-dev-local-l1:
|
||||
@if [ ! -f .env ]; then echo "Error: .env file not found. Please populate the .env file before running this command."; exit 1; fi
|
||||
AGENT_BASE_IMAGE=shaspitz/hyperlane-agent-mac:6985064 SETTLEMENT_RPC_URL=http://localhost:8545 docker compose --profile settlement --profile local_l1 up -d
|
||||
AGENT_BASE_IMAGE=nil SETTLEMENT_RPC_URL=nil docker compose --profile settlement --profile local_l1 up -d
|
||||
|
||||
down:
|
||||
AGENT_BASE_IMAGE=nil SETTLEMENT_RPC_URL=nil docker compose --profile settlement --profile bridge --profile prod_agents --profile local_l1 down
|
||||
|
|
|
|||
|
|
@ -202,6 +202,7 @@ services:
|
|||
args:
|
||||
# Image can be built for arm64 with https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/rust/build.sh
|
||||
- AGENT_BASE_IMAGE=${AGENT_BASE_IMAGE}
|
||||
- SETTLEMENT_RPC_URL=${SETTLEMENT_RPC_URL}
|
||||
# Reuse geth private key for validator
|
||||
command: ./validator --validator.key ${NODE1_PRIVATE_KEY} --chains.mevcommitsettlement.signer.key ${NODE1_PRIVATE_KEY} --checkpointSyncer.path /val1-sigs
|
||||
# TODO: evaluate why container needs to run as root
|
||||
|
|
@ -225,6 +226,7 @@ services:
|
|||
dockerfile: Dockerfile
|
||||
args:
|
||||
- AGENT_BASE_IMAGE=${AGENT_BASE_IMAGE}
|
||||
- SETTLEMENT_RPC_URL=${SETTLEMENT_RPC_URL}
|
||||
# Reuse geth private key for validator
|
||||
command: ./validator --validator.key ${NODE2_PRIVATE_KEY} --chains.mevcommitsettlement.signer.key ${NODE2_PRIVATE_KEY} --checkpointSyncer.path /val2-sigs
|
||||
# TODO: evaluate why container needs to run as root
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ mevcommitsettlement:
|
|||
name: mevcommitsettlement
|
||||
protocol: ethereum
|
||||
rpcUrls:
|
||||
# Only http field is required
|
||||
# This RPC URL is specific to a local geth POA setup
|
||||
- http: http://172.29.0.98:8545
|
||||
pagination:
|
||||
maxBlockRange: 1000
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
ARG AGENT_BASE_IMAGE
|
||||
ARG SETTLEMENT_RPC_URL
|
||||
FROM ${AGENT_BASE_IMAGE}
|
||||
|
||||
# Relayer config, see:
|
||||
|
|
@ -11,7 +12,7 @@ ENV CONFIG_FILES="/deploy-artifacts/agent-config.json"
|
|||
|
||||
CMD ./relayer \
|
||||
--relayChains mevcommitsettlement,sepolia \
|
||||
--chains.mevcommitsettlement.connection.url "http://172.29.0.98:8545" \
|
||||
--chains.mevcommitsettlement.connection.url ${SETTLEMENT_RPC_URL} \
|
||||
--chains.sepolia.connection.url "https://eth-sepolia.g.alchemy.com/v2/a0wg_g1X-Wz4IeVA-0SS3PsQhbyQNjc_" \
|
||||
--db /relayer-db \
|
||||
--defaultSigner.key $RELAYER_PRIVATE_KEY \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
ARG AGENT_BASE_IMAGE
|
||||
ARG SETTLEMENT_RPC_URL
|
||||
FROM ${AGENT_BASE_IMAGE}
|
||||
|
||||
# Validator config, see:
|
||||
|
|
@ -9,7 +10,7 @@ ENV CONFIG_FILES="/deploy-artifacts/agent-config.json"
|
|||
|
||||
ENV HYP_BASE_REORGPERIOD=20
|
||||
ENV HYP_BASE_ORIGINCHAINNAME="mevcommitsettlement"
|
||||
ENV HYP_BASE_CHAINS_MEVCOMMITSETTLEMENT_CONNECTION_URL="http://172.29.0.98:8545"
|
||||
ENV HYP_BASE_CHAINS_MEVCOMMITSETTLEMENT_CONNECTION_URL=${SETTLEMENT_RPC_URL}
|
||||
ENV HYP_BASE_DB="/val-db"
|
||||
ENV HYP_CHECKPOINTSYNCER_TYPE="localStorage"
|
||||
ENV HYP_ORIGINCHAINNAME="mevcommitsettlement"
|
||||
|
|
|
|||
Loading…
Reference in a new issue