forked from bgd-labs/aave-proposals-v3
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ccip steward can disable rate limit
- Loading branch information
1 parent
b1da849
commit bf4f3e5
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.10; | ||
|
||
interface IGhoCcipSteward { | ||
/** | ||
* @notice Updates the CCIP bridge limit | ||
* @dev Only callable by Risk Council | ||
* @param newBridgeLimit The new desired bridge limit | ||
*/ | ||
function updateBridgeLimit(uint256 newBridgeLimit) external; | ||
|
||
/** | ||
* @notice Updates the CCIP rate limit config | ||
* @dev Only callable by Risk Council | ||
* @dev Rate limit update must be consistent with other pools' rate limit | ||
* @param remoteChainSelector The remote chain selector for which the rate limits apply. | ||
* @param outboundEnabled True if the outbound rate limiter is enabled. | ||
* @param outboundCapacity The outbound rate limiter capacity. | ||
* @param outboundRate The outbound rate limiter rate. | ||
* @param inboundEnabled True if the inbound rate limiter is enabled. | ||
* @param inboundCapacity The inbound rate limiter capacity. | ||
* @param inboundRate The inbound rate limiter rate. | ||
*/ | ||
function updateRateLimit( | ||
uint64 remoteChainSelector, | ||
bool outboundEnabled, | ||
uint128 outboundCapacity, | ||
uint128 outboundRate, | ||
bool inboundEnabled, | ||
uint128 inboundCapacity, | ||
uint128 inboundRate | ||
) external; | ||
|
||
/** | ||
* @notice Returns the minimum delay that must be respected between parameters update. | ||
* @return The minimum delay between parameter updates (in seconds) | ||
*/ | ||
function MINIMUM_DELAY() external view returns (uint256); | ||
|
||
/** | ||
* @notice Returns the address of the Gho Token | ||
* @return The address of the GhoToken | ||
*/ | ||
function GHO_TOKEN() external view returns (address); | ||
|
||
/** | ||
* @notice Returns the address of the Gho CCIP Token Pool | ||
* @return The address of the Gho CCIP Token Pool | ||
*/ | ||
function GHO_TOKEN_POOL() external view returns (address); | ||
} |