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

MyGovernorUpgradeable

Inherits: Initializable, GovernorUpgradeable, GovernorCountingSimpleUpgradeable, GovernorVotesUpgradeable, GovernorVotesQuorumFractionUpgradeable, GovernorTimelockControlUpgradeable

Functions

__MyGovernor_init

function __MyGovernor_init(IVotes _token, TimelockControllerUpgradeable _timelock) internal onlyInitializing;

__MyGovernor_init_unchained

function __MyGovernor_init_unchained(IVotes, TimelockControllerUpgradeable) internal onlyInitializing;

votingDelay

function votingDelay() public pure override returns (uint256);

votingPeriod

function votingPeriod() public pure override returns (uint256);

proposalThreshold

function proposalThreshold() public pure override returns (uint256);

state

function state(uint256 proposalId)
    public
    view
    override(GovernorUpgradeable, GovernorTimelockControlUpgradeable)
    returns (ProposalState);

proposalNeedsQueuing

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

_queueOperations

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

_executeOperations

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

_cancel

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

_executor

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