-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 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,36 @@ | ||
# this script runs under the assumption that a three-validator environment is running on your local machine(multinode-local-testnet.sh) | ||
# this script would do basic setup that has to be achieved to actual superfluid staking | ||
# prior to running this script, have the following json file in the directory running this script | ||
# | ||
# stake-uosmo.json | ||
# { | ||
# "weights": "5stake,5uosmo", | ||
# "initial-deposit": "1000000stake,1000000uosmo", | ||
# "swap-fee": "0.01", | ||
# "exit-fee": "0.01", | ||
# "future-governor": "168h" | ||
# } | ||
|
||
# create pool | ||
osmosisd tx gamm create-pool --pool-file=./stake-uosmo.json --from=validator1 --keyring-backend=test --chain-id=testing --yes --home=$HOME/.osmosisd/validator1 | ||
sleep 7 | ||
|
||
# test swap in pool created | ||
osmosisd tx gamm swap-exact-amount-in 100000uosmo 50000 --swap-route-pool-ids=1 --swap-route-denoms=stake --from=validator1 --keyring-backend=test --chain-id=testing --yes --home=$HOME/.osmosisd/validator1 | ||
sleep 7 | ||
|
||
# create a lock up with lockable duration 360h | ||
osmosisd tx lockup lock-tokens 10000000000000000000gamm/pool/1 --duration=360h --from=validator1 --keyring-backend=test --chain-id=testing --broadcast-mode=block --yes --home=$HOME/.osmosisd/validator1 | ||
sleep 7 | ||
|
||
# submit and pass proposal for superfluid | ||
osmosisd tx gov submit-proposal set-superfluid-assets-proposal --title="set superfluid assets" --description="set superfluid assets description" --superfluid-assets="gamm/pool/1" --deposit=10000000uosmo --from=validator1 --chain-id=testing --keyring-backend=test --broadcast-mode=block --yes --home=$HOME/.osmosisd/validator1 | ||
sleep 7 | ||
|
||
osmosisd tx gov deposit 1 10000000stake --from=validator1 --keyring-backend=test --chain-id=testing --broadcast-mode=block --yes --home=$HOME/.osmosisd/validator1 | ||
sleep 7 | ||
|
||
osmosisd tx gov vote 1 yes --from=validator1 --keyring-backend=test --chain-id=testing --yes --home=$HOME/.osmosisd/validator1 | ||
sleep 7 | ||
osmosisd tx gov vote 1 yes --from=validator2 --keyring-backend=test --chain-id=testing --yes --home=$HOME/.osmosisd/validator2 | ||
sleep 7 |