IGovernanceVoting
Overview
License: Apache-2.0-or-later
interface IGovernanceVotingEnums info
VoteType
enum VoteType {
Against,
For,
Abstain
}Structs info
ProposedAction
struct ProposedAction {
address target;
bytes data;
uint256 value;
}Functions info
execute (0xfe0d94c1)
Executes a proposal that has passed and is currently executable.
Parameters:
proposalId
uint256
The ID of the proposal to execute.
cancel (0x40e58ee5)
Cancels a proposal that has not started voting yet.
Only the proposer can cancel, and only while the proposal is Pending. A canceled proposal cannot be voted on or executed. Cancelling does not consume the proposal id.
Parameters:
proposalId
uint256
The ID of the proposal to cancel.
propose (0x367015bb)
Creates a proposal on the the given actions. Must have at least proposalThreshold.
Must have at least proposalThreshold of voting power to call this function.
Parameters:
actions
struct IGovernanceVoting.ProposedAction[]
The proposed actions. An action specifies a contract call.
description
string
A text description for the proposal.
Return values:
proposalId
uint256
The ID of the newly created proposal.
Last updated