mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
customize for predictoor
This commit is contained in:
parent
95f6172220
commit
3cf54ffe54
@ -7,4 +7,4 @@ services:
|
||||
networks:
|
||||
backend:
|
||||
ipv4_address: 172.15.0.3
|
||||
entrypoint: ["node","/app/dist/node/cli.js","--database.dbPath", "./ganache_cache","--chain.chainId","0x2324","--chain.networkId","0x2324","-l","10000000000","-g","1","--chain.hardfork","istanbul","--miner.blockTime","0","--miner.instamine", "eager","--wallet.mnemonic","${GANACHE_MNEMONIC}", "-e","1000000"]
|
||||
entrypoint: ["node","/app/dist/node/cli.js","--database.dbPath", "./ganache_cache","--chain.chainId","0x2324","--chain.networkId","0x2324","-l","10000000000","-g","1","--chain.hardfork","${GANACHE_FORK}","--miner.blockTime","${GANACHE_BLOCKTIME}","--miner.instamine","${GANACHE_INSTAMINE}","--wallet.mnemonic","${GANACHE_MNEMONIC}", "-e","1000000"]
|
||||
|
@ -63,8 +63,13 @@ else
|
||||
fi
|
||||
export NETWORK_RPC_PORT="8545"
|
||||
export NETWORK_RPC_URL="http://"${NETWORK_RPC_HOST}:${NETWORK_RPC_PORT}
|
||||
|
||||
# Use this seed on ganache to always create the same wallets
|
||||
export GANACHE_MNEMONIC=${GANACHE_MNEMONIC:-"taxi music thumb unique chat sand crew more leg another off lamp"}
|
||||
export GANACHE_INSTAMINE=${GANACHE_INSTAMINE:-"eager"}
|
||||
export GANACHE_BLOCKTIME=${GANACHE_BLOCKTIME:-0}
|
||||
export GANACHE_FORK=${GANACHE_FORK:-"istanbul"}
|
||||
|
||||
|
||||
# Ocean contracts
|
||||
export OCEAN_HOME="${HOME}/.ocean"
|
||||
@ -264,6 +269,22 @@ while :; do
|
||||
export DEPLOY_SUBGRAPH=false
|
||||
printf $COLOR_Y'Ocean subgraph will not be deployed, the last deployment (if any) will be intact ...\n\n'$COLOR_RESET
|
||||
;;
|
||||
--predictoor)
|
||||
# Add what we need
|
||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml"
|
||||
# Remove what is not needed for now
|
||||
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=predictoor
|
||||
export SUBGRAPH_VERSION=predictoor
|
||||
# replicate true blockchain behiavour
|
||||
export GANACHE_INSTAMINE=strict
|
||||
export GANACHE_BLOCKTIME=12
|
||||
;;
|
||||
#################################################
|
||||
# Cleaning switches
|
||||
#################################################
|
||||
|
Loading…
Reference in New Issue
Block a user