-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupgrade-proposal.sh
executable file
·37 lines (33 loc) · 1.63 KB
/
upgrade-proposal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
PROVENANCE_DEV_DIR=~/code/provenance
VERSION_ID="mango-rc4"
DESCRIPTION="upgrade-description"
TITLE="upgrade-title"
INFO="upgrade-info"
DEPOSIT=100100000000000nhash
UPGRADE_HEIGHT=50
PROPOSAL_ID=1
echo "ADDING UPGRADE PROPOSAL"
${PROVENANCE_DEV_DIR}/build/provenanced tx gov submit-proposal software-upgrade "${VERSION_ID}" \
--title "${TITLE}" \
--description "${DESCRIPTION}" \
--upgrade-info "${INFO}" \
--upgrade-height ${UPGRADE_HEIGHT} \
--deposit ${DEPOSIT} \
--from validator \
--yes -t --home ${PROVENANCE_DEV_DIR}/build/run/provenanced \
--fees 10000000000000nhash --chain-id testing --keyring-backend test -o json | jq
echo "VOTING ON PROPOSAL"
${PROVENANCE_DEV_DIR}/build/provenanced tx gov vote ${PROPOSAL_ID} yes --from validator --yes -t --home ${PROVENANCE_DEV_DIR}/build/run/provenanced --fees 10000000000000nhash --chain-id testing --keyring-backend test -o json | jq
# provenanced tx gov submit-proposal software-upgrade "mango" \
# --title "mango - v1.11.1-rc1" \
# --description "mango upgrade for software upgrade v1.11.1-rc1" \
# --upgrade-info "https://github.com/provenance-io/provenance/releases/download/v1.11.1-rc1/plan-v1.11.1-rc1.json" \
# --upgrade-height ${UPGRADE_HEIGHT} \
# --deposit ${DEPOSIT}
# provenanced tx gov submit-proposal software-upgrade "mango-rc2" \
# --title "mango-rc2 - v1.11.1-rc2" \
# --description "mango-rc2 upgrade for software upgrade v1.11.1-rc2" \
# --upgrade-info "https://github.com/provenance-io/provenance/releases/download/v1.11.1-rc2/plan-v1.11.1-rc2.json" \
# --upgrade-height 8740707 \
# --deposit 50000000000000nhash