GovernorMock.sol 936 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../../governance/extensions/GovernorProposalThreshold.sol";
  4. import "../../governance/extensions/GovernorSettings.sol";
  5. import "../../governance/extensions/GovernorCountingSimple.sol";
  6. import "../../governance/extensions/GovernorVotesQuorumFraction.sol";
  7. abstract contract GovernorMock is
  8. GovernorProposalThreshold,
  9. GovernorSettings,
  10. GovernorVotesQuorumFraction,
  11. GovernorCountingSimple
  12. {
  13. function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {
  14. return super.proposalThreshold();
  15. }
  16. function propose(
  17. address[] memory targets,
  18. uint256[] memory values,
  19. bytes[] memory calldatas,
  20. string memory description
  21. ) public override(Governor, GovernorProposalThreshold) returns (uint256) {
  22. return super.propose(targets, values, calldatas, description);
  23. }
  24. }