Skip to content

Instantly share code, notes, and snippets.

@arnabmitra
Created November 10, 2021 00:13
Show Gist options
  • Save arnabmitra/afc783250463fe04d7d5e96a23398843 to your computer and use it in GitHub Desktop.
Save arnabmitra/afc783250463fe04d7d5e96a23398843 to your computer and use it in GitHub Desktop.
create fee proposal with fee denom same as additional fee denom
#!/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 marker fees" 10000000000nhash \
--msg-type=/provenance.marker.v1.MsgAddMarkerRequest --additional-fee 99nhash --min-gas-price 1905nhash \
--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 1 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 1 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 1 yes \
--fees 5000nhash \
--from node2 \
--home ${PROVENANCE_DEV_DIR}/build/node2 \
--chain-id chain-local \
--keyring-backend test \
--gas auto \
--fees 150990180nhash \
--broadcast-mode block \
--yes \
--testnet
${PROVENANCE_DEV_DIR}/build/provenanced -t tx gov vote 1 yes \
--fees 5000nhash \
--from node3 \
--home ${PROVENANCE_DEV_DIR}/build/node3 \
--chain-id chain-local \
--keyring-backend test \
--gas auto \
--fees 150990180nhash \
--broadcast-mode block \
--yes \
--testnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment