Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

GovernorSuperQuorumMock

Inherits: GovernorSettings, GovernorVotes, GovernorTimelockControl, GovernorSuperQuorum, GovernorCountingSimple

State Variables

_quorum

uint256 private _quorum;

_superQuorum

uint256 private _superQuorum;

Functions

constructor

constructor(uint256 quorum_, uint256 superQuorum_);

quorum

function quorum(uint256) public view override returns (uint256);

superQuorum

function superQuorum(uint256) public view override returns (uint256);

state

function state(uint256 proposalId)
    public
    view
    override(Governor, GovernorSuperQuorum, GovernorTimelockControl)
    returns (ProposalState);

proposalThreshold

function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256);

proposalVotes

function proposalVotes(uint256 proposalId)
    public
    view
    virtual
    override(GovernorCountingSimple, GovernorSuperQuorum)
    returns (uint256 againstVotes, uint256 forVotes, uint256 abstainVotes);

_cancel

function _cancel(address[] memory targets, uint256[] memory values, bytes[] memory calldatas, bytes32 descriptionHash)
    internal
    override(Governor, GovernorTimelockControl)
    returns (uint256);

_executeOperations

function _executeOperations(
    uint256 proposalId,
    address[] memory targets,
    uint256[] memory values,
    bytes[] memory calldatas,
    bytes32 descriptionHash
) internal override(Governor, GovernorTimelockControl);

_executor

function _executor() internal view override(Governor, GovernorTimelockControl) returns (address);

_queueOperations

function _queueOperations(
    uint256 proposalId,
    address[] memory targets,
    uint256[] memory values,
    bytes[] memory calldatas,
    bytes32 descriptionHash
) internal override(Governor, GovernorTimelockControl) returns (uint48);

proposalNeedsQueuing

function proposalNeedsQueuing(uint256 proposalId)
    public
    view
    override(Governor, GovernorTimelockControl)
    returns (bool);