-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wasm command to support v1 gov proposals (#1326)
* Add wasm command to support v1 gov proposals * fix lint issues * fix comments * Minor tweak and test files --------- Co-authored-by: Alex Peters <[email protected]>
- Loading branch information
Showing
7 changed files
with
1,086 additions
and
2 deletions.
There are no files selected for viewing
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,19 @@ | ||
#!/bin/bash | ||
set -o errexit -o nounset -o pipefail | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
|
||
echo "Compile with buildflag ''-X github.com/CosmWasm/wasmd/app.ProposalsEnabled=true' to enable gov" | ||
sleep 1 | ||
echo "## Submit a CosmWasm gov proposal" | ||
RESP=$(wasmd tx wasm submit-proposal store-instantiate "$DIR/../../x/wasm/keeper/testdata/reflect.wasm" \ | ||
'{}' --label="testing" \ | ||
--title "testing" --summary "Testing" --deposit "1000000000ustake" \ | ||
--admin $(wasmd keys show -a validator --keyring-backend=test) \ | ||
--amount 123ustake \ | ||
--keyring-backend=test \ | ||
--from validator --gas auto --gas-adjustment=1.5 -y --chain-id=testing --node=http://localhost:26657 -b sync -o json) | ||
echo $RESP | ||
sleep 6 | ||
wasmd q tx $(echo "$RESP"| jq -r '.txhash') -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
Oops, something went wrong.