Created
July 5, 2022 01:17
-
-
Save zeroFruit/55aaed26b26496c97ae9d316ddb5522c to your computer and use it in GitHub Desktop.
Cosmos Dev Series: Cosmos-SDK-based Blockchain Upgrade - upgrade-proposal.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export SIMAPPD_V1_HOME=/path/to/simappd-v1 | |
export SIMAPP_V1_BIN=$SIMAPPD_V1_HOME/cosmovisor/genesis/bin/cored | |
export DAEMON_HOME=/path/to/simappd-home | |
# Send SoftwareUpgrade proposal - Upgrade Name: v2.0.0 | |
$SIMAPP_V1_BIN tx gov submit-proposal software-upgrade v2.0.0 --title v2.0.0 --description v2.0.0 --upgrade-height 40 --from validator1 --yes --home $DAEMON_HOME --chain-id app_9000-1 | |
# Deposit for the proposal - Proposal ID: 1 | |
$SIMAPP_V1_BIN tx gov deposit 1 10000000atoken --from validator1 --yes --home $DAEMON_HOME --chain-id app_9000-1 | |
# Vote for the proposal | |
$SIMAPP_V1_BIN tx gov vote 1 yes --from validator1 --yes --home $DAEMON_HOME --chain-id app_9000-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment