From d6fe84b54511f9554c73cb661040fc8a26ed6e36 Mon Sep 17 00:00:00 2001 From: Jay Jie Date: Fri, 5 Jan 2024 11:23:46 -0800 Subject: [PATCH] chore: add default-denom in init --- DEVELOPING.md | 2 +- scripts/local_setup.sh | 2 +- scripts/node_setup/setup_run_node.sh | 2 +- scripts/testnet/add_wasm_state_to_genesis.sh | 2 +- scripts/testnet/create_genesis.sh | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DEVELOPING.md b/DEVELOPING.md index 9f98fca4..3b47c44c 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -133,7 +133,7 @@ BIN=./build/seda-chaind $BIN tendermint unsafe-reset-all rm -rf ~/.seda-chain -$BIN init node0 +$BIN init node0 --default-denom aseda $BIN keys add satoshi --keyring-backend test $BIN add-genesis-account $($BIN keys show satoshi --keyring-backend test -a) 10000000000000000seda diff --git a/scripts/local_setup.sh b/scripts/local_setup.sh index 0c083a6b..8e56800a 100755 --- a/scripts/local_setup.sh +++ b/scripts/local_setup.sh @@ -29,7 +29,7 @@ rm -rf ~/.seda-chain || true $BIN config set client chain-id sedachain # initialize the chain -$BIN init node0 +$BIN init node0 --default-denom aseda cat $HOME/.seda-chain/config/genesis.json | jq '.app_state["gov"]["voting_params"]["voting_period"]="30s"' > $HOME/.seda-chain/config/tmp_genesis.json && mv $HOME/.seda-chain/config/tmp_genesis.json $HOME/.seda-chain/config/genesis.json # cat $HOME/.seda-chain/config/genesis.json | jq '.app_state["gov"]["params"]["voting_period"]="30s"' > $HOME/.seda-chain/config/tmp_genesis.json && mv $HOME/.seda-chain/config/tmp_genesis.json $HOME/.seda-chain/config/genesis.json diff --git a/scripts/node_setup/setup_run_node.sh b/scripts/node_setup/setup_run_node.sh index a59524fb..efdf24f2 100644 --- a/scripts/node_setup/setup_run_node.sh +++ b/scripts/node_setup/setup_run_node.sh @@ -115,7 +115,7 @@ echo "Initializing Node ..." # exist initialize the node with the given MNEMONIC, MONIKER and NETWORK if ! [ -f /seda-chain/.seda-chain/config/genesis.json ]; then echo "Setting Up seda configuration" - echo $MNEMONIC | $BIN init join ${MONIKER} --network ${NETWORK} --recover + echo $MNEMONIC | $BIN join ${MONIKER} --network ${NETWORK} --recover else echo "seda configuration already exists" fi diff --git a/scripts/testnet/add_wasm_state_to_genesis.sh b/scripts/testnet/add_wasm_state_to_genesis.sh index 0dd8a2d0..82292820 100755 --- a/scripts/testnet/add_wasm_state_to_genesis.sh +++ b/scripts/testnet/add_wasm_state_to_genesis.sh @@ -95,7 +95,7 @@ TEMP_CHAIN_ID=temp-seda-chain # # SCRIPT BEGINS - START CHAIN # -$BIN init node0 --home $TMP_HOME --chain-id $TEMP_CHAIN_ID +$BIN init node0 --home $TMP_HOME --chain-id $TEMP_CHAIN_ID --default-denom aseda cat $TMP_HOME/config/genesis.json | jq '.consensus["params"]["validator"]["pub_key_types"]=["secp256k1"]' > $TMP_HOME/config/tmp_genesis.json && mv $TMP_HOME/config/tmp_genesis.json $TMP_HOME/config/genesis.json diff --git a/scripts/testnet/create_genesis.sh b/scripts/testnet/create_genesis.sh index 09a12d3f..60270716 100755 --- a/scripts/testnet/create_genesis.sh +++ b/scripts/testnet/create_genesis.sh @@ -20,7 +20,7 @@ rm -rf $NODE_DIR # # CREATE GENESIS AND ADJUST GOV PARAMETERS # -$BIN init node0 --chain-id $CHAIN_ID +$BIN init node0 --chain-id $CHAIN_ID --default-denom aseda cat $HOME/.seda-chain/config/genesis.json | jq '.app_state["gov"]["voting_params"]["voting_period"]="180s"' > $HOME/.seda-chain/config/tmp_genesis.json && mv $HOME/.seda-chain/config/tmp_genesis.json $HOME/.seda-chain/config/genesis.json cat $HOME/.seda-chain/config/genesis.json | jq '.app_state["gov"]["params"]["voting_period"]="180s"' > $HOME/.seda-chain/config/tmp_genesis.json && mv $HOME/.seda-chain/config/tmp_genesis.json $HOME/.seda-chain/config/genesis.json @@ -58,7 +58,7 @@ for i in ${!MONIKERS[@]}; do INDIVIDUAL_VAL_HOME_DIR=$NODE_DIR/${MONIKERS[$i]} INDIVIDUAL_VAL_CONFIG_DIR="$INDIVIDUAL_VAL_HOME_DIR/config" - $BIN init ${MONIKERS[$i]} --home $INDIVIDUAL_VAL_HOME_DIR --chain-id $CHAIN_ID + $BIN init ${MONIKERS[$i]} --home $INDIVIDUAL_VAL_HOME_DIR --chain-id $CHAIN_ID --default-denom aseda $BIN keys add ${MONIKERS[$i]} --keyring-backend=test --home $INDIVIDUAL_VAL_HOME_DIR VALIDATOR_ADDRESS=$($BIN keys show ${MONIKERS[$i]} --keyring-backend test --home $INDIVIDUAL_VAL_HOME_DIR -a)