-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathIPaymentHelperExtn.sol
70 lines (63 loc) · 2.93 KB
/
IPaymentHelperExtn.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
67
68
69
70
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.23;
/// @title IPaymentHelperExtn
/// @dev Interface for PaymentHelperExtn, which estimates costs for various operations
/// @author ZeroPoint Labs
interface IPaymentHelperExtn {
/// @notice Estimates the cost for rebalancing a single position
/// @param callData_ The encoded data for the withdrawal
/// @param rebalanceCallData_ The encoded data for the deposit after rebalance
/// @return msgValue The estimated cost of the operation
function estimateRebalanceSinglePosition(
bytes calldata callData_,
bytes calldata rebalanceCallData_
)
external
view
returns (uint256 msgValue);
/// @notice Estimates the cost for rebalancing multiple positions
/// @param callData_ The encoded data for the withdrawals
/// @param rebalanceCallData_ The encoded data for the deposits after rebalance
/// @return msgValue The estimated cost of the operation
function estimateRebalanceMultiPositions(
bytes calldata callData_,
bytes calldata rebalanceCallData_
)
external
view
returns (uint256 msgValue);
/// @notice Estimates the cost for a cross-chain rebalance of a single position
/// @param callData_ The encoded data for the withdrawal
/// @param rebalanceCallData_ The encoded data for the deposit after rebalance
/// @return msgValue The estimated cost of the operation
function estimateCrossChainRebalance(
bytes calldata callData_,
bytes calldata rebalanceCallData_
)
external
view
returns (uint256 msgValue);
/// @notice Estimates the cost for a cross-chain rebalance of multiple positions
/// @param callData_ The encoded data for the withdrawals
/// @param rebalanceCallData_ The encoded data for the deposits after rebalance
/// @return msgValue The estimated cost of the operation
function estimateCrossChainRebalanceMulti(
bytes calldata callData_,
bytes calldata rebalanceCallData_
)
external
view
returns (uint256 msgValue);
/// @notice Estimates the cost for depositing into a 4626 vault
/// @param callData_ The encoded data for the deposit
/// @return msgValue The estimated cost of the operation
function estimateDeposit4626(bytes calldata callData_) external view returns (uint256 msgValue);
/// @notice Estimates the cost for a deposit
/// @param callData_ The encoded data for the deposit
/// @return msgValue The estimated cost of the operation
function estimateDeposit(bytes calldata callData_) external view returns (uint256 msgValue);
/// @notice Estimates the cost for batch deposits
/// @param callData_ An array of encoded data for the deposits
/// @return msgValue The estimated total cost of the operations
function estimateBatchDeposit(bytes[] calldata callData_) external view returns (uint256 msgValue);
}