Skip to content

Commit

Permalink
support validium and custom base token
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-zk committed May 13, 2024
1 parent e1acbf4 commit 31080ad
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ Will start a hyperchain with 3 L2s, L1 and necessary explorers.
To run:

```shell
# to fetch the latest images
docker compose -f hyperchain-docker-compose.yml pull
docker compose -f hyperchain-docker-compose.yml up -d
```

Afterwards, you'll have explorers available at http://localhost:15000 http://localhost:15001 and http://localhost:15005


### Manual transfer to hyperchains
Expand Down
46 changes: 34 additions & 12 deletions hyperchain-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ services:
zksync:
stdin_open: true
tty: true
image: matterlabs/local-node:mmzk_0508-1
image: matterlabs/local-node:hyperlocal
healthcheck:
test: curl --fail http://localhost:3071/health || exit 1
interval: 10s
timeout: 5s
retries: 20
retries: 200
start_period: 30s
volumes:
- shared_config:/etc/env/target
Expand All @@ -94,11 +94,20 @@ services:
zksync_custombase:
stdin_open: true
tty: true
image: matterlabs/local-node:mmzk_0508-1
image: matterlabs/local-node:hyperlocal
depends_on:
- reth
- postgres
- zksync
reth:
condition: service_started
postgres:
condition: service_started
zksync:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:3071/health || exit 1
interval: 10s
timeout: 5s
retries: 200
start_period: 30s
volumes:
- shared_config:/etc/master_env
- shared_tokens:/etc/tokens:ro
Expand All @@ -119,12 +128,22 @@ services:
zksync_validium:
stdin_open: true
tty: true
image: matterlabs/local-node:mmzk_0508-1
image: matterlabs/local-node:hyperlocal
depends_on:
- reth
- postgres
- zksync
- zksync_custombase # daisy chain
reth:
condition: service_started
postgres:
condition: service_started
zksync:
condition: service_healthy
zksync_custombase: # daisy chain
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:3071/health || exit 1
interval: 10s
timeout: 5s
retries: 200
start_period: 30s
volumes:
- shared_config:/etc/master_env
- shared_tokens:/etc/tokens:ro
Expand Down Expand Up @@ -365,7 +384,10 @@ services:
depends_on:
zksync:
condition: service_healthy

zksync_validium:
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 31080ad

Please sign in to comment.