const VoteAgainst, VoteFor, VoteAbstain
Vote support values.
Package governor is a simplified on-chain governance realm inspired by OpenZeppelin's Governor. Anyone may open a pro...
Package governor is a simplified on-chain governance realm inspired by OpenZeppelin's Governor. Anyone may open a proposal; every address gets a single equally-weighted vote (1 address = 1 vote); a proposal succeeds when its voting deadline has passed and the "for" tally strictly beats "against".
Vote support values.
Proposal state values.
CastVote records one vote for the caller on proposal id. support is 0=against, 1=for, 2=abstain. One address may vote at most once per proposal, and voting is only allowed while the proposal is Active.
Execute marks a Succeeded proposal as executed. It panics unless the proposal has reached the Succeeded state.
Propose opens a new proposal and returns its id. The snapshot height and deadline are recorded from the current chain height.
Render lists all proposals with their tallies and states as Markdown.
State returns the current lifecycle state of proposal id.
Proposal is a single governance proposal.