From e3ad966dc3a152b0ed6c77a1fc75e1e76f3706fd Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Mon, 15 Jul 2024 15:16:28 +0300 Subject: [PATCH] review fixes --- network/init-neutrond.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 6a3213746..ffc8d1ebd 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -54,10 +54,10 @@ CW4_GROUP_CONTRACT=$THIRD_PARTY_CONTRACTS_DIR/cw4_group.wasm NEUTRON_CHAIN_MANAGER_CONTRACT=$CONTRACTS_BINARIES_DIR/neutron_chain_manager.wasm # Slinky genesis configs -USE_CORE_MARKETS=true -USE_RAYDIUM_MARKETS=false -USE_UNISWAPV3_BASE_MARKETS=false -USE_COINGECKO_MARKETS=false +USE_CORE_MARKETS=${USE_CORE_MARKETS:-true} +USE_RAYDIUM_MARKETS=${USE_RAYDIUM_MARKETS:-false} +USE_UNISWAPV3_BASE_MARKETS=${USE_UNISWAPV3_BASE_MARKETS:-true} +USE_COINGECKO_MARKETS=${USE_COINGECKO_MARKETS:-true} echo "Add consumer section..." $BINARY add-consumer-section --home "$CHAIN_DIR" @@ -736,8 +736,6 @@ MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["marketmap"]["market_m MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["oracle"]["currency_pair_genesis"] += [$markets | fromjson | .markets | values | .[].ticker.currency_pair | {"currency_pair": {"Base": .Base, "Quote": .Quote}, "currency_pair_price": null, "nonce": 0} ]' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH" MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["oracle"]["currency_pair_genesis"] |= (to_entries | map(.value += {id: (.key + 1)} | .value))' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH" -cat markets.json - rm markets.json echo "Setting the rest of Neutron genesis params..."