From 9efbc53bbdabb0783e7560f4390a10ba68cd0f17 Mon Sep 17 00:00:00 2001 From: Raid Ateir Date: Wed, 5 Feb 2025 19:52:19 +0400 Subject: [PATCH] (fix): replace custom toke to wbtc + provide correct health port --- start-zk-chains.sh | 2 +- zk-chains-docker-compose.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/start-zk-chains.sh b/start-zk-chains.sh index acf9329..63c2da1 100755 --- a/start-zk-chains.sh +++ b/start-zk-chains.sh @@ -24,7 +24,7 @@ until docker exec local-setup-zksync-1 test -f /configs/erc20.yaml; do done echo "Extracting deployed token address from inside zksync container..." -CUSTOM_TOKEN_ADDRESS=$(docker exec local-setup-zksync-1 awk -F": " '/tokens:/ {found_tokens=1} found_tokens && /DAI:/ {found_dai=1} found_dai && /address:/ {print $2; exit}' /configs/erc20.yaml) +CUSTOM_TOKEN_ADDRESS=$(docker exec local-setup-zksync-1 awk -F": " '/tokens:/ {found_tokens=1} found_tokens && /WBTC:/ {found_dai=1} found_dai && /address:/ {print $2; exit}' /configs/erc20.yaml) if [ -z "$CUSTOM_TOKEN_ADDRESS" ]; then echo "❌ Error: Could not retrieve token address. Exiting." diff --git a/zk-chains-docker-compose.yml b/zk-chains-docker-compose.yml index b07abd0..e1c70f5 100644 --- a/zk-chains-docker-compose.yml +++ b/zk-chains-docker-compose.yml @@ -107,7 +107,7 @@ services: zksync: condition: service_healthy healthcheck: - test: curl --fail http://localhost:3071/health || exit 1 + test: curl --fail http://localhost:3171/health || exit 1 interval: 10s timeout: 5s retries: 200 @@ -117,13 +117,13 @@ services: - shared_tokens:/etc/tokens:ro - shared_configs:/configs # ✅ Mount /configs from zksync (era) into zksync_custombase ports: - - 127.0.0.1:15200:3050 # JSON RPC HTTP port - - 127.0.0.1:15201:3051 # JSON RPC WS port + - 127.0.0.1:15200:3150 # JSON RPC HTTP port + - 127.0.0.1:15201:3151 # JSON RPC WS port environment: - DATABASE_PROVER_URL=postgres://postgres:notsecurepassword@postgres/prover_custombase - DATABASE_URL=postgres://postgres:notsecurepassword@postgres/zksync_custombase - ETH_CLIENT_WEB3_URL=http://reth:8545 - - CHAIN_ETH_ZKSYNC_NETWORK_ID=272 + - CHAIN_ETH_ZKSYNC_NETWORK_ID=277 - IN_DOCKER=true - MASTER_URL=http://zksync:3050 - MASTER_HEALTH_URL=http://zksync:3071/health @@ -391,8 +391,8 @@ services: condition: service_healthy # zksync_validium: # condition: service_healthy - # zksync_custombase: - # condition: service_healthy + zksync_custombase: + condition: service_healthy image: ghcr.io/mm-zk/zksync_tools:latest ports: - 127.0.0.1:15000:5000