Skip to content

Commit

Permalink
(fix): replace custom toke to wbtc + provide correct health port
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid Ateir committed Feb 5, 2025
1 parent f1fc24d commit 9efbc53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion start-zk-chains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
12 changes: 6 additions & 6 deletions zk-chains-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9efbc53

Please sign in to comment.