IGovernanceState
Overview
License: Apache-2.0-or-later
interface IGovernanceStateStructs info
Proposal
struct Proposal {
uint256 actionsLength;
uint256 startBlockOrTime;
uint256 endBlockOrTime;
uint256 votesFor;
uint256 votesAgainst;
uint256 votesAbstain;
bool executed;
}ProposalWrapper
Receipt
GovernanceParameters
EnhancedParams
Functions info
getActions (0x328dd982)
Returns the actions proposed for a given proposal.
Parameters:
proposalId
uint256
Number of the proposal.
Return values:
proposedActions
struct IGovernanceVoting.ProposedAction[]
Array of tuple of proposed actions.
getProposalById (0x3656de21)
Returns a proposal for a given id.
Parameters:
proposalId
uint256
The number of the proposal.
Return values:
proposalWrapper
struct IGovernanceState.ProposalWrapper
Tuple wrapper of the proposal and proposed actions tuples.
getProposalState (0x9080936f)
Returns the state of a proposal.
Parameters:
proposalId
uint256
Number of the proposal.
Return values:
[0]
enum ProposalStatus
Number of proposal state.
getReceipt (0xe23a9a52)
Returns the receipt of a voter for a given proposal.
Parameters:
proposalId
uint256
Number of the proposal.
voter
address
Address of the voter.
Return values:
[0]
struct IGovernanceState.Receipt
Tuple of voter receipt.
getVotingPower (0xbb4d4436)
Computes the current voting power of the given account.
Parameters:
account
address
The address of the account.
Return values:
votingPower
uint256
The current voting power of the given account.
governanceParameters (0xa221b74a)
Returns the governance parameters.
Return values:
[0]
struct IGovernanceState.EnhancedParams
Tuple of the governance parameters.
proposalCount (0xda35c664)
Returns the total number of proposals.
Return values:
count
uint256
The number of proposals.
proposals (0x55ef20e6)
Returns all proposals ever made to the governance.
Return values:
proposalWrapper
struct IGovernanceState.ProposalWrapper[]
Tuple array of all governance proposals.
Last updated