Skip to content

Instantly share code, notes, and snippets.

@arnabmitra
Created November 9, 2021 20:03
Show Gist options
  • Save arnabmitra/b03896033d7ca87b9658bf44d9740fd3 to your computer and use it in GitHub Desktop.
Save arnabmitra/b03896033d7ca87b9658bf44d9740fd3 to your computer and use it in GitHub Desktop.
Gov proposal and vote provenance chain.
#!/bin/bash
# I'm using a provenance "run" instance for these tests
# provenance setup, clean project, make, adjust the voting period in the config to test msg based fee proposals:
# 'make clean ; make build; make run-config; cat ./build/node0/config/genesis.json | jq '\'' .app_state.gov.voting_params.voting_period="20s" '\'' | tee ./build/node0/config/genesis.json; cat ./build/node0/config/genesis.json'
PROVENANCE_DEV_DIR=~/provenance
COMMON_TX_FLAGS="--gas auto --gas-prices 1905nhash --gas-adjustment 2 --chain-id chain-local --keyring-backend test --yes -o json"
######################################### SETUP FOR ATS CONTRACT EXECUTION ##############################################
${PROVENANCE_DEV_DIR}/build/provenanced -t tx msgfees proposal add "adding" "adding bank send addition fee" 10000000000nhash \
--msg-type=/cosmos.bank.v1beta1.MsgSend --additional-fee 99gwei\
--from node0 \
--home ${PROVENANCE_DEV_DIR}/build/node0 \
--chain-id chain-local \
--keyring-backend test \
--gas auto \
--fees 250990180nhash \
--broadcast-mode block \
--yes \
--testnet
${PROVENANCE_DEV_DIR}/build/provenanced -t tx gov vote 3 yes \
--fees 5000nhash \
--from node0 \
--home ${PROVENANCE_DEV_DIR}/build/node0 \
--chain-id chain-local \
--keyring-backend test \
--gas auto \
--fees 250990180nhash \
--broadcast-mode block \
--yes \
--testnet
${PROVENANCE_DEV_DIR}/build/provenanced -t tx gov vote 3 yes \
--fees 5000nhash \
--from node1 \
--home ${PROVENANCE_DEV_DIR}/build/node1 \
--chain-id chain-local \
--keyring-backend test \
--fees 550990180nhash \
--broadcast-mode block \
--yes \
--testnet
${PROVENANCE_DEV_DIR}/build/provenanced -t tx gov vote 3 yes \
--fees 5000nhash \
--from node2 \
--home ${PROVENANCE_DEV_DIR}/build/node2 \
--chain-id chain-local \
--keyring-backend test \
--gas auto \
--fees 450990180nhash \
--broadcast-mode block \
--yes \
--testnet
${PROVENANCE_DEV_DIR}/build/provenanced -t tx gov vote 3 yes \
--fees 5000nhash \
--from node3 \
--home ${PROVENANCE_DEV_DIR}/build/node3 \
--chain-id chain-local \
--keyring-backend test \
--gas auto \
--fees 450990180nhash \
--broadcast-mode block \
--yes \
--testnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment