IGovernorTimelock.sol 978 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts v4.4.1 (governance/extensions/IGovernorTimelock.sol)
  3. pragma solidity ^0.8.19;
  4. import {IGovernor} from "../IGovernor.sol";
  5. /**
  6. * @dev Extension of the {IGovernor} for timelock supporting modules.
  7. */
  8. abstract contract IGovernorTimelock is IGovernor {
  9. /**
  10. * @dev The proposal hasn't been queued yet.
  11. */
  12. error GovernorNotQueuedProposal(uint256 proposalId);
  13. /**
  14. * @dev The proposal has already been queued.
  15. */
  16. error GovernorAlreadyQueuedProposal(uint256 proposalId);
  17. event ProposalQueued(uint256 proposalId, uint256 eta);
  18. function timelock() public view virtual returns (address);
  19. function proposalEta(uint256 proposalId) public view virtual returns (uint256);
  20. function queue(
  21. address[] memory targets,
  22. uint256[] memory values,
  23. bytes[] memory calldatas,
  24. bytes32 descriptionHash
  25. ) public virtual returns (uint256 proposalId);
  26. }