Copyright 2024 M^0 Foundation
Inherits: IERC6372, IERC712
Author: M^0 Labs
Allows the caller to cast a vote on a proposal with id proposalId
.
Parameters
Name | Type | Description |
---|---|---|
Returns
Name | Type | Description |
---|---|---|
Allows a signer to cast a vote on a proposal with id proposalId
via an ECDSA secp256k1 signature.
Parameters
Returns
Allows voter
to cast a vote on a proposal with id proposalId
via an arbitrary signature.
Parameters
Returns
Allows the caller to cast a vote with reason on a proposal with id proposalId
.
Parameters
Returns
Allows a signer to cast a vote with reason on a proposal with id proposalId
via an ECDSA secp256k1 signature.
Parameters
Returns
Allows voter
to cast a vote with reason on a proposal with id proposalId
via an arbitrary signature.
Parameters
Returns
Allows the caller to execute a proposal.
Parameters
Returns
Allows the caller to create a proposal.
Parameters
Returns
module:voting
A description of the possible "support" values for castVote and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example support=for,against&quorum=for
. The string can be decoded by the standard URLSearchParams JavaScript class.
Returns the voting power of account
at clock value timepoint
.
Parameters
Returns
Returns the unique identifier for the proposal if it were created at this exact moment.
Parameters
Returns
Returns whether account
has voted on the proposal with identifier proposalId
.
Parameters
Returns
Returns the name of the contract.
Returns the last clock value when voting on the proposal with identifier proposalId
is allowed.
Parameters
Returns
Returns the account that created the proposal with identifier proposalId
.
Parameters
Returns
Returns the clock value used to retrieve voting power to vote on proposal with identifier proposalId
.
Parameters
Returns
Returns the required voting power an account needs to create a proposal.
Returns the vote support totals for the proposal with identifier proposalId
.
Parameters
Returns
Returns the minimum number of eligible (COUNTING_MODE) votes for a proposal to succeed.
Returns the state of a proposal with identifier proposalId
.
Parameters
Returns
Returns the EIP-5805 token contact used for determine voting power and total supplies.
Returns the number of clock values that must elapse before voting begins for a newly created proposal.
Returns the number of clock values between the vote start and vote end.
Returns the EIP712 typehash used in the encoding of the digest for castVoteBySig
function.
Returns the EIP712 typehash used in the encoding of the digest for castVoteWithReasonBySig
function.
Emitted when a proposal has been created.
Parameters
Emitted when a proposal has been executed.
Parameters
Emitted when a vote for a proposal with id proposalId
has been cast by voter
.
Parameters
Proposal state.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|