Skip to main content

IProposal

Description

An interface to be implemented by DAO plugins that create and execute proposals.

Implementation

event ProposalCreated

Emitted when a proposal is created.

event ProposalCreated(uint256 proposalId, address creator, uint64 startDate, uint64 endDate, bytes metadata, struct IDAO.Action[] actions, uint256 allowFailureMap)
InputTypeDescription
proposalIduint256The ID of the proposal.
creatoraddressThe creator of the proposal.
startDateuint64The start date of the proposal in seconds.
endDateuint64The end date of the proposal in seconds.
metadatabytesThe metadata of the proposal.
actionsstruct IDAO.Action[]The actions that will be executed if the proposal passes.
allowFailureMapuint256A bitmap allowing the proposal to succeed, even if individual actions might revert. If the bit at index i is 1, the proposal succeeds even if the ith action reverts. A failure map value of 0 requires every action to not revert.

event ProposalExecuted

Emitted when a proposal is executed.

event ProposalExecuted(uint256 proposalId)
InputTypeDescription
proposalIduint256The ID of the proposal.

external function proposalCount

Returns the proposal count determining the next proposal ID.

function proposalCount() external view returns (uint256)
OutputTypeDescription
0uint256The proposal count.
© 2024