@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
@@ -28,7 +28,7 @@ import { useCallback } from "react";
28
28
 
29
29
  import type {
30
30
  Action,
31
- ActionToBundle,
31
+ BundleControllerBundleShortcutTransactionBodyItem,
32
32
  BundleControllerBundleShortcutTransactionParams,
33
33
  BundleShortcutTransaction,
34
34
  ConnectedNetwork,
@@ -41,6 +41,7 @@ import type {
41
41
  NonTokenizedControllerTokens200,
42
42
  NonTokenizedControllerTokensParams,
43
43
  NontokenizedControllerRouteNontokenizedShorcutTransactionParams,
44
+ NontokenizedRouteShortcutTransaction,
44
45
  Price,
45
46
  PricesControllerGetPricesParams,
46
47
  Project,
@@ -122,13 +123,7 @@ export const useNetworksControllerNetworksQueryOptions = <
122
123
  >
123
124
  > = ({ signal }) => networksControllerNetworks(params, signal);
124
125
 
125
- return {
126
- queryKey,
127
- queryFn,
128
- refetchInterval: 30000,
129
- retry: 2,
130
- ...queryOptions,
131
- } as UseQueryOptions<
126
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
132
127
  Awaited<
133
128
  ReturnType<ReturnType<typeof useNetworksControllerNetworksHook>>
134
129
  >,
@@ -354,8 +349,6 @@ export const usePricesControllerGetPriceQueryOptions = <
354
349
  queryKey,
355
350
  queryFn,
356
351
  enabled: !!(chainId && address),
357
- refetchInterval: 30000,
358
- retry: 2,
359
352
  ...queryOptions,
360
353
  } as UseQueryOptions<
361
354
  Awaited<ReturnType<ReturnType<typeof usePricesControllerGetPriceHook>>>,
@@ -592,8 +585,6 @@ export const usePricesControllerGetPricesQueryOptions = <
592
585
  queryKey,
593
586
  queryFn,
594
587
  enabled: !!chainId,
595
- refetchInterval: 30000,
596
- retry: 2,
597
588
  ...queryOptions,
598
589
  } as UseQueryOptions<
599
590
  Awaited<
@@ -817,13 +808,7 @@ export const useAggregatorsControllerAggregatorsQueryOptions = <
817
808
  >
818
809
  > = ({ signal }) => aggregatorsControllerAggregators(signal);
819
810
 
820
- return {
821
- queryKey,
822
- queryFn,
823
- refetchInterval: 30000,
824
- retry: 2,
825
- ...queryOptions,
826
- } as UseQueryOptions<
811
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
827
812
  Awaited<
828
813
  ReturnType<
829
814
  ReturnType<typeof useAggregatorsControllerAggregatorsHook>
@@ -1049,13 +1034,7 @@ export const useAccountControllerAccountIdQueryOptions = <
1049
1034
  >
1050
1035
  > = ({ signal }) => accountControllerAccountId(signal);
1051
1036
 
1052
- return {
1053
- queryKey,
1054
- queryFn,
1055
- refetchInterval: 30000,
1056
- retry: 2,
1057
- ...queryOptions,
1058
- } as UseQueryOptions<
1037
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
1059
1038
  Awaited<
1060
1039
  ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1061
1040
  >,
@@ -1267,13 +1246,7 @@ export const useTokensControllerTokensQueryOptions = <
1267
1246
  Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>
1268
1247
  > = ({ signal }) => tokensControllerTokens(params, signal);
1269
1248
 
1270
- return {
1271
- queryKey,
1272
- queryFn,
1273
- refetchInterval: 30000,
1274
- retry: 2,
1275
- ...queryOptions,
1276
- } as UseQueryOptions<
1249
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
1277
1250
  Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>,
1278
1251
  TError,
1279
1252
  TData
@@ -1498,13 +1471,7 @@ export const useRouterControllerRouteShortcutTransactionQueryOptions = <
1498
1471
  > = ({ signal }) =>
1499
1472
  routerControllerRouteShortcutTransaction(params, signal);
1500
1473
 
1501
- return {
1502
- queryKey,
1503
- queryFn,
1504
- refetchInterval: 30000,
1505
- retry: 2,
1506
- ...queryOptions,
1507
- } as UseQueryOptions<
1474
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
1508
1475
  Awaited<
1509
1476
  ReturnType<
1510
1477
  ReturnType<
@@ -1842,7 +1809,7 @@ export const useRouterControllerPostRouteShortcutTransaction = <
1842
1809
  export const useNontokenizedControllerRouteNontokenizedShorcutTransactionHook =
1843
1810
  () => {
1844
1811
  const nontokenizedControllerRouteNontokenizedShorcutTransaction =
1845
- useCustomClient<RouteShortcutTransaction>();
1812
+ useCustomClient<NontokenizedRouteShortcutTransaction>();
1846
1813
 
1847
1814
  return useCallback(
1848
1815
  (
@@ -1925,13 +1892,7 @@ export const useNontokenizedControllerRouteNontokenizedShorcutTransactionQueryOp
1925
1892
  signal,
1926
1893
  );
1927
1894
 
1928
- return {
1929
- queryKey,
1930
- queryFn,
1931
- refetchInterval: 30000,
1932
- retry: 2,
1933
- ...queryOptions,
1934
- } as UseQueryOptions<
1895
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
1935
1896
  Awaited<
1936
1897
  ReturnType<
1937
1898
  ReturnType<
@@ -2214,13 +2175,7 @@ export const useWalletControllerCreateApproveTransactionQueryOptions = <
2214
2175
  > = ({ signal }) =>
2215
2176
  walletControllerCreateApproveTransaction(params, signal);
2216
2177
 
2217
- return {
2218
- queryKey,
2219
- queryFn,
2220
- refetchInterval: 30000,
2221
- retry: 2,
2222
- ...queryOptions,
2223
- } as UseQueryOptions<
2178
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
2224
2179
  Awaited<
2225
2180
  ReturnType<
2226
2181
  ReturnType<
@@ -2482,13 +2437,7 @@ export const useWalletControllerWalletBalancesQueryOptions = <
2482
2437
  >
2483
2438
  > = ({ signal }) => walletControllerWalletBalances(params, signal);
2484
2439
 
2485
- return {
2486
- queryKey,
2487
- queryFn,
2488
- refetchInterval: 30000,
2489
- retry: 2,
2490
- ...queryOptions,
2491
- } as UseQueryOptions<
2440
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
2492
2441
  Awaited<
2493
2442
  ReturnType<ReturnType<typeof useWalletControllerWalletBalancesHook>>
2494
2443
  >,
@@ -2708,13 +2657,7 @@ export const useActionsControllerFindAllQueryOptions = <
2708
2657
  Awaited<ReturnType<ReturnType<typeof useActionsControllerFindAllHook>>>
2709
2658
  > = ({ signal }) => actionsControllerFindAll(signal);
2710
2659
 
2711
- return {
2712
- queryKey,
2713
- queryFn,
2714
- refetchInterval: 30000,
2715
- retry: 2,
2716
- ...queryOptions,
2717
- } as UseQueryOptions<
2660
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
2718
2661
  Awaited<ReturnType<ReturnType<typeof useActionsControllerFindAllHook>>>,
2719
2662
  TError,
2720
2663
  TData
@@ -2932,8 +2875,6 @@ export const useActionsControllerGetActionsBySlugQueryOptions = <
2932
2875
  queryKey,
2933
2876
  queryFn,
2934
2877
  enabled: !!slug,
2935
- refetchInterval: 30000,
2936
- retry: 2,
2937
2878
  ...queryOptions,
2938
2879
  } as UseQueryOptions<
2939
2880
  Awaited<
@@ -3169,13 +3110,7 @@ export const useStandardsControllerStandardsQueryOptions = <
3169
3110
  >
3170
3111
  > = ({ signal }) => standardsControllerStandards(signal);
3171
3112
 
3172
- return {
3173
- queryKey,
3174
- queryFn,
3175
- refetchInterval: 30000,
3176
- retry: 2,
3177
- ...queryOptions,
3178
- } as UseQueryOptions<
3113
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
3179
3114
  Awaited<
3180
3115
  ReturnType<ReturnType<typeof useStandardsControllerStandardsHook>>
3181
3116
  >,
@@ -3408,8 +3343,6 @@ export const useStandardsControllerGetProtocolBySlugQueryOptions = <
3408
3343
  queryKey,
3409
3344
  queryFn,
3410
3345
  enabled: !!slug,
3411
- refetchInterval: 30000,
3412
- retry: 2,
3413
3346
  ...queryOptions,
3414
3347
  } as UseQueryOptions<
3415
3348
  Awaited<
@@ -3611,7 +3544,9 @@ export const useBundleControllerBundleShortcutTransactionHook = () => {
3611
3544
 
3612
3545
  return useCallback(
3613
3546
  (
3614
- actionToBundle: BodyType<ActionToBundle[]>,
3547
+ bundleControllerBundleShortcutTransactionBodyItem: BodyType<
3548
+ BundleControllerBundleShortcutTransactionBodyItem[]
3549
+ >,
3615
3550
  params: BundleControllerBundleShortcutTransactionParams,
3616
3551
  signal?: AbortSignal,
3617
3552
  ) => {
@@ -3619,7 +3554,7 @@ export const useBundleControllerBundleShortcutTransactionHook = () => {
3619
3554
  url: `https://api.enso.finance/api/v1/shortcuts/bundle`,
3620
3555
  method: "POST",
3621
3556
  headers: { "Content-Type": "application/json" },
3622
- data: actionToBundle,
3557
+ data: bundleControllerBundleShortcutTransactionBodyItem,
3623
3558
  params,
3624
3559
  signal,
3625
3560
  });
@@ -3642,7 +3577,7 @@ export const useBundleControllerBundleShortcutTransactionMutationOptions = <
3642
3577
  >,
3643
3578
  TError,
3644
3579
  {
3645
- data: BodyType<ActionToBundle[]>;
3580
+ data: BodyType<BundleControllerBundleShortcutTransactionBodyItem[]>;
3646
3581
  params: BundleControllerBundleShortcutTransactionParams;
3647
3582
  },
3648
3583
  TContext
@@ -3655,7 +3590,7 @@ export const useBundleControllerBundleShortcutTransactionMutationOptions = <
3655
3590
  >,
3656
3591
  TError,
3657
3592
  {
3658
- data: BodyType<ActionToBundle[]>;
3593
+ data: BodyType<BundleControllerBundleShortcutTransactionBodyItem[]>;
3659
3594
  params: BundleControllerBundleShortcutTransactionParams;
3660
3595
  },
3661
3596
  TContext
@@ -3681,7 +3616,7 @@ export const useBundleControllerBundleShortcutTransactionMutationOptions = <
3681
3616
  >
3682
3617
  >,
3683
3618
  {
3684
- data: BodyType<ActionToBundle[]>;
3619
+ data: BodyType<BundleControllerBundleShortcutTransactionBodyItem[]>;
3685
3620
  params: BundleControllerBundleShortcutTransactionParams;
3686
3621
  }
3687
3622
  > = (props) => {
@@ -3704,7 +3639,7 @@ export type BundleControllerBundleShortcutTransactionMutationResult =
3704
3639
  >
3705
3640
  >;
3706
3641
  export type BundleControllerBundleShortcutTransactionMutationBody = BodyType<
3707
- ActionToBundle[]
3642
+ BundleControllerBundleShortcutTransactionBodyItem[]
3708
3643
  >;
3709
3644
  export type BundleControllerBundleShortcutTransactionMutationError =
3710
3645
  ErrorType<unknown>;
@@ -3727,7 +3662,9 @@ export const useBundleControllerBundleShortcutTransaction = <
3727
3662
  >,
3728
3663
  TError,
3729
3664
  {
3730
- data: BodyType<ActionToBundle[]>;
3665
+ data: BodyType<
3666
+ BundleControllerBundleShortcutTransactionBodyItem[]
3667
+ >;
3731
3668
  params: BundleControllerBundleShortcutTransactionParams;
3732
3669
  },
3733
3670
  TContext
@@ -3742,7 +3679,7 @@ export const useBundleControllerBundleShortcutTransaction = <
3742
3679
  >,
3743
3680
  TError,
3744
3681
  {
3745
- data: BodyType<ActionToBundle[]>;
3682
+ data: BodyType<BundleControllerBundleShortcutTransactionBodyItem[]>;
3746
3683
  params: BundleControllerBundleShortcutTransactionParams;
3747
3684
  },
3748
3685
  TContext
@@ -3960,13 +3897,7 @@ export const useNonTokenizedControllerTokensQueryOptions = <
3960
3897
  >
3961
3898
  > = ({ signal }) => nonTokenizedControllerTokens(params, signal);
3962
3899
 
3963
- return {
3964
- queryKey,
3965
- queryFn,
3966
- refetchInterval: 30000,
3967
- retry: 2,
3968
- ...queryOptions,
3969
- } as UseQueryOptions<
3900
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
3970
3901
  Awaited<
3971
3902
  ReturnType<ReturnType<typeof useNonTokenizedControllerTokensHook>>
3972
3903
  >,
@@ -4188,13 +4119,7 @@ export const useProjectsControllerStandardsQueryOptions = <
4188
4119
  >
4189
4120
  > = ({ signal }) => projectsControllerStandards(signal);
4190
4121
 
4191
- return {
4192
- queryKey,
4193
- queryFn,
4194
- refetchInterval: 30000,
4195
- retry: 2,
4196
- ...queryOptions,
4197
- } as UseQueryOptions<
4122
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
4198
4123
  Awaited<
4199
4124
  ReturnType<ReturnType<typeof useProjectsControllerStandardsHook>>
4200
4125
  >,
@@ -4432,8 +4357,6 @@ export const useProjectsControllerGetStandardsByProjectQueryOptions = <
4432
4357
  queryKey,
4433
4358
  queryFn,
4434
4359
  enabled: !!project,
4435
- refetchInterval: 30000,
4436
- retry: 2,
4437
4360
  ...queryOptions,
4438
4361
  } as UseQueryOptions<
4439
4362
  Awaited<
@@ -4691,13 +4614,7 @@ export const useProtocolsControllerFindAllQueryOptions = <
4691
4614
  >
4692
4615
  > = ({ signal }) => protocolsControllerFindAll(params, signal);
4693
4616
 
4694
- return {
4695
- queryKey,
4696
- queryFn,
4697
- refetchInterval: 30000,
4698
- retry: 2,
4699
- ...queryOptions,
4700
- } as UseQueryOptions<
4617
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
4701
4618
  Awaited<
4702
4619
  ReturnType<ReturnType<typeof useProtocolsControllerFindAllHook>>
4703
4620
  >,
@@ -4931,13 +4848,7 @@ export const useLayerZeroControllerGetPoolAddressQueryOptions = <
4931
4848
  >
4932
4849
  > = ({ signal }) => layerZeroControllerGetPoolAddress(params, signal);
4933
4850
 
4934
- return {
4935
- queryKey,
4936
- queryFn,
4937
- refetchInterval: 30000,
4938
- retry: 2,
4939
- ...queryOptions,
4940
- } as UseQueryOptions<
4851
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
4941
4852
  Awaited<
4942
4853
  ReturnType<
4943
4854
  ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>
@@ -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 { ApproveArgsDto } from "./approveArgsDto";
12
+
13
+ export interface ApproveActionDto {
14
+ protocol: string;
15
+ action: string;
16
+ args: ApproveArgsDto;
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 { ApproveArgsDtoAmount } from "./approveArgsDtoAmount";
12
+
13
+ export interface ApproveArgsDto {
14
+ /** Token to approve */
15
+ token: string;
16
+ /** Spender address */
17
+ spender: string;
18
+ /** Amount to approve in wei (or previous output reference) */
19
+ amount: ApproveArgsDtoAmount;
20
+ /** Routing strategy (must be router) */
21
+ routingStrategy?: 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 approve in wei (or previous output reference)
15
+ */
16
+ export type ApproveArgsDtoAmount = 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 { BalanceArgsDto } from "./balanceArgsDto";
12
+
13
+ export interface BalanceActionDto {
14
+ protocol: string;
15
+ action: string;
16
+ args: BalanceArgsDto;
17
+ }
@@ -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 BalanceArgsDto {
13
+ /** Token address to check balance */
14
+ token: string;
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 { 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;