Change staking/govt modules to use ustake

This commit is contained in:
Ethan Frey 2020-01-30 19:13:31 +01:00
parent 25485128ee
commit 4c0845ac0b
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
PASSWORD=${PASSWORD:-1234567890}
wasmd init --chain-id=testing testing
# staking/governance token is hardcoded in config, change this
sed -i 's/"stake"/"ustake"/' "$HOME"/.wasmd/config/genesis.json
(echo $PASSWORD; echo $PASSWORD) | wasmcli keys add validator
# hardcode the validator account for this instance
echo $PASSWORD | wasmd add-genesis-account validator 1000000000ustake,1000000000ucosm
@ -11,5 +13,5 @@ for addr in "$@"; do
wasmd add-genesis-account $addr 1000000000ustake,1000000000ucosm
done
# submit a genesis validator tx
(echo $PASSWORD; echo $PASSWORD; echo $PASSWORD) | wasmd gentx --name validator
(echo $PASSWORD; echo $PASSWORD; echo $PASSWORD) | wasmd gentx --name validator --amount 250000000ustake
wasmd collect-gentxs