governance_extensions_GovernorTimelockControl.sol.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --- governance/extensions/GovernorTimelockControl.sol 2023-05-04 11:44:55.587737817 +0200
  2. +++ governance/extensions/GovernorTimelockControl.sol 2023-05-04 15:18:42.661075263 +0200
  3. @@ -24,7 +24,7 @@
  4. * _Available since v4.3._
  5. */
  6. abstract contract GovernorTimelockControl is IGovernorTimelock, Governor {
  7. - TimelockController private _timelock;
  8. + TimelockController public _timelock; // FV: public for link
  9. mapping(uint256 => bytes32) private _timelockIds;
  10. /**
  11. @@ -84,6 +84,11 @@
  12. return eta == 1 ? 0 : eta; // _DONE_TIMESTAMP (1) should be replaced with a 0 value
  13. }
  14. + // FV
  15. + function _proposalQueueId(uint256 proposalId) internal view returns (bytes32) {
  16. + return _timelockIds[proposalId];
  17. + }
  18. +
  19. /**
  20. * @dev Function to queue a proposal to the timelock.
  21. */
  22. @@ -163,4 +168,9 @@
  23. emit TimelockChange(address(_timelock), address(newTimelock));
  24. _timelock = newTimelock;
  25. }
  26. +
  27. + // FV
  28. + function timelockId(uint256 proposalId) public view returns (bytes32) {
  29. + return _timelockIds[proposalId];
  30. + }
  31. }