-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathIBaseRouter.sol
66 lines (50 loc) · 3.61 KB
/
IBaseRouter.sol
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.23;
import "src/types/DataTypes.sol";
/// @title IBaseRouter
/// @dev Interface for abstract BaseRouter
/// @author Zeropoint Labs
interface IBaseRouter {
//////////////////////////////////////////////////////////////
// EXTERNAL WRITE FUNCTIONS //
//////////////////////////////////////////////////////////////
/// @dev Performs single direct x single vault deposits
/// @param req_ is the request object containing all the necessary data for the action
function singleDirectSingleVaultDeposit(SingleDirectSingleVaultStateReq memory req_) external payable;
/// @dev Performs single xchain destination x single vault deposits
/// @param req_ is the request object containing all the necessary data for the action
function singleXChainSingleVaultDeposit(SingleXChainSingleVaultStateReq memory req_) external payable;
/// @dev Performs single direct x multi vault deposits
/// @param req_ is the request object containing all the necessary data for the action
function singleDirectMultiVaultDeposit(SingleDirectMultiVaultStateReq memory req_) external payable;
/// @dev Performs single destination x multi vault deposits
/// @param req_ is the request object containing all the necessary data for the action
function singleXChainMultiVaultDeposit(SingleXChainMultiVaultStateReq memory req_) external payable;
/// @dev Performs multi destination x single vault deposits
/// @param req_ is the request object containing all the necessary data for the action
function multiDstSingleVaultDeposit(MultiDstSingleVaultStateReq calldata req_) external payable;
/// @dev Performs multi destination x multi vault deposits
/// @param req_ is the request object containing all the necessary data for the action
function multiDstMultiVaultDeposit(MultiDstMultiVaultStateReq calldata req_) external payable;
/// @dev Performs single direct x single vault withdraws
/// @param req_ is the request object containing all the necessary data for the action
function singleDirectSingleVaultWithdraw(SingleDirectSingleVaultStateReq memory req_) external payable;
/// @dev Performs single xchain destination x single vault withdraws
/// @param req_ is the request object containing all the necessary data for the action
function singleXChainSingleVaultWithdraw(SingleXChainSingleVaultStateReq memory req_) external payable;
/// @dev Performs single direct x multi vault withdraws
/// @param req_ is the request object containing all the necessary data for the action
function singleDirectMultiVaultWithdraw(SingleDirectMultiVaultStateReq memory req_) external payable;
/// @dev Performs single destination x multi vault withdraws
/// @param req_ is the request object containing all the necessary data for the action
function singleXChainMultiVaultWithdraw(SingleXChainMultiVaultStateReq memory req_) external payable;
/// @dev Performs multi destination x single vault withdraws
/// @param req_ is the request object containing all the necessary data for the action
function multiDstSingleVaultWithdraw(MultiDstSingleVaultStateReq calldata req_) external payable;
/// @dev Performs multi destination x multi vault withdraws
/// @param req_ is the request object containing all the necessary data for the action
function multiDstMultiVaultWithdraw(MultiDstMultiVaultStateReq calldata req_) external payable;
/// @dev Forwards dust to Paymaster
/// @param token_ the token to forward
function forwardDustToPaymaster(address token_) external;
}