@ensofinance/checkout-widget 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout-widget.es.js +8421 -8103
- package/dist/checkout-widget.es.js.map +1 -1
- package/dist/checkout-widget.umd.js +31 -31
- package/dist/checkout-widget.umd.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/orval.config.ts +40 -6
- package/package.json +1 -1
- package/src/components/BridgeFee.tsx +3 -3
- package/src/components/Checkout.tsx +2 -2
- package/src/components/ExchangeConfirmSecurity.tsx +16 -3
- package/src/components/QuoteParameters.tsx +33 -18
- package/src/components/TransactionDetailRow.tsx +6 -5
- package/src/components/cards/AssetCard.tsx +2 -2
- package/src/components/cards/OptionCard.tsx +2 -0
- package/src/components/steps/ExchangeFlow.tsx +254 -96
- package/src/components/steps/FlowSelector.tsx +26 -10
- package/src/components/steps/WalletFlow/WalletAmountStep.tsx +22 -23
- package/src/components/steps/WalletFlow/WalletTokenStep.tsx +5 -3
- package/src/components/ui/index.tsx +0 -3
- package/src/enso-api/api.ts +144 -3
- package/src/enso-api/custom-instance.ts +1 -0
- package/src/enso-api/index.ts +29 -118
- package/src/enso-api/model/approveActionDto.ts +17 -0
- package/src/enso-api/model/approveArgsDto.ts +22 -0
- package/src/enso-api/model/approveArgsDtoAmount.ts +16 -0
- package/src/enso-api/model/balanceActionDto.ts +17 -0
- package/src/enso-api/model/balanceArgsDto.ts +15 -0
- package/src/enso-api/model/borrowActionDto.ts +18 -0
- package/src/enso-api/model/borrowArgsDto.ts +22 -0
- package/src/enso-api/model/borrowArgsDtoAmountOut.ts +16 -0
- package/src/enso-api/model/bridgeActionDto.ts +19 -0
- package/src/enso-api/model/bridgeArgsDto.ts +29 -0
- package/src/enso-api/model/bridgeArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/bridgeArgsDtoCallbackItem.ts +64 -0
- package/src/enso-api/model/bundleControllerBundleShortcutTransactionBodyItem.ts +69 -0
- package/src/enso-api/model/callActionDto.ts +18 -0
- package/src/enso-api/model/callArgsDto.ts +29 -0
- package/src/enso-api/model/callArgsDtoArgsItem.ts +17 -0
- package/src/enso-api/model/callArgsDtoArgsItemAnyOf.ts +12 -0
- package/src/enso-api/model/callArgsDtoValue.ts +16 -0
- package/src/enso-api/model/callOutput.ts +15 -0
- package/src/enso-api/model/depositActionDto.ts +18 -0
- package/src/enso-api/model/depositArgsDto.ts +28 -0
- package/src/enso-api/model/depositArgsDtoAmountIn.ts +20 -0
- package/src/enso-api/model/depositArgsDtoAmountInOneOfItem.ts +13 -0
- package/src/enso-api/model/depositArgsDtoTokenIn.ts +15 -0
- package/src/enso-api/model/depositArgsDtoTokenOut.ts +15 -0
- package/src/enso-api/model/depositCLMMActionDto.ts +18 -0
- package/src/enso-api/model/depositCLMMArgsDto.ts +30 -0
- package/src/enso-api/model/depositCLMMArgsDtoAmountInItem.ts +17 -0
- package/src/enso-api/model/depositCLMMArgsDtoAmountInItemAnyOf.ts +12 -0
- package/src/enso-api/model/ensoFeeActionDto.ts +17 -0
- package/src/enso-api/model/ensoFeeArgsDto.ts +20 -0
- package/src/enso-api/model/ensoFeeArgsDtoAmount.ts +16 -0
- package/src/enso-api/model/feeActionDto.ts +17 -0
- package/src/enso-api/model/feeArgsDto.ts +22 -0
- package/src/enso-api/model/feeArgsDtoAmount.ts +16 -0
- package/src/enso-api/model/harvestActionDto.ts +19 -0
- package/src/enso-api/model/harvestArgsDto.ts +17 -0
- package/src/enso-api/model/index.ts +115 -4
- package/src/enso-api/model/mergeActionDto.ts +17 -0
- package/src/enso-api/model/mergeArgsDto.ts +22 -0
- package/src/enso-api/model/mergeArgsDtoAmountInItem.ts +13 -0
- package/src/enso-api/model/minAmountOutActionDto.ts +17 -0
- package/src/enso-api/model/minAmountOutArgsDto.ts +19 -0
- package/src/enso-api/model/minAmountOutArgsDtoAmountOut.ts +16 -0
- package/src/enso-api/model/minAmountOutArgsDtoMinAmountOut.ts +16 -0
- package/src/enso-api/model/multiDepositActionDto.ts +18 -0
- package/src/enso-api/model/multiDepositArgsDto.ts +24 -0
- package/src/enso-api/model/multiDepositArgsDtoAmountInItem.ts +17 -0
- package/src/enso-api/model/multiDepositArgsDtoAmountInItemAnyOf.ts +12 -0
- package/src/enso-api/model/multiOutSingleDepositActionDto.ts +18 -0
- package/src/enso-api/model/multiOutSingleDepositArgsDto.ts +24 -0
- package/src/enso-api/model/multiOutSingleDepositArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/multiRedeemActionDto.ts +18 -0
- package/src/enso-api/model/multiRedeemArgs2Dto.ts +24 -0
- package/src/enso-api/model/multiRedeemArgs2DtoAmountIn.ts +16 -0
- package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts +8 -0
- package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy.ts +1 -0
- package/src/enso-api/model/nontokenizedRouteShortcutTransaction.ts +31 -0
- package/src/enso-api/model/paymasterFeeActionDto.ts +17 -0
- package/src/enso-api/model/paymasterFeeArgsDto.ts +18 -0
- package/src/enso-api/model/paymasterFeeArgsDtoAmount.ts +16 -0
- package/src/enso-api/model/permitTransferFromActionDto.ts +18 -0
- package/src/enso-api/model/permitTransferFromArgsDto.ts +29 -0
- package/src/enso-api/model/permitTransferFromArgsDtoAmount.ts +20 -0
- package/src/enso-api/model/permitTransferFromArgsDtoAmountOneOfItem.ts +13 -0
- package/src/enso-api/model/permitTransferFromArgsDtoToken.ts +15 -0
- package/src/enso-api/model/positionModel.ts +14 -0
- package/src/enso-api/model/redeemActionDto.ts +18 -0
- package/src/enso-api/model/redeemArgsDto.ts +25 -0
- package/src/enso-api/model/redeemArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/redeemArgsDtoTokenOut.ts +15 -0
- package/src/enso-api/model/redeemCLMMActionDto.ts +18 -0
- package/src/enso-api/model/redeemCLMMArgsDto.ts +24 -0
- package/src/enso-api/model/redeemCLMMArgsDtoLiquidity.ts +16 -0
- package/src/enso-api/model/repayActionDto.ts +18 -0
- package/src/enso-api/model/repayArgsDto.ts +22 -0
- package/src/enso-api/model/repayArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/routeActionDto.ts +20 -0
- package/src/enso-api/model/routeArgsDto.ts +38 -0
- package/src/enso-api/model/routeArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/singleDepositActionDto.ts +18 -0
- package/src/enso-api/model/singleDepositArgsDto.ts +24 -0
- package/src/enso-api/model/singleDepositArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/singleRedeemActionDto.ts +18 -0
- package/src/enso-api/model/singleRedeemArgs2Dto.ts +24 -0
- package/src/enso-api/model/singleRedeemArgs2DtoAmountIn.ts +16 -0
- package/src/enso-api/model/slippageActionDto.ts +17 -0
- package/src/enso-api/model/slippageArgsDto.ts +18 -0
- package/src/enso-api/model/slippageArgsDtoAmountOut.ts +16 -0
- package/src/enso-api/model/splitActionDto.ts +17 -0
- package/src/enso-api/model/splitArgsDto.ts +22 -0
- package/src/enso-api/model/splitArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/swapActionDto.ts +18 -0
- package/src/enso-api/model/swapArgsDto.ts +30 -0
- package/src/enso-api/model/swapArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/tokenizedMultiDepositActionDto.ts +18 -0
- package/src/enso-api/model/tokenizedMultiDepositArgsDto.ts +24 -0
- package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItem.ts +17 -0
- package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItemAnyOf.ts +14 -0
- package/src/enso-api/model/tokenizedMultiRedeemActionDto.ts +18 -0
- package/src/enso-api/model/tokenizedMultiRedeemArgsDto.ts +24 -0
- package/src/enso-api/model/tokenizedMultiRedeemArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/tokenizedSingleDepositActionDto.ts +18 -0
- package/src/enso-api/model/tokenizedSingleDepositArgsDto.ts +24 -0
- package/src/enso-api/model/tokenizedSingleDepositArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/tokenizedSingleRedeemActionDto.ts +18 -0
- package/src/enso-api/model/tokenizedSingleRedeemArgsDto.ts +24 -0
- package/src/enso-api/model/tokenizedSingleRedeemArgsDtoAmountIn.ts +16 -0
- package/src/enso-api/model/tokensControllerTokensLiquidityType.ts +19 -0
- package/src/enso-api/model/tokensControllerTokensParams.ts +6 -0
- package/src/enso-api/model/transferActionDto.ts +18 -0
- package/src/enso-api/model/transferArgsDto.ts +22 -0
- package/src/enso-api/model/transferArgsDtoAmount.ts +16 -0
- package/src/enso-api/model/transferFromActionDto.ts +18 -0
- package/src/enso-api/model/transferFromArgsDto.ts +24 -0
- package/src/enso-api/model/transferFromArgsDtoAmount.ts +16 -0
- package/src/index.ts +1 -0
- package/src/store.ts +12 -5
- package/src/types/index.ts +9 -3
- package/src/util/common.tsx +2 -0
- package/src/util/enso-hooks.tsx +72 -11
|
@@ -19,12 +19,16 @@ export * from "./bundleControllerBundleShortcutTransactionParams";
|
|
|
19
19
|
export * from "./bundleControllerBundleShortcutTransactionRoutingStrategy";
|
|
20
20
|
export * from "./bundleShortcutTransaction";
|
|
21
21
|
export * from "./bundleShortcutTransactionAmountsOut";
|
|
22
|
+
export * from "./bundleShortcutTransactionFeeAmount";
|
|
22
23
|
export * from "./connectedNetwork";
|
|
23
24
|
export * from "./hop";
|
|
24
25
|
export * from "./hopArgs";
|
|
25
26
|
export * from "./iporControllerIporShortcutTransactionParams";
|
|
26
27
|
export * from "./iporShortcutInput";
|
|
27
28
|
export * from "./iporShortcutTransaction";
|
|
29
|
+
export * from "./lZDestinationTokenData";
|
|
30
|
+
export * from "./lZPoolLookupResponse";
|
|
31
|
+
export * from "./layerZeroControllerGetPoolAddressParams";
|
|
28
32
|
export * from "./network";
|
|
29
33
|
export * from "./networksControllerNetworksParams";
|
|
30
34
|
export * from "./nonTokenizedControllerTokens200";
|
|
@@ -64,7 +68,114 @@ export * from "./walletBalance";
|
|
|
64
68
|
export * from "./walletControllerCreateApproveTransactionParams";
|
|
65
69
|
export * from "./walletControllerCreateApproveTransactionRoutingStrategy";
|
|
66
70
|
export * from "./walletControllerWalletBalancesParams";
|
|
67
|
-
export * from "./
|
|
68
|
-
export * from "./
|
|
69
|
-
export * from "./
|
|
70
|
-
export * from "./
|
|
71
|
+
export * from "./approveActionDto";
|
|
72
|
+
export * from "./approveArgsDto";
|
|
73
|
+
export * from "./approveArgsDtoAmount";
|
|
74
|
+
export * from "./balanceActionDto";
|
|
75
|
+
export * from "./balanceArgsDto";
|
|
76
|
+
export * from "./borrowActionDto";
|
|
77
|
+
export * from "./borrowArgsDto";
|
|
78
|
+
export * from "./borrowArgsDtoAmountOut";
|
|
79
|
+
export * from "./bridgeActionDto";
|
|
80
|
+
export * from "./bridgeArgsDto";
|
|
81
|
+
export * from "./bridgeArgsDtoAmountIn";
|
|
82
|
+
export * from "./bridgeArgsDtoCallbackItem";
|
|
83
|
+
export * from "./bundleControllerBundleShortcutTransactionBodyItem";
|
|
84
|
+
export * from "./callActionDto";
|
|
85
|
+
export * from "./callArgsDto";
|
|
86
|
+
export * from "./callArgsDtoArgsItem";
|
|
87
|
+
export * from "./callArgsDtoArgsItemAnyOf";
|
|
88
|
+
export * from "./callArgsDtoValue";
|
|
89
|
+
export * from "./callOutput";
|
|
90
|
+
export * from "./depositActionDto";
|
|
91
|
+
export * from "./depositArgsDto";
|
|
92
|
+
export * from "./depositArgsDtoAmountIn";
|
|
93
|
+
export * from "./depositArgsDtoAmountInOneOfItem";
|
|
94
|
+
export * from "./depositArgsDtoTokenIn";
|
|
95
|
+
export * from "./depositArgsDtoTokenOut";
|
|
96
|
+
export * from "./depositCLMMActionDto";
|
|
97
|
+
export * from "./depositCLMMArgsDto";
|
|
98
|
+
export * from "./depositCLMMArgsDtoAmountInItem";
|
|
99
|
+
export * from "./depositCLMMArgsDtoAmountInItemAnyOf";
|
|
100
|
+
export * from "./ensoFeeActionDto";
|
|
101
|
+
export * from "./ensoFeeArgsDto";
|
|
102
|
+
export * from "./ensoFeeArgsDtoAmount";
|
|
103
|
+
export * from "./feeActionDto";
|
|
104
|
+
export * from "./feeArgsDto";
|
|
105
|
+
export * from "./feeArgsDtoAmount";
|
|
106
|
+
export * from "./harvestActionDto";
|
|
107
|
+
export * from "./harvestArgsDto";
|
|
108
|
+
export * from "./mergeActionDto";
|
|
109
|
+
export * from "./mergeArgsDto";
|
|
110
|
+
export * from "./mergeArgsDtoAmountInItem";
|
|
111
|
+
export * from "./minAmountOutActionDto";
|
|
112
|
+
export * from "./minAmountOutArgsDto";
|
|
113
|
+
export * from "./minAmountOutArgsDtoAmountOut";
|
|
114
|
+
export * from "./minAmountOutArgsDtoMinAmountOut";
|
|
115
|
+
export * from "./multiDepositActionDto";
|
|
116
|
+
export * from "./multiDepositArgsDto";
|
|
117
|
+
export * from "./multiDepositArgsDtoAmountInItem";
|
|
118
|
+
export * from "./multiDepositArgsDtoAmountInItemAnyOf";
|
|
119
|
+
export * from "./multiOutSingleDepositActionDto";
|
|
120
|
+
export * from "./multiOutSingleDepositArgsDto";
|
|
121
|
+
export * from "./multiOutSingleDepositArgsDtoAmountIn";
|
|
122
|
+
export * from "./multiRedeemActionDto";
|
|
123
|
+
export * from "./multiRedeemArgs2Dto";
|
|
124
|
+
export * from "./multiRedeemArgs2DtoAmountIn";
|
|
125
|
+
export * from "./nontokenizedRouteShortcutTransaction";
|
|
126
|
+
export * from "./paymasterFeeActionDto";
|
|
127
|
+
export * from "./paymasterFeeArgsDto";
|
|
128
|
+
export * from "./paymasterFeeArgsDtoAmount";
|
|
129
|
+
export * from "./permitTransferFromActionDto";
|
|
130
|
+
export * from "./permitTransferFromArgsDto";
|
|
131
|
+
export * from "./permitTransferFromArgsDtoAmount";
|
|
132
|
+
export * from "./permitTransferFromArgsDtoAmountOneOfItem";
|
|
133
|
+
export * from "./permitTransferFromArgsDtoToken";
|
|
134
|
+
export * from "./redeemActionDto";
|
|
135
|
+
export * from "./redeemArgsDto";
|
|
136
|
+
export * from "./redeemArgsDtoAmountIn";
|
|
137
|
+
export * from "./redeemArgsDtoTokenOut";
|
|
138
|
+
export * from "./redeemCLMMActionDto";
|
|
139
|
+
export * from "./redeemCLMMArgsDto";
|
|
140
|
+
export * from "./redeemCLMMArgsDtoLiquidity";
|
|
141
|
+
export * from "./repayActionDto";
|
|
142
|
+
export * from "./repayArgsDto";
|
|
143
|
+
export * from "./repayArgsDtoAmountIn";
|
|
144
|
+
export * from "./routeActionDto";
|
|
145
|
+
export * from "./routeArgsDto";
|
|
146
|
+
export * from "./routeArgsDtoAmountIn";
|
|
147
|
+
export * from "./singleDepositActionDto";
|
|
148
|
+
export * from "./singleDepositArgsDto";
|
|
149
|
+
export * from "./singleDepositArgsDtoAmountIn";
|
|
150
|
+
export * from "./singleRedeemActionDto";
|
|
151
|
+
export * from "./singleRedeemArgs2Dto";
|
|
152
|
+
export * from "./singleRedeemArgs2DtoAmountIn";
|
|
153
|
+
export * from "./slippageActionDto";
|
|
154
|
+
export * from "./slippageArgsDto";
|
|
155
|
+
export * from "./slippageArgsDtoAmountOut";
|
|
156
|
+
export * from "./splitActionDto";
|
|
157
|
+
export * from "./splitArgsDto";
|
|
158
|
+
export * from "./splitArgsDtoAmountIn";
|
|
159
|
+
export * from "./swapActionDto";
|
|
160
|
+
export * from "./swapArgsDto";
|
|
161
|
+
export * from "./swapArgsDtoAmountIn";
|
|
162
|
+
export * from "./tokenizedMultiDepositActionDto";
|
|
163
|
+
export * from "./tokenizedMultiDepositArgsDto";
|
|
164
|
+
export * from "./tokenizedMultiDepositArgsDtoAmountInItem";
|
|
165
|
+
export * from "./tokenizedMultiDepositArgsDtoAmountInItemAnyOf";
|
|
166
|
+
export * from "./tokenizedMultiRedeemActionDto";
|
|
167
|
+
export * from "./tokenizedMultiRedeemArgsDto";
|
|
168
|
+
export * from "./tokenizedMultiRedeemArgsDtoAmountIn";
|
|
169
|
+
export * from "./tokenizedSingleDepositActionDto";
|
|
170
|
+
export * from "./tokenizedSingleDepositArgsDto";
|
|
171
|
+
export * from "./tokenizedSingleDepositArgsDtoAmountIn";
|
|
172
|
+
export * from "./tokenizedSingleRedeemActionDto";
|
|
173
|
+
export * from "./tokenizedSingleRedeemArgsDto";
|
|
174
|
+
export * from "./tokenizedSingleRedeemArgsDtoAmountIn";
|
|
175
|
+
export * from "./tokensControllerTokensLiquidityType";
|
|
176
|
+
export * from "./transferActionDto";
|
|
177
|
+
export * from "./transferArgsDto";
|
|
178
|
+
export * from "./transferArgsDtoAmount";
|
|
179
|
+
export * from "./transferFromActionDto";
|
|
180
|
+
export * from "./transferFromArgsDto";
|
|
181
|
+
export * from "./transferFromArgsDtoAmount";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MergeArgsDto } from "./mergeArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface MergeActionDto {
|
|
14
|
+
protocol: string;
|
|
15
|
+
action: string;
|
|
16
|
+
args: MergeArgsDto;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MergeArgsDtoAmountInItem } from "./mergeArgsDtoAmountInItem";
|
|
12
|
+
|
|
13
|
+
export interface MergeArgsDto {
|
|
14
|
+
/** Input token addresses */
|
|
15
|
+
tokenIn: string[];
|
|
16
|
+
/** Output token address */
|
|
17
|
+
tokenOut: string;
|
|
18
|
+
/** Amounts to merge (or previous output reference) */
|
|
19
|
+
amountIn: MergeArgsDtoAmountInItem[];
|
|
20
|
+
/** Receiver address */
|
|
21
|
+
receiver?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { CallOutput } from "./callOutput";
|
|
12
|
+
|
|
13
|
+
export type MergeArgsDtoAmountInItem = string | CallOutput;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MinAmountOutArgsDto } from "./minAmountOutArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface MinAmountOutActionDto {
|
|
14
|
+
protocol: string;
|
|
15
|
+
action: string;
|
|
16
|
+
args: MinAmountOutArgsDto;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MinAmountOutArgsDtoAmountOut } from "./minAmountOutArgsDtoAmountOut";
|
|
12
|
+
import type { MinAmountOutArgsDtoMinAmountOut } from "./minAmountOutArgsDtoMinAmountOut";
|
|
13
|
+
|
|
14
|
+
export interface MinAmountOutArgsDto {
|
|
15
|
+
/** Expected output amount (previous output reference) */
|
|
16
|
+
amountOut: MinAmountOutArgsDtoAmountOut;
|
|
17
|
+
/** Minimum acceptable amount */
|
|
18
|
+
minAmountOut: MinAmountOutArgsDtoMinAmountOut;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { CallOutput } from "./callOutput";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Expected output amount (previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type MinAmountOutArgsDtoAmountOut = string | CallOutput;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { CallOutput } from "./callOutput";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Minimum acceptable amount
|
|
15
|
+
*/
|
|
16
|
+
export type MinAmountOutArgsDtoMinAmountOut = string | CallOutput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiDepositArgsDto } from "./multiDepositArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface MultiDepositActionDto {
|
|
14
|
+
/** Protocol */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: MultiDepositArgsDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiDepositArgsDtoAmountInItem } from "./multiDepositArgsDtoAmountInItem";
|
|
12
|
+
|
|
13
|
+
export interface MultiDepositArgsDto {
|
|
14
|
+
/** Input tokens */
|
|
15
|
+
tokenIn: string[];
|
|
16
|
+
/** Output token */
|
|
17
|
+
tokenOut?: string;
|
|
18
|
+
/** Amounts (or previous output references) */
|
|
19
|
+
amountIn: MultiDepositArgsDtoAmountInItem[];
|
|
20
|
+
/** Primary contract */
|
|
21
|
+
primaryAddress: string;
|
|
22
|
+
/** Receiver address */
|
|
23
|
+
receiver?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiDepositArgsDtoAmountInItemAnyOf } from "./multiDepositArgsDtoAmountInItemAnyOf";
|
|
12
|
+
|
|
13
|
+
export type MultiDepositArgsDtoAmountInItem =
|
|
14
|
+
| string
|
|
15
|
+
| number
|
|
16
|
+
| boolean
|
|
17
|
+
| MultiDepositArgsDtoAmountInItemAnyOf;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export type MultiDepositArgsDtoAmountInItemAnyOf = { [key: string]: unknown };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiOutSingleDepositArgsDto } from "./multiOutSingleDepositArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface MultiOutSingleDepositActionDto {
|
|
14
|
+
/** Protocol */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: MultiOutSingleDepositArgsDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiOutSingleDepositArgsDtoAmountIn } from "./multiOutSingleDepositArgsDtoAmountIn";
|
|
12
|
+
|
|
13
|
+
export interface MultiOutSingleDepositArgsDto {
|
|
14
|
+
/** Input token address */
|
|
15
|
+
tokenIn: string;
|
|
16
|
+
/** Output token addresses */
|
|
17
|
+
tokenOut: string[];
|
|
18
|
+
/** Amount to deposit (or previous output reference) */
|
|
19
|
+
amountIn: MultiOutSingleDepositArgsDtoAmountIn;
|
|
20
|
+
/** Primary contract address */
|
|
21
|
+
primaryAddress: string;
|
|
22
|
+
/** Receiver address */
|
|
23
|
+
receiver?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { CallOutput } from "./callOutput";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Amount to deposit (or previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type MultiOutSingleDepositArgsDtoAmountIn = string | CallOutput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiRedeemArgs2Dto } from "./multiRedeemArgs2Dto";
|
|
12
|
+
|
|
13
|
+
export interface MultiRedeemActionDto {
|
|
14
|
+
/** Protocol */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: MultiRedeemArgs2Dto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { MultiRedeemArgs2DtoAmountIn } from "./multiRedeemArgs2DtoAmountIn";
|
|
12
|
+
|
|
13
|
+
export interface MultiRedeemArgs2Dto {
|
|
14
|
+
/** Input token */
|
|
15
|
+
tokenIn?: string;
|
|
16
|
+
/** Output tokens */
|
|
17
|
+
tokenOut: string[];
|
|
18
|
+
/** Amount (or previous output reference) */
|
|
19
|
+
amountIn: MultiRedeemArgs2DtoAmountIn;
|
|
20
|
+
/** Primary contract */
|
|
21
|
+
primaryAddress: string;
|
|
22
|
+
/** Receiver address */
|
|
23
|
+
receiver?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { CallOutput } from "./callOutput";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Amount (or previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type MultiRedeemArgs2DtoAmountIn = string | CallOutput;
|
package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts
CHANGED
|
@@ -29,6 +29,10 @@ export type NontokenizedControllerRouteNontokenizedShorcutTransactionParams = {
|
|
|
29
29
|
* @maxLength 16
|
|
30
30
|
*/
|
|
31
31
|
referralCode?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Chain ID of the network to bridge to and receive nontokenized position
|
|
34
|
+
*/
|
|
35
|
+
destinationChainId?: number;
|
|
32
36
|
/**
|
|
33
37
|
* Ethereum address of the token to swap from. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
|
34
38
|
*/
|
|
@@ -61,4 +65,8 @@ export type NontokenizedControllerRouteNontokenizedShorcutTransactionParams = {
|
|
|
61
65
|
* Ethereum address of the spender of the tokenIn
|
|
62
66
|
*/
|
|
63
67
|
spender?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Ethereum address of the receiver of any dust tokens that might be produced during the execution of actions
|
|
70
|
+
*/
|
|
71
|
+
refundReceiver?: string;
|
|
64
72
|
};
|
|
@@ -17,6 +17,7 @@ export type NontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStra
|
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
18
18
|
export const NontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy =
|
|
19
19
|
{
|
|
20
|
+
router: "router",
|
|
20
21
|
delegate: "delegate",
|
|
21
22
|
"delegate-legacy": "delegate-legacy",
|
|
22
23
|
} as const;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { Transaction } from "./transaction";
|
|
12
|
+
import type { Hop } from "./hop";
|
|
13
|
+
import type { UserOperation } from "./userOperation";
|
|
14
|
+
|
|
15
|
+
export interface NontokenizedRouteShortcutTransaction {
|
|
16
|
+
/** Block number the transaction was created on */
|
|
17
|
+
createdAt: number;
|
|
18
|
+
gas: string;
|
|
19
|
+
/** Amount of value allocated to the position after the transaction completes. For nontokenized positions, this represents the amount that goes into the position. */
|
|
20
|
+
amountDeposited: string;
|
|
21
|
+
/** Price impact in basis points (1/10000) between the initial route value and the positionAmount. For example, 50 = 0.50%. Returns null if price impact calculation is not available. */
|
|
22
|
+
priceImpact: number;
|
|
23
|
+
/** The tx object to use in `ethers` */
|
|
24
|
+
tx: Transaction;
|
|
25
|
+
/** The route the shortcut will use */
|
|
26
|
+
route: Hop[];
|
|
27
|
+
feeAmount: string[];
|
|
28
|
+
ensoFeeAmount: string[];
|
|
29
|
+
/** The ERC-4337 user operation object */
|
|
30
|
+
userOp: UserOperation;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { PaymasterFeeArgsDto } from "./paymasterFeeArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface PaymasterFeeActionDto {
|
|
14
|
+
protocol: string;
|
|
15
|
+
action: string;
|
|
16
|
+
args: PaymasterFeeArgsDto;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { PaymasterFeeArgsDtoAmount } from "./paymasterFeeArgsDtoAmount";
|
|
12
|
+
|
|
13
|
+
export interface PaymasterFeeArgsDto {
|
|
14
|
+
/** Token to apply fee to */
|
|
15
|
+
token: string;
|
|
16
|
+
/** Amount (or previous output reference) */
|
|
17
|
+
amount: PaymasterFeeArgsDtoAmount;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { CallOutput } from "./callOutput";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Amount (or previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type PaymasterFeeArgsDtoAmount = string | CallOutput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { PermitTransferFromArgsDto } from "./permitTransferFromArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface PermitTransferFromActionDto {
|
|
14
|
+
/** Protocol */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: PermitTransferFromArgsDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
import type { PermitTransferFromArgsDtoToken } from "./permitTransferFromArgsDtoToken";
|
|
12
|
+
import type { PermitTransferFromArgsDtoAmount } from "./permitTransferFromArgsDtoAmount";
|
|
13
|
+
|
|
14
|
+
export interface PermitTransferFromArgsDto {
|
|
15
|
+
/** Token(s) to transfer */
|
|
16
|
+
token: PermitTransferFromArgsDtoToken;
|
|
17
|
+
/** Amount(s) (or previous output references) */
|
|
18
|
+
amount: PermitTransferFromArgsDtoAmount;
|
|
19
|
+
/** Sender address */
|
|
20
|
+
sender: string;
|
|
21
|
+
/** Receiver address */
|
|
22
|
+
receiver: string;
|
|
23
|
+
/** Nonce for signature replay protection */
|
|
24
|
+
nonce: string;
|
|
25
|
+
/** Deadline timestamp */
|
|
26
|
+
deadline: string;
|
|
27
|
+
/** EIP-2612 permit signature */
|
|
28
|
+
signature: string;
|
|
29
|
+
}
|