Governor

Governor is the governance module of the protocol. It allows addresses with more than 1% of the current supply of Union token to propose changes to the protocol. Addresses that hold voting weight, at the start of the proposal, invoked through the getPriorVotes() function, can submit their votes during a 3-day voting period. If quorum is met, and the majority of votes are cast for the proposal, the proposal succeeds. It is then queued in the Timelock and can be implemented after 2 days.

Functions

proposalCount() → uint256

No description

propose(address[] targets, uint256[] values, string[] signatures, bytes[] calldatas, string description) → uint256

No description

queue(uint256 proposalId)

No description

execute(uint256 proposalId)

No description

cancel(uint256 proposalId)

No description

getActions(uint256 proposalId) → address[], uint256[], string[], bytes[]

No description

getReceipt(uint256 proposalId, address voter) → struct IGovernor.Receipt

No description

state(uint256 proposalId) → enum IGovernor.ProposalState

No description

castVote(uint256 proposalId, uint8 support)

No description

castVoteWithReason(uint256 proposalId, uint8 support, string reason)

No description

castVoteBySig(uint256 proposalId, uint8 support, uint8 v, bytes32 r, bytes32 s)

No description

Events

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

No description

UnionTokenSet(address oldUnionToken, address newUnionToken)

No description

TimelockSet(address oldTimelock, address newTimelock)

No description

VotingDelaySet(uint256 oldVotingDelay, uint256 newVotingDelay)

No description

VotingPeriodSet(uint256 oldVotingPeriod, uint256 newVotingPeriod)

No description

ProposalThresholdSet(uint256 oldProposalThreshold, uint256 newProposalThreshold)

No description

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

No description

ProposalCanceled(uint256 id)

No description

ProposalQueued(uint256 id, uint256 eta)

No description

ProposalExecuted(uint256 id)

No description

NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

No description

NewAdmin(address oldAdmin, address newAdmin)

No description
Last modified 1yr ago