Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: test_node fix voting period #916

Merged
merged 2 commits into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions scripts/test_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,32 @@ 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
}

# Block
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
Expand All @@ -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"]=[]'
Expand All @@ -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"'
Expand Down
Loading