GovernorProposalGuardianMock.sol 1.0 KB

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.24;
  3. import {Governor} from "../../governance/Governor.sol";
  4. import {GovernorSettings} from "../../governance/extensions/GovernorSettings.sol";
  5. import {GovernorCountingSimple} from "../../governance/extensions/GovernorCountingSimple.sol";
  6. import {GovernorVotesQuorumFraction} from "../../governance/extensions/GovernorVotesQuorumFraction.sol";
  7. import {GovernorProposalGuardian} from "../../governance/extensions/GovernorProposalGuardian.sol";
  8. abstract contract GovernorProposalGuardianMock is
  9. GovernorSettings,
  10. GovernorVotesQuorumFraction,
  11. GovernorCountingSimple,
  12. GovernorProposalGuardian
  13. {
  14. function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {
  15. return super.proposalThreshold();
  16. }
  17. function _validateCancel(
  18. uint256 proposalId,
  19. address caller
  20. ) internal view override(Governor, GovernorProposalGuardian) returns (bool) {
  21. return super._validateCancel(proposalId, caller);
  22. }
  23. }