Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ganache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GANACHE_MNEMONIC="ozone access unlock valid olympic save include omit supply green clown session"

FROM vegaprotocol/smartcontracts-base:v1.2.4
FROM vegaprotocol/smartcontracts-base:v1.3.0

ARG TARGETARCH
ARG GANACHE_MNEMONIC
Expand Down
19 changes: 14 additions & 5 deletions ganache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ Network is created with the following metadata:

```
docker run --name vega-eth-ganache vegaprotocol/ganache:latest ganache-cli \
--blockTime 1 \
--chainId 1440 \
--networkId 1441 \
--miner.blockTime 0.5 \
--chain.chainId 1440 \
--chain.networkId 1441 \
-h 0.0.0.0 \
-p 8545 \
-m "ozone access unlock valid olympic save include omit supply green clown session" \
--db /app/ganache-db
--wallet.mnemonic "ozone access unlock valid olympic save include omit supply green clown session" \
--database.dbPath /app/ganache-db \
--wallet.accountKeysPath keys.json
```

### Useful information
Expand Down Expand Up @@ -91,4 +92,12 @@ Private Keys
(7) 0xafe378ddf5ff1092b8653cb37b0d9df5585e0ee475ea0f96844db003d8a0e279
(8) 0x9770b0443b973e72cd74b5f87f53fe53f2dba5aee8b0a110789eb6d3d9c70ec6
(9) 0xc8b01eaa62245b9c229cecc6bc306324c066767eeefda82cf9d3764eb1bae2b7
```


# Development

```
cd .../docker/ganache ;
./local-build.sh
```
19 changes: 19 additions & 0 deletions ganache/local-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash


cd ../smartcontracts-base
docker build -t vegaprotocol/smartcontracts-base:v1.3.0 .

cd ../ganache
docker build -t vegaprotocol/ganache:v1.3.0 .


docker run vegaprotocol/ganache:v1.3.0 ganache \
--miner.blockTime 0.5 \
--chain.chainId 1440 \
--chain.networkId 1441 \
-h 0.0.0.0 \
-p 8545 \
--wallet.mnemonic "ozone access unlock valid olympic save include omit supply green clown session" \
--database.dbPath /app/ganache-db \
--wallet.accountKeysPath keys.json
10 changes: 5 additions & 5 deletions ganache/prebuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ esac

nohup \
bash -c "ganache-cli \
--blockTime 1 \
--chainId 1440 \
--networkId 1441 \
-m \"${GANACHE_MNEMONIC}\" \
--db /app/ganache-db \
--miner.blockTime 1 \
--chain.chainId 1440 \
--chain.networkId 1441 \
--wallet.mnemonic \"${GANACHE_MNEMONIC}\" \
--database.dbPath /app/ganache-db \
-h 0.0.0.0 \
-p \"${GANACHE_PORT}\" &" \
&& GANACHE_MNEMONIC="${GANACHE_MNEMONIC}" GANACHE_HOSTNAME="127.0.0.1" GANACHE_PORT="${GANACHE_PORT}" ./run
2 changes: 1 addition & 1 deletion ganache/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "v1.2.4",
"version": "v1.3.0",
"name": "vegaprotocol/ganache"
}