From 8659aa64fefe4671ad709b2cf73d76c8acddf4ac Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Fri, 15 Dec 2023 17:52:10 -0600 Subject: [PATCH] test_node fix voting period --- scripts/test_node.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/test_node.sh b/scripts/test_node.sh index bd8a2e1b7..e045c76de 100755 --- a/scripts/test_node.sh +++ b/scripts/test_node.sh @@ -40,17 +40,17 @@ from_scratch () { make install # remove existing daemon. - rm -rf $HOME_DIR && echo "Removed $HOME_DIR" - + rm -rf $HOME_DIR && echo "Removed $HOME_DIR" + # juno1efd63aw40lxf3n4mhf7dzhjkr453axurv2zdzk echo "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" | BINARY keys add $KEY --keyring-backend $KEYRING --algo $KEYALGO --recover # juno1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl echo "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise" | BINARY keys add $KEY2 --keyring-backend $KEYRING --algo $KEYALGO --recover - + BINARY init $MONIKER --chain-id $CHAIN_ID --default-denom ujuno # Function updates the config based on a jq argument as a string - update_test_genesis () { + update_test_genesis () { cat $HOME_DIR/config/genesis.json | jq "$1" > $HOME_DIR/config/tmp_genesis.json && mv $HOME_DIR/config/tmp_genesis.json $HOME_DIR/config/genesis.json } @@ -58,14 +58,14 @@ from_scratch () { update_test_genesis '.consensus_params["block"]["max_gas"]="100000000"' # Gov update_test_genesis '.app_state["gov"]["params"]["min_deposit"]=[{"denom": "ujuno","amount": "1000000"}]' - update_test_genesis '.app_state["gov"]["voting_params"]["voting_period"]="15s"' + update_test_genesis '.app_state["gov"]["params"]["voting_period"]="15s"' # staking - update_test_genesis '.app_state["staking"]["params"]["bond_denom"]="ujuno"' - update_test_genesis '.app_state["staking"]["params"]["min_commission_rate"]="0.050000000000000000"' + update_test_genesis '.app_state["staking"]["params"]["bond_denom"]="ujuno"' + update_test_genesis '.app_state["staking"]["params"]["min_commission_rate"]="0.050000000000000000"' # mint - update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="ujuno"' + update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="ujuno"' # crisis - update_test_genesis '.app_state["crisis"]["constant_fee"]={"denom": "ujuno","amount": "1000"}' + update_test_genesis '.app_state["crisis"]["constant_fee"]={"denom": "ujuno","amount": "1000"}' # Custom Modules # GlobalFee @@ -74,7 +74,7 @@ from_scratch () { update_test_genesis '.app_state["drip"]["params"]["allowed_addresses"]=["juno1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl","juno1efd63aw40lxf3n4mhf7dzhjkr453axurv2zdzk"]' # Clock # update_test_genesis '.app_state["clock"]["params"]["contract_addresses"]=["juno14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9skjuwg8"]' - + # TokenFactory # update_test_genesis '.app_state["tokenfactory"]["params"]["denom_creation_fee"]=[{"denom":"ujuno","amount":"100"}]' update_test_genesis '.app_state["tokenfactory"]["params"]["denom_creation_fee"]=[]' @@ -83,7 +83,7 @@ from_scratch () { # FeeShare update_test_genesis '.app_state["feeshare"]["params"]["allowed_denoms"]=["ujuno"]' - # Builder keeper genesis state + # Builder keeper genesis state update_test_genesis '.app_state["builder"]["params"]["front_running_protection"]=false' update_test_genesis '.app_state["builder"]["params"]["max_bundle_size"]="4"' update_test_genesis '.app_state["builder"]["params"]["min_bid_increment"]["denom"]="ujuno"'