Skip to content

Commit 62141c0

Browse files
committed
Add verify proposal script
1 parent 3a94853 commit 62141c0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
DAO_ACCOUNT_ID="rainbowbridge.sputnik-dao.near"
2+
3+
read -p "Enter proposal Id: " proposal_id
4+
5+
near contract call-function as-read-only $DAO_ACCOUNT_ID get_proposal json-args "{\"id\": $proposal_id}" network-config mainnet now
6+
7+
read -p "Type 'approve' to approve the proposal: " approve
8+
9+
if [ "$approve" = "approve" ]; then
10+
near contract call-function as-transaction $DAO_ACCOUNT_ID act_proposal json-args "{\"id\": ${proposal_id}, \"action\": \"VoteApprove\"}" prepaid-gas '300 TeraGas' attached-deposit '0 NEAR' sign-as $SIGNER_ACCOUNT_ID network-config mainnet sign-with-ledger send
11+
fi
12+

0 commit comments

Comments
 (0)