governor:vote
Cast a vote on an active Governor proposal.
Syntax
Section titled “Syntax”governor:vote <governor> <proposalId> <support>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
governor |
address |
Governor address |
proposalId |
number |
Proposal id |
support |
voteSupport |
for, against or abstain |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--reason |
string |
Reason for the vote, stored on-chain |
Examples
Section titled “Examples”load governor
set $governor 0x44fA8E6f47987339850636F88629646662444217set $proposalId 42
governor:vote $governor $proposalId forgovernor:vote $governor $proposalId against --reason "Treasury impact is too high"governor:vote $governor $proposalId abstain- Support values follow the Governor convention: 0 = against, 1 = for, 2 = abstain; the raw numbers are accepted too.
- With
--reasonthe vote is cast viacastVoteWithReasonand the reason is stored in the event log.
See Also
Section titled “See Also”- governor:propose — create the proposal
- governor:delegate — delegate voting power first