@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.
Files changed (143) hide show
  1. package/dist/checkout-widget.es.js +8421 -8103
  2. package/dist/checkout-widget.es.js.map +1 -1
  3. package/dist/checkout-widget.umd.js +31 -31
  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 +2 -2
  10. package/src/components/ExchangeConfirmSecurity.tsx +16 -3
  11. package/src/components/QuoteParameters.tsx +33 -18
  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 +254 -96
  16. package/src/components/steps/FlowSelector.tsx +26 -10
  17. package/src/components/steps/WalletFlow/WalletAmountStep.tsx +22 -23
  18. package/src/components/steps/WalletFlow/WalletTokenStep.tsx +5 -3
  19. package/src/components/ui/index.tsx +0 -3
  20. package/src/enso-api/api.ts +144 -3
  21. package/src/enso-api/custom-instance.ts +1 -0
  22. package/src/enso-api/index.ts +29 -118
  23. package/src/enso-api/model/approveActionDto.ts +17 -0
  24. package/src/enso-api/model/approveArgsDto.ts +22 -0
  25. package/src/enso-api/model/approveArgsDtoAmount.ts +16 -0
  26. package/src/enso-api/model/balanceActionDto.ts +17 -0
  27. package/src/enso-api/model/balanceArgsDto.ts +15 -0
  28. package/src/enso-api/model/borrowActionDto.ts +18 -0
  29. package/src/enso-api/model/borrowArgsDto.ts +22 -0
  30. package/src/enso-api/model/borrowArgsDtoAmountOut.ts +16 -0
  31. package/src/enso-api/model/bridgeActionDto.ts +19 -0
  32. package/src/enso-api/model/bridgeArgsDto.ts +29 -0
  33. package/src/enso-api/model/bridgeArgsDtoAmountIn.ts +16 -0
  34. package/src/enso-api/model/bridgeArgsDtoCallbackItem.ts +64 -0
  35. package/src/enso-api/model/bundleControllerBundleShortcutTransactionBodyItem.ts +69 -0
  36. package/src/enso-api/model/callActionDto.ts +18 -0
  37. package/src/enso-api/model/callArgsDto.ts +29 -0
  38. package/src/enso-api/model/callArgsDtoArgsItem.ts +17 -0
  39. package/src/enso-api/model/callArgsDtoArgsItemAnyOf.ts +12 -0
  40. package/src/enso-api/model/callArgsDtoValue.ts +16 -0
  41. package/src/enso-api/model/callOutput.ts +15 -0
  42. package/src/enso-api/model/depositActionDto.ts +18 -0
  43. package/src/enso-api/model/depositArgsDto.ts +28 -0
  44. package/src/enso-api/model/depositArgsDtoAmountIn.ts +20 -0
  45. package/src/enso-api/model/depositArgsDtoAmountInOneOfItem.ts +13 -0
  46. package/src/enso-api/model/depositArgsDtoTokenIn.ts +15 -0
  47. package/src/enso-api/model/depositArgsDtoTokenOut.ts +15 -0
  48. package/src/enso-api/model/depositCLMMActionDto.ts +18 -0
  49. package/src/enso-api/model/depositCLMMArgsDto.ts +30 -0
  50. package/src/enso-api/model/depositCLMMArgsDtoAmountInItem.ts +17 -0
  51. package/src/enso-api/model/depositCLMMArgsDtoAmountInItemAnyOf.ts +12 -0
  52. package/src/enso-api/model/ensoFeeActionDto.ts +17 -0
  53. package/src/enso-api/model/ensoFeeArgsDto.ts +20 -0
  54. package/src/enso-api/model/ensoFeeArgsDtoAmount.ts +16 -0
  55. package/src/enso-api/model/feeActionDto.ts +17 -0
  56. package/src/enso-api/model/feeArgsDto.ts +22 -0
  57. package/src/enso-api/model/feeArgsDtoAmount.ts +16 -0
  58. package/src/enso-api/model/harvestActionDto.ts +19 -0
  59. package/src/enso-api/model/harvestArgsDto.ts +17 -0
  60. package/src/enso-api/model/index.ts +115 -4
  61. package/src/enso-api/model/mergeActionDto.ts +17 -0
  62. package/src/enso-api/model/mergeArgsDto.ts +22 -0
  63. package/src/enso-api/model/mergeArgsDtoAmountInItem.ts +13 -0
  64. package/src/enso-api/model/minAmountOutActionDto.ts +17 -0
  65. package/src/enso-api/model/minAmountOutArgsDto.ts +19 -0
  66. package/src/enso-api/model/minAmountOutArgsDtoAmountOut.ts +16 -0
  67. package/src/enso-api/model/minAmountOutArgsDtoMinAmountOut.ts +16 -0
  68. package/src/enso-api/model/multiDepositActionDto.ts +18 -0
  69. package/src/enso-api/model/multiDepositArgsDto.ts +24 -0
  70. package/src/enso-api/model/multiDepositArgsDtoAmountInItem.ts +17 -0
  71. package/src/enso-api/model/multiDepositArgsDtoAmountInItemAnyOf.ts +12 -0
  72. package/src/enso-api/model/multiOutSingleDepositActionDto.ts +18 -0
  73. package/src/enso-api/model/multiOutSingleDepositArgsDto.ts +24 -0
  74. package/src/enso-api/model/multiOutSingleDepositArgsDtoAmountIn.ts +16 -0
  75. package/src/enso-api/model/multiRedeemActionDto.ts +18 -0
  76. package/src/enso-api/model/multiRedeemArgs2Dto.ts +24 -0
  77. package/src/enso-api/model/multiRedeemArgs2DtoAmountIn.ts +16 -0
  78. package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts +8 -0
  79. package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy.ts +1 -0
  80. package/src/enso-api/model/nontokenizedRouteShortcutTransaction.ts +31 -0
  81. package/src/enso-api/model/paymasterFeeActionDto.ts +17 -0
  82. package/src/enso-api/model/paymasterFeeArgsDto.ts +18 -0
  83. package/src/enso-api/model/paymasterFeeArgsDtoAmount.ts +16 -0
  84. package/src/enso-api/model/permitTransferFromActionDto.ts +18 -0
  85. package/src/enso-api/model/permitTransferFromArgsDto.ts +29 -0
  86. package/src/enso-api/model/permitTransferFromArgsDtoAmount.ts +20 -0
  87. package/src/enso-api/model/permitTransferFromArgsDtoAmountOneOfItem.ts +13 -0
  88. package/src/enso-api/model/permitTransferFromArgsDtoToken.ts +15 -0
  89. package/src/enso-api/model/positionModel.ts +14 -0
  90. package/src/enso-api/model/redeemActionDto.ts +18 -0
  91. package/src/enso-api/model/redeemArgsDto.ts +25 -0
  92. package/src/enso-api/model/redeemArgsDtoAmountIn.ts +16 -0
  93. package/src/enso-api/model/redeemArgsDtoTokenOut.ts +15 -0
  94. package/src/enso-api/model/redeemCLMMActionDto.ts +18 -0
  95. package/src/enso-api/model/redeemCLMMArgsDto.ts +24 -0
  96. package/src/enso-api/model/redeemCLMMArgsDtoLiquidity.ts +16 -0
  97. package/src/enso-api/model/repayActionDto.ts +18 -0
  98. package/src/enso-api/model/repayArgsDto.ts +22 -0
  99. package/src/enso-api/model/repayArgsDtoAmountIn.ts +16 -0
  100. package/src/enso-api/model/routeActionDto.ts +20 -0
  101. package/src/enso-api/model/routeArgsDto.ts +38 -0
  102. package/src/enso-api/model/routeArgsDtoAmountIn.ts +16 -0
  103. package/src/enso-api/model/singleDepositActionDto.ts +18 -0
  104. package/src/enso-api/model/singleDepositArgsDto.ts +24 -0
  105. package/src/enso-api/model/singleDepositArgsDtoAmountIn.ts +16 -0
  106. package/src/enso-api/model/singleRedeemActionDto.ts +18 -0
  107. package/src/enso-api/model/singleRedeemArgs2Dto.ts +24 -0
  108. package/src/enso-api/model/singleRedeemArgs2DtoAmountIn.ts +16 -0
  109. package/src/enso-api/model/slippageActionDto.ts +17 -0
  110. package/src/enso-api/model/slippageArgsDto.ts +18 -0
  111. package/src/enso-api/model/slippageArgsDtoAmountOut.ts +16 -0
  112. package/src/enso-api/model/splitActionDto.ts +17 -0
  113. package/src/enso-api/model/splitArgsDto.ts +22 -0
  114. package/src/enso-api/model/splitArgsDtoAmountIn.ts +16 -0
  115. package/src/enso-api/model/swapActionDto.ts +18 -0
  116. package/src/enso-api/model/swapArgsDto.ts +30 -0
  117. package/src/enso-api/model/swapArgsDtoAmountIn.ts +16 -0
  118. package/src/enso-api/model/tokenizedMultiDepositActionDto.ts +18 -0
  119. package/src/enso-api/model/tokenizedMultiDepositArgsDto.ts +24 -0
  120. package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItem.ts +17 -0
  121. package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItemAnyOf.ts +14 -0
  122. package/src/enso-api/model/tokenizedMultiRedeemActionDto.ts +18 -0
  123. package/src/enso-api/model/tokenizedMultiRedeemArgsDto.ts +24 -0
  124. package/src/enso-api/model/tokenizedMultiRedeemArgsDtoAmountIn.ts +16 -0
  125. package/src/enso-api/model/tokenizedSingleDepositActionDto.ts +18 -0
  126. package/src/enso-api/model/tokenizedSingleDepositArgsDto.ts +24 -0
  127. package/src/enso-api/model/tokenizedSingleDepositArgsDtoAmountIn.ts +16 -0
  128. package/src/enso-api/model/tokenizedSingleRedeemActionDto.ts +18 -0
  129. package/src/enso-api/model/tokenizedSingleRedeemArgsDto.ts +24 -0
  130. package/src/enso-api/model/tokenizedSingleRedeemArgsDtoAmountIn.ts +16 -0
  131. package/src/enso-api/model/tokensControllerTokensLiquidityType.ts +19 -0
  132. package/src/enso-api/model/tokensControllerTokensParams.ts +6 -0
  133. package/src/enso-api/model/transferActionDto.ts +18 -0
  134. package/src/enso-api/model/transferArgsDto.ts +22 -0
  135. package/src/enso-api/model/transferArgsDtoAmount.ts +16 -0
  136. package/src/enso-api/model/transferFromActionDto.ts +18 -0
  137. package/src/enso-api/model/transferFromArgsDto.ts +24 -0
  138. package/src/enso-api/model/transferFromArgsDtoAmount.ts +16 -0
  139. package/src/index.ts +1 -0
  140. package/src/store.ts +12 -5
  141. package/src/types/index.ts +9 -3
  142. package/src/util/common.tsx +2 -0
  143. package/src/util/enso-hooks.tsx +72 -11
@@ -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 { PermitTransferFromArgsDtoAmountOneOfItem } from "./permitTransferFromArgsDtoAmountOneOfItem";
13
+
14
+ /**
15
+ * Amount(s) (or previous output references)
16
+ */
17
+ export type PermitTransferFromArgsDtoAmount =
18
+ | string
19
+ | CallOutput
20
+ | PermitTransferFromArgsDtoAmountOneOfItem[];
@@ -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 PermitTransferFromArgsDtoAmountOneOfItem = 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
+ * Token(s) to transfer
14
+ */
15
+ export type PermitTransferFromArgsDtoToken = string | string[];
@@ -49,6 +49,10 @@ export interface PositionModel {
49
49
  * @nullable
50
50
  */
51
51
  protocolSlug: string | null;
52
+ /** Type of liquidity for deposits */
53
+ depositType: number;
54
+ /** Type of liquidity for redeems */
55
+ redeemType: number;
52
56
  /**
53
57
  * The defi position APY
54
58
  * @nullable
@@ -64,6 +68,16 @@ export interface PositionModel {
64
68
  * @nullable
65
69
  */
66
70
  apyReward: number | null;
71
+ /**
72
+ * The defi position base borrow APY
73
+ * @nullable
74
+ */
75
+ borrowApyBase: number | null;
76
+ /**
77
+ * The defi position reward borrow APY
78
+ * @nullable
79
+ */
80
+ borrowApyReward: number | null;
67
81
  /**
68
82
  * The defi position TVL
69
83
  * @nullable
@@ -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 { RedeemArgsDto } from "./redeemArgsDto";
12
+
13
+ export interface RedeemActionDto {
14
+ /** Protocol */
15
+ protocol: string;
16
+ action: string;
17
+ args: RedeemArgsDto;
18
+ }
@@ -0,0 +1,25 @@
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 { RedeemArgsDtoTokenOut } from "./redeemArgsDtoTokenOut";
12
+ import type { RedeemArgsDtoAmountIn } from "./redeemArgsDtoAmountIn";
13
+
14
+ export interface RedeemArgsDto {
15
+ /** Input token (shares) address */
16
+ tokenIn?: string;
17
+ /** Output token(s) */
18
+ tokenOut: RedeemArgsDtoTokenOut;
19
+ /** Amount to redeem (or previous output reference) */
20
+ amountIn: RedeemArgsDtoAmountIn;
21
+ /** Protocol contract address */
22
+ primaryAddress: string;
23
+ /** Receiver address */
24
+ receiver?: string;
25
+ }
@@ -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 redeem (or previous output reference)
15
+ */
16
+ export type RedeemArgsDtoAmountIn = 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
+ * Output token(s)
14
+ */
15
+ export type RedeemArgsDtoTokenOut = 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 { RedeemCLMMArgsDto } from "./redeemCLMMArgsDto";
12
+
13
+ export interface RedeemCLMMActionDto {
14
+ /** Protocol */
15
+ protocol: string;
16
+ action: string;
17
+ args: RedeemCLMMArgsDto;
18
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { RedeemCLMMArgsDtoLiquidity } from "./redeemCLMMArgsDtoLiquidity";
12
+
13
+ export interface RedeemCLMMArgsDto {
14
+ /** Input token address to redeem */
15
+ tokenIn: string;
16
+ /** Output token addresses */
17
+ tokenOut: string[];
18
+ /** Liquidity to redeem (or previous output reference) */
19
+ liquidity: RedeemCLMMArgsDtoLiquidity;
20
+ /** Token ID of the NFT position */
21
+ tokenId: string;
22
+ /** Receiver address */
23
+ receiver?: string;
24
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { CallOutput } from "./callOutput";
12
+
13
+ /**
14
+ * Liquidity to redeem (or previous output reference)
15
+ */
16
+ export type RedeemCLMMArgsDtoLiquidity = string | CallOutput;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { RepayArgsDto } from "./repayArgsDto";
12
+
13
+ export interface RepayActionDto {
14
+ action: string;
15
+ /** Protocol */
16
+ protocol: string;
17
+ args: RepayArgsDto;
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 { RepayArgsDtoAmountIn } from "./repayArgsDtoAmountIn";
12
+
13
+ export interface RepayArgsDto {
14
+ /** Token to repay with */
15
+ tokenIn: string;
16
+ /** Amount to repay (or previous output reference) */
17
+ amountIn: RepayArgsDtoAmountIn;
18
+ /** Lending pool contract address */
19
+ primaryAddress: string;
20
+ /** Address on whose behalf the debt is repaid */
21
+ onBehalfOf?: 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 repay (or previous output reference)
15
+ */
16
+ export type RepayArgsDtoAmountIn = string | CallOutput;
@@ -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 { RouteArgsDto } from "./routeArgsDto";
12
+
13
+ export interface RouteActionDto {
14
+ /** Protocol */
15
+ protocol: string;
16
+ /** Action */
17
+ action: string;
18
+ /** Route action arguments */
19
+ args: RouteArgsDto;
20
+ }
@@ -0,0 +1,38 @@
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 { RouteArgsDtoAmountIn } from "./routeArgsDtoAmountIn";
12
+
13
+ export interface RouteArgsDto {
14
+ /** Input token address */
15
+ tokenIn: string;
16
+ /** Output token address */
17
+ tokenOut: string;
18
+ /** Amount to route in wei (or previous output reference) */
19
+ amountIn: RouteArgsDtoAmountIn;
20
+ /** Slippage tolerance in basis points (100 = 1%) */
21
+ slippage?: string;
22
+ /** Receiver address if not the caller */
23
+ receiver?: string;
24
+ /** Optional router/primary contract address */
25
+ primaryAddress?: string;
26
+ /** Optional pool fee in basis points */
27
+ poolFee?: string;
28
+ /** Minimum acceptable amount out */
29
+ minAmountOut?: string;
30
+ /** Fee in basis points applied to output */
31
+ fee?: string;
32
+ /** Fee receiver address */
33
+ feeReceiver?: string;
34
+ /** Aggregators to ignore */
35
+ ignoreAggregators?: string[];
36
+ /** Standards to ignore */
37
+ ignoreStandards?: string[];
38
+ }
@@ -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 route in wei (or previous output reference)
15
+ */
16
+ export type RouteArgsDtoAmountIn = string | CallOutput;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { SingleDepositArgsDto } from "./singleDepositArgsDto";
12
+
13
+ export interface SingleDepositActionDto {
14
+ /** Protocol */
15
+ protocol: string;
16
+ action: string;
17
+ args: SingleDepositArgsDto;
18
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { SingleDepositArgsDtoAmountIn } from "./singleDepositArgsDtoAmountIn";
12
+
13
+ export interface SingleDepositArgsDto {
14
+ /** Input token */
15
+ tokenIn: string;
16
+ /** Output token */
17
+ tokenOut?: string;
18
+ /** Amount (or previous output reference) */
19
+ amountIn: SingleDepositArgsDtoAmountIn;
20
+ /** Primary contract */
21
+ primaryAddress: string;
22
+ /** Receiver address */
23
+ receiver?: string;
24
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { CallOutput } from "./callOutput";
12
+
13
+ /**
14
+ * Amount (or previous output reference)
15
+ */
16
+ export type SingleDepositArgsDtoAmountIn = string | CallOutput;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { SingleRedeemArgs2Dto } from "./singleRedeemArgs2Dto";
12
+
13
+ export interface SingleRedeemActionDto {
14
+ /** Protocol */
15
+ protocol: string;
16
+ action: string;
17
+ args: SingleRedeemArgs2Dto;
18
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { SingleRedeemArgs2DtoAmountIn } from "./singleRedeemArgs2DtoAmountIn";
12
+
13
+ export interface SingleRedeemArgs2Dto {
14
+ /** Input token */
15
+ tokenIn?: string;
16
+ /** Output token */
17
+ tokenOut: string;
18
+ /** Amount (or previous output reference) */
19
+ amountIn: SingleRedeemArgs2DtoAmountIn;
20
+ /** Primary contract */
21
+ primaryAddress: string;
22
+ /** Receiver address */
23
+ receiver?: string;
24
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { CallOutput } from "./callOutput";
12
+
13
+ /**
14
+ * Amount (or previous output reference)
15
+ */
16
+ export type SingleRedeemArgs2DtoAmountIn = 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 { SlippageArgsDto } from "./slippageArgsDto";
12
+
13
+ export interface SlippageActionDto {
14
+ protocol: string;
15
+ action: string;
16
+ args: SlippageArgsDto;
17
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { SlippageArgsDtoAmountOut } from "./slippageArgsDtoAmountOut";
12
+
13
+ export interface SlippageArgsDto {
14
+ /** Maximum slippage in basis points */
15
+ bps: string;
16
+ /** Expected output amount reference */
17
+ amountOut: SlippageArgsDtoAmountOut;
18
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { CallOutput } from "./callOutput";
12
+
13
+ /**
14
+ * Expected output amount reference
15
+ */
16
+ export type SlippageArgsDtoAmountOut = 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 { SplitArgsDto } from "./splitArgsDto";
12
+
13
+ export interface SplitActionDto {
14
+ protocol: string;
15
+ action: string;
16
+ args: SplitArgsDto;
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 { SplitArgsDtoAmountIn } from "./splitArgsDtoAmountIn";
12
+
13
+ export interface SplitArgsDto {
14
+ /** Token to split */
15
+ tokenIn: string;
16
+ /** Output token addresses */
17
+ tokenOut: string[];
18
+ /** Amount to split (or previous output reference) */
19
+ amountIn: SplitArgsDtoAmountIn;
20
+ /** Receiver address */
21
+ receiver?: 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 split (or previous output reference)
15
+ */
16
+ export type SplitArgsDtoAmountIn = string | CallOutput;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v7.11.1 🍺
3
+ * Do not edit manually.
4
+ * #### Enso API
5
+ - Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
6
+ - To use the API, **you must include your API Key in the Authorization header** (Bearer format).
7
+ - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
8
+ - Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
9
+ * OpenAPI spec version: 1.0
10
+ */
11
+ import type { SwapArgsDto } from "./swapArgsDto";
12
+
13
+ export interface SwapActionDto {
14
+ /** Protocol */
15
+ protocol: string;
16
+ action: string;
17
+ args: SwapArgsDto;
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 { SwapArgsDtoAmountIn } from "./swapArgsDtoAmountIn";
12
+
13
+ export interface SwapArgsDto {
14
+ /** Input token address */
15
+ tokenIn: string;
16
+ /** Output token address */
17
+ tokenOut: string;
18
+ /** Amount to swap (or previous output reference) */
19
+ amountIn: SwapArgsDtoAmountIn;
20
+ /** Router or pool contract address */
21
+ primaryAddress?: string;
22
+ /** Receiver address */
23
+ receiver: string;
24
+ /** Slippage in basis points */
25
+ slippage?: string;
26
+ /** Pool fee in basis points */
27
+ poolFee?: string;
28
+ /** Pool identifier (if protocol-specific) */
29
+ poolId?: string;
30
+ }