-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scripts): updated scripts for local run, added sponsored stream …
…creation (#1046)
- Loading branch information
Showing
10 changed files
with
87 additions
and
35 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
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 |
---|---|---|
@@ -1,23 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# fund streamer | ||
dymd tx bank send local-user \ | ||
dymd tx bank send user \ | ||
dym1ysjlrjcankjpmpxxzk27mvzhv25e266r80p5pv \ | ||
300000dym --keyring-backend test -b block -y --gas-prices 100000000adym | ||
300000dym --keyring-backend test -y --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
# create new gauges for lockdrop | ||
echo "Creating gauges for lockdrop of uatom" | ||
dymd tx incentives create-gauge uatom 30dym --duration="60s" --perpetual --from local-user -b block --gas auto -y --gas-prices 100000000adym | ||
dymd tx incentives create-gauge uatom 30dym --duration="60s" --perpetual --from user --gas auto -y --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
# create first stream for the LP holders | ||
echo "Gov proposal for creating new stream with LP1 and LP2 as incentives targets" | ||
dymd tx gov submit-legacy-proposal create-stream-proposal 1,2 40,60 20000dym --epoch-identifier minute --from local-user -b block --title sfasfas --description ddasda --deposit 11dym -y --gas auto --gas-prices 100000000adym | ||
dymd tx gov submit-legacy-proposal create-stream-proposal 1,2 40,60 20000dym --epoch-identifier minute --from user --title sfasfas --description ddasda --deposit 11dym -y --gas auto --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
last_proposal_id=$(dymd q gov proposals -o json | jq '.proposals | map(.id | tonumber) | max') | ||
dymd tx gov vote "$last_proposal_id" yes --from local-user -b block -y --gas-prices 100000000adym | ||
|
||
dymd tx gov vote "$last_proposal_id" yes --from hub-user -y --gas-prices 100000000adym | ||
dymd tx gov vote "$last_proposal_id" yes --from user -y --gas-prices 100000000adym | ||
dymd tx gov vote "$last_proposal_id" yes --from pools -y --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
# create second stream for the Lockdrop | ||
echo "Gov proposal for creating new stream for lockdrop" | ||
dymd tx gov submit-legacy-proposal create-stream-proposal 3 100 10000dym --epoch-identifier minute --from local-user -b block --title sfasfas --description ddasda --deposit 1dym -y --gas auto --gas-prices 100000000adym | ||
dymd tx gov submit-legacy-proposal create-stream-proposal 3 100 10000dym --epoch-identifier minute --from user --title sfasfas --description ddasda --deposit 11dym -y --gas auto --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
last_proposal_id=$(dymd q gov proposals -o json | jq '.proposals | map(.id | tonumber) | max') | ||
|
||
dymd tx gov vote "$last_proposal_id" yes --from hub-user -y --gas-prices 100000000adym | ||
dymd tx gov vote "$last_proposal_id" yes --from user -y --gas-prices 100000000adym | ||
dymd tx gov vote "$last_proposal_id" yes --from pools -y --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
# create sponsored stream | ||
echo "Gov proposal for creating a new sponsored stream" | ||
dymd tx gov submit-legacy-proposal create-stream-proposal - - 10000dym --sponsored --epoch-identifier minute --from user --title sfasfas --description ddasda --deposit 11dym -y --gas auto --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
last_proposal_id=$(dymd q gov proposals -o json | jq '.proposals | map(.id | tonumber) | max') | ||
dymd tx gov vote "$last_proposal_id" yes --from local-user -b block -y --gas-prices 100000000adym | ||
~ | ||
|
||
dymd tx gov vote "$last_proposal_id" yes --from hub-user -y --gas-prices 100000000adym | ||
dymd tx gov vote "$last_proposal_id" yes --from user -y --gas-prices 100000000adym | ||
dymd tx gov vote "$last_proposal_id" yes --from pools -y --gas-prices 100000000adym |
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,13 @@ | ||
#!/bin/bash | ||
|
||
echo "Delegate to the active validator" | ||
# dymvaloper139mq752delxv78jvtmwxhasyrycufsvrd7p5rl is a validator address of hub-user | ||
dymd tx staking delegate dymvaloper139mq752delxv78jvtmwxhasyrycufsvrd7p5rl 10000dym --from user -y --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
echo "Voting on gauge as 'user'" | ||
dymd tx sponsorship vote 1=30,2=30,3=40 --from user -y --gas-prices 100000000adym | ||
sleep 7 | ||
|
||
echo "Voting on gauge as 'hub-user'" | ||
dymd tx sponsorship vote 1=20,2=20 --from hub-user -y --gas-prices 100000000adym |
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
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