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

GovernorSuperQuorumMockUpgradeable

Inherits: Initializable, GovernorSettingsUpgradeable, GovernorVotesUpgradeable, GovernorTimelockControlUpgradeable, GovernorSuperQuorumUpgradeable, GovernorCountingSimpleUpgradeable

State Variables

_quorum

uint256 private _quorum;

_superQuorum

uint256 private _superQuorum;

Functions

__GovernorSuperQuorumMock_init

function __GovernorSuperQuorumMock_init(uint256 quorum_, uint256 superQuorum_) internal onlyInitializing;

__GovernorSuperQuorumMock_init_unchained

function __GovernorSuperQuorumMock_init_unchained(uint256 quorum_, uint256 superQuorum_) internal onlyInitializing;

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(GovernorUpgradeable, GovernorSuperQuorumUpgradeable, GovernorTimelockControlUpgradeable)
    returns (ProposalState);

proposalThreshold

function proposalThreshold() public view override(GovernorUpgradeable, GovernorSettingsUpgradeable) returns (uint256);

proposalVotes

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

_cancel

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

_executeOperations

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

_executor

function _executor()
    internal
    view
    override(GovernorUpgradeable, GovernorTimelockControlUpgradeable)
    returns (address);

_queueOperations

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

proposalNeedsQueuing

function proposalNeedsQueuing(uint256 proposalId)
    public
    view
    override(GovernorUpgradeable, GovernorTimelockControlUpgradeable)
    returns (bool);