Skip to content

Commit

Permalink
chore: add default-denom in init
Browse files Browse the repository at this point in the history
  • Loading branch information
jim380 committed Jan 5, 2024
1 parent b92181b commit d6fe84b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/local_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/node_setup/setup_run_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/testnet/add_wasm_state_to_genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions scripts/testnet/create_genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d6fe84b

Please sign in to comment.