Skip to content

Commit

Permalink
completed testnet initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping committed Apr 30, 2024
1 parent b0af076 commit a6094f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions local_node.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash

KEYS=("dev0" "dev1" "dev2")
CHAINID="taproot-1"
KEYS=("dev0" "dev1")
CHAINID="S2-testnet-1"
MONIKER="Side Labs"
BINARY="$HOME/go/bin/sided"
DENOM_STR="uside,uatom,ubtc,ueth,uusdc,uusdt"
# DENOMS=$(echo $DENOM_STR | tr "," "\n")
# DENOMS=(${DENOM_STR//,/ })
DENOM_STR="uside,ubtct,uusdc,uusdc.axl,uusdc.noble,uusdt,uusdt.kava,uusdt.axl,uwbtc.axl,uwbtc.osmo,uwbtc"

set -f
IFS=,
Expand All @@ -15,7 +13,7 @@ DENOMS=($DENOM_STR)
IFS=";"


INITIAL_SUPPLY="100000000000000000000"
INITIAL_SUPPLY="500000000000000"
BLOCK_GAS=10000000
MAX_GAS=10000000000

Expand Down Expand Up @@ -79,8 +77,10 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then
$BINARY init $MONIKER -o --chain-id $CHAINID --home "$HOMEDIR"

jq --arg denom "${DENOMS[0]}" '.app_state["staking"]["params"]["bond_denom"]=$denom' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq --arg denom "${DENOMS[0]}" '.app_state["mint"]["params"]["mint_denom"]=$denom' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq --arg denom "${DENOMS[0]}" '.app_state["crisis"]["constant_fee"]["denom"]=$denom' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq --arg denom "${DENOMS[0]}" '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]=$denom' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq --arg denom "${DENOMS[0]}" '.app_state["gov"]["params"]["min_deposit"][0]["denom"]=$denom' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq --arg gas "$BLOCK_GAS" '.app_state["feemarket"]["block_gas"]=$gas' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
# Set gas limit in genesis
jq --arg max_gas "$MAX_GAS" '.consensus_params["block"]["max_gas"]=$max_gas' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
Expand Down

0 comments on commit a6094f6

Please sign in to comment.