-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathILimitHook.sol
More file actions
33 lines (25 loc) · 908 Bytes
/
ILimitHook.sol
File metadata and controls
33 lines (25 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./IHook.sol";
interface ILimitHook is IHook {
function updateLimitParams(UpdateLimitParams[] calldata updates) external;
function checkLimit(address user, uint256 amount) external view;
function getIdentifierPendingAmount(
bytes32 messageId_
) external returns (uint256);
function getConnectorPendingAmount(
address connector_
) external returns (uint256);
function getCurrentReceivingLimit(
address connector_
) external view returns (uint256);
function getCurrentSendingLimit(
address connector_
) external view returns (uint256);
function getReceivingLimitParams(
address connector_
) external view returns (LimitParams memory);
function getSendingLimitParams(
address connector_
) external view returns (LimitParams memory);
}