Core Functions

propose(targets[],values[],callDatas[],description):proposalIdpropose(targets[], values[], callDatas[], description): proposalId See EmergencyGovernorEmergencyGovernor.

castVote(proposalId,support):weightcastVote(proposalId, support): weight See EmergencyGovernorEmergencyGovernor.

castVotes(proposalIds[],supports):weightcastVotes(proposalIds[], supports): weight See EmergencyGovernorEmergencyGovernor.

execute(targets[],values[],callDatas[],description):proposalIdexecute(targets[], values[], callDatas[], description): proposalId See EmergencyGovernorEmergencyGovernor.

getProposal(proposalId)getProposal(proposalId) Returns:

  • start epoch;

  • end epoch;

  • state;

  • number of NO votes;

  • number of YES votes;

  • proposer address;

  • quorum, quorum/threshold required for the proposal to succeed;

  • quorumNumerator, quorum/threshold numerator used to calculate the quorum.

state(proposalId)state(proposalId) Returns one of states:

  • Active

  • Executed

  • Defeated

  • Succeeded

  • Expired

See lifecycle diagram for more information on stateโ€™s transition for ZeroGovernorZeroGovernor.

Last updated

Copyright 2024 M^0 Foundation