@ensofinance/checkout-widget 0.0.12 → 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 +14486 -13826
- package/dist/checkout-widget.es.js.map +1 -1
- package/dist/checkout-widget.umd.js +44 -43
- 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 +5 -53
- package/src/components/ExchangeConfirmSecurity.tsx +16 -3
- package/src/components/QuoteParameters.tsx +84 -65
- 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 +414 -135
- package/src/components/steps/{InitialStep.tsx → FlowSelector.tsx} +76 -33
- package/src/components/steps/WalletFlow/WalletAmountStep.tsx +214 -0
- package/src/components/steps/{WalletConfirmStep.tsx → WalletFlow/WalletConfirmStep.tsx} +107 -156
- package/src/components/steps/WalletFlow/WalletFlow.tsx +116 -0
- package/src/components/steps/{QuoteStep.tsx → WalletFlow/WalletQuoteStep.tsx} +9 -58
- package/src/components/steps/WalletFlow/WalletTokenStep.tsx +75 -0
- package/src/components/ui/index.tsx +0 -3
- package/src/enso-api/api.ts +192 -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 +13 -5
- package/src/types/index.ts +9 -3
- package/src/util/common.tsx +4 -1
- package/src/util/enso-hooks.tsx +137 -14
- package/src/util/wallet.tsx +2 -69
- package/src/components/steps/WalletAmountStep.tsx +0 -267
- package/src/components/steps/WalletTokenStep.tsx +0 -128
|
@@ -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 { BorrowArgsDto } from "./borrowArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface BorrowActionDto {
|
|
14
|
+
/** Protocol to borrow from */
|
|
15
|
+
protocol: string;
|
|
16
|
+
action: string;
|
|
17
|
+
args: BorrowArgsDto;
|
|
18
|
+
}
|
|
@@ -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 { BorrowArgsDtoAmountOut } from "./borrowArgsDtoAmountOut";
|
|
12
|
+
|
|
13
|
+
export interface BorrowArgsDto {
|
|
14
|
+
/** Collateral token(s) */
|
|
15
|
+
collateral: string[];
|
|
16
|
+
/** Token to borrow */
|
|
17
|
+
tokenOut: string;
|
|
18
|
+
/** Amount to borrow in wei (or previous output reference) */
|
|
19
|
+
amountOut: BorrowArgsDtoAmountOut;
|
|
20
|
+
/** Lending pool contract address */
|
|
21
|
+
primaryAddress: 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 to borrow in wei (or previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type BorrowArgsDtoAmountOut = 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 { BridgeArgsDto } from "./bridgeArgsDto";
|
|
12
|
+
|
|
13
|
+
export interface BridgeActionDto {
|
|
14
|
+
/** Action */
|
|
15
|
+
action: string;
|
|
16
|
+
/** Protocol to use for bridging */
|
|
17
|
+
protocol: string;
|
|
18
|
+
args: BridgeArgsDto;
|
|
19
|
+
}
|
|
@@ -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 { BridgeArgsDtoAmountIn } from "./bridgeArgsDtoAmountIn";
|
|
12
|
+
import type { BridgeArgsDtoCallbackItem } from "./bridgeArgsDtoCallbackItem";
|
|
13
|
+
|
|
14
|
+
export interface BridgeArgsDto {
|
|
15
|
+
/** Input token address */
|
|
16
|
+
tokenIn: string;
|
|
17
|
+
/** Amount to bridge (or previous output reference) */
|
|
18
|
+
amountIn: BridgeArgsDtoAmountIn;
|
|
19
|
+
/** Bridging protocol contract address */
|
|
20
|
+
primaryAddress: string;
|
|
21
|
+
/** Destination chain id */
|
|
22
|
+
destinationChainId: number;
|
|
23
|
+
/** Receiver address on destination chain */
|
|
24
|
+
receiver: string;
|
|
25
|
+
/** Optional callback bundle on destination chain (MUST start with balance action) */
|
|
26
|
+
callback?: BridgeArgsDtoCallbackItem[];
|
|
27
|
+
/** Additional native value for callback */
|
|
28
|
+
callbackValue?: string;
|
|
29
|
+
}
|
|
@@ -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 bridge (or previous output reference)
|
|
15
|
+
*/
|
|
16
|
+
export type BridgeArgsDtoAmountIn = string | CallOutput;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { BalanceActionDto } from "./balanceActionDto";
|
|
14
|
+
import type { ApproveActionDto } from "./approveActionDto";
|
|
15
|
+
import type { TransferActionDto } from "./transferActionDto";
|
|
16
|
+
import type { TransferFromActionDto } from "./transferFromActionDto";
|
|
17
|
+
import type { PermitTransferFromActionDto } from "./permitTransferFromActionDto";
|
|
18
|
+
import type { DepositActionDto } from "./depositActionDto";
|
|
19
|
+
import type { RedeemActionDto } from "./redeemActionDto";
|
|
20
|
+
import type { DepositCLMMActionDto } from "./depositCLMMActionDto";
|
|
21
|
+
import type { RedeemCLMMActionDto } from "./redeemCLMMActionDto";
|
|
22
|
+
import type { TokenizedSingleDepositActionDto } from "./tokenizedSingleDepositActionDto";
|
|
23
|
+
import type { TokenizedMultiDepositActionDto } from "./tokenizedMultiDepositActionDto";
|
|
24
|
+
import type { TokenizedSingleRedeemActionDto } from "./tokenizedSingleRedeemActionDto";
|
|
25
|
+
import type { TokenizedMultiRedeemActionDto } from "./tokenizedMultiRedeemActionDto";
|
|
26
|
+
import type { MultiOutSingleDepositActionDto } from "./multiOutSingleDepositActionDto";
|
|
27
|
+
import type { CallActionDto } from "./callActionDto";
|
|
28
|
+
import type { SplitActionDto } from "./splitActionDto";
|
|
29
|
+
import type { MergeActionDto } from "./mergeActionDto";
|
|
30
|
+
import type { MinAmountOutActionDto } from "./minAmountOutActionDto";
|
|
31
|
+
import type { SlippageActionDto } from "./slippageActionDto";
|
|
32
|
+
import type { FeeActionDto } from "./feeActionDto";
|
|
33
|
+
import type { EnsoFeeActionDto } from "./ensoFeeActionDto";
|
|
34
|
+
import type { PaymasterFeeActionDto } from "./paymasterFeeActionDto";
|
|
35
|
+
import type { RepayActionDto } from "./repayActionDto";
|
|
36
|
+
import type { BorrowActionDto } from "./borrowActionDto";
|
|
37
|
+
|
|
38
|
+
export type BridgeArgsDtoCallbackItem =
|
|
39
|
+
| RouteActionDto
|
|
40
|
+
| SwapActionDto
|
|
41
|
+
| BalanceActionDto
|
|
42
|
+
| ApproveActionDto
|
|
43
|
+
| TransferActionDto
|
|
44
|
+
| TransferFromActionDto
|
|
45
|
+
| PermitTransferFromActionDto
|
|
46
|
+
| DepositActionDto
|
|
47
|
+
| RedeemActionDto
|
|
48
|
+
| DepositCLMMActionDto
|
|
49
|
+
| RedeemCLMMActionDto
|
|
50
|
+
| TokenizedSingleDepositActionDto
|
|
51
|
+
| TokenizedMultiDepositActionDto
|
|
52
|
+
| TokenizedSingleRedeemActionDto
|
|
53
|
+
| TokenizedMultiRedeemActionDto
|
|
54
|
+
| MultiOutSingleDepositActionDto
|
|
55
|
+
| CallActionDto
|
|
56
|
+
| SplitActionDto
|
|
57
|
+
| MergeActionDto
|
|
58
|
+
| MinAmountOutActionDto
|
|
59
|
+
| SlippageActionDto
|
|
60
|
+
| FeeActionDto
|
|
61
|
+
| EnsoFeeActionDto
|
|
62
|
+
| PaymasterFeeActionDto
|
|
63
|
+
| RepayActionDto
|
|
64
|
+
| BorrowActionDto;
|
|
@@ -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
|
+
}
|