forked from Fairblock/fairyring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_proposal.sh
executable file
·19 lines (13 loc) · 997 Bytes
/
test_proposal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
fairyringd tx gov submit-proposal draft_proposal.json --from val2 -o json --home ./data/fairyring_test_2/ -y --keyring-backend test --gas-prices 1ufairy
sleep 6
TOTAL_PROPOSALS=$(fairyringd q gov proposals --home ./data/fairyring_test_2/ -o json | jq '.proposals | length')
fairyringd tx gov vote-encrypted $TOTAL_PROPOSALS no --from val2 --home ./data/fairyring_test_2/ --keyring-backend test --gas-prices 1ufairy -o json -y
#########################
# fairyringd tx gov submit-proposal draft_proposal.json --from wallet1 -o json --home ./data/fairyring_test_1/ --keyring-backend test --gas-prices 1ufairy --node tcp://0.0.0.0:16657 -y
#
# sleep 6
#
# TOTAL_PROPOSALS=$(fairyringd q gov proposals --node tcp://0.0.0.0:16657 --home ./data/fairyring_test_1/ -o json | jq '.proposals | length')
#
# fairyringd tx gov vote-encrypted $TOTAL_PROPOSALS no --from wallet1 --home ./data/fairyring_test_1/ --keyring-backend test --gas-prices 1ufairy -o json --node tcp://0.0.0.0:16657 -y