@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.
- package/.depcheckrc +16 -0
- package/.eslintrc.js +30 -0
- package/package.json +12 -15
- package/project.json +3 -3
- package/src/clients/auctions/createAuctionServiceClient.ts +2 -2
- package/src/clients/base/SharedQueryClient.ts +1 -1
- package/src/clients/base/auth.ts +1 -1
- package/src/clients/base/createFetchClient.ts +2 -2
- package/src/clients/base/errors.test.ts +1 -1
- package/src/clients/base/types.ts +1 -1
- package/src/clients/base/urls.test.ts +44 -44
- package/src/clients/base/urls.ts +20 -12
- package/src/clients/base/utils.test.ts +2 -2
- package/src/clients/base/utils.ts +1 -1
- package/src/clients/blockaid/createBlockaidApiClient.ts +2 -2
- package/src/clients/compliance/createComplianceApiClient.ts +2 -2
- package/src/clients/content/types.ts +1 -1
- package/src/clients/conversionTracking/api-ConversionProxyService_connectquery.ts +1 -1
- package/src/clients/conversionTracking/api_connect.ts +1 -1
- package/src/clients/conversionTracking/index.ts +3 -3
- package/src/clients/data/createDataServiceApiClient.ts +1 -1
- package/src/clients/dataApi/createDataApiServiceClient.ts +2 -2
- package/src/clients/dataApi/getGetPortfolioQueryOptions.test.ts +3 -3
- package/src/clients/dataApi/getGetPortfolioQueryOptions.ts +3 -3
- package/src/clients/embeddedWallet/createEmbeddedWalletApiClient.ts +5 -5
- package/src/clients/for/createForApiClient.ts +5 -5
- package/src/clients/for/types.ts +1 -1
- package/src/clients/gasService/createGasServiceClient.ts +2 -2
- package/src/clients/graphql/codegen.config.ts +1 -1
- package/src/clients/graphql/fragments.ts +3 -3
- package/src/clients/graphql/generated.ts +3 -0
- package/src/clients/graphql/web/{LuxPrices.graphql → UniswapPrices.graphql} +1 -1
- package/src/clients/jupiter/createJupiterApiClient.ts +3 -3
- package/src/clients/jupiter/utils.ts +1 -1
- package/src/clients/liquidity/createAuctionMutationClient.ts +2 -2
- package/src/clients/liquidity/createLiquidityServiceClient.ts +2 -2
- package/src/clients/lux/createLuxApiClient.ts +4 -4
- package/src/clients/notifications/createNotificationsApiClient.ts +4 -4
- package/src/clients/notifications/types.ts +9 -9
- package/src/clients/trading/createTradingApiClient.ts +6 -6
- package/src/clients/trading/tradeTypes.ts +2 -2
- package/src/clients/trading/types.ts +3 -3
- package/src/clients/uniswap/createUniswapApiClient.ts +83 -0
- package/src/clients/unitags/createUnitagsApiClient.test.ts +7 -7
- package/src/clients/unitags/createUnitagsApiClient.ts +4 -4
- package/src/clients/x/createXVerificationServiceClient.ts +2 -2
- package/src/components/ApiInit.test.tsx +12 -12
- package/src/components/ApiInit.tsx +3 -3
- package/src/connectRpc/utils.ts +4 -4
- package/src/getEntryGatewayUrl.ts +2 -2
- package/src/getWebSocketUrl.ts +2 -2
- package/src/hooks/useIsSessionInitialized.ts +1 -1
- package/src/index.ts +68 -66
- package/src/provideDeviceIdService.ts +3 -3
- package/src/provideLuxIdentifierService.ts +2 -25
- package/src/provideSessionService.native.ts +7 -7
- package/src/provideSessionService.ts +3 -3
- package/src/provideSessionService.web.ts +12 -12
- package/src/provideSessionStorage.ts +3 -3
- package/src/provideUniswapIdentifierService.ts +25 -0
- package/src/session/createSessionTransport.test.ts +2 -2
- package/src/session/createSessionTransport.ts +6 -6
- package/src/session/createWithSessionRetry.ts +1 -1
- package/src/session/index.ts +1 -1
- package/src/storage/createExtensionStorageDriver.ts +1 -1
- package/src/storage/createNativeStorageDriver.ts +1 -1
- package/src/storage/createWebStorageDriver.ts +1 -1
- package/src/storage/getStorageDriver.native.ts +2 -2
- package/src/storage/getStorageDriver.ts +2 -2
- package/src/storage/getStorageDriver.web.ts +3 -3
- package/src/transport.ts +2 -2
- package/stubs/privy-service-connect.d.ts +1 -1
- package/stubs/privy-service-pb.d.ts +1 -1
- package/tsconfig.json +12 -4
- package/dist/client.d.ts +0 -22
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -56
- package/dist/hooks/index.d.ts +0 -6
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -5
- package/dist/hooks/use-token-list.d.ts +0 -22
- package/dist/hooks/use-token-list.d.ts.map +0 -1
- package/dist/hooks/use-token-list.js +0 -27
- package/dist/hooks/use-token-price.d.ts +0 -15
- package/dist/hooks/use-token-price.d.ts.map +0 -1
- package/dist/hooks/use-token-price.js +0 -63
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -5
- package/src/client.ts +0 -66
- package/src/clients/graphql/__generated__/operations.ts +0 -605
- package/src/clients/graphql/__generated__/react-hooks.ts +0 -4245
- package/src/clients/graphql/__generated__/resolvers.ts +0 -1469
- package/src/clients/graphql/__generated__/schema-types.ts +0 -2099
- package/src/clients/trading/__generated__/core/ApiError.ts +0 -25
- package/src/clients/trading/__generated__/core/ApiRequestOptions.ts +0 -17
- package/src/clients/trading/__generated__/core/ApiResult.ts +0 -11
- package/src/clients/trading/__generated__/core/CancelablePromise.ts +0 -131
- package/src/clients/trading/__generated__/core/OpenAPI.ts +0 -32
- package/src/clients/trading/__generated__/core/request.ts +0 -322
- package/src/clients/trading/__generated__/index.ts +0 -221
- package/src/clients/trading/__generated__/models/Address.ts +0 -5
- package/src/clients/trading/__generated__/models/AggregatedOutput.ts +0 -20
- package/src/clients/trading/__generated__/models/ApprovalRequest.ts +0 -25
- package/src/clients/trading/__generated__/models/ApprovalResponse.ts +0 -18
- package/src/clients/trading/__generated__/models/AutoSlippage.ts +0 -14
- package/src/clients/trading/__generated__/models/BridgeQuote.ts +0 -55
- package/src/clients/trading/__generated__/models/ChainDelegationMap.ts +0 -9
- package/src/clients/trading/__generated__/models/ChainId.ts +0 -29
- package/src/clients/trading/__generated__/models/ChainedQuote.ts +0 -63
- package/src/clients/trading/__generated__/models/CheckApprovalLPRequest.ts +0 -35
- package/src/clients/trading/__generated__/models/CheckApprovalLPResponse.ts +0 -29
- package/src/clients/trading/__generated__/models/ClaimLPFeesRequest.ts +0 -20
- package/src/clients/trading/__generated__/models/ClaimLPFeesResponse.ts +0 -13
- package/src/clients/trading/__generated__/models/ClaimLPRewardsRequest.ts +0 -19
- package/src/clients/trading/__generated__/models/ClaimLPRewardsResponse.ts +0 -13
- package/src/clients/trading/__generated__/models/ClassicGasUseEstimateUSD.ts +0 -8
- package/src/clients/trading/__generated__/models/ClassicInput.ts +0 -11
- package/src/clients/trading/__generated__/models/ClassicOutput.ts +0 -13
- package/src/clients/trading/__generated__/models/ClassicQuote.ts +0 -69
- package/src/clients/trading/__generated__/models/ClientContext.ts +0 -18
- package/src/clients/trading/__generated__/models/CosignerData.ts +0 -21
- package/src/clients/trading/__generated__/models/CreateLPPositionRequest.ts +0 -40
- package/src/clients/trading/__generated__/models/CreateLPPositionResponse.ts +0 -21
- package/src/clients/trading/__generated__/models/CreatePlanRequest.ts +0 -23
- package/src/clients/trading/__generated__/models/CreateSendRequest.ts +0 -22
- package/src/clients/trading/__generated__/models/CreateSendResponse.ts +0 -18
- package/src/clients/trading/__generated__/models/CreateSwap5792Request.ts +0 -17
- package/src/clients/trading/__generated__/models/CreateSwap5792Response.ts +0 -17
- package/src/clients/trading/__generated__/models/CreateSwap7702Request.ts +0 -21
- package/src/clients/trading/__generated__/models/CreateSwap7702Response.ts +0 -13
- package/src/clients/trading/__generated__/models/CreateSwapRequest.ts +0 -42
- package/src/clients/trading/__generated__/models/CreateSwapResponse.ts +0 -16
- package/src/clients/trading/__generated__/models/Curve.ts +0 -9
- package/src/clients/trading/__generated__/models/DEXOrder.ts +0 -35
- package/src/clients/trading/__generated__/models/DecreaseLPPositionRequest.ts +0 -33
- package/src/clients/trading/__generated__/models/DecreaseLPPositionResponse.ts +0 -19
- package/src/clients/trading/__generated__/models/DelegationDetails.ts +0 -19
- package/src/clients/trading/__generated__/models/Distributor.ts +0 -10
- package/src/clients/trading/__generated__/models/DutchInput.ts +0 -13
- package/src/clients/trading/__generated__/models/DutchInputV3.ts +0 -15
- package/src/clients/trading/__generated__/models/DutchOrderInfo.ts +0 -41
- package/src/clients/trading/__generated__/models/DutchOrderInfoV2.ts +0 -27
- package/src/clients/trading/__generated__/models/DutchOrderInfoV3.ts +0 -28
- package/src/clients/trading/__generated__/models/DutchOutput.ts +0 -15
- package/src/clients/trading/__generated__/models/DutchOutputV3.ts +0 -18
- package/src/clients/trading/__generated__/models/DutchQuote.ts +0 -27
- package/src/clients/trading/__generated__/models/DutchQuoteV2.ts +0 -28
- package/src/clients/trading/__generated__/models/DutchQuoteV3.ts +0 -30
- package/src/clients/trading/__generated__/models/Encode7702ResponseBody.ts +0 -11
- package/src/clients/trading/__generated__/models/Err400.ts +0 -9
- package/src/clients/trading/__generated__/models/Err401.ts +0 -9
- package/src/clients/trading/__generated__/models/Err404.ts +0 -17
- package/src/clients/trading/__generated__/models/Err422.ts +0 -9
- package/src/clients/trading/__generated__/models/Err429.ts +0 -9
- package/src/clients/trading/__generated__/models/Err500.ts +0 -9
- package/src/clients/trading/__generated__/models/Err504.ts +0 -9
- package/src/clients/trading/__generated__/models/GasStrategy.ts +0 -46
- package/src/clients/trading/__generated__/models/GetOrdersResponse.ts +0 -12
- package/src/clients/trading/__generated__/models/GetSwappableTokensResponse.ts +0 -29
- package/src/clients/trading/__generated__/models/GetSwapsResponse.ts +0 -18
- package/src/clients/trading/__generated__/models/HooksOptions.ts +0 -12
- package/src/clients/trading/__generated__/models/IncreaseLPPositionRequest.ts +0 -39
- package/src/clients/trading/__generated__/models/IncreaseLPPositionResponse.ts +0 -21
- package/src/clients/trading/__generated__/models/IndependentToken.ts +0 -8
- package/src/clients/trading/__generated__/models/IndicativeQuoteRequest.ts +0 -18
- package/src/clients/trading/__generated__/models/IndicativeQuoteResponse.ts +0 -14
- package/src/clients/trading/__generated__/models/IndicativeQuoteToken.ts +0 -13
- package/src/clients/trading/__generated__/models/LimitOrderQuoteRequest.ts +0 -22
- package/src/clients/trading/__generated__/models/LimitOrderQuoteResponse.ts +0 -19
- package/src/clients/trading/__generated__/models/MigrateLPPositionRequest.ts +0 -41
- package/src/clients/trading/__generated__/models/MigrateLPPositionResponse.ts +0 -13
- package/src/clients/trading/__generated__/models/NullablePermit.ts +0 -13
- package/src/clients/trading/__generated__/models/OrderIds.ts +0 -5
- package/src/clients/trading/__generated__/models/OrderInput.ts +0 -13
- package/src/clients/trading/__generated__/models/OrderOutput.ts +0 -16
- package/src/clients/trading/__generated__/models/OrderRequest.ts +0 -17
- package/src/clients/trading/__generated__/models/OrderResponse.ts +0 -13
- package/src/clients/trading/__generated__/models/OrderStatus.ts +0 -23
- package/src/clients/trading/__generated__/models/OrderType.ts +0 -11
- package/src/clients/trading/__generated__/models/OrderTypeQuery.ts +0 -12
- package/src/clients/trading/__generated__/models/Permit.ts +0 -13
- package/src/clients/trading/__generated__/models/PermitAmount.ts +0 -11
- package/src/clients/trading/__generated__/models/PlanResponse.ts +0 -75
- package/src/clients/trading/__generated__/models/PlanStatus.ts +0 -14
- package/src/clients/trading/__generated__/models/PlanStep.ts +0 -59
- package/src/clients/trading/__generated__/models/PlanStepMethod.ts +0 -12
- package/src/clients/trading/__generated__/models/PlanStepPayloadType.ts +0 -12
- package/src/clients/trading/__generated__/models/PlanStepProof.ts +0 -20
- package/src/clients/trading/__generated__/models/PlanStepStatus.ts +0 -14
- package/src/clients/trading/__generated__/models/PlanStepType.ts +0 -23
- package/src/clients/trading/__generated__/models/Pool.ts +0 -15
- package/src/clients/trading/__generated__/models/PoolInfoRequest.ts +0 -20
- package/src/clients/trading/__generated__/models/PoolInfoResponse.ts +0 -16
- package/src/clients/trading/__generated__/models/PoolInformation.ts +0 -44
- package/src/clients/trading/__generated__/models/PoolParameters.ts +0 -19
- package/src/clients/trading/__generated__/models/PoolReferenceByProtocol.ts +0 -12
- package/src/clients/trading/__generated__/models/Position.ts +0 -11
- package/src/clients/trading/__generated__/models/PriorityInput.ts +0 -12
- package/src/clients/trading/__generated__/models/PriorityOrderInfo.ts +0 -29
- package/src/clients/trading/__generated__/models/PriorityOutput.ts +0 -17
- package/src/clients/trading/__generated__/models/PriorityQuote.ts +0 -31
- package/src/clients/trading/__generated__/models/ProtocolItems.ts +0 -15
- package/src/clients/trading/__generated__/models/Protocols.ts +0 -9
- package/src/clients/trading/__generated__/models/Quote.ts +0 -14
- package/src/clients/trading/__generated__/models/QuoteRequest.ts +0 -41
- package/src/clients/trading/__generated__/models/QuoteResponse.ts +0 -19
- package/src/clients/trading/__generated__/models/RequestId.ts +0 -8
- package/src/clients/trading/__generated__/models/Routing.ts +0 -20
- package/src/clients/trading/__generated__/models/RoutingPreference.ts +0 -16
- package/src/clients/trading/__generated__/models/SafetyLevel.ts +0 -10
- package/src/clients/trading/__generated__/models/ScopeData.ts +0 -28
- package/src/clients/trading/__generated__/models/SettledAmount.ts +0 -14
- package/src/clients/trading/__generated__/models/SortKey.ts +0 -7
- package/src/clients/trading/__generated__/models/SpreadOptimization.ts +0 -11
- package/src/clients/trading/__generated__/models/StepUpdate.ts +0 -25
- package/src/clients/trading/__generated__/models/SwapSafetyMode.ts +0 -10
- package/src/clients/trading/__generated__/models/SwapStatus.ts +0 -11
- package/src/clients/trading/__generated__/models/TokenInRoute.ts +0 -20
- package/src/clients/trading/__generated__/models/TokenProject.ts +0 -13
- package/src/clients/trading/__generated__/models/TokenProjectLogo.ts +0 -8
- package/src/clients/trading/__generated__/models/TradeType.ts +0 -11
- package/src/clients/trading/__generated__/models/TransactionFailureReason.ts +0 -11
- package/src/clients/trading/__generated__/models/TransactionHash.ts +0 -8
- package/src/clients/trading/__generated__/models/TransactionRequest.ts +0 -29
- package/src/clients/trading/__generated__/models/TransactionRequest5792.ts +0 -25
- package/src/clients/trading/__generated__/models/TruncatedPlanStep.ts +0 -21
- package/src/clients/trading/__generated__/models/UniversalRouterVersion.ts +0 -8
- package/src/clients/trading/__generated__/models/UpdatePlanRequest.ts +0 -12
- package/src/clients/trading/__generated__/models/Urgency.ts +0 -12
- package/src/clients/trading/__generated__/models/V2PoolInRoute.ts +0 -19
- package/src/clients/trading/__generated__/models/V2Reserve.ts +0 -16
- package/src/clients/trading/__generated__/models/V3PoolInRoute.ts +0 -24
- package/src/clients/trading/__generated__/models/V4PoolInRoute.ts +0 -30
- package/src/clients/trading/__generated__/models/WalletCheckDelegationRequestBody.ts +0 -17
- package/src/clients/trading/__generated__/models/WalletCheckDelegationResponseBody.ts +0 -14
- package/src/clients/trading/__generated__/models/WalletEncode7702RequestBody.ts +0 -21
- package/src/clients/trading/__generated__/models/WalletExecutionContext.ts +0 -17
- package/src/clients/trading/__generated__/models/WalletInfo.ts +0 -22
- package/src/clients/trading/__generated__/models/WalletProperties.ts +0 -12
- package/src/clients/trading/__generated__/models/WrapUnwrapQuote.ts +0 -31
- package/src/clients/trading/__generated__/models/additionalValidationContract.ts +0 -9
- package/src/clients/trading/__generated__/models/additionalValidationData.ts +0 -9
- package/src/clients/trading/__generated__/models/bps.ts +0 -8
- package/src/clients/trading/__generated__/models/bpsFee.ts +0 -8
- package/src/clients/trading/__generated__/models/bridgeTokenInChainIdParam.ts +0 -6
- package/src/clients/trading/__generated__/models/chainIdParam.ts +0 -6
- package/src/clients/trading/__generated__/models/claimerWalletAddress.ts +0 -8
- package/src/clients/trading/__generated__/models/contractAddress.ts +0 -8
- package/src/clients/trading/__generated__/models/cosignerAddress.ts +0 -8
- package/src/clients/trading/__generated__/models/cursorParam.ts +0 -5
- package/src/clients/trading/__generated__/models/deadline.ts +0 -8
- package/src/clients/trading/__generated__/models/encodedOrder.ts +0 -8
- package/src/clients/trading/__generated__/models/endAmount.ts +0 -8
- package/src/clients/trading/__generated__/models/erc20EthEnabledHeader.ts +0 -8
- package/src/clients/trading/__generated__/models/fillerParam.ts +0 -9
- package/src/clients/trading/__generated__/models/gasFee.ts +0 -8
- package/src/clients/trading/__generated__/models/gasFeeInCurrency.ts +0 -8
- package/src/clients/trading/__generated__/models/gasFeeUSD.ts +0 -8
- package/src/clients/trading/__generated__/models/gasLimit.ts +0 -8
- package/src/clients/trading/__generated__/models/gasPrice.ts +0 -8
- package/src/clients/trading/__generated__/models/generatePermitAsTransaction.ts +0 -8
- package/src/clients/trading/__generated__/models/includeGasInfo.ts +0 -8
- package/src/clients/trading/__generated__/models/inputToken.ts +0 -8
- package/src/clients/trading/__generated__/models/isSpam.ts +0 -8
- package/src/clients/trading/__generated__/models/limitParam.ts +0 -5
- package/src/clients/trading/__generated__/models/liquidity.ts +0 -8
- package/src/clients/trading/__generated__/models/lpPoolFee.ts +0 -8
- package/src/clients/trading/__generated__/models/lpTickCurrent.ts +0 -8
- package/src/clients/trading/__generated__/models/maxFeePerGas.ts +0 -8
- package/src/clients/trading/__generated__/models/maxPriorityFeePerGas.ts +0 -8
- package/src/clients/trading/__generated__/models/minAmount.ts +0 -8
- package/src/clients/trading/__generated__/models/nonce.ts +0 -8
- package/src/clients/trading/__generated__/models/orderId.ts +0 -8
- package/src/clients/trading/__generated__/models/orderIdParam.ts +0 -6
- package/src/clients/trading/__generated__/models/orderIdsParam.ts +0 -9
- package/src/clients/trading/__generated__/models/orderStatusParam.ts +0 -9
- package/src/clients/trading/__generated__/models/orderTypeParam.ts +0 -9
- package/src/clients/trading/__generated__/models/outputToken.ts +0 -8
- package/src/clients/trading/__generated__/models/poolFee.ts +0 -8
- package/src/clients/trading/__generated__/models/portionAmount.ts +0 -8
- package/src/clients/trading/__generated__/models/portionAmountReceiverAddress.ts +0 -8
- package/src/clients/trading/__generated__/models/portionBips.ts +0 -8
- package/src/clients/trading/__generated__/models/quoteId.ts +0 -8
- package/src/clients/trading/__generated__/models/receiverWalletAddress.ts +0 -8
- package/src/clients/trading/__generated__/models/senderWalletAddress.ts +0 -8
- package/src/clients/trading/__generated__/models/slippageTolerance.ts +0 -14
- package/src/clients/trading/__generated__/models/sortKeyParam.ts +0 -9
- package/src/clients/trading/__generated__/models/sortParam.ts +0 -8
- package/src/clients/trading/__generated__/models/sqrtRatioX96.ts +0 -8
- package/src/clients/trading/__generated__/models/startAmount.ts +0 -8
- package/src/clients/trading/__generated__/models/swapperParam.ts +0 -9
- package/src/clients/trading/__generated__/models/tickCurrent.ts +0 -8
- package/src/clients/trading/__generated__/models/tickSpacing.ts +0 -8
- package/src/clients/trading/__generated__/models/tokenAmount.ts +0 -8
- package/src/clients/trading/__generated__/models/tokenInParam.ts +0 -6
- package/src/clients/trading/__generated__/models/tokenSymbol.ts +0 -8
- package/src/clients/trading/__generated__/models/transactionHashesParam.ts +0 -9
- package/src/clients/trading/__generated__/models/universalRouterVersionHeader.ts +0 -9
- package/src/clients/trading/__generated__/services/ApprovalService.ts +0 -39
- package/src/clients/trading/__generated__/services/DefaultService.ts +0 -46
- package/src/clients/trading/__generated__/services/IndicativeQuoteService.ts +0 -39
- package/src/clients/trading/__generated__/services/LimitOrderQuoteService.ts +0 -37
- package/src/clients/trading/__generated__/services/LiquidityService.ts +0 -239
- package/src/clients/trading/__generated__/services/OrderService.ts +0 -131
- package/src/clients/trading/__generated__/services/PlanService.ts +0 -76
- package/src/clients/trading/__generated__/services/QuoteService.ts +0 -58
- package/src/clients/trading/__generated__/services/SendService.ts +0 -37
- package/src/clients/trading/__generated__/services/SwapService.ts +0 -161
- package/src/clients/trading/__generated__/services/SwappableTokensService.ts +0 -42
- package/src/clients/trading/__generated__/services/WalletCheckDelegationService.ts +0 -37
- package/src/clients/trading/__generated__/services/WalletEncode7702Service.ts +0 -37
- package/src/hooks/index.ts +0 -6
- package/src/hooks/use-token-list.ts +0 -52
- package/src/hooks/use-token-price.ts +0 -82
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export { ApiError } from './core/ApiError';
|
|
6
|
-
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
|
-
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
-
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
9
|
-
|
|
10
|
-
export type { additionalValidationContract } from './models/additionalValidationContract';
|
|
11
|
-
export type { additionalValidationData } from './models/additionalValidationData';
|
|
12
|
-
export type { Address } from './models/Address';
|
|
13
|
-
export type { AggregatedOutput } from './models/AggregatedOutput';
|
|
14
|
-
export type { ApprovalRequest } from './models/ApprovalRequest';
|
|
15
|
-
export type { ApprovalResponse } from './models/ApprovalResponse';
|
|
16
|
-
export { AutoSlippage } from './models/AutoSlippage';
|
|
17
|
-
export type { bps } from './models/bps';
|
|
18
|
-
export type { bpsFee } from './models/bpsFee';
|
|
19
|
-
export type { BridgeQuote } from './models/BridgeQuote';
|
|
20
|
-
export type { bridgeTokenInChainIdParam } from './models/bridgeTokenInChainIdParam';
|
|
21
|
-
export type { ChainDelegationMap } from './models/ChainDelegationMap';
|
|
22
|
-
export type { ChainedQuote } from './models/ChainedQuote';
|
|
23
|
-
export { ChainId } from './models/ChainId';
|
|
24
|
-
export type { chainIdParam } from './models/chainIdParam';
|
|
25
|
-
export type { CheckApprovalLPRequest } from './models/CheckApprovalLPRequest';
|
|
26
|
-
export type { CheckApprovalLPResponse } from './models/CheckApprovalLPResponse';
|
|
27
|
-
export type { claimerWalletAddress } from './models/claimerWalletAddress';
|
|
28
|
-
export type { ClaimLPFeesRequest } from './models/ClaimLPFeesRequest';
|
|
29
|
-
export type { ClaimLPFeesResponse } from './models/ClaimLPFeesResponse';
|
|
30
|
-
export type { ClaimLPRewardsRequest } from './models/ClaimLPRewardsRequest';
|
|
31
|
-
export type { ClaimLPRewardsResponse } from './models/ClaimLPRewardsResponse';
|
|
32
|
-
export type { ClassicGasUseEstimateUSD } from './models/ClassicGasUseEstimateUSD';
|
|
33
|
-
export type { ClassicInput } from './models/ClassicInput';
|
|
34
|
-
export type { ClassicOutput } from './models/ClassicOutput';
|
|
35
|
-
export type { ClassicQuote } from './models/ClassicQuote';
|
|
36
|
-
export type { ClientContext } from './models/ClientContext';
|
|
37
|
-
export type { contractAddress } from './models/contractAddress';
|
|
38
|
-
export type { cosignerAddress } from './models/cosignerAddress';
|
|
39
|
-
export type { CosignerData } from './models/CosignerData';
|
|
40
|
-
export type { CreateLPPositionRequest } from './models/CreateLPPositionRequest';
|
|
41
|
-
export type { CreateLPPositionResponse } from './models/CreateLPPositionResponse';
|
|
42
|
-
export { CreatePlanRequest } from './models/CreatePlanRequest';
|
|
43
|
-
export type { CreateSendRequest } from './models/CreateSendRequest';
|
|
44
|
-
export type { CreateSendResponse } from './models/CreateSendResponse';
|
|
45
|
-
export type { CreateSwap5792Request } from './models/CreateSwap5792Request';
|
|
46
|
-
export type { CreateSwap5792Response } from './models/CreateSwap5792Response';
|
|
47
|
-
export type { CreateSwap7702Request } from './models/CreateSwap7702Request';
|
|
48
|
-
export type { CreateSwap7702Response } from './models/CreateSwap7702Response';
|
|
49
|
-
export type { CreateSwapRequest } from './models/CreateSwapRequest';
|
|
50
|
-
export type { CreateSwapResponse } from './models/CreateSwapResponse';
|
|
51
|
-
export type { cursorParam } from './models/cursorParam';
|
|
52
|
-
export type { Curve } from './models/Curve';
|
|
53
|
-
export type { deadline } from './models/deadline';
|
|
54
|
-
export type { DecreaseLPPositionRequest } from './models/DecreaseLPPositionRequest';
|
|
55
|
-
export type { DecreaseLPPositionResponse } from './models/DecreaseLPPositionResponse';
|
|
56
|
-
export type { DelegationDetails } from './models/DelegationDetails';
|
|
57
|
-
export type { DEXOrder } from './models/DEXOrder';
|
|
58
|
-
export { Distributor } from './models/Distributor';
|
|
59
|
-
export type { DutchInput } from './models/DutchInput';
|
|
60
|
-
export type { DutchInputV3 } from './models/DutchInputV3';
|
|
61
|
-
export type { DutchOrderInfo } from './models/DutchOrderInfo';
|
|
62
|
-
export type { DutchOrderInfoV2 } from './models/DutchOrderInfoV2';
|
|
63
|
-
export type { DutchOrderInfoV3 } from './models/DutchOrderInfoV3';
|
|
64
|
-
export type { DutchOutput } from './models/DutchOutput';
|
|
65
|
-
export type { DutchOutputV3 } from './models/DutchOutputV3';
|
|
66
|
-
export type { DutchQuote } from './models/DutchQuote';
|
|
67
|
-
export type { DutchQuoteV2 } from './models/DutchQuoteV2';
|
|
68
|
-
export type { DutchQuoteV3 } from './models/DutchQuoteV3';
|
|
69
|
-
export type { Encode7702ResponseBody } from './models/Encode7702ResponseBody';
|
|
70
|
-
export type { encodedOrder } from './models/encodedOrder';
|
|
71
|
-
export type { endAmount } from './models/endAmount';
|
|
72
|
-
export type { erc20EthEnabledHeader } from './models/erc20EthEnabledHeader';
|
|
73
|
-
export type { Err400 } from './models/Err400';
|
|
74
|
-
export type { Err401 } from './models/Err401';
|
|
75
|
-
export { Err404 } from './models/Err404';
|
|
76
|
-
export type { Err422 } from './models/Err422';
|
|
77
|
-
export type { Err429 } from './models/Err429';
|
|
78
|
-
export type { Err500 } from './models/Err500';
|
|
79
|
-
export type { Err504 } from './models/Err504';
|
|
80
|
-
export type { fillerParam } from './models/fillerParam';
|
|
81
|
-
export type { gasFee } from './models/gasFee';
|
|
82
|
-
export type { gasFeeInCurrency } from './models/gasFeeInCurrency';
|
|
83
|
-
export type { gasFeeUSD } from './models/gasFeeUSD';
|
|
84
|
-
export type { gasLimit } from './models/gasLimit';
|
|
85
|
-
export type { gasPrice } from './models/gasPrice';
|
|
86
|
-
export type { GasStrategy } from './models/GasStrategy';
|
|
87
|
-
export type { generatePermitAsTransaction } from './models/generatePermitAsTransaction';
|
|
88
|
-
export type { GetOrdersResponse } from './models/GetOrdersResponse';
|
|
89
|
-
export type { GetSwappableTokensResponse } from './models/GetSwappableTokensResponse';
|
|
90
|
-
export type { GetSwapsResponse } from './models/GetSwapsResponse';
|
|
91
|
-
export { HooksOptions } from './models/HooksOptions';
|
|
92
|
-
export type { includeGasInfo } from './models/includeGasInfo';
|
|
93
|
-
export type { IncreaseLPPositionRequest } from './models/IncreaseLPPositionRequest';
|
|
94
|
-
export type { IncreaseLPPositionResponse } from './models/IncreaseLPPositionResponse';
|
|
95
|
-
export { IndependentToken } from './models/IndependentToken';
|
|
96
|
-
export type { IndicativeQuoteRequest } from './models/IndicativeQuoteRequest';
|
|
97
|
-
export type { IndicativeQuoteResponse } from './models/IndicativeQuoteResponse';
|
|
98
|
-
export type { IndicativeQuoteToken } from './models/IndicativeQuoteToken';
|
|
99
|
-
export type { inputToken } from './models/inputToken';
|
|
100
|
-
export type { isSpam } from './models/isSpam';
|
|
101
|
-
export type { LimitOrderQuoteRequest } from './models/LimitOrderQuoteRequest';
|
|
102
|
-
export { LimitOrderQuoteResponse } from './models/LimitOrderQuoteResponse';
|
|
103
|
-
export type { limitParam } from './models/limitParam';
|
|
104
|
-
export type { liquidity } from './models/liquidity';
|
|
105
|
-
export type { lpPoolFee } from './models/lpPoolFee';
|
|
106
|
-
export type { lpTickCurrent } from './models/lpTickCurrent';
|
|
107
|
-
export type { maxFeePerGas } from './models/maxFeePerGas';
|
|
108
|
-
export type { maxPriorityFeePerGas } from './models/maxPriorityFeePerGas';
|
|
109
|
-
export type { MigrateLPPositionRequest } from './models/MigrateLPPositionRequest';
|
|
110
|
-
export type { MigrateLPPositionResponse } from './models/MigrateLPPositionResponse';
|
|
111
|
-
export type { minAmount } from './models/minAmount';
|
|
112
|
-
export type { nonce } from './models/nonce';
|
|
113
|
-
export type { NullablePermit } from './models/NullablePermit';
|
|
114
|
-
export type { orderId } from './models/orderId';
|
|
115
|
-
export type { orderIdParam } from './models/orderIdParam';
|
|
116
|
-
export type { OrderIds } from './models/OrderIds';
|
|
117
|
-
export type { orderIdsParam } from './models/orderIdsParam';
|
|
118
|
-
export type { OrderInput } from './models/OrderInput';
|
|
119
|
-
export type { OrderOutput } from './models/OrderOutput';
|
|
120
|
-
export type { OrderRequest } from './models/OrderRequest';
|
|
121
|
-
export type { OrderResponse } from './models/OrderResponse';
|
|
122
|
-
export { OrderStatus } from './models/OrderStatus';
|
|
123
|
-
export type { orderStatusParam } from './models/orderStatusParam';
|
|
124
|
-
export { OrderType } from './models/OrderType';
|
|
125
|
-
export type { orderTypeParam } from './models/orderTypeParam';
|
|
126
|
-
export { OrderTypeQuery } from './models/OrderTypeQuery';
|
|
127
|
-
export type { outputToken } from './models/outputToken';
|
|
128
|
-
export type { Permit } from './models/Permit';
|
|
129
|
-
export { PermitAmount } from './models/PermitAmount';
|
|
130
|
-
export type { PlanResponse } from './models/PlanResponse';
|
|
131
|
-
export { PlanStatus } from './models/PlanStatus';
|
|
132
|
-
export type { PlanStep } from './models/PlanStep';
|
|
133
|
-
export { PlanStepMethod } from './models/PlanStepMethod';
|
|
134
|
-
export { PlanStepPayloadType } from './models/PlanStepPayloadType';
|
|
135
|
-
export type { PlanStepProof } from './models/PlanStepProof';
|
|
136
|
-
export { PlanStepStatus } from './models/PlanStepStatus';
|
|
137
|
-
export { PlanStepType } from './models/PlanStepType';
|
|
138
|
-
export type { Pool } from './models/Pool';
|
|
139
|
-
export type { poolFee } from './models/poolFee';
|
|
140
|
-
export type { PoolInfoRequest } from './models/PoolInfoRequest';
|
|
141
|
-
export type { PoolInfoResponse } from './models/PoolInfoResponse';
|
|
142
|
-
export type { PoolInformation } from './models/PoolInformation';
|
|
143
|
-
export type { PoolParameters } from './models/PoolParameters';
|
|
144
|
-
export type { PoolReferenceByProtocol } from './models/PoolReferenceByProtocol';
|
|
145
|
-
export type { portionAmount } from './models/portionAmount';
|
|
146
|
-
export type { portionAmountReceiverAddress } from './models/portionAmountReceiverAddress';
|
|
147
|
-
export type { portionBips } from './models/portionBips';
|
|
148
|
-
export type { Position } from './models/Position';
|
|
149
|
-
export type { PriorityInput } from './models/PriorityInput';
|
|
150
|
-
export type { PriorityOrderInfo } from './models/PriorityOrderInfo';
|
|
151
|
-
export type { PriorityOutput } from './models/PriorityOutput';
|
|
152
|
-
export type { PriorityQuote } from './models/PriorityQuote';
|
|
153
|
-
export { ProtocolItems } from './models/ProtocolItems';
|
|
154
|
-
export type { Protocols } from './models/Protocols';
|
|
155
|
-
export type { Quote } from './models/Quote';
|
|
156
|
-
export type { quoteId } from './models/quoteId';
|
|
157
|
-
export type { QuoteRequest } from './models/QuoteRequest';
|
|
158
|
-
export type { QuoteResponse } from './models/QuoteResponse';
|
|
159
|
-
export type { receiverWalletAddress } from './models/receiverWalletAddress';
|
|
160
|
-
export type { RequestId } from './models/RequestId';
|
|
161
|
-
export { Routing } from './models/Routing';
|
|
162
|
-
export { RoutingPreference } from './models/RoutingPreference';
|
|
163
|
-
export { SafetyLevel } from './models/SafetyLevel';
|
|
164
|
-
export type { ScopeData } from './models/ScopeData';
|
|
165
|
-
export type { senderWalletAddress } from './models/senderWalletAddress';
|
|
166
|
-
export type { SettledAmount } from './models/SettledAmount';
|
|
167
|
-
export type { slippageTolerance } from './models/slippageTolerance';
|
|
168
|
-
export { SortKey } from './models/SortKey';
|
|
169
|
-
export type { sortKeyParam } from './models/sortKeyParam';
|
|
170
|
-
export type { sortParam } from './models/sortParam';
|
|
171
|
-
export { SpreadOptimization } from './models/SpreadOptimization';
|
|
172
|
-
export type { sqrtRatioX96 } from './models/sqrtRatioX96';
|
|
173
|
-
export type { startAmount } from './models/startAmount';
|
|
174
|
-
export type { StepUpdate } from './models/StepUpdate';
|
|
175
|
-
export type { swapperParam } from './models/swapperParam';
|
|
176
|
-
export { SwapSafetyMode } from './models/SwapSafetyMode';
|
|
177
|
-
export { SwapStatus } from './models/SwapStatus';
|
|
178
|
-
export type { tickCurrent } from './models/tickCurrent';
|
|
179
|
-
export type { tickSpacing } from './models/tickSpacing';
|
|
180
|
-
export type { tokenAmount } from './models/tokenAmount';
|
|
181
|
-
export type { tokenInParam } from './models/tokenInParam';
|
|
182
|
-
export type { TokenInRoute } from './models/TokenInRoute';
|
|
183
|
-
export type { TokenProject } from './models/TokenProject';
|
|
184
|
-
export type { TokenProjectLogo } from './models/TokenProjectLogo';
|
|
185
|
-
export type { tokenSymbol } from './models/tokenSymbol';
|
|
186
|
-
export { TradeType } from './models/TradeType';
|
|
187
|
-
export { TransactionFailureReason } from './models/TransactionFailureReason';
|
|
188
|
-
export type { TransactionHash } from './models/TransactionHash';
|
|
189
|
-
export type { transactionHashesParam } from './models/transactionHashesParam';
|
|
190
|
-
export type { TransactionRequest } from './models/TransactionRequest';
|
|
191
|
-
export type { TransactionRequest5792 } from './models/TransactionRequest5792';
|
|
192
|
-
export type { TruncatedPlanStep } from './models/TruncatedPlanStep';
|
|
193
|
-
export { UniversalRouterVersion } from './models/UniversalRouterVersion';
|
|
194
|
-
export type { universalRouterVersionHeader } from './models/universalRouterVersionHeader';
|
|
195
|
-
export type { UpdatePlanRequest } from './models/UpdatePlanRequest';
|
|
196
|
-
export { Urgency } from './models/Urgency';
|
|
197
|
-
export type { V2PoolInRoute } from './models/V2PoolInRoute';
|
|
198
|
-
export type { V2Reserve } from './models/V2Reserve';
|
|
199
|
-
export type { V3PoolInRoute } from './models/V3PoolInRoute';
|
|
200
|
-
export type { V4PoolInRoute } from './models/V4PoolInRoute';
|
|
201
|
-
export type { WalletCheckDelegationRequestBody } from './models/WalletCheckDelegationRequestBody';
|
|
202
|
-
export type { WalletCheckDelegationResponseBody } from './models/WalletCheckDelegationResponseBody';
|
|
203
|
-
export type { WalletEncode7702RequestBody } from './models/WalletEncode7702RequestBody';
|
|
204
|
-
export type { WalletExecutionContext } from './models/WalletExecutionContext';
|
|
205
|
-
export type { WalletInfo } from './models/WalletInfo';
|
|
206
|
-
export type { WalletProperties } from './models/WalletProperties';
|
|
207
|
-
export type { WrapUnwrapQuote } from './models/WrapUnwrapQuote';
|
|
208
|
-
|
|
209
|
-
export { ApprovalService } from './services/ApprovalService';
|
|
210
|
-
export { DefaultService } from './services/DefaultService';
|
|
211
|
-
export { IndicativeQuoteService } from './services/IndicativeQuoteService';
|
|
212
|
-
export { LimitOrderQuoteService } from './services/LimitOrderQuoteService';
|
|
213
|
-
export { LiquidityService } from './services/LiquidityService';
|
|
214
|
-
export { OrderService } from './services/OrderService';
|
|
215
|
-
export { PlanService } from './services/PlanService';
|
|
216
|
-
export { QuoteService } from './services/QuoteService';
|
|
217
|
-
export { SendService } from './services/SendService';
|
|
218
|
-
export { SwapService } from './services/SwapService';
|
|
219
|
-
export { SwappableTokensService } from './services/SwappableTokensService';
|
|
220
|
-
export { WalletCheckDelegationService } from './services/WalletCheckDelegationService';
|
|
221
|
-
export { WalletEncode7702Service } from './services/WalletEncode7702Service';
|
|
@@ -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 { bps } from './bps';
|
|
6
|
-
import type { minAmount } from './minAmount';
|
|
7
|
-
import type { outputToken } from './outputToken';
|
|
8
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
9
|
-
import type { tokenAmount } from './tokenAmount';
|
|
10
|
-
/**
|
|
11
|
-
* An array of all outputs of the proposed transaction. This includes the swap as well as any fees collected by the API integrator. This does not include pool fees when routing is through a Lux Protocol pool.
|
|
12
|
-
*/
|
|
13
|
-
export type AggregatedOutput = {
|
|
14
|
-
token?: outputToken;
|
|
15
|
-
amount?: tokenAmount;
|
|
16
|
-
recipient?: receiverWalletAddress;
|
|
17
|
-
bps?: bps;
|
|
18
|
-
minAmount?: minAmount;
|
|
19
|
-
};
|
|
20
|
-
|
|
@@ -1,25 +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 { includeGasInfo } from './includeGasInfo';
|
|
7
|
-
import type { inputToken } from './inputToken';
|
|
8
|
-
import type { outputToken } from './outputToken';
|
|
9
|
-
import type { senderWalletAddress } from './senderWalletAddress';
|
|
10
|
-
import type { tokenAmount } from './tokenAmount';
|
|
11
|
-
import type { Urgency } from './Urgency';
|
|
12
|
-
import { GasStrategy } from "../../types";
|
|
13
|
-
|
|
14
|
-
export type ApprovalRequest = {
|
|
15
|
-
walletAddress: senderWalletAddress;
|
|
16
|
-
token: inputToken;
|
|
17
|
-
amount: tokenAmount;
|
|
18
|
-
chainId: ChainId;
|
|
19
|
-
urgency?: Urgency;
|
|
20
|
-
includeGasInfo?: includeGasInfo;
|
|
21
|
-
tokenOut?: outputToken;
|
|
22
|
-
tokenOutChainId?: ChainId;
|
|
23
|
-
gasStrategies?: GasStrategy[];
|
|
24
|
-
};
|
|
25
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { gasFee } from './gasFee';
|
|
6
|
-
import type { RequestId } from './RequestId';
|
|
7
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
8
|
-
import { GasEstimate } from "../../types";
|
|
9
|
-
|
|
10
|
-
export type ApprovalResponse = {
|
|
11
|
-
requestId: RequestId;
|
|
12
|
-
approval: TransactionRequest;
|
|
13
|
-
cancel: TransactionRequest;
|
|
14
|
-
gasFee?: gasFee;
|
|
15
|
-
cancelGasFee?: gasFee;
|
|
16
|
-
gasEstimates?: GasEstimate[];
|
|
17
|
-
};
|
|
18
|
-
|
|
@@ -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 auto slippage strategy to employ. For Lux Protocols (v2, v3, v4) the auto slippage will be automatically calculated when this field is set to `DEFAULT`. Auto slippage cannot be calculated for DEX swaps.
|
|
7
|
-
*
|
|
8
|
-
* Note that if the trade type is `EXACT_INPUT`, then the slippage is in terms of the output token. If the trade type is `EXACT_OUTPUT`, then the slippage is in terms of the input token.
|
|
9
|
-
*
|
|
10
|
-
* When submitting a request, `autoSlippage` may not be set when `slippageTolerance` is defined. One of `slippageTolerance` or `autoSlippage` must be defined.
|
|
11
|
-
*/
|
|
12
|
-
export enum AutoSlippage {
|
|
13
|
-
DEFAULT = 'DEFAULT',
|
|
14
|
-
}
|
|
@@ -1,55 +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 { ClassicInput } from './ClassicInput';
|
|
7
|
-
import type { ClassicOutput } from './ClassicOutput';
|
|
8
|
-
import type { gasFee } from './gasFee';
|
|
9
|
-
import type { gasFeeUSD } from './gasFeeUSD';
|
|
10
|
-
import type { gasLimit } from './gasLimit';
|
|
11
|
-
import type { gasPrice } from './gasPrice';
|
|
12
|
-
import type { maxFeePerGas } from './maxFeePerGas';
|
|
13
|
-
import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
|
|
14
|
-
import type { portionAmount } from './portionAmount';
|
|
15
|
-
import type { portionAmountReceiverAddress } from './portionAmountReceiverAddress';
|
|
16
|
-
import type { portionBips } from './portionBips';
|
|
17
|
-
import type { quoteId } from './quoteId';
|
|
18
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
19
|
-
import type { TradeType } from './TradeType';
|
|
20
|
-
export type BridgeQuote = {
|
|
21
|
-
quoteId?: quoteId;
|
|
22
|
-
chainId?: ChainId;
|
|
23
|
-
destinationChainId?: ChainId;
|
|
24
|
-
swapper?: receiverWalletAddress;
|
|
25
|
-
input?: ClassicInput;
|
|
26
|
-
output?: ClassicOutput;
|
|
27
|
-
tradeType?: TradeType;
|
|
28
|
-
quoteTimestamp?: number;
|
|
29
|
-
gasPrice?: gasPrice;
|
|
30
|
-
maxFeePerGas?: maxFeePerGas;
|
|
31
|
-
maxPriorityFeePerGas?: maxPriorityFeePerGas;
|
|
32
|
-
gasFee?: gasFee;
|
|
33
|
-
gasUseEstimate?: gasLimit;
|
|
34
|
-
gasFeeUSD?: gasFeeUSD;
|
|
35
|
-
portionBips?: portionBips;
|
|
36
|
-
portionAmount?: portionAmount;
|
|
37
|
-
portionRecipient?: portionAmountReceiverAddress;
|
|
38
|
-
/**
|
|
39
|
-
* The estimated time it will take to fill the order in milliseconds.
|
|
40
|
-
*/
|
|
41
|
-
estimatedFillTimeMs?: number;
|
|
42
|
-
/**
|
|
43
|
-
* The address of the exclusive filler (the relayer).
|
|
44
|
-
*/
|
|
45
|
-
exclusiveRelayer?: string;
|
|
46
|
-
/**
|
|
47
|
-
* The deadline (unix timestamp) by which the exclusive relayer must fill the order before other relayers can fill it.
|
|
48
|
-
*/
|
|
49
|
-
exclusivityDeadline?: number;
|
|
50
|
-
/**
|
|
51
|
-
* The deadline by which, if the order is not filled, the order will be reverted.
|
|
52
|
-
*/
|
|
53
|
-
fillDeadline?: number;
|
|
54
|
-
};
|
|
55
|
-
|
|
@@ -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 { DelegationDetails } from './DelegationDetails';
|
|
6
|
-
/**
|
|
7
|
-
* Map of chain IDs to delegation details for a specific wallet.
|
|
8
|
-
*/
|
|
9
|
-
export type ChainDelegationMap = Record<string, DelegationDetails>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* The unique ID of the blockchain. For a list of supported chains see the [FAQ](https://api-docs.lux.exchange/guides/faqs).
|
|
7
|
-
*/
|
|
8
|
-
export enum ChainId {
|
|
9
|
-
'_1' = 1,
|
|
10
|
-
'_10' = 10,
|
|
11
|
-
'_56' = 56,
|
|
12
|
-
'_130' = 130,
|
|
13
|
-
'_137' = 137,
|
|
14
|
-
'_196' = 196,
|
|
15
|
-
'_324' = 324,
|
|
16
|
-
'_480' = 480,
|
|
17
|
-
'_1868' = 1868,
|
|
18
|
-
'_8453' = 8453,
|
|
19
|
-
'_10143' = 10143,
|
|
20
|
-
'_42161' = 42161,
|
|
21
|
-
'_42220' = 42220,
|
|
22
|
-
'_43114' = 43114,
|
|
23
|
-
'_81457' = 81457,
|
|
24
|
-
'_7777777' = 7777777,
|
|
25
|
-
'_1301' = 1301,
|
|
26
|
-
'_84532' = 84532,
|
|
27
|
-
'_11155111' = 11155111,
|
|
28
|
-
'_143' = 143,
|
|
29
|
-
}
|
|
@@ -1,63 +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 { ClassicInput } from './ClassicInput';
|
|
8
|
-
import type { ClassicOutput } from './ClassicOutput';
|
|
9
|
-
import type { gasFee } from './gasFee';
|
|
10
|
-
import type { gasFeeInCurrency } from './gasFeeInCurrency';
|
|
11
|
-
import type { gasFeeUSD } from './gasFeeUSD';
|
|
12
|
-
import type { gasLimit } from './gasLimit';
|
|
13
|
-
import type { gasPrice } from './gasPrice';
|
|
14
|
-
import type { GasStrategy } from './GasStrategy';
|
|
15
|
-
import type { HooksOptions } from './HooksOptions';
|
|
16
|
-
import type { maxFeePerGas } from './maxFeePerGas';
|
|
17
|
-
import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
|
|
18
|
-
import type { Protocols } from './Protocols';
|
|
19
|
-
import type { quoteId } from './quoteId';
|
|
20
|
-
import type { senderWalletAddress } from './senderWalletAddress';
|
|
21
|
-
import type { slippageTolerance } from './slippageTolerance';
|
|
22
|
-
import type { TradeType } from './TradeType';
|
|
23
|
-
import type { TruncatedPlanStep } from './TruncatedPlanStep';
|
|
24
|
-
import { GasEstimate } from "../../types";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* A quote for a chained transaction flow that spans multiple steps, potentially across multiple chains.
|
|
28
|
-
*/
|
|
29
|
-
export type ChainedQuote = {
|
|
30
|
-
swapper: senderWalletAddress;
|
|
31
|
-
input: ClassicInput;
|
|
32
|
-
output: ClassicOutput;
|
|
33
|
-
tokenInChainId: ChainId;
|
|
34
|
-
tokenOutChainId: ChainId;
|
|
35
|
-
tradeType: TradeType;
|
|
36
|
-
quoteId: quoteId;
|
|
37
|
-
/**
|
|
38
|
-
* Estimated time in milliseconds to complete the entire chained flow.
|
|
39
|
-
*/
|
|
40
|
-
timeEstimateMs?: number;
|
|
41
|
-
gasUseEstimate?: gasLimit;
|
|
42
|
-
gasFeeUSD?: gasFeeUSD;
|
|
43
|
-
gasFeeQuote?: gasFeeInCurrency;
|
|
44
|
-
gasPrice?: gasPrice;
|
|
45
|
-
maxFeePerGas?: maxFeePerGas;
|
|
46
|
-
maxPriorityFeePerGas?: maxPriorityFeePerGas;
|
|
47
|
-
gasFee?: gasFee;
|
|
48
|
-
protocols?: Protocols;
|
|
49
|
-
hooksOptions?: HooksOptions;
|
|
50
|
-
/**
|
|
51
|
-
* Gas strategies for the chained flow.
|
|
52
|
-
*/
|
|
53
|
-
gasStrategies: Array<GasStrategy>;
|
|
54
|
-
/**
|
|
55
|
-
* Truncated plan steps for the chained transaction flow.
|
|
56
|
-
*/
|
|
57
|
-
steps?: Array<TruncatedPlanStep>;
|
|
58
|
-
slippageTolerance?: slippageTolerance;
|
|
59
|
-
autoSlippage?: AutoSlippage;
|
|
60
|
-
gasEstimates?: GasEstimate[];
|
|
61
|
-
slippage?: slippageTolerance;
|
|
62
|
-
};
|
|
63
|
-
|
|
@@ -1,35 +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 { ChainId } from './ChainId';
|
|
7
|
-
import type { generatePermitAsTransaction } from './generatePermitAsTransaction';
|
|
8
|
-
import type { inputToken } from './inputToken';
|
|
9
|
-
import type { ProtocolItems } from './ProtocolItems';
|
|
10
|
-
export type CheckApprovalLPRequest = {
|
|
11
|
-
protocol?: ProtocolItems;
|
|
12
|
-
token0?: inputToken;
|
|
13
|
-
token1?: inputToken;
|
|
14
|
-
/**
|
|
15
|
-
* The address of the NFT representing the position. Required when requesting approval for removing liquidity from a V2 position (provide address of V2 NFT). Required when requesting approval for migrating a V3 position to a V4 position (provide address of V3 NFT).
|
|
16
|
-
*/
|
|
17
|
-
positionToken?: string;
|
|
18
|
-
chainId?: ChainId;
|
|
19
|
-
walletAddress?: Address;
|
|
20
|
-
/**
|
|
21
|
-
* The amount of token0 to be added or removed from the position. To estimate the amount of token0 needed when adding a new position, use the /lp/create endpoint to simulate the position creation.
|
|
22
|
-
*/
|
|
23
|
-
amount0?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The amount of token1 to be added or removed from the position. To estimate the amount of token1 needed when adding a new position, use the /lp/create endpoint to simulate the position creation.
|
|
26
|
-
*/
|
|
27
|
-
amount1?: string;
|
|
28
|
-
generatePermitAsTransaction?: generatePermitAsTransaction;
|
|
29
|
-
/**
|
|
30
|
-
* Only required when getting approval for removing a V2 position. Populated with the amount of the V2 position to be removed (eg. amount0*amount1).
|
|
31
|
-
*/
|
|
32
|
-
positionAmount?: string;
|
|
33
|
-
simulateTransaction?: boolean;
|
|
34
|
-
};
|
|
35
|
-
|
|
@@ -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 { gasFee } from './gasFee';
|
|
6
|
-
import type { NullablePermit } from './NullablePermit';
|
|
7
|
-
import type { RequestId } from './RequestId';
|
|
8
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
9
|
-
export type CheckApprovalLPResponse = {
|
|
10
|
-
requestId?: RequestId;
|
|
11
|
-
token0Approval?: TransactionRequest;
|
|
12
|
-
token1Approval?: TransactionRequest;
|
|
13
|
-
token0Cancel?: TransactionRequest;
|
|
14
|
-
token1Cancel?: TransactionRequest;
|
|
15
|
-
positionTokenApproval?: TransactionRequest;
|
|
16
|
-
permitData?: NullablePermit;
|
|
17
|
-
token0PermitTransaction?: TransactionRequest;
|
|
18
|
-
token1PermitTransaction?: TransactionRequest;
|
|
19
|
-
positionTokenPermitTransaction?: TransactionRequest;
|
|
20
|
-
gasFeeToken0Approval?: gasFee;
|
|
21
|
-
gasFeeToken1Approval?: gasFee;
|
|
22
|
-
gasFeePositionTokenApproval?: gasFee;
|
|
23
|
-
gasFeeToken0Cancel?: gasFee;
|
|
24
|
-
gasFeeToken1Cancel?: gasFee;
|
|
25
|
-
gasFeeToken0Permit?: gasFee;
|
|
26
|
-
gasFeeToken1Permit?: gasFee;
|
|
27
|
-
gasFeePositionTokenPermit?: gasFee;
|
|
28
|
-
};
|
|
29
|
-
|
|
@@ -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 { Address } from './Address';
|
|
6
|
-
import type { ChainId } from './ChainId';
|
|
7
|
-
import type { Position } from './Position';
|
|
8
|
-
import type { ProtocolItems } from './ProtocolItems';
|
|
9
|
-
export type ClaimLPFeesRequest = {
|
|
10
|
-
protocol?: ProtocolItems;
|
|
11
|
-
tokenId?: number;
|
|
12
|
-
position?: Position;
|
|
13
|
-
walletAddress?: Address;
|
|
14
|
-
chainId?: ChainId;
|
|
15
|
-
expectedTokenOwed0RawAmount?: string;
|
|
16
|
-
expectedTokenOwed1RawAmount?: string;
|
|
17
|
-
collectAsWETH?: boolean;
|
|
18
|
-
simulateTransaction?: boolean;
|
|
19
|
-
};
|
|
20
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { gasFee } from './gasFee';
|
|
6
|
-
import type { RequestId } from './RequestId';
|
|
7
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
8
|
-
export type ClaimLPFeesResponse = {
|
|
9
|
-
requestId?: RequestId;
|
|
10
|
-
claim?: TransactionRequest;
|
|
11
|
-
gasFee?: gasFee;
|
|
12
|
-
};
|
|
13
|
-
|
|
@@ -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 { Address } from './Address';
|
|
6
|
-
import type { ChainId } from './ChainId';
|
|
7
|
-
import type { claimerWalletAddress } from './claimerWalletAddress';
|
|
8
|
-
import type { Distributor } from './Distributor';
|
|
9
|
-
export type ClaimLPRewardsRequest = {
|
|
10
|
-
walletAddress?: claimerWalletAddress;
|
|
11
|
-
chainId?: ChainId;
|
|
12
|
-
/**
|
|
13
|
-
* The token addresses to claim rewards for.
|
|
14
|
-
*/
|
|
15
|
-
tokens?: Array<Address>;
|
|
16
|
-
distributor?: Distributor;
|
|
17
|
-
simulateTransaction?: boolean;
|
|
18
|
-
};
|
|
19
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { gasFee } from './gasFee';
|
|
6
|
-
import type { RequestId } from './RequestId';
|
|
7
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
8
|
-
export type ClaimLPRewardsResponse = {
|
|
9
|
-
requestId?: RequestId;
|
|
10
|
-
claim?: TransactionRequest;
|
|
11
|
-
gasFee?: gasFee;
|
|
12
|
-
};
|
|
13
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* The gas fee you would pay if you opted for a CLASSIC swap over a Lux X order in terms of USD.
|
|
7
|
-
*/
|
|
8
|
-
export type ClassicGasUseEstimateUSD = string;
|
|
@@ -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 { inputToken } from './inputToken';
|
|
6
|
-
import type { tokenAmount } from './tokenAmount';
|
|
7
|
-
export type ClassicInput = {
|
|
8
|
-
token?: inputToken;
|
|
9
|
-
amount?: tokenAmount;
|
|
10
|
-
};
|
|
11
|
-
|
|
@@ -1,13 +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 ClassicOutput = {
|
|
9
|
-
token?: outputToken;
|
|
10
|
-
amount?: tokenAmount;
|
|
11
|
-
recipient?: receiverWalletAddress;
|
|
12
|
-
};
|
|
13
|
-
|