-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24a6ba9
commit 81a0ed1
Showing
2 changed files
with
32 additions
and
6 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
26 changes: 26 additions & 0 deletions
26
src/contracts/misc/deps/IUpgradeableLockReleaseTokenPool.sol
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,26 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {RateLimiter} from './RateLimiter.sol'; | ||
|
||
/// @dev Reduced interface of CCIP UpgradeableLockReleaseTokenPool contract with needed functions only | ||
/// @dev Adapted from https://github.com/aave/ccip/blob/ccip-gho/contracts/src/v0.8/ccip/pools/GHO/UpgradeableLockReleaseTokenPool.sol | ||
interface IUpgradeableLockReleaseTokenPool { | ||
function setBridgeLimit(uint256 newBridgeLimit) external; | ||
|
||
function getBridgeLimit() external view returns (uint256); | ||
|
||
function getCurrentOutboundRateLimiterState( | ||
uint64 remoteChainSelector | ||
) external view returns (RateLimiter.TokenBucket memory); | ||
|
||
function getCurrentInboundRateLimiterState( | ||
uint64 remoteChainSelector | ||
) external view returns (RateLimiter.TokenBucket memory); | ||
|
||
function setChainRateLimiterConfig( | ||
uint64 remoteChainSelector, | ||
RateLimiter.Config memory outboundConfig, | ||
RateLimiter.Config memory inboundConfig | ||
) external; | ||
} |