From 56a9dc2cfa1b82658180a699ebd804554547ff71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Fri, 20 Oct 2023 13:28:46 +0200 Subject: [PATCH 1/2] feat: Bump sapphire-dev 0.7.0-testnet and emerald-dev 11.0.0-testnet --- docker/common/start.sh | 11 +++++------ docker/emerald-dev/Dockerfile | 4 ++-- docker/sapphire-dev/Dockerfile | 8 ++++---- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docker/common/start.sh b/docker/common/start.sh index b0f81df8..b4fce3ed 100755 --- a/docker/common/start.sh +++ b/docker/common/start.sh @@ -52,25 +52,24 @@ while ! [[ -S ${OASIS_NODE_SOCKET} ]]; do sleep 1; done ${OASIS_WEB3_GATEWAY} --config ${OASIS_WEB3_GATEWAY_CONFIG_FILE} 2>1 &>/var/log/oasis-web3-gateway.log & OASIS_WEB3_GATEWAY_PID=$! +# Wait for compute nodes before initiating deposit. +echo -n " * Bootstrapping network (this might take a minute)" if [[ ${SAPPHIRE_BACKEND} == 'mock' ]]; then - echo -n " * Bootstrapping network (this might take a minute)" - echo -n . ${OASIS_NODE} debug control wait-nodes -n 2 -a unix:${OASIS_NODE_SOCKET} echo -n . ${OASIS_NODE} debug control set-epoch --epoch 1 -a unix:${OASIS_NODE_SOCKET} - echo . + echo -n . ${OASIS_NODE} debug control set-epoch --epoch 2 -a unix:${OASIS_NODE_SOCKET} else - echo " * Bootstrapping network (this might take a minute)" - # Wait for compute nodes before initiating deposit. ${OASIS_NODE} debug control wait-ready -a unix:${OASIS_NODE_SOCKET} fi +echo echo " * Populating accounts" -echo "" +echo ${OASIS_DEPOSIT} -sock unix:${OASIS_NODE_SOCKET} "$@" echo diff --git a/docker/emerald-dev/Dockerfile b/docker/emerald-dev/Dockerfile index b2f0f0f5..7e98dd2f 100644 --- a/docker/emerald-dev/Dockerfile +++ b/docker/emerald-dev/Dockerfile @@ -8,8 +8,8 @@ RUN cd oasis-web3-gateway && make build FROM ubuntu:22.04 # Docker-specific variables -ENV OASIS_CORE_VERSION=22.2.6 -ENV PARATIME_VERSION=10.0.0 +ENV OASIS_CORE_VERSION=23.0.1 +ENV PARATIME_VERSION=11.0.0-testnet ENV PARATIME_NAME=emerald ENV GATEWAY__CHAIN_ID=0xa514 diff --git a/docker/sapphire-dev/Dockerfile b/docker/sapphire-dev/Dockerfile index 883446ac..ce5ff043 100644 --- a/docker/sapphire-dev/Dockerfile +++ b/docker/sapphire-dev/Dockerfile @@ -5,11 +5,11 @@ COPY . /go/oasis-web3-gateway RUN cd oasis-web3-gateway && make build # Build simple-keymanager -FROM oasisprotocol/oasis-core-dev:stable-22.2.x AS oasis-core-dev +FROM ghcr.io/oasisprotocol/oasis-core-dev:stable-23.0.x AS oasis-core-dev ENV OASIS_UNSAFE_SKIP_KM_POLICY=1 -RUN git clone https://github.com/oasisprotocol/oasis-core.git --branch stable/22.2.x --depth 1 \ +RUN git clone https://github.com/oasisprotocol/oasis-core.git --branch stable/23.0.x --depth 1 \ && cd oasis-core/tests/runtimes/simple-keymanager \ && cargo build @@ -34,8 +34,8 @@ RUN apt update -qq \ # Docker-specific variables ENV OASIS_CORE_VERSION=23.0.1 -ENV OASIS_CLI_VERSION=0.5.0 -ENV PARATIME_VERSION=0.6.4 +ENV OASIS_CLI_VERSION=0.6.0 +ENV PARATIME_VERSION=0.7.0-testnet ENV PARATIME_NAME=sapphire ENV GATEWAY__CHAIN_ID=0x5afd From 0fe3c465b988888fcc22392d39edcbca3d9acfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Fri, 20 Oct 2023 20:54:22 +0200 Subject: [PATCH 2/2] fix: Fix the default amount in README to correct 10,000 TEST --- docker/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/README.md b/docker/README.md index d7f71146..feca26ad 100644 --- a/docker/README.md +++ b/docker/README.md @@ -50,7 +50,7 @@ Chain IDs: - Sapphire Localnet: `0x5afd` (`23293`) By default, a random mnemonic will be generated and the first 5 accounts will -be funded 100 ROSE. Flags `-amount`, `-to`, `-n` can be added to specify an +be funded 10,000 TEST. Flags `-amount`, `-to`, `-n` can be added to specify an initial ROSE deposit, existing mnemonic and the number of addresses to derive and fund respectively.