StakerGovernor
VETO_POWER
manager
constructor
Copy constructor(contract IVotesHistory _staking, contract TimelockController _timelock, contract TokenholderGovernor tokenholderGovernor, address vetoer) public
cancel
Copy function cancel(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) external returns (uint256)
propose
Copy function propose ( address [] targets , uint256 [] values , bytes [] calldatas , string description) public returns ( uint256 )
quorum
Copy function quorum ( uint256 blockNumber) public view returns ( uint256 )
proposalThreshold
Copy function proposalThreshold () public view returns ( uint256 )
getVotes
Copy function getVotes ( address account , uint256 blockNumber) public view returns ( uint256 )
state
Copy function state ( uint256 proposalId) public view returns (enum IGovernor . ProposalState )
supportsInterface
Copy function supportsInterface ( bytes4 interfaceId) public view returns ( bool )
_execute
Copy function _execute(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) internal
_cancel
Copy function _cancel(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) internal returns (uint256)
_executor
Copy function _executor () internal view returns ( address )
Returns the address of the entity that acts as governance for this contract.
By default, Governor assumes this is either the Governor contract itself, or a timelock if there's one configured. We override this here for the StakerGovernor contract so it's the Tokenholder DAO's Timelock, which we obtain at constructor time.