-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from hyphacoop/v17-fresh-state
Add pss launches
- Loading branch information
Showing
7 changed files
with
531 additions
and
20 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
denom_hash=$1 | ||
|
||
echo "Patching template with consumer denom..." | ||
jq -r --arg DENOMTOADD "ibc/$denom_hash" '.denoms_to_add |= [$DENOMTOADD]' templates/proposal-change-reward-denoms.json > proposal-denom-hash.json | ||
|
||
echo "Submitting proposal..." | ||
|
||
echo "Preparing proposal with v47 command..." | ||
proposal="$CHAIN_BINARY tx gov submit-legacy-proposal change-reward-denoms proposal-denom-hash.json --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM --from $WALLET_2 --keyring-backend test --home $HOME_1 --chain-id $CHAIN_ID -y -o json" | ||
txhash=$($proposal | jq -r .txhash) | ||
# Wait for the proposal to go on chain | ||
sleep $(($COMMIT_TIMEOUT+2)) | ||
|
||
# Get proposal ID from txhash | ||
echo "Getting proposal ID from txhash..." | ||
$CHAIN_BINARY q tx $txhash --home $HOME_1 | ||
proposal_id=$($CHAIN_BINARY q tx $txhash --home $HOME_1 --output json | jq -r '.logs[].events[] | select(.type=="submit_proposal") | .attributes[] | select(.key=="proposal_id") | .value') | ||
|
||
echo "Voting on proposal $proposal_id..." | ||
$CHAIN_BINARY tx gov vote $proposal_id yes --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --fees $BASE_FEES$DENOM --from $WALLET_1 --keyring-backend test --home $HOME_1 --chain-id $CHAIN_ID -y | ||
sleep $(($COMMIT_TIMEOUT+2)) | ||
$CHAIN_BINARY q gov tally $proposal_id --home $HOME_1 | ||
|
||
echo "Waiting for proposal to pass..." | ||
sleep $VOTING_PERIOD | ||
$CHAIN_BINARY q gov proposal $proposal_id --home $HOME_1 -o json | jq '.' |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"title": "Change reward denoms", | ||
"summary": "Change reward denoms", | ||
"denoms_to_add": ["ibc/42C7464F6415DC7529A8C7581FE0991C7A090D60176BC90998B1DAF75B868635"], | ||
"deposit": "10000000uatom" | ||
} |