MyGovernor
Inherits: Governor, GovernorCountingSimple, GovernorVotes, GovernorVotesQuorumFraction, GovernorTimelockControl
Functions
constructor
constructor(IVotes _token, TimelockController _timelock)
Governor("MyGovernor")
GovernorVotes(_token)
GovernorVotesQuorumFraction(4)
GovernorTimelockControl(_timelock);
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(Governor, GovernorTimelockControl) returns (ProposalState);
proposalNeedsQueuing
function proposalNeedsQueuing(uint256 proposalId)
public
view
virtual
override(Governor, GovernorTimelockControl)
returns (bool);
_queueOperations
function _queueOperations(
uint256 proposalId,
address[] memory targets,
uint256[] memory values,
bytes[] memory calldatas,
bytes32 descriptionHash
) internal override(Governor, GovernorTimelockControl) returns (uint48);
_executeOperations
function _executeOperations(
uint256 proposalId,
address[] memory targets,
uint256[] memory values,
bytes[] memory calldatas,
bytes32 descriptionHash
) internal override(Governor, GovernorTimelockControl);
_cancel
function _cancel(address[] memory targets, uint256[] memory values, bytes[] memory calldatas, bytes32 descriptionHash)
internal
override(Governor, GovernorTimelockControl)
returns (uint256);
_executor
function _executor() internal view override(Governor, GovernorTimelockControl) returns (address);