2.2.1 Vote on Region Proposal

Vote on region proposal Step-by-Step test guide

Allows whitelisted users to vote on a region proposal. Voting power is based on token balance.

  1. Go to Developer → Extrinsics.

  2. Signer: Any account with enough balance

  3. Extrinsic: regions

  4. Call: voteOnRegionProposal(regionid, vote, amount)

  5. regionId: 1 . This number comes from the chain state of 2.1.1 Propose New Region.

  6. Vote: Yes or No

  7. Amount: Any amount with an added 12 zeros because we are voting with XCAV token which has 12 decimals.

  1. Click Submit Transaction → Sign and Submit. Expected: VotedOnRegionProposal

  2. All voters transactions successful. The results can also be seen in Chain State below.

Check in Chain State:

Developer → (1) Chain State → (2) regions → ongoingRegionProposalVotes → (3) Include option off → (4) Click + Query updated tallies

Developer → (1) Chain State → (2) regions → userRegionVote) → (3) Include option off → (4) Click + Query record with power + vote

The result of the record with power + vote enlarged here, which is also the evidence of voters successful transactions:

[ [ [ 1 14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3 ] { vote: Yes regionId: 1 power: 100,000,000,000,000,000 } ] [ [ 1 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5 ] { vote: Yes regionId: 1 power: 100,000,000,000,000,000 } ] [ [ 1 126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57 ] { vote: Yes regionId: 1 power: 100,000,000,000,000,000 } ] ]

Last updated