GovernorCountingSimpleHarness.sol 885 B

1234567891011121314151617181920212223242526272829
  1. import "../../contracts/governance/extensions/GovernorCountingSimple.sol";
  2. contract GovernorCountingSimpleHarness is GovernorCountingSimple {
  3. mapping(uint256 => uint256) _quorum;
  4. function quorum(uint256 blockNumber) public view override virtual returns (uint256) {
  5. return _quorum[blockNumber];
  6. }
  7. mapping (address => mapping (uint256 => uint256)) _getVotes;
  8. function getVotes(address account, uint256 blockNumber) public view override virtual returns (uint256) {
  9. return _getVotes[account][blockNumber];
  10. }
  11. uint256 _votingDelay;
  12. function votingDelay() public view override virtual returns (uint256) {
  13. return _votingDelay;
  14. }
  15. uint256 _votingPeriod;
  16. function votingPeriod() public view override virtual returns (uint256) {
  17. return _votingPeriod;
  18. }
  19. constructor(string memory name) Governor(name) {}
  20. }