governor:vote
Cast a vote on an active Governor proposal.
⚗️ Experimental — available at next.evmcrispr.com.
Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.
Syntax
Section titled “Syntax”governor:vote <governor> <proposalId> <support>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
governor | address | Runtime in smart blocks | Governor address |
proposalId | number | Runtime in smart blocks | Proposal id |
support | voteSupport | Runtime in smart blocks | for, against or abstain; runtime values use 0 (against), 1 (for), or 2 (abstain) |
Options
Section titled “Options”| Name | Type | Evaluation | Description |
|---|---|---|---|
--reason | string | Runtime in smart blocks | 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