-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIEurekaHandler.sol
45 lines (39 loc) · 1.13 KB
/
IEurekaHandler.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
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
interface IEurekaHandler {
struct TransferParams {
address token;
string recipient;
string sourceClient;
string destPort;
uint64 timeoutTimestamp;
string memo;
}
struct Fees {
uint256 relayFee;
address relayFeeRecipient;
uint64 quoteExpiry;
}
function transfer(uint256 amount, TransferParams memory transferParams, Fees memory fees) external;
function swapAndTransfer(
address swapInputToken,
uint256 swapInputAmount,
bytes memory swapCalldata,
TransferParams memory transferParams,
Fees memory fees
) external payable;
function swapAndLombardTransfer(
address swapInputToken,
uint256 swapInputAmount,
bytes memory swapCalldata,
uint256 minAmountOut,
TransferParams memory transferParams,
Fees memory fees
) external payable;
function lombardTransfer(
uint256 amount,
uint256 minAmountOut,
TransferParams memory transferParams,
Fees memory fees
) external;
}