Skip to content

Commit

Permalink
chore: bump versions of the stack components (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm authored Feb 23, 2024
1 parent 3a3ffdc commit 6af6cb1
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 16 deletions.
15 changes: 11 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ AUTH0_ISSUER_URL=https://dev-z8x4rhzfosi03fqx.us.auth0.com/
REDIS_HOST=localhost
REDIS_PORT=6379

# Stack version
# Stack version 0.0.11
#
# Find latest here: https://github.com/topos-protocol/polygon-edge/releases
TOPOS_EDGE_VERSION=1.3.0-topos
TOPOS_MESSAGING_PROTOCOL_CONTRACTS_VERSION=3.1.0
TOPOS_VERSION=0.0.10
EXECUTOR_SERVICE_VERSION=1.2.0

# Find latest here: https://github.com/topos-protocol/topos-smart-contracts/releases
TOPOS_MESSAGING_PROTOCOL_CONTRACTS_VERSION=3.2.0

# Find latest here: https://github.com/topos-protocol/topos/releases
TOPOS_VERSION=0.0.11

# Find latest here: https://github.com/topos-protocol/executor-service/releases
EXECUTOR_SERVICE_VERSION=1.2.0

# TESTS
export LOCAL_ERC20_HOME=./
8 changes: 8 additions & 0 deletions .env.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export PRIVATE_KEY=0xd7e2e00b43c12cf17239d4755ed744df6ca70a933fc7c8bbb7da1342a5ff2e38
export TOKEN_DEPLOYER_SALT=m1Ln9uF9MGZ2PcR
export TOPOS_CORE_SALT=dCyN8VZz5sXgqMO
export TOPOS_CORE_PROXY_SALT=aRV8Mp9o4xRpLbF
export ERC20_MESSAGING_SALT=ho37cJbGkgI6vnp
export SUBNET_REGISTRATOR_SALT=azsRlXyGu0ty291
export AUTH0_CLIENT_ID=xVF6EuPDaazQchfjFpGAdcJUpHk2W5I2
export AUTH0_CLIENT_SECRET=-CrwnrgSx1EaP_oaKAFXFdqrIvA4WK8Pcpd5xC4o3ZfYB4H4V4FPHfEbqpu4KZN8
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ https://docs.docker.com/get-docker/
docker compose down -v
```

*Note*: The `-v` flag is important here to ensure that we clean up storage in between runs.

## Run

If you have a partial or complete existing run, it's recommended to shut down the whole stack (see [Stop](#stop)) before re-running it.

For convenience we have included a `.env.secrets` file with example keys and other info. When starting the stack locally, make sure you `source ./.env.secrets`.

To run the whole stack:

```sh
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "local-erc20-messaging-infra",
"version": "1.0.0",
"version": "2.5.0",
"description": "",
"author": "",
"devDependencies": {
Expand Down
23 changes: 12 additions & 11 deletions subnet-topos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ services:

topos-init:
container_name: topos-init
command: sh -c "mkdir -p /data/node/ -p /data/subnet/topos && \
mv /data/data-1 /data/node/node-1 && \
mv /data/data-2 /data/node/node-2 && \
mv /data/data-3 /data/node/node-3 && \
mv /data/data-4 /data/node/node-4 && \
mv /data/genesis.json /data/subnet/topos/genesis.json && \
command: sh -c "
mkdir -p /data/node/ -p /data/subnet/topos && \
mv -f /data/data-1 /data/node/node-1 && \
mv -f /data/data-2 /data/node/node-2 && \
mv -f /data/data-3 /data/node/node-3 && \
mv -f /data/data-4 /data/node/node-4 && \
mv -f /data/genesis.json /data/subnet/topos/genesis.json && \
chmod a+rwx /data/* && ls -lRa /data && cat /data/subnet/topos/genesis.json"
image: debian:bullseye-slim
depends_on:
Expand Down Expand Up @@ -74,7 +75,7 @@ services:
- "--home"
- "/data"
healthcheck:
test: |
test: |
set -e
./topos node status --node http://localhost:1340
/data/polygon-edge status | grep 'Current Block Number (base 10) = .[0-9]*'
Expand Down Expand Up @@ -153,9 +154,9 @@ services:
- "--home"
- "/data"
healthcheck:
test: |
set -e
./topos node status --node http://localhost:1340
test: |
set -e
./topos node status --node http://localhost:1340
/data/polygon-edge status | grep 'Current Block Number (base 10) = .[0-9]*'
interval: 10s
start_period: 1s
Expand Down Expand Up @@ -193,7 +194,7 @@ services:
- "--home"
- "/data"
healthcheck:
test: |
test: |
set -e
./topos node status --node http://localhost:1340
/bin/sh /polygon_edge_healthcheck.sh /data
Expand Down

0 comments on commit 6af6cb1

Please sign in to comment.