From 2bf56ed49abc478d3c5555aaacf7443b0e56a7ed Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Mon, 31 Jul 2023 18:08:29 +0300 Subject: [PATCH] multiple predictoor versions --- start_ocean.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/start_ocean.sh b/start_ocean.sh index c1415b5..1868e26 100755 --- a/start_ocean.sh +++ b/start_ocean.sh @@ -294,10 +294,39 @@ while :; do # Enforce images export CONTRACTS_VERSION=predictoor2 export SUBGRAPH_VERSION=predictoor + export PDR_TRUEVAL_VERSION=v0.0.1 + export PDR_PREDICTOOR_VERSION=v0.0.1 + export PDR_TRADER_VERSION=v0.0.1 + export PDR_PUBLISHER_VERSION=v0.0.1 + export PDR_DFBUYER_VERSION=v0.0.1 + # replicate true blockchain behiavour export GANACHE_INSTAMINE=strict export GANACHE_BLOCKTIME=1 ;; + --new-predictoor) + # Add what we need + COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml" + # We should remove what is not needed for now, but ocean,py requires both aqua & provider + #COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/provider.yml/}" + #COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/redis.yml/}" + #COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius.yml/}" + #COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/elasticsearch.yml/}" + #COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/dashboard.yml/}" + # Enforce images + export CONTRACTS_VERSION=predictoor3 + export SUBGRAPH_VERSION=predictoor3 + export PDR_TRUEVAL_VERSION=${PDR_TRUEVAL_VERSION:-latest} + export PDR_PREDICTOOR_VERSION=${PDR_PREDICTOOR_VERSION:-latest} + export PDR_TRADER_VERSION=${PDR_TRADER_VERSION:-latest} + export PDR_PUBLISHER_VERSION=${PDR_PUBLISHER_VERSION:-latest} + export PDR_DFBUYER_VERSION=${PDR_DFBUYER_VERSION:-latest} + + # replicate true blockchain behiavour + export GANACHE_INSTAMINE=strict + export GANACHE_BLOCKTIME=1 + ;; + --with-pdr-trueval) COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pdr-trueval.yml" printf $COLOR_Y'Starting with pdr-trueval...\n\n'$COLOR_RESET