@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
|
@@ -0,0 +1,69 @@
|
|
|
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 { RouteActionDto } from "./routeActionDto";
|
|
12
|
+
import type { SwapActionDto } from "./swapActionDto";
|
|
13
|
+
import type { BridgeActionDto } from "./bridgeActionDto";
|
|
14
|
+
import type { BalanceActionDto } from "./balanceActionDto";
|
|
15
|
+
import type { ApproveActionDto } from "./approveActionDto";
|
|
16
|
+
import type { TransferActionDto } from "./transferActionDto";
|
|
17
|
+
import type { TransferFromActionDto } from "./transferFromActionDto";
|
|
18
|
+
import type { PermitTransferFromActionDto } from "./permitTransferFromActionDto";
|
|
19
|
+
import type { DepositActionDto } from "./depositActionDto";
|
|
20
|
+
import type { RedeemActionDto } from "./redeemActionDto";
|
|
21
|
+
import type { DepositCLMMActionDto } from "./depositCLMMActionDto";
|
|
22
|
+
import type { RedeemCLMMActionDto } from "./redeemCLMMActionDto";
|
|
23
|
+
import type { TokenizedSingleDepositActionDto } from "./tokenizedSingleDepositActionDto";
|
|
24
|
+
import type { TokenizedMultiDepositActionDto } from "./tokenizedMultiDepositActionDto";
|
|
25
|
+
import type { TokenizedSingleRedeemActionDto } from "./tokenizedSingleRedeemActionDto";
|
|
26
|
+
import type { TokenizedMultiRedeemActionDto } from "./tokenizedMultiRedeemActionDto";
|
|
27
|
+
import type { MultiOutSingleDepositActionDto } from "./multiOutSingleDepositActionDto";
|
|
28
|
+
import type { CallActionDto } from "./callActionDto";
|
|
29
|
+
import type { SplitActionDto } from "./splitActionDto";
|
|
30
|
+
import type { MergeActionDto } from "./mergeActionDto";
|
|
31
|
+
import type { MinAmountOutActionDto } from "./minAmountOutActionDto";
|
|
32
|
+
import type { SlippageActionDto } from "./slippageActionDto";
|
|
33
|
+
import type { FeeActionDto } from "./feeActionDto";
|
|
34
|
+
import type { EnsoFeeActionDto } from "./ensoFeeActionDto";
|
|
35
|
+
import type { PaymasterFeeActionDto } from "./paymasterFeeActionDto";
|
|
36
|
+
import type { RepayActionDto } from "./repayActionDto";
|
|
37
|
+
import type { BorrowActionDto } from "./borrowActionDto";
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Each item is a protocol action; items are executed sequentially
|
|
41
|
+
*/
|
|
42
|
+
export type BundleControllerBundleShortcutTransactionBodyItem =
|
|
43
|
+
| RouteActionDto
|
|
44
|
+
| SwapActionDto
|
|
45
|
+
| BridgeActionDto
|
|
46
|
+
| BalanceActionDto
|
|
47
|
+
| ApproveActionDto
|
|
48
|
+
| TransferActionDto
|
|
49
|
+
| TransferFromActionDto
|
|
50
|
+
| PermitTransferFromActionDto
|
|
51
|
+
| DepositActionDto
|
|
52
|
+
| RedeemActionDto
|
|
53
|
+
| DepositCLMMActionDto
|
|
54
|
+
| RedeemCLMMActionDto
|
|
55
|
+
| TokenizedSingleDepositActionDto
|
|
56
|
+
| TokenizedMultiDepositActionDto
|
|
57
|
+
| TokenizedSingleRedeemActionDto
|
|
58
|
+
| TokenizedMultiRedeemActionDto
|
|
59
|
+
| MultiOutSingleDepositActionDto
|
|
60
|
+
| CallActionDto
|
|
61
|
+
| SplitActionDto
|
|
62
|
+
| MergeActionDto
|
|
63
|
+
| MinAmountOutActionDto
|
|
64
|
+
| SlippageActionDto
|
|
65
|
+
| FeeActionDto
|
|
66
|
+
| EnsoFeeActionDto
|
|
67
|
+
| PaymasterFeeActionDto
|
|
68
|
+
| RepayActionDto
|
|
69
|
+
| BorrowActionDto;
|
|
@@ -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 { CallArgsDto } from "./callArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface CallActionDto {
|
|
14
|
+
action: string;
|
|
15
|
+
/** Protocol to interact with */
|
|
16
|
+
protocol: string;
|
|
17
|
+
args: CallArgsDto;
|
|
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 { CallArgsDtoArgsItem } from "./callArgsDtoArgsItem";
|
|
12
|
+
import type { CallArgsDtoValue } from "./callArgsDtoValue";
|
|
13
|
+
|
|
14
|
+
export interface CallArgsDto {
|
|
15
|
+
/** Optional input token address */
|
|
16
|
+
tokenIn?: string;
|
|
17
|
+
/** Optional output token address */
|
|
18
|
+
tokenOut?: string;
|
|
19
|
+
/** Contract address to call */
|
|
20
|
+
address: string;
|
|
21
|
+
/** Method name to call */
|
|
22
|
+
method: string;
|
|
23
|
+
/** Flattened function signature */
|
|
24
|
+
abi: string;
|
|
25
|
+
/** Arguments for the method */
|
|
26
|
+
args: CallArgsDtoArgsItem[];
|
|
27
|
+
/** Native value to send (or previous output reference) */
|
|
28
|
+
value?: CallArgsDtoValue;
|
|
29
|
+
}
|
|
@@ -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 { CallArgsDtoArgsItemAnyOf } from "./callArgsDtoArgsItemAnyOf";
|
|
12
|
+
|
|
13
|
+
export type CallArgsDtoArgsItem =
|
|
14
|
+
| string
|
|
15
|
+
| number
|
|
16
|
+
| boolean
|
|
17
|
+
| CallArgsDtoArgsItemAnyOf;
|
|
@@ -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 CallArgsDtoArgsItemAnyOf = { [key: string]: unknown };
|
|
@@ -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
|
+
* Native value to send (or previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type CallArgsDtoValue = string | CallOutput;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 interface CallOutput {
|
|
13
|
+
useOutputOfCallAt: number;
|
|
14
|
+
index: number;
|
|
15
|
+
}
|
|
@@ -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 { DepositArgsDto } from "./depositArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface DepositActionDto {
|
|
14
|
+
/** Protocol */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: DepositArgsDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { DepositArgsDtoTokenIn } from "./depositArgsDtoTokenIn";
|
|
12
|
+
import type { DepositArgsDtoTokenOut } from "./depositArgsDtoTokenOut";
|
|
13
|
+
import type { DepositArgsDtoAmountIn } from "./depositArgsDtoAmountIn";
|
|
14
|
+
|
|
15
|
+
export interface DepositArgsDto {
|
|
16
|
+
/** Input token(s) */
|
|
17
|
+
tokenIn: DepositArgsDtoTokenIn;
|
|
18
|
+
/** Output token(s) */
|
|
19
|
+
tokenOut?: DepositArgsDtoTokenOut;
|
|
20
|
+
/** Amount(s) (or previous output reference) */
|
|
21
|
+
amountIn: DepositArgsDtoAmountIn;
|
|
22
|
+
/** Protocol contract address */
|
|
23
|
+
primaryAddress: string;
|
|
24
|
+
/** Position identifier (if applicable) */
|
|
25
|
+
positionId?: string;
|
|
26
|
+
/** Receiver address */
|
|
27
|
+
receiver?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import type { DepositArgsDtoAmountInOneOfItem } from "./depositArgsDtoAmountInOneOfItem";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Amount(s) (or previous output reference)
|
|
16
|
+
*/
|
|
17
|
+
export type DepositArgsDtoAmountIn =
|
|
18
|
+
| string
|
|
19
|
+
| CallOutput
|
|
20
|
+
| DepositArgsDtoAmountInOneOfItem[];
|
|
@@ -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 DepositArgsDtoAmountInOneOfItem = string | CallOutput;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Input token(s)
|
|
14
|
+
*/
|
|
15
|
+
export type DepositArgsDtoTokenIn = string | string[];
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Output token(s)
|
|
14
|
+
*/
|
|
15
|
+
export type DepositArgsDtoTokenOut = string | string[];
|
|
@@ -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 { DepositCLMMArgsDto } from "./depositCLMMArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface DepositCLMMActionDto {
|
|
14
|
+
/** Protocol */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: DepositCLMMArgsDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { DepositCLMMArgsDtoAmountInItem } from "./depositCLMMArgsDtoAmountInItem";
|
|
12
|
+
|
|
13
|
+
export interface DepositCLMMArgsDto {
|
|
14
|
+
/** Input token addresses */
|
|
15
|
+
tokenIn: string[];
|
|
16
|
+
/** Output token address */
|
|
17
|
+
tokenOut: string;
|
|
18
|
+
/** Amounts (or previous output references) */
|
|
19
|
+
amountIn: DepositCLMMArgsDtoAmountInItem[];
|
|
20
|
+
/** Ticks for the position */
|
|
21
|
+
ticks: string[];
|
|
22
|
+
/** Pool fee in basis points */
|
|
23
|
+
poolFee: string;
|
|
24
|
+
/** Receiver address */
|
|
25
|
+
receiver?: string;
|
|
26
|
+
/** Tick spacing */
|
|
27
|
+
tickSpacing?: string;
|
|
28
|
+
/** Hook address */
|
|
29
|
+
hook?: string;
|
|
30
|
+
}
|
|
@@ -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 { DepositCLMMArgsDtoAmountInItemAnyOf } from "./depositCLMMArgsDtoAmountInItemAnyOf";
|
|
12
|
+
|
|
13
|
+
export type DepositCLMMArgsDtoAmountInItem =
|
|
14
|
+
| string
|
|
15
|
+
| number
|
|
16
|
+
| boolean
|
|
17
|
+
| DepositCLMMArgsDtoAmountInItemAnyOf;
|
|
@@ -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 DepositCLMMArgsDtoAmountInItemAnyOf = { [key: string]: unknown };
|
|
@@ -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 { EnsoFeeArgsDto } from "./ensoFeeArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface EnsoFeeActionDto {
|
|
14
|
+
protocol: string;
|
|
15
|
+
action: string;
|
|
16
|
+
args: EnsoFeeArgsDto;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { EnsoFeeArgsDtoAmount } from "./ensoFeeArgsDtoAmount";
|
|
12
|
+
|
|
13
|
+
export interface EnsoFeeArgsDto {
|
|
14
|
+
/** Token to apply fee to */
|
|
15
|
+
token: string;
|
|
16
|
+
/** Amount (or previous output reference) */
|
|
17
|
+
amount: EnsoFeeArgsDtoAmount;
|
|
18
|
+
/** Fee in basis points */
|
|
19
|
+
bps: string;
|
|
20
|
+
}
|
|
@@ -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 EnsoFeeArgsDtoAmount = 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 { FeeArgsDto } from "./feeArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface FeeActionDto {
|
|
14
|
+
protocol: string;
|
|
15
|
+
action: string;
|
|
16
|
+
args: FeeArgsDto;
|
|
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 { FeeArgsDtoAmount } from "./feeArgsDtoAmount";
|
|
12
|
+
|
|
13
|
+
export interface FeeArgsDto {
|
|
14
|
+
/** Receiver of the fee */
|
|
15
|
+
receiver: string;
|
|
16
|
+
/** Token to apply fee to */
|
|
17
|
+
token: string;
|
|
18
|
+
/** Amount (or previous output reference) */
|
|
19
|
+
amount: FeeArgsDtoAmount;
|
|
20
|
+
/** Fee in basis points */
|
|
21
|
+
bps: string;
|
|
22
|
+
}
|
|
@@ -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 FeeArgsDtoAmount = string | CallOutput;
|
|
@@ -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 { HarvestArgsDto } from "./harvestArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface HarvestActionDto {
|
|
14
|
+
/** Action */
|
|
15
|
+
action: string;
|
|
16
|
+
/** Protocol */
|
|
17
|
+
protocol: string;
|
|
18
|
+
args: HarvestArgsDto;
|
|
19
|
+
}
|
|
@@ -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
|
+
|
|
12
|
+
export interface HarvestArgsDto {
|
|
13
|
+
/** Token to harvest */
|
|
14
|
+
token: string;
|
|
15
|
+
/** Primary contract address */
|
|
16
|
+
primaryAddress: string;
|
|
17
|
+
}
|