Skip to content

Commit 8463647

Browse files
committed
feat: timelock getter
1 parent 0a6fbd4 commit 8463647

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/contracts/misc/GhoCcipSteward.sol

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ contract GhoCcipSteward is RiskCouncilControlled, IGhoCcipSteward {
130130
}
131131

132132
/// @inheritdoc IGhoCcipSteward
133-
function RISK_COUNCIL() public view override returns (address) {
133+
function getTimeLockState() external view override returns (uint40, uint40) {
134+
CcipDebounce memory state = _ccipTimelocks;
135+
return (state.bridgeLimitLastUpdate, state.rateLimitLastUpdate);
136+
}
137+
138+
/// @inheritdoc IGhoCcipSteward
139+
function RISK_COUNCIL() external view override returns (address) {
134140
return _riskCouncil;
135141
}
136142

src/contracts/misc/interfaces/IGhoCcipSteward.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ interface IGhoCcipSteward {
4141
uint128 inboundRate
4242
) external;
4343

44+
/**
45+
* @notice Returns the current time-lock state for the steward.
46+
* @dev `MINIMUM_DELAY` seconds needs to pass from the respective values
47+
* to successfully call their corresponding methods.
48+
* @return bridgeLimitLastUpdate The timestamp at which `updateBridgeLimit` was
49+
* last successfully executed.
50+
* @return rateLimitLastUpdate The timestamp at which `updateRateLimit` was
51+
* last successfully executed.
52+
*/
53+
function getTimeLockState() external view returns (uint40, uint40);
54+
4455
/**
4556
* @notice Returns the minimum delay that must be respected between parameters update.
4657
* @return The minimum delay between parameter updates (in seconds)

0 commit comments

Comments
 (0)