@luxexchange/api 1.0.1 → 1.0.3

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 (315) hide show
  1. package/.depcheckrc +16 -0
  2. package/.eslintrc.js +30 -0
  3. package/package.json +12 -15
  4. package/project.json +3 -3
  5. package/src/clients/auctions/createAuctionServiceClient.ts +2 -2
  6. package/src/clients/base/SharedQueryClient.ts +1 -1
  7. package/src/clients/base/auth.ts +1 -1
  8. package/src/clients/base/createFetchClient.ts +2 -2
  9. package/src/clients/base/errors.test.ts +1 -1
  10. package/src/clients/base/types.ts +1 -1
  11. package/src/clients/base/urls.test.ts +44 -44
  12. package/src/clients/base/urls.ts +20 -12
  13. package/src/clients/base/utils.test.ts +2 -2
  14. package/src/clients/base/utils.ts +1 -1
  15. package/src/clients/blockaid/createBlockaidApiClient.ts +2 -2
  16. package/src/clients/compliance/createComplianceApiClient.ts +2 -2
  17. package/src/clients/content/types.ts +1 -1
  18. package/src/clients/conversionTracking/api-ConversionProxyService_connectquery.ts +1 -1
  19. package/src/clients/conversionTracking/api_connect.ts +1 -1
  20. package/src/clients/conversionTracking/index.ts +3 -3
  21. package/src/clients/data/createDataServiceApiClient.ts +1 -1
  22. package/src/clients/dataApi/createDataApiServiceClient.ts +2 -2
  23. package/src/clients/dataApi/getGetPortfolioQueryOptions.test.ts +3 -3
  24. package/src/clients/dataApi/getGetPortfolioQueryOptions.ts +3 -3
  25. package/src/clients/embeddedWallet/createEmbeddedWalletApiClient.ts +5 -5
  26. package/src/clients/for/createForApiClient.ts +5 -5
  27. package/src/clients/for/types.ts +1 -1
  28. package/src/clients/gasService/createGasServiceClient.ts +2 -2
  29. package/src/clients/graphql/codegen.config.ts +1 -1
  30. package/src/clients/graphql/fragments.ts +3 -3
  31. package/src/clients/graphql/generated.ts +3 -0
  32. package/src/clients/graphql/web/{LuxPrices.graphql → UniswapPrices.graphql} +1 -1
  33. package/src/clients/jupiter/createJupiterApiClient.ts +3 -3
  34. package/src/clients/jupiter/utils.ts +1 -1
  35. package/src/clients/liquidity/createAuctionMutationClient.ts +2 -2
  36. package/src/clients/liquidity/createLiquidityServiceClient.ts +2 -2
  37. package/src/clients/lux/createLuxApiClient.ts +4 -4
  38. package/src/clients/notifications/createNotificationsApiClient.ts +4 -4
  39. package/src/clients/notifications/types.ts +9 -9
  40. package/src/clients/trading/createTradingApiClient.ts +6 -6
  41. package/src/clients/trading/tradeTypes.ts +2 -2
  42. package/src/clients/trading/types.ts +3 -3
  43. package/src/clients/uniswap/createUniswapApiClient.ts +83 -0
  44. package/src/clients/unitags/createUnitagsApiClient.test.ts +7 -7
  45. package/src/clients/unitags/createUnitagsApiClient.ts +4 -4
  46. package/src/clients/x/createXVerificationServiceClient.ts +2 -2
  47. package/src/components/ApiInit.test.tsx +12 -12
  48. package/src/components/ApiInit.tsx +3 -3
  49. package/src/connectRpc/utils.ts +4 -4
  50. package/src/getEntryGatewayUrl.ts +2 -2
  51. package/src/getWebSocketUrl.ts +2 -2
  52. package/src/hooks/useIsSessionInitialized.ts +1 -1
  53. package/src/index.ts +68 -66
  54. package/src/provideDeviceIdService.ts +3 -3
  55. package/src/provideLuxIdentifierService.ts +2 -25
  56. package/src/provideSessionService.native.ts +7 -7
  57. package/src/provideSessionService.ts +3 -3
  58. package/src/provideSessionService.web.ts +12 -12
  59. package/src/provideSessionStorage.ts +3 -3
  60. package/src/provideUniswapIdentifierService.ts +25 -0
  61. package/src/session/createSessionTransport.test.ts +2 -2
  62. package/src/session/createSessionTransport.ts +6 -6
  63. package/src/session/createWithSessionRetry.ts +1 -1
  64. package/src/session/index.ts +1 -1
  65. package/src/storage/createExtensionStorageDriver.ts +1 -1
  66. package/src/storage/createNativeStorageDriver.ts +1 -1
  67. package/src/storage/createWebStorageDriver.ts +1 -1
  68. package/src/storage/getStorageDriver.native.ts +2 -2
  69. package/src/storage/getStorageDriver.ts +2 -2
  70. package/src/storage/getStorageDriver.web.ts +3 -3
  71. package/src/transport.ts +2 -2
  72. package/stubs/privy-service-connect.d.ts +1 -1
  73. package/stubs/privy-service-pb.d.ts +1 -1
  74. package/tsconfig.json +12 -4
  75. package/dist/client.d.ts +0 -22
  76. package/dist/client.d.ts.map +0 -1
  77. package/dist/client.js +0 -56
  78. package/dist/hooks/index.d.ts +0 -6
  79. package/dist/hooks/index.d.ts.map +0 -1
  80. package/dist/hooks/index.js +0 -5
  81. package/dist/hooks/use-token-list.d.ts +0 -22
  82. package/dist/hooks/use-token-list.d.ts.map +0 -1
  83. package/dist/hooks/use-token-list.js +0 -27
  84. package/dist/hooks/use-token-price.d.ts +0 -15
  85. package/dist/hooks/use-token-price.d.ts.map +0 -1
  86. package/dist/hooks/use-token-price.js +0 -63
  87. package/dist/index.d.ts +0 -6
  88. package/dist/index.d.ts.map +0 -1
  89. package/dist/index.js +0 -5
  90. package/src/client.ts +0 -66
  91. package/src/clients/graphql/__generated__/operations.ts +0 -605
  92. package/src/clients/graphql/__generated__/react-hooks.ts +0 -4245
  93. package/src/clients/graphql/__generated__/resolvers.ts +0 -1469
  94. package/src/clients/graphql/__generated__/schema-types.ts +0 -2099
  95. package/src/clients/trading/__generated__/core/ApiError.ts +0 -25
  96. package/src/clients/trading/__generated__/core/ApiRequestOptions.ts +0 -17
  97. package/src/clients/trading/__generated__/core/ApiResult.ts +0 -11
  98. package/src/clients/trading/__generated__/core/CancelablePromise.ts +0 -131
  99. package/src/clients/trading/__generated__/core/OpenAPI.ts +0 -32
  100. package/src/clients/trading/__generated__/core/request.ts +0 -322
  101. package/src/clients/trading/__generated__/index.ts +0 -221
  102. package/src/clients/trading/__generated__/models/Address.ts +0 -5
  103. package/src/clients/trading/__generated__/models/AggregatedOutput.ts +0 -20
  104. package/src/clients/trading/__generated__/models/ApprovalRequest.ts +0 -25
  105. package/src/clients/trading/__generated__/models/ApprovalResponse.ts +0 -18
  106. package/src/clients/trading/__generated__/models/AutoSlippage.ts +0 -14
  107. package/src/clients/trading/__generated__/models/BridgeQuote.ts +0 -55
  108. package/src/clients/trading/__generated__/models/ChainDelegationMap.ts +0 -9
  109. package/src/clients/trading/__generated__/models/ChainId.ts +0 -29
  110. package/src/clients/trading/__generated__/models/ChainedQuote.ts +0 -63
  111. package/src/clients/trading/__generated__/models/CheckApprovalLPRequest.ts +0 -35
  112. package/src/clients/trading/__generated__/models/CheckApprovalLPResponse.ts +0 -29
  113. package/src/clients/trading/__generated__/models/ClaimLPFeesRequest.ts +0 -20
  114. package/src/clients/trading/__generated__/models/ClaimLPFeesResponse.ts +0 -13
  115. package/src/clients/trading/__generated__/models/ClaimLPRewardsRequest.ts +0 -19
  116. package/src/clients/trading/__generated__/models/ClaimLPRewardsResponse.ts +0 -13
  117. package/src/clients/trading/__generated__/models/ClassicGasUseEstimateUSD.ts +0 -8
  118. package/src/clients/trading/__generated__/models/ClassicInput.ts +0 -11
  119. package/src/clients/trading/__generated__/models/ClassicOutput.ts +0 -13
  120. package/src/clients/trading/__generated__/models/ClassicQuote.ts +0 -69
  121. package/src/clients/trading/__generated__/models/ClientContext.ts +0 -18
  122. package/src/clients/trading/__generated__/models/CosignerData.ts +0 -21
  123. package/src/clients/trading/__generated__/models/CreateLPPositionRequest.ts +0 -40
  124. package/src/clients/trading/__generated__/models/CreateLPPositionResponse.ts +0 -21
  125. package/src/clients/trading/__generated__/models/CreatePlanRequest.ts +0 -23
  126. package/src/clients/trading/__generated__/models/CreateSendRequest.ts +0 -22
  127. package/src/clients/trading/__generated__/models/CreateSendResponse.ts +0 -18
  128. package/src/clients/trading/__generated__/models/CreateSwap5792Request.ts +0 -17
  129. package/src/clients/trading/__generated__/models/CreateSwap5792Response.ts +0 -17
  130. package/src/clients/trading/__generated__/models/CreateSwap7702Request.ts +0 -21
  131. package/src/clients/trading/__generated__/models/CreateSwap7702Response.ts +0 -13
  132. package/src/clients/trading/__generated__/models/CreateSwapRequest.ts +0 -42
  133. package/src/clients/trading/__generated__/models/CreateSwapResponse.ts +0 -16
  134. package/src/clients/trading/__generated__/models/Curve.ts +0 -9
  135. package/src/clients/trading/__generated__/models/DEXOrder.ts +0 -35
  136. package/src/clients/trading/__generated__/models/DecreaseLPPositionRequest.ts +0 -33
  137. package/src/clients/trading/__generated__/models/DecreaseLPPositionResponse.ts +0 -19
  138. package/src/clients/trading/__generated__/models/DelegationDetails.ts +0 -19
  139. package/src/clients/trading/__generated__/models/Distributor.ts +0 -10
  140. package/src/clients/trading/__generated__/models/DutchInput.ts +0 -13
  141. package/src/clients/trading/__generated__/models/DutchInputV3.ts +0 -15
  142. package/src/clients/trading/__generated__/models/DutchOrderInfo.ts +0 -41
  143. package/src/clients/trading/__generated__/models/DutchOrderInfoV2.ts +0 -27
  144. package/src/clients/trading/__generated__/models/DutchOrderInfoV3.ts +0 -28
  145. package/src/clients/trading/__generated__/models/DutchOutput.ts +0 -15
  146. package/src/clients/trading/__generated__/models/DutchOutputV3.ts +0 -18
  147. package/src/clients/trading/__generated__/models/DutchQuote.ts +0 -27
  148. package/src/clients/trading/__generated__/models/DutchQuoteV2.ts +0 -28
  149. package/src/clients/trading/__generated__/models/DutchQuoteV3.ts +0 -30
  150. package/src/clients/trading/__generated__/models/Encode7702ResponseBody.ts +0 -11
  151. package/src/clients/trading/__generated__/models/Err400.ts +0 -9
  152. package/src/clients/trading/__generated__/models/Err401.ts +0 -9
  153. package/src/clients/trading/__generated__/models/Err404.ts +0 -17
  154. package/src/clients/trading/__generated__/models/Err422.ts +0 -9
  155. package/src/clients/trading/__generated__/models/Err429.ts +0 -9
  156. package/src/clients/trading/__generated__/models/Err500.ts +0 -9
  157. package/src/clients/trading/__generated__/models/Err504.ts +0 -9
  158. package/src/clients/trading/__generated__/models/GasStrategy.ts +0 -46
  159. package/src/clients/trading/__generated__/models/GetOrdersResponse.ts +0 -12
  160. package/src/clients/trading/__generated__/models/GetSwappableTokensResponse.ts +0 -29
  161. package/src/clients/trading/__generated__/models/GetSwapsResponse.ts +0 -18
  162. package/src/clients/trading/__generated__/models/HooksOptions.ts +0 -12
  163. package/src/clients/trading/__generated__/models/IncreaseLPPositionRequest.ts +0 -39
  164. package/src/clients/trading/__generated__/models/IncreaseLPPositionResponse.ts +0 -21
  165. package/src/clients/trading/__generated__/models/IndependentToken.ts +0 -8
  166. package/src/clients/trading/__generated__/models/IndicativeQuoteRequest.ts +0 -18
  167. package/src/clients/trading/__generated__/models/IndicativeQuoteResponse.ts +0 -14
  168. package/src/clients/trading/__generated__/models/IndicativeQuoteToken.ts +0 -13
  169. package/src/clients/trading/__generated__/models/LimitOrderQuoteRequest.ts +0 -22
  170. package/src/clients/trading/__generated__/models/LimitOrderQuoteResponse.ts +0 -19
  171. package/src/clients/trading/__generated__/models/MigrateLPPositionRequest.ts +0 -41
  172. package/src/clients/trading/__generated__/models/MigrateLPPositionResponse.ts +0 -13
  173. package/src/clients/trading/__generated__/models/NullablePermit.ts +0 -13
  174. package/src/clients/trading/__generated__/models/OrderIds.ts +0 -5
  175. package/src/clients/trading/__generated__/models/OrderInput.ts +0 -13
  176. package/src/clients/trading/__generated__/models/OrderOutput.ts +0 -16
  177. package/src/clients/trading/__generated__/models/OrderRequest.ts +0 -17
  178. package/src/clients/trading/__generated__/models/OrderResponse.ts +0 -13
  179. package/src/clients/trading/__generated__/models/OrderStatus.ts +0 -23
  180. package/src/clients/trading/__generated__/models/OrderType.ts +0 -11
  181. package/src/clients/trading/__generated__/models/OrderTypeQuery.ts +0 -12
  182. package/src/clients/trading/__generated__/models/Permit.ts +0 -13
  183. package/src/clients/trading/__generated__/models/PermitAmount.ts +0 -11
  184. package/src/clients/trading/__generated__/models/PlanResponse.ts +0 -75
  185. package/src/clients/trading/__generated__/models/PlanStatus.ts +0 -14
  186. package/src/clients/trading/__generated__/models/PlanStep.ts +0 -59
  187. package/src/clients/trading/__generated__/models/PlanStepMethod.ts +0 -12
  188. package/src/clients/trading/__generated__/models/PlanStepPayloadType.ts +0 -12
  189. package/src/clients/trading/__generated__/models/PlanStepProof.ts +0 -20
  190. package/src/clients/trading/__generated__/models/PlanStepStatus.ts +0 -14
  191. package/src/clients/trading/__generated__/models/PlanStepType.ts +0 -23
  192. package/src/clients/trading/__generated__/models/Pool.ts +0 -15
  193. package/src/clients/trading/__generated__/models/PoolInfoRequest.ts +0 -20
  194. package/src/clients/trading/__generated__/models/PoolInfoResponse.ts +0 -16
  195. package/src/clients/trading/__generated__/models/PoolInformation.ts +0 -44
  196. package/src/clients/trading/__generated__/models/PoolParameters.ts +0 -19
  197. package/src/clients/trading/__generated__/models/PoolReferenceByProtocol.ts +0 -12
  198. package/src/clients/trading/__generated__/models/Position.ts +0 -11
  199. package/src/clients/trading/__generated__/models/PriorityInput.ts +0 -12
  200. package/src/clients/trading/__generated__/models/PriorityOrderInfo.ts +0 -29
  201. package/src/clients/trading/__generated__/models/PriorityOutput.ts +0 -17
  202. package/src/clients/trading/__generated__/models/PriorityQuote.ts +0 -31
  203. package/src/clients/trading/__generated__/models/ProtocolItems.ts +0 -15
  204. package/src/clients/trading/__generated__/models/Protocols.ts +0 -9
  205. package/src/clients/trading/__generated__/models/Quote.ts +0 -14
  206. package/src/clients/trading/__generated__/models/QuoteRequest.ts +0 -41
  207. package/src/clients/trading/__generated__/models/QuoteResponse.ts +0 -19
  208. package/src/clients/trading/__generated__/models/RequestId.ts +0 -8
  209. package/src/clients/trading/__generated__/models/Routing.ts +0 -20
  210. package/src/clients/trading/__generated__/models/RoutingPreference.ts +0 -16
  211. package/src/clients/trading/__generated__/models/SafetyLevel.ts +0 -10
  212. package/src/clients/trading/__generated__/models/ScopeData.ts +0 -28
  213. package/src/clients/trading/__generated__/models/SettledAmount.ts +0 -14
  214. package/src/clients/trading/__generated__/models/SortKey.ts +0 -7
  215. package/src/clients/trading/__generated__/models/SpreadOptimization.ts +0 -11
  216. package/src/clients/trading/__generated__/models/StepUpdate.ts +0 -25
  217. package/src/clients/trading/__generated__/models/SwapSafetyMode.ts +0 -10
  218. package/src/clients/trading/__generated__/models/SwapStatus.ts +0 -11
  219. package/src/clients/trading/__generated__/models/TokenInRoute.ts +0 -20
  220. package/src/clients/trading/__generated__/models/TokenProject.ts +0 -13
  221. package/src/clients/trading/__generated__/models/TokenProjectLogo.ts +0 -8
  222. package/src/clients/trading/__generated__/models/TradeType.ts +0 -11
  223. package/src/clients/trading/__generated__/models/TransactionFailureReason.ts +0 -11
  224. package/src/clients/trading/__generated__/models/TransactionHash.ts +0 -8
  225. package/src/clients/trading/__generated__/models/TransactionRequest.ts +0 -29
  226. package/src/clients/trading/__generated__/models/TransactionRequest5792.ts +0 -25
  227. package/src/clients/trading/__generated__/models/TruncatedPlanStep.ts +0 -21
  228. package/src/clients/trading/__generated__/models/UniversalRouterVersion.ts +0 -8
  229. package/src/clients/trading/__generated__/models/UpdatePlanRequest.ts +0 -12
  230. package/src/clients/trading/__generated__/models/Urgency.ts +0 -12
  231. package/src/clients/trading/__generated__/models/V2PoolInRoute.ts +0 -19
  232. package/src/clients/trading/__generated__/models/V2Reserve.ts +0 -16
  233. package/src/clients/trading/__generated__/models/V3PoolInRoute.ts +0 -24
  234. package/src/clients/trading/__generated__/models/V4PoolInRoute.ts +0 -30
  235. package/src/clients/trading/__generated__/models/WalletCheckDelegationRequestBody.ts +0 -17
  236. package/src/clients/trading/__generated__/models/WalletCheckDelegationResponseBody.ts +0 -14
  237. package/src/clients/trading/__generated__/models/WalletEncode7702RequestBody.ts +0 -21
  238. package/src/clients/trading/__generated__/models/WalletExecutionContext.ts +0 -17
  239. package/src/clients/trading/__generated__/models/WalletInfo.ts +0 -22
  240. package/src/clients/trading/__generated__/models/WalletProperties.ts +0 -12
  241. package/src/clients/trading/__generated__/models/WrapUnwrapQuote.ts +0 -31
  242. package/src/clients/trading/__generated__/models/additionalValidationContract.ts +0 -9
  243. package/src/clients/trading/__generated__/models/additionalValidationData.ts +0 -9
  244. package/src/clients/trading/__generated__/models/bps.ts +0 -8
  245. package/src/clients/trading/__generated__/models/bpsFee.ts +0 -8
  246. package/src/clients/trading/__generated__/models/bridgeTokenInChainIdParam.ts +0 -6
  247. package/src/clients/trading/__generated__/models/chainIdParam.ts +0 -6
  248. package/src/clients/trading/__generated__/models/claimerWalletAddress.ts +0 -8
  249. package/src/clients/trading/__generated__/models/contractAddress.ts +0 -8
  250. package/src/clients/trading/__generated__/models/cosignerAddress.ts +0 -8
  251. package/src/clients/trading/__generated__/models/cursorParam.ts +0 -5
  252. package/src/clients/trading/__generated__/models/deadline.ts +0 -8
  253. package/src/clients/trading/__generated__/models/encodedOrder.ts +0 -8
  254. package/src/clients/trading/__generated__/models/endAmount.ts +0 -8
  255. package/src/clients/trading/__generated__/models/erc20EthEnabledHeader.ts +0 -8
  256. package/src/clients/trading/__generated__/models/fillerParam.ts +0 -9
  257. package/src/clients/trading/__generated__/models/gasFee.ts +0 -8
  258. package/src/clients/trading/__generated__/models/gasFeeInCurrency.ts +0 -8
  259. package/src/clients/trading/__generated__/models/gasFeeUSD.ts +0 -8
  260. package/src/clients/trading/__generated__/models/gasLimit.ts +0 -8
  261. package/src/clients/trading/__generated__/models/gasPrice.ts +0 -8
  262. package/src/clients/trading/__generated__/models/generatePermitAsTransaction.ts +0 -8
  263. package/src/clients/trading/__generated__/models/includeGasInfo.ts +0 -8
  264. package/src/clients/trading/__generated__/models/inputToken.ts +0 -8
  265. package/src/clients/trading/__generated__/models/isSpam.ts +0 -8
  266. package/src/clients/trading/__generated__/models/limitParam.ts +0 -5
  267. package/src/clients/trading/__generated__/models/liquidity.ts +0 -8
  268. package/src/clients/trading/__generated__/models/lpPoolFee.ts +0 -8
  269. package/src/clients/trading/__generated__/models/lpTickCurrent.ts +0 -8
  270. package/src/clients/trading/__generated__/models/maxFeePerGas.ts +0 -8
  271. package/src/clients/trading/__generated__/models/maxPriorityFeePerGas.ts +0 -8
  272. package/src/clients/trading/__generated__/models/minAmount.ts +0 -8
  273. package/src/clients/trading/__generated__/models/nonce.ts +0 -8
  274. package/src/clients/trading/__generated__/models/orderId.ts +0 -8
  275. package/src/clients/trading/__generated__/models/orderIdParam.ts +0 -6
  276. package/src/clients/trading/__generated__/models/orderIdsParam.ts +0 -9
  277. package/src/clients/trading/__generated__/models/orderStatusParam.ts +0 -9
  278. package/src/clients/trading/__generated__/models/orderTypeParam.ts +0 -9
  279. package/src/clients/trading/__generated__/models/outputToken.ts +0 -8
  280. package/src/clients/trading/__generated__/models/poolFee.ts +0 -8
  281. package/src/clients/trading/__generated__/models/portionAmount.ts +0 -8
  282. package/src/clients/trading/__generated__/models/portionAmountReceiverAddress.ts +0 -8
  283. package/src/clients/trading/__generated__/models/portionBips.ts +0 -8
  284. package/src/clients/trading/__generated__/models/quoteId.ts +0 -8
  285. package/src/clients/trading/__generated__/models/receiverWalletAddress.ts +0 -8
  286. package/src/clients/trading/__generated__/models/senderWalletAddress.ts +0 -8
  287. package/src/clients/trading/__generated__/models/slippageTolerance.ts +0 -14
  288. package/src/clients/trading/__generated__/models/sortKeyParam.ts +0 -9
  289. package/src/clients/trading/__generated__/models/sortParam.ts +0 -8
  290. package/src/clients/trading/__generated__/models/sqrtRatioX96.ts +0 -8
  291. package/src/clients/trading/__generated__/models/startAmount.ts +0 -8
  292. package/src/clients/trading/__generated__/models/swapperParam.ts +0 -9
  293. package/src/clients/trading/__generated__/models/tickCurrent.ts +0 -8
  294. package/src/clients/trading/__generated__/models/tickSpacing.ts +0 -8
  295. package/src/clients/trading/__generated__/models/tokenAmount.ts +0 -8
  296. package/src/clients/trading/__generated__/models/tokenInParam.ts +0 -6
  297. package/src/clients/trading/__generated__/models/tokenSymbol.ts +0 -8
  298. package/src/clients/trading/__generated__/models/transactionHashesParam.ts +0 -9
  299. package/src/clients/trading/__generated__/models/universalRouterVersionHeader.ts +0 -9
  300. package/src/clients/trading/__generated__/services/ApprovalService.ts +0 -39
  301. package/src/clients/trading/__generated__/services/DefaultService.ts +0 -46
  302. package/src/clients/trading/__generated__/services/IndicativeQuoteService.ts +0 -39
  303. package/src/clients/trading/__generated__/services/LimitOrderQuoteService.ts +0 -37
  304. package/src/clients/trading/__generated__/services/LiquidityService.ts +0 -239
  305. package/src/clients/trading/__generated__/services/OrderService.ts +0 -131
  306. package/src/clients/trading/__generated__/services/PlanService.ts +0 -76
  307. package/src/clients/trading/__generated__/services/QuoteService.ts +0 -58
  308. package/src/clients/trading/__generated__/services/SendService.ts +0 -37
  309. package/src/clients/trading/__generated__/services/SwapService.ts +0 -161
  310. package/src/clients/trading/__generated__/services/SwappableTokensService.ts +0 -42
  311. package/src/clients/trading/__generated__/services/WalletCheckDelegationService.ts +0 -37
  312. package/src/clients/trading/__generated__/services/WalletEncode7702Service.ts +0 -37
  313. package/src/hooks/index.ts +0 -6
  314. package/src/hooks/use-token-list.ts +0 -52
  315. package/src/hooks/use-token-price.ts +0 -82
@@ -1,23 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The status of the order. Note that all of these are final states with the exception of Open, meaning that no further state changes will occur.
7
- * Open - order is not yet filled by a filler.
8
- * Expired - order has expired without being filled and is no longer fillable.
9
- * Error - a catchall for other final states which are not otherwise specified, where the order will not be filled.
10
- * Cancelled - order is cancelled. Note that to cancel an order, a new order must be placed with the same nonce as the prior open order and it must be placed within the same block as the original order.
11
- * Filled - order is filled.
12
- * Insufficient-funds - the swapper (you) do not have enough funds for the order to be completed and the order is cancelled and will not be filled.
13
- * Unverified - order has not been verified yet.
14
- */
15
- export enum OrderStatus {
16
- OPEN = 'open',
17
- EXPIRED = 'expired',
18
- ERROR = 'error',
19
- CANCELLED = 'cancelled',
20
- FILLED = 'filled',
21
- UNVERIFIED = 'unverified',
22
- INSUFFICIENT_FUNDS = 'insufficient-funds',
23
- }
@@ -1,11 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export enum OrderType {
6
- DUTCH_LIMIT = 'DutchLimit',
7
- DUTCH = 'Dutch',
8
- DUTCH_V2 = 'Dutch_V2',
9
- DUTCH_V3 = 'Dutch_V3',
10
- PRIORITY = 'Priority',
11
- }
@@ -1,12 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export enum OrderTypeQuery {
6
- DUTCH = 'Dutch',
7
- DUTCH_V2 = 'Dutch_V2',
8
- DUTCH_V1_V2 = 'Dutch_V1_V2',
9
- DUTCH_V3 = 'Dutch_V3',
10
- LIMIT = 'Limit',
11
- PRIORITY = 'Priority',
12
- }
@@ -1,13 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * the permit2 message object for the customer to sign to permit spending by the permit2 contract.
7
- */
8
- export type Permit = {
9
- domain?: Record<string, any>;
10
- values?: Record<string, any>;
11
- types?: Record<string, any>;
12
- };
13
-
@@ -1,11 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * For Lux Protocols (v2, v3, v4) swaps, specify the input token spend allowance (e.g. quantity) to be set in the permit. `FULL` can be used to specify an unlimited token quantity, and may prevent the wallet from needing to sign another permit for the same token in the future. `EXACT` can be used to specify the exact input token quantity for this request. Defaults to `FULL`.
7
- */
8
- export enum PermitAmount {
9
- FULL = 'FULL',
10
- EXACT = 'EXACT',
11
- }
@@ -1,75 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AutoSlippage } from './AutoSlippage';
6
- import type { gasFee } from './gasFee';
7
- import type { gasFeeInCurrency } from './gasFeeInCurrency';
8
- import type { gasFeeUSD } from './gasFeeUSD';
9
- import type { gasLimit } from './gasLimit';
10
- import type { GasStrategy } from './GasStrategy';
11
- import type { HooksOptions } from './HooksOptions';
12
- import type { PlanStatus } from './PlanStatus';
13
- import type { PlanStep } from './PlanStep';
14
- import type { Protocols } from './Protocols';
15
- import type { quoteId } from './quoteId';
16
- import type { receiverWalletAddress } from './receiverWalletAddress';
17
- import type { RequestId } from './RequestId';
18
- import type { senderWalletAddress } from './senderWalletAddress';
19
- import type { slippageTolerance } from './slippageTolerance';
20
- import type { tokenAmount } from './tokenAmount';
21
- import type { WalletExecutionContext } from './WalletExecutionContext';
22
- export type PlanResponse = {
23
- requestId: RequestId;
24
- /**
25
- * A unique identifier for this execution plan.
26
- */
27
- planId: string;
28
- swapper: senderWalletAddress;
29
- recipient: receiverWalletAddress;
30
- quoteId: quoteId;
31
- status: PlanStatus;
32
- /**
33
- * The sequential steps that need to be executed to complete the plan.
34
- */
35
- steps: Array<PlanStep>;
36
- /**
37
- * The index of the current step that needs to be executed (0-based).
38
- */
39
- currentStepIndex: number;
40
- expectedOutput: tokenAmount;
41
- gasFee?: gasFee;
42
- gasFeeQuote?: gasFeeInCurrency;
43
- gasFeeUSD?: gasFeeUSD;
44
- gasUseEstimate?: gasLimit;
45
- /**
46
- * Estimated time in milliseconds to complete the entire plan.
47
- */
48
- timeEstimateMs?: number;
49
- /**
50
- * Gas strategies used for the plan.
51
- */
52
- gasStrategies?: Array<GasStrategy>;
53
- protocols?: Protocols;
54
- hooksOptions?: HooksOptions;
55
- /**
56
- * Timestamp when the plan was created.
57
- */
58
- createdAt?: string;
59
- /**
60
- * Timestamp when the plan was last updated.
61
- */
62
- updatedAt?: string;
63
- /**
64
- * Timestamp when the plan completed.
65
- */
66
- completedAt?: string;
67
- /**
68
- * Timestamp of the last user action on this plan.
69
- */
70
- lastUserActionAt?: string;
71
- slippageTolerance?: slippageTolerance;
72
- autoSlippage?: AutoSlippage;
73
- walletExecutionContext?: WalletExecutionContext;
74
- };
75
-
@@ -1,14 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The overall status of the plan execution. ACTIVE means the plan is ready to begin (all steps NOT_READY). AWAITING_ACTION means at least one step requires user action. IN_PROGRESS means at least one step is executing. COMPLETED means all steps have been successfully executed. FAILED means the plan cannot be completed.
7
- */
8
- export enum PlanStatus {
9
- ACTIVE = 'ACTIVE',
10
- AWAITING_ACTION = 'AWAITING_ACTION',
11
- IN_PROGRESS = 'IN_PROGRESS',
12
- COMPLETED = 'COMPLETED',
13
- FAILED = 'FAILED',
14
- }
@@ -1,59 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ChainId } from './ChainId';
6
- import type { gasFee } from './gasFee';
7
- import type { gasFeeInCurrency } from './gasFeeInCurrency';
8
- import type { gasFeeUSD } from './gasFeeUSD';
9
- import type { gasLimit } from './gasLimit';
10
- import type { gasPrice } from './gasPrice';
11
- import type { inputToken } from './inputToken';
12
- import type { maxFeePerGas } from './maxFeePerGas';
13
- import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
14
- import type { outputToken } from './outputToken';
15
- import type { PlanStepMethod } from './PlanStepMethod';
16
- import type { PlanStepPayloadType } from './PlanStepPayloadType';
17
- import type { PlanStepProof } from './PlanStepProof';
18
- import type { PlanStepStatus } from './PlanStepStatus';
19
- import type { PlanStepType } from './PlanStepType';
20
- import type { receiverWalletAddress } from './receiverWalletAddress';
21
- import type { senderWalletAddress } from './senderWalletAddress';
22
- import type { slippageTolerance } from './slippageTolerance';
23
- import type { tokenAmount } from './tokenAmount';
24
- export type PlanStep = {
25
- /**
26
- * The index of this step in the plan (0-based).
27
- */
28
- stepIndex: number;
29
- method: PlanStepMethod;
30
- payloadType: PlanStepPayloadType;
31
- /**
32
- * The payload data for this step. The structure depends on the payloadType.
33
- */
34
- payload: Record<string, any>;
35
- status: PlanStepStatus;
36
- proof?: PlanStepProof;
37
- tokenIn?: inputToken;
38
- tokenOut?: outputToken;
39
- tokenInChainId?: ChainId;
40
- tokenOutChainId?: ChainId;
41
- tokenInAmount?: tokenAmount;
42
- tokenOutAmount?: tokenAmount;
43
- swapper?: senderWalletAddress;
44
- recipient?: receiverWalletAddress;
45
- stepType?: PlanStepType;
46
- gasUseEstimate?: gasLimit;
47
- gasFeeUSD?: gasFeeUSD;
48
- gasFeeQuote?: gasFeeInCurrency;
49
- gasPrice?: gasPrice;
50
- maxFeePerGas?: maxFeePerGas;
51
- maxPriorityFeePerGas?: maxPriorityFeePerGas;
52
- gasFee?: gasFee;
53
- /**
54
- * An optional key identifying the routing strategy used for this step.
55
- */
56
- routingStepKey?: string;
57
- slippage?: slippageTolerance;
58
- };
59
-
@@ -1,12 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The execution method for the step. SEND_TX is a standard transaction. SIGN_MSG is for signing a message (e.g., permit). SEND_CALLS is for batch transaction execution (EIP-5792).
7
- */
8
- export enum PlanStepMethod {
9
- SEND_TX = 'SEND_TX',
10
- SIGN_MSG = 'SIGN_MSG',
11
- SEND_CALLS = 'SEND_CALLS',
12
- }
@@ -1,12 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The type of payload data. TX is a standard transaction object. EIP_712 is a typed structured data for signing. EIP_5792 is a batch of transaction calls.
7
- */
8
- export enum PlanStepPayloadType {
9
- TX = 'TX',
10
- EIP_712 = 'EIP_712',
11
- EIP_5792 = 'EIP_5792',
12
- }
@@ -1,20 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { TransactionHash } from './TransactionHash';
6
- /**
7
- * Proof of execution for a plan step, provided after the step is completed.
8
- */
9
- export type PlanStepProof = {
10
- txHash?: TransactionHash;
11
- /**
12
- * The signature for a message signing step.
13
- */
14
- signature?: string;
15
- /**
16
- * The order ID for a gasless order step.
17
- */
18
- orderId?: string;
19
- };
20
-
@@ -1,14 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The status of an individual step. NOT_READY means prerequisites are not met. AWAITING_ACTION means the step is ready for user action. IN_PROGRESS means the step is being executed. COMPLETE means the step finished successfully. STEP_ERROR means the step failed.
7
- */
8
- export enum PlanStepStatus {
9
- NOT_READY = 'NOT_READY',
10
- AWAITING_ACTION = 'AWAITING_ACTION',
11
- IN_PROGRESS = 'IN_PROGRESS',
12
- COMPLETE = 'COMPLETE',
13
- STEP_ERROR = 'STEP_ERROR',
14
- }
@@ -1,23 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The type of step in a plan, including swap types and approval types.
7
- */
8
- export enum PlanStepType {
9
- CLASSIC = 'CLASSIC',
10
- DUTCH_LIMIT = 'DUTCH_LIMIT',
11
- DUTCH_V2 = 'DUTCH_V2',
12
- LIMIT_ORDER = 'LIMIT_ORDER',
13
- WRAP = 'WRAP',
14
- UNWRAP = 'UNWRAP',
15
- BRIDGE = 'BRIDGE',
16
- PRIORITY = 'PRIORITY',
17
- DUTCH_V3 = 'DUTCH_V3',
18
- QUICKROUTE = 'QUICKROUTE',
19
- CHAINED = 'CHAINED',
20
- APPROVAL_TXN = 'APPROVAL_TXN',
21
- APPROVAL_PERMIT = 'APPROVAL_PERMIT',
22
- RESET_APPROVAL_TXN = 'RESET_APPROVAL_TXN',
23
- }
@@ -1,15 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { Address } from './Address';
6
- import type { lpPoolFee } from './lpPoolFee';
7
- import type { tickSpacing } from './tickSpacing';
8
- export type Pool = {
9
- token0: Address;
10
- token1: Address;
11
- fee?: lpPoolFee;
12
- tickSpacing?: tickSpacing;
13
- hooks?: Address;
14
- };
15
-
@@ -1,20 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ChainId } from './ChainId';
6
- import type { PoolParameters } from './PoolParameters';
7
- import type { PoolReferenceByProtocol } from './PoolReferenceByProtocol';
8
- import type { Protocols } from './Protocols';
9
- export type PoolInfoRequest = {
10
- protocol: Protocols;
11
- poolParams?: PoolParameters;
12
- /**
13
- * Array of pool reference identifiers to query. Each reference should include the protocol, chainId, and either the pool address (V3), pool id (V4), or pair address (V2).
14
- */
15
- poolReferences?: Array<PoolReferenceByProtocol>;
16
- chainId?: ChainId;
17
- pageSize?: number;
18
- currentPage?: number;
19
- };
20
-
@@ -1,16 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { PoolInformation } from './PoolInformation';
6
- import type { RequestId } from './RequestId';
7
- export type PoolInfoResponse = {
8
- requestId?: RequestId;
9
- /**
10
- * Array of pool information objects.
11
- */
12
- pools?: Array<PoolInformation>;
13
- pageSize?: number;
14
- currentPage?: number;
15
- };
16
-
@@ -1,44 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ChainId } from './ChainId';
6
- import type { liquidity } from './liquidity';
7
- import type { lpTickCurrent } from './lpTickCurrent';
8
- import type { poolFee } from './poolFee';
9
- import type { Protocols } from './Protocols';
10
- import type { sqrtRatioX96 } from './sqrtRatioX96';
11
- import type { tickSpacing } from './tickSpacing';
12
- import type { tokenAmount } from './tokenAmount';
13
- export type PoolInformation = {
14
- /**
15
- * The unique identifier for the pool reference, which can be a pool address, pool id, or pair address depending on the protocol.
16
- */
17
- poolReferenceIdentifier?: string;
18
- poolProtocol?: Protocols;
19
- tokenAddressA?: string;
20
- tokenAddressB?: string;
21
- tickSpacing?: tickSpacing;
22
- fee?: poolFee;
23
- /**
24
- * The address of the hook for the pool, if any.
25
- */
26
- hookAddress?: string;
27
- chainId?: ChainId;
28
- tokenAmountA?: tokenAmount;
29
- tokenAmountB?: tokenAmount;
30
- /**
31
- * The number of decimals for token A.
32
- */
33
- tokenDecimalsA?: number;
34
- /**
35
- * The number of decimals for token B.
36
- */
37
- tokenDecimalsB?: number;
38
- poolLiquidity?: liquidity;
39
- sqrtRatioX96?: sqrtRatioX96;
40
- currentTick?: lpTickCurrent;
41
- tokenAReserves?: tokenAmount;
42
- tokenBReserves?: tokenAmount;
43
- };
44
-
@@ -1,19 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { tickSpacing } from './tickSpacing';
6
- export type PoolParameters = {
7
- token0?: string;
8
- token1?: string;
9
- /**
10
- * The fee of the pool, if the pool has a fee value.
11
- */
12
- fee?: number;
13
- tickSpacing?: tickSpacing;
14
- /**
15
- * The address of the hook for the pool, if any.
16
- */
17
- hookAddress?: string;
18
- };
19
-
@@ -1,12 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ChainId } from './ChainId';
6
- import type { Protocols } from './Protocols';
7
- export type PoolReferenceByProtocol = {
8
- protocol: Protocols;
9
- chainId: ChainId;
10
- referenceIdentifier?: string;
11
- };
12
-
@@ -1,11 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { Pool } from './Pool';
6
- export type Position = {
7
- pool: Pool;
8
- tickLower?: number;
9
- tickUpper?: number;
10
- };
11
-
@@ -1,12 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { inputToken } from './inputToken';
6
- import type { tokenAmount } from './tokenAmount';
7
- export type PriorityInput = {
8
- amount: tokenAmount;
9
- token: inputToken;
10
- mpsPerPriorityFeeWei: string;
11
- };
12
-
@@ -1,29 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { additionalValidationContract } from './additionalValidationContract';
6
- import type { additionalValidationData } from './additionalValidationData';
7
- import type { ChainId } from './ChainId';
8
- import type { contractAddress } from './contractAddress';
9
- import type { cosignerAddress } from './cosignerAddress';
10
- import type { deadline } from './deadline';
11
- import type { nonce } from './nonce';
12
- import type { PriorityInput } from './PriorityInput';
13
- import type { PriorityOutput } from './PriorityOutput';
14
- import type { receiverWalletAddress } from './receiverWalletAddress';
15
- export type PriorityOrderInfo = {
16
- chainId: ChainId;
17
- nonce: nonce;
18
- reactor: contractAddress;
19
- swapper: receiverWalletAddress;
20
- deadline: deadline;
21
- additionalValidationContract?: additionalValidationContract;
22
- additionalValidationData?: additionalValidationData;
23
- auctionStartBlock: string;
24
- baselinePriorityFeeWei: string;
25
- input: PriorityInput;
26
- outputs: Array<PriorityOutput>;
27
- cosigner: cosignerAddress;
28
- };
29
-
@@ -1,17 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { outputToken } from './outputToken';
6
- import type { receiverWalletAddress } from './receiverWalletAddress';
7
- import type { tokenAmount } from './tokenAmount';
8
- export type PriorityOutput = {
9
- amount: tokenAmount;
10
- token: outputToken;
11
- recipient: receiverWalletAddress;
12
- /**
13
- * The scaling factor of the priority fee based on the output token amount.
14
- */
15
- mpsPerPriorityFeeWei: string;
16
- };
17
-
@@ -1,31 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AggregatedOutput } from './AggregatedOutput';
6
- import type { ClassicGasUseEstimateUSD } from './ClassicGasUseEstimateUSD';
7
- import type { encodedOrder } from './encodedOrder';
8
- import type { orderId } from './orderId';
9
- import type { portionAmount } from './portionAmount';
10
- import type { portionAmountReceiverAddress } from './portionAmountReceiverAddress';
11
- import type { portionBips } from './portionBips';
12
- import type { PriorityOrderInfo } from './PriorityOrderInfo';
13
- import type { quoteId } from './quoteId';
14
- import type { slippageTolerance } from './slippageTolerance';
15
- import type { tokenAmount } from './tokenAmount';
16
- export type PriorityQuote = {
17
- encodedOrder: encodedOrder;
18
- orderId: orderId;
19
- orderInfo: PriorityOrderInfo;
20
- portionBips?: portionBips;
21
- portionAmount?: portionAmount;
22
- portionRecipient?: portionAmountReceiverAddress;
23
- quoteId?: quoteId;
24
- slippageTolerance?: slippageTolerance;
25
- deadlineBufferSecs?: number;
26
- classicGasUseEstimateUSD?: ClassicGasUseEstimateUSD;
27
- expectedAmountIn?: tokenAmount;
28
- expectedAmountOut?: tokenAmount;
29
- aggregatedOutputs?: Array<AggregatedOutput>;
30
- };
31
-
@@ -1,15 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * The protocol to use for the swap/order.
7
- */
8
- export enum ProtocolItems {
9
- V2 = 'V2',
10
- V3 = 'V3',
11
- V4 = 'V4',
12
- LUXX = 'LUXX',
13
- LUXX_V2 = 'LUXX_V2',
14
- LUXX_V3 = 'LUXX_V3',
15
- }
@@ -1,9 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ProtocolItems } from './ProtocolItems';
6
- /**
7
- * The protocols to use for the swap/order. If the `protocols` field is defined, then you can only set the `routingPreference` to `BEST_PRICE`. Note that the value `LUXX` is deprecated and will be removed in a future release.
8
- */
9
- export type Protocols = Array<ProtocolItems>;
@@ -1,14 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { BridgeQuote } from './BridgeQuote';
6
- import type { ChainedQuote } from './ChainedQuote';
7
- import type { ClassicQuote } from './ClassicQuote';
8
- import type { DutchQuote } from './DutchQuote';
9
- import type { DutchQuoteV2 } from './DutchQuoteV2';
10
- import type { DutchQuoteV3 } from './DutchQuoteV3';
11
- import type { PriorityQuote } from './PriorityQuote';
12
- import type { WrapUnwrapQuote } from './WrapUnwrapQuote';
13
- export type Quote = (DutchQuote | ClassicQuote | WrapUnwrapQuote | DutchQuoteV2 | DutchQuoteV3 | BridgeQuote | PriorityQuote | ChainedQuote);
14
-
@@ -1,41 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AutoSlippage } from './AutoSlippage';
6
- import type { ChainId } from './ChainId';
7
- import type { generatePermitAsTransaction } from './generatePermitAsTransaction';
8
- import type { HooksOptions } from './HooksOptions';
9
- import type { inputToken } from './inputToken';
10
- import type { outputToken } from './outputToken';
11
- import type { PermitAmount } from './PermitAmount';
12
- import type { Protocols } from './Protocols';
13
- import type { RoutingPreference } from './RoutingPreference';
14
- import type { senderWalletAddress } from './senderWalletAddress';
15
- import type { slippageTolerance } from './slippageTolerance';
16
- import type { SpreadOptimization } from './SpreadOptimization';
17
- import type { tokenAmount } from './tokenAmount';
18
- import type { TradeType } from './TradeType';
19
- import type { Urgency } from './Urgency';
20
- import { GasStrategy } from "../../types";
21
-
22
- export type QuoteRequest = {
23
- type: TradeType;
24
- amount: tokenAmount;
25
- tokenInChainId: ChainId;
26
- tokenOutChainId: ChainId;
27
- tokenIn: inputToken;
28
- tokenOut: outputToken;
29
- generatePermitAsTransaction?: generatePermitAsTransaction;
30
- swapper: senderWalletAddress;
31
- slippageTolerance?: slippageTolerance;
32
- autoSlippage?: AutoSlippage;
33
- routingPreference?: RoutingPreference;
34
- protocols?: Protocols;
35
- hooksOptions?: HooksOptions;
36
- spreadOptimization?: SpreadOptimization;
37
- urgency?: Urgency;
38
- permitAmount?: PermitAmount;
39
- gasStrategies?: GasStrategy[];
40
- };
41
-