@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.
Files changed (149) hide show
  1. package/dist/checkout-widget.es.js +14486 -13826
  2. package/dist/checkout-widget.es.js.map +1 -1
  3. package/dist/checkout-widget.umd.js +44 -43
  4. package/dist/checkout-widget.umd.js.map +1 -1
  5. package/dist/index.d.ts +7 -0
  6. package/orval.config.ts +40 -6
  7. package/package.json +1 -1
  8. package/src/components/BridgeFee.tsx +3 -3
  9. package/src/components/Checkout.tsx +5 -53
  10. package/src/components/ExchangeConfirmSecurity.tsx +16 -3
  11. package/src/components/QuoteParameters.tsx +84 -65
  12. package/src/components/TransactionDetailRow.tsx +6 -5
  13. package/src/components/cards/AssetCard.tsx +2 -2
  14. package/src/components/cards/OptionCard.tsx +2 -0
  15. package/src/components/steps/ExchangeFlow.tsx +414 -135
  16. package/src/components/steps/{InitialStep.tsx → FlowSelector.tsx} +76 -33
  17. package/src/components/steps/WalletFlow/WalletAmountStep.tsx +214 -0
  18. package/src/components/steps/{WalletConfirmStep.tsx → WalletFlow/WalletConfirmStep.tsx} +107 -156
  19. package/src/components/steps/WalletFlow/WalletFlow.tsx +116 -0
  20. package/src/components/steps/{QuoteStep.tsx → WalletFlow/WalletQuoteStep.tsx} +9 -58
  21. package/src/components/steps/WalletFlow/WalletTokenStep.tsx +75 -0
  22. package/src/components/ui/index.tsx +0 -3
  23. package/src/enso-api/api.ts +192 -3
  24. package/src/enso-api/custom-instance.ts +1 -0
  25. package/src/enso-api/index.ts +29 -118
  26. package/src/enso-api/model/approveActionDto.ts +17 -0
  27. package/src/enso-api/model/approveArgsDto.ts +22 -0
  28. package/src/enso-api/model/approveArgsDtoAmount.ts +16 -0
  29. package/src/enso-api/model/balanceActionDto.ts +17 -0
  30. package/src/enso-api/model/balanceArgsDto.ts +15 -0
  31. package/src/enso-api/model/borrowActionDto.ts +18 -0
  32. package/src/enso-api/model/borrowArgsDto.ts +22 -0
  33. package/src/enso-api/model/borrowArgsDtoAmountOut.ts +16 -0
  34. package/src/enso-api/model/bridgeActionDto.ts +19 -0
  35. package/src/enso-api/model/bridgeArgsDto.ts +29 -0
  36. package/src/enso-api/model/bridgeArgsDtoAmountIn.ts +16 -0
  37. package/src/enso-api/model/bridgeArgsDtoCallbackItem.ts +64 -0
  38. package/src/enso-api/model/bundleControllerBundleShortcutTransactionBodyItem.ts +69 -0
  39. package/src/enso-api/model/callActionDto.ts +18 -0
  40. package/src/enso-api/model/callArgsDto.ts +29 -0
  41. package/src/enso-api/model/callArgsDtoArgsItem.ts +17 -0
  42. package/src/enso-api/model/callArgsDtoArgsItemAnyOf.ts +12 -0
  43. package/src/enso-api/model/callArgsDtoValue.ts +16 -0
  44. package/src/enso-api/model/callOutput.ts +15 -0
  45. package/src/enso-api/model/depositActionDto.ts +18 -0
  46. package/src/enso-api/model/depositArgsDto.ts +28 -0
  47. package/src/enso-api/model/depositArgsDtoAmountIn.ts +20 -0
  48. package/src/enso-api/model/depositArgsDtoAmountInOneOfItem.ts +13 -0
  49. package/src/enso-api/model/depositArgsDtoTokenIn.ts +15 -0
  50. package/src/enso-api/model/depositArgsDtoTokenOut.ts +15 -0
  51. package/src/enso-api/model/depositCLMMActionDto.ts +18 -0
  52. package/src/enso-api/model/depositCLMMArgsDto.ts +30 -0
  53. package/src/enso-api/model/depositCLMMArgsDtoAmountInItem.ts +17 -0
  54. package/src/enso-api/model/depositCLMMArgsDtoAmountInItemAnyOf.ts +12 -0
  55. package/src/enso-api/model/ensoFeeActionDto.ts +17 -0
  56. package/src/enso-api/model/ensoFeeArgsDto.ts +20 -0
  57. package/src/enso-api/model/ensoFeeArgsDtoAmount.ts +16 -0
  58. package/src/enso-api/model/feeActionDto.ts +17 -0
  59. package/src/enso-api/model/feeArgsDto.ts +22 -0
  60. package/src/enso-api/model/feeArgsDtoAmount.ts +16 -0
  61. package/src/enso-api/model/harvestActionDto.ts +19 -0
  62. package/src/enso-api/model/harvestArgsDto.ts +17 -0
  63. package/src/enso-api/model/index.ts +115 -4
  64. package/src/enso-api/model/mergeActionDto.ts +17 -0
  65. package/src/enso-api/model/mergeArgsDto.ts +22 -0
  66. package/src/enso-api/model/mergeArgsDtoAmountInItem.ts +13 -0
  67. package/src/enso-api/model/minAmountOutActionDto.ts +17 -0
  68. package/src/enso-api/model/minAmountOutArgsDto.ts +19 -0
  69. package/src/enso-api/model/minAmountOutArgsDtoAmountOut.ts +16 -0
  70. package/src/enso-api/model/minAmountOutArgsDtoMinAmountOut.ts +16 -0
  71. package/src/enso-api/model/multiDepositActionDto.ts +18 -0
  72. package/src/enso-api/model/multiDepositArgsDto.ts +24 -0
  73. package/src/enso-api/model/multiDepositArgsDtoAmountInItem.ts +17 -0
  74. package/src/enso-api/model/multiDepositArgsDtoAmountInItemAnyOf.ts +12 -0
  75. package/src/enso-api/model/multiOutSingleDepositActionDto.ts +18 -0
  76. package/src/enso-api/model/multiOutSingleDepositArgsDto.ts +24 -0
  77. package/src/enso-api/model/multiOutSingleDepositArgsDtoAmountIn.ts +16 -0
  78. package/src/enso-api/model/multiRedeemActionDto.ts +18 -0
  79. package/src/enso-api/model/multiRedeemArgs2Dto.ts +24 -0
  80. package/src/enso-api/model/multiRedeemArgs2DtoAmountIn.ts +16 -0
  81. package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts +8 -0
  82. package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy.ts +1 -0
  83. package/src/enso-api/model/nontokenizedRouteShortcutTransaction.ts +31 -0
  84. package/src/enso-api/model/paymasterFeeActionDto.ts +17 -0
  85. package/src/enso-api/model/paymasterFeeArgsDto.ts +18 -0
  86. package/src/enso-api/model/paymasterFeeArgsDtoAmount.ts +16 -0
  87. package/src/enso-api/model/permitTransferFromActionDto.ts +18 -0
  88. package/src/enso-api/model/permitTransferFromArgsDto.ts +29 -0
  89. package/src/enso-api/model/permitTransferFromArgsDtoAmount.ts +20 -0
  90. package/src/enso-api/model/permitTransferFromArgsDtoAmountOneOfItem.ts +13 -0
  91. package/src/enso-api/model/permitTransferFromArgsDtoToken.ts +15 -0
  92. package/src/enso-api/model/positionModel.ts +14 -0
  93. package/src/enso-api/model/redeemActionDto.ts +18 -0
  94. package/src/enso-api/model/redeemArgsDto.ts +25 -0
  95. package/src/enso-api/model/redeemArgsDtoAmountIn.ts +16 -0
  96. package/src/enso-api/model/redeemArgsDtoTokenOut.ts +15 -0
  97. package/src/enso-api/model/redeemCLMMActionDto.ts +18 -0
  98. package/src/enso-api/model/redeemCLMMArgsDto.ts +24 -0
  99. package/src/enso-api/model/redeemCLMMArgsDtoLiquidity.ts +16 -0
  100. package/src/enso-api/model/repayActionDto.ts +18 -0
  101. package/src/enso-api/model/repayArgsDto.ts +22 -0
  102. package/src/enso-api/model/repayArgsDtoAmountIn.ts +16 -0
  103. package/src/enso-api/model/routeActionDto.ts +20 -0
  104. package/src/enso-api/model/routeArgsDto.ts +38 -0
  105. package/src/enso-api/model/routeArgsDtoAmountIn.ts +16 -0
  106. package/src/enso-api/model/singleDepositActionDto.ts +18 -0
  107. package/src/enso-api/model/singleDepositArgsDto.ts +24 -0
  108. package/src/enso-api/model/singleDepositArgsDtoAmountIn.ts +16 -0
  109. package/src/enso-api/model/singleRedeemActionDto.ts +18 -0
  110. package/src/enso-api/model/singleRedeemArgs2Dto.ts +24 -0
  111. package/src/enso-api/model/singleRedeemArgs2DtoAmountIn.ts +16 -0
  112. package/src/enso-api/model/slippageActionDto.ts +17 -0
  113. package/src/enso-api/model/slippageArgsDto.ts +18 -0
  114. package/src/enso-api/model/slippageArgsDtoAmountOut.ts +16 -0
  115. package/src/enso-api/model/splitActionDto.ts +17 -0
  116. package/src/enso-api/model/splitArgsDto.ts +22 -0
  117. package/src/enso-api/model/splitArgsDtoAmountIn.ts +16 -0
  118. package/src/enso-api/model/swapActionDto.ts +18 -0
  119. package/src/enso-api/model/swapArgsDto.ts +30 -0
  120. package/src/enso-api/model/swapArgsDtoAmountIn.ts +16 -0
  121. package/src/enso-api/model/tokenizedMultiDepositActionDto.ts +18 -0
  122. package/src/enso-api/model/tokenizedMultiDepositArgsDto.ts +24 -0
  123. package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItem.ts +17 -0
  124. package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItemAnyOf.ts +14 -0
  125. package/src/enso-api/model/tokenizedMultiRedeemActionDto.ts +18 -0
  126. package/src/enso-api/model/tokenizedMultiRedeemArgsDto.ts +24 -0
  127. package/src/enso-api/model/tokenizedMultiRedeemArgsDtoAmountIn.ts +16 -0
  128. package/src/enso-api/model/tokenizedSingleDepositActionDto.ts +18 -0
  129. package/src/enso-api/model/tokenizedSingleDepositArgsDto.ts +24 -0
  130. package/src/enso-api/model/tokenizedSingleDepositArgsDtoAmountIn.ts +16 -0
  131. package/src/enso-api/model/tokenizedSingleRedeemActionDto.ts +18 -0
  132. package/src/enso-api/model/tokenizedSingleRedeemArgsDto.ts +24 -0
  133. package/src/enso-api/model/tokenizedSingleRedeemArgsDtoAmountIn.ts +16 -0
  134. package/src/enso-api/model/tokensControllerTokensLiquidityType.ts +19 -0
  135. package/src/enso-api/model/tokensControllerTokensParams.ts +6 -0
  136. package/src/enso-api/model/transferActionDto.ts +18 -0
  137. package/src/enso-api/model/transferArgsDto.ts +22 -0
  138. package/src/enso-api/model/transferArgsDtoAmount.ts +16 -0
  139. package/src/enso-api/model/transferFromActionDto.ts +18 -0
  140. package/src/enso-api/model/transferFromArgsDto.ts +24 -0
  141. package/src/enso-api/model/transferFromArgsDtoAmount.ts +16 -0
  142. package/src/index.ts +1 -0
  143. package/src/store.ts +13 -5
  144. package/src/types/index.ts +9 -3
  145. package/src/util/common.tsx +4 -1
  146. package/src/util/enso-hooks.tsx +137 -14
  147. package/src/util/wallet.tsx +2 -69
  148. package/src/components/steps/WalletAmountStep.tsx +0 -267
  149. 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
+ }