Skip to main content

IGovernorBravoEventsAndErrors

Git Source

Events

ProposalCreated

An event emitted when a new proposal is created

event ProposalCreated(
uint256 id,
address proposer,
address[] targets,
uint256[] values,
string[] signatures,
bytes[] calldatas,
uint256 startBlock,
string description
);

ProposalVotingStarted

Event emitted when a proposal's voting period is activated

event ProposalVotingStarted(uint256 id);

VoteCast

An event emitted when a vote has been cast on a proposal

event VoteCast(address indexed voter, uint256 proposalId, uint8 support, uint256 votes, string reason);

Parameters

NameTypeDescription
voteraddressThe address which casted a vote
proposalIduint256The proposal id which was voted on
supportuint8Support value for the vote. 0=against, 1=for, 2=abstain
votesuint256Number of votes which were cast by the voter
reasonstringThe reason given for the vote by the voter

ProposalVetoed

An event emitted when a proposal has been vetoed

event ProposalVetoed(uint256 id);

ProposalCanceled

An event emitted when a proposal has been canceled

event ProposalCanceled(uint256 id);

ProposalQueued

An event emitted when a proposal has been queued in the Timelock

event ProposalQueued(uint256 id, uint256 eta);

ProposalExecuted

An event emitted when a proposal has been executed in the Timelock

event ProposalExecuted(uint256 id);

VotingDelaySet

An event emitted when the voting delay is set

event VotingDelaySet(uint256 oldVotingDelay, uint256 newVotingDelay);

VotingPeriodSet

An event emitted when the voting period is set

event VotingPeriodSet(uint256 oldVotingPeriod, uint256 newVotingPeriod);

NewImplementation

Emitted when implementation is changed

event NewImplementation(address oldImplementation, address newImplementation);

ProposalThresholdSet

Emitted when proposal threshold is set

event ProposalThresholdSet(uint256 oldProposalThreshold, uint256 newProposalThreshold);

NewPendingAdmin

Emitted when pendingAdmin is changed

event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);

NewAdmin

Emitted when pendingAdmin is accepted, which means admin is updated

event NewAdmin(address oldAdmin, address newAdmin);

WhitelistAccountExpirationSet

Emitted when whitelist account expiration is set

event WhitelistAccountExpirationSet(address account, uint256 expiration);

WhitelistGuardianSet

Emitted when the whitelistGuardian is set

event WhitelistGuardianSet(address oldGuardian, address newGuardian);

VetoGuardianSet

Emitted when the vetoGuardian is set

event VetoGuardianSet(address oldGuardian, address newGuardian);

Errors

GovernorBravo_OnlyAdmin

error GovernorBravo_OnlyAdmin();

GovernorBravo_OnlyPendingAdmin

error GovernorBravo_OnlyPendingAdmin();

GovernorBravo_OnlyVetoGuardian

error GovernorBravo_OnlyVetoGuardian();

GovernorBravo_AlreadyInitialized

error GovernorBravo_AlreadyInitialized();

GovernorBravo_NotActive

error GovernorBravo_NotActive();

GovernorBravo_AddressZero

error GovernorBravo_AddressZero();

GovernorBravo_InvalidDelay

error GovernorBravo_InvalidDelay();

GovernorBravo_InvalidPeriod

error GovernorBravo_InvalidPeriod();

GovernorBravo_InvalidGracePeriod

error GovernorBravo_InvalidGracePeriod();

GovernorBravo_InvalidThreshold

error GovernorBravo_InvalidThreshold();

GovernorBravo_InvalidCalldata

error GovernorBravo_InvalidCalldata();

GovernorBravo_Emergency_SupplyTooLow

error GovernorBravo_Emergency_SupplyTooLow();

GovernorBravo_NotEmergency

error GovernorBravo_NotEmergency();

GovernorBravo_Proposal_ThresholdNotMet

error GovernorBravo_Proposal_ThresholdNotMet();

GovernorBravo_Proposal_LengthMismatch

error GovernorBravo_Proposal_LengthMismatch();

GovernorBravo_Proposal_NoActions

error GovernorBravo_Proposal_NoActions();

GovernorBravo_Proposal_TooManyActions

error GovernorBravo_Proposal_TooManyActions();

GovernorBravo_Proposal_AlreadyActive

error GovernorBravo_Proposal_AlreadyActive();

GovernorBravo_Proposal_AlreadyPending

error GovernorBravo_Proposal_AlreadyPending();

GovernorBravo_Proposal_IdCollision

error GovernorBravo_Proposal_IdCollision();

GovernorBravo_Proposal_IdInvalid

error GovernorBravo_Proposal_IdInvalid();

GovernorBravo_Proposal_TooEarly

error GovernorBravo_Proposal_TooEarly();

GovernorBravo_Proposal_AlreadyActivated

error GovernorBravo_Proposal_AlreadyActivated();

GovernorBravo_InvalidSignature

error GovernorBravo_InvalidSignature();

GovernorBravo_Vote_Closed

error GovernorBravo_Vote_Closed();

GovernorBravo_Vote_InvalidType

error GovernorBravo_Vote_InvalidType();

GovernorBravo_Vote_AlreadyCast

error GovernorBravo_Vote_AlreadyCast();

GovernorBravo_Queue_FailedProposal

error GovernorBravo_Queue_FailedProposal();

GovernorBravo_Queue_AlreadyQueued

error GovernorBravo_Queue_AlreadyQueued();

GovernorBravo_Queue_BelowThreshold

error GovernorBravo_Queue_BelowThreshold();

GovernorBravo_Queue_VetoedProposal

error GovernorBravo_Queue_VetoedProposal();

GovernorBravo_Execute_NotQueued

error GovernorBravo_Execute_NotQueued();

GovernorBravo_Execute_BelowThreshold

error GovernorBravo_Execute_BelowThreshold();

GovernorBravo_Execute_VetoedProposal

error GovernorBravo_Execute_VetoedProposal();

GovernorBravo_Cancel_AlreadyExecuted

error GovernorBravo_Cancel_AlreadyExecuted();

GovernorBravo_Cancel_WhitelistedProposer

error GovernorBravo_Cancel_WhitelistedProposer();

GovernorBravo_Cancel_AboveThreshold

error GovernorBravo_Cancel_AboveThreshold();

GovernorBravo_Veto_AlreadyExecuted

error GovernorBravo_Veto_AlreadyExecuted();