@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,69 +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 { 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 { gasPrice } from './gasPrice';
|
|
13
|
-
import type { maxFeePerGas } from './maxFeePerGas';
|
|
14
|
-
import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
|
|
15
|
-
import type { portionAmount } from './portionAmount';
|
|
16
|
-
import type { portionAmountReceiverAddress } from './portionAmountReceiverAddress';
|
|
17
|
-
import type { portionBips } from './portionBips';
|
|
18
|
-
import type { quoteId } from './quoteId';
|
|
19
|
-
import type { senderWalletAddress } from './senderWalletAddress';
|
|
20
|
-
import type { slippageTolerance } from './slippageTolerance';
|
|
21
|
-
import type { TradeType } from './TradeType';
|
|
22
|
-
import type { TransactionFailureReason } from './TransactionFailureReason';
|
|
23
|
-
import type { V2PoolInRoute } from './V2PoolInRoute';
|
|
24
|
-
import type { V3PoolInRoute } from './V3PoolInRoute';
|
|
25
|
-
import type { V4PoolInRoute } from './V4PoolInRoute';
|
|
26
|
-
import { GasEstimate } from "../../types";
|
|
27
|
-
|
|
28
|
-
export type ClassicQuote = {
|
|
29
|
-
input?: ClassicInput;
|
|
30
|
-
output?: ClassicOutput;
|
|
31
|
-
swapper?: senderWalletAddress;
|
|
32
|
-
chainId?: ChainId;
|
|
33
|
-
slippage?: slippageTolerance;
|
|
34
|
-
tradeType?: TradeType;
|
|
35
|
-
gasFee?: gasFee;
|
|
36
|
-
gasFeeUSD?: gasFeeUSD;
|
|
37
|
-
gasFeeQuote?: gasFeeInCurrency;
|
|
38
|
-
route?: Array<Array<(V2PoolInRoute | V3PoolInRoute | V4PoolInRoute)>>;
|
|
39
|
-
portionBips?: portionBips;
|
|
40
|
-
portionAmount?: portionAmount;
|
|
41
|
-
portionRecipient?: portionAmountReceiverAddress;
|
|
42
|
-
/**
|
|
43
|
-
* The route in string format.
|
|
44
|
-
*/
|
|
45
|
-
routeString?: string;
|
|
46
|
-
quoteId?: quoteId;
|
|
47
|
-
/**
|
|
48
|
-
* The estimated gas use. It does NOT include the additional gas for token approvals.
|
|
49
|
-
*/
|
|
50
|
-
gasUseEstimate?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The current block number.
|
|
53
|
-
*/
|
|
54
|
-
blockNumber?: string;
|
|
55
|
-
gasPrice?: gasPrice;
|
|
56
|
-
maxFeePerGas?: maxFeePerGas;
|
|
57
|
-
maxPriorityFeePerGas?: maxPriorityFeePerGas;
|
|
58
|
-
/**
|
|
59
|
-
* The reason(s) why the transaction failed during simulation.
|
|
60
|
-
*/
|
|
61
|
-
txFailureReasons?: Array<TransactionFailureReason>;
|
|
62
|
-
/**
|
|
63
|
-
* The impact the trade has on the market price of the pool, between 0-100 percent
|
|
64
|
-
*/
|
|
65
|
-
priceImpact?: number;
|
|
66
|
-
aggregatedOutputs?: Array<AggregatedOutput>;
|
|
67
|
-
gasEstimates?: GasEstimate[];
|
|
68
|
-
};
|
|
69
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Uni client-specific context describing how this wallet integrates with the application.
|
|
7
|
-
*/
|
|
8
|
-
export type ClientContext = {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the wallet has direct private key access.
|
|
11
|
-
*/
|
|
12
|
-
directPrivateKeyAccess?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Address for the next EVM upgrade.
|
|
15
|
-
*/
|
|
16
|
-
nextEvmUpgradeAddress?: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export type CosignerData = {
|
|
6
|
-
/**
|
|
7
|
-
* The unix timestamp at which the order will be eligible to be filled by alternate fillers at a lower price. Noted that the fill amount will not be lower than the output `endAmount`.
|
|
8
|
-
*/
|
|
9
|
-
decayStartTime?: number;
|
|
10
|
-
/**
|
|
11
|
-
* The unix timestamp at which the order will no longer be eligible to be filled by alternate fillers.
|
|
12
|
-
*/
|
|
13
|
-
decayEndTime?: number;
|
|
14
|
-
/**
|
|
15
|
-
* The address of the filler who has priority to fill the order by the `decayStartTime`.
|
|
16
|
-
*/
|
|
17
|
-
exclusiveFiller?: string;
|
|
18
|
-
inputOverride?: string;
|
|
19
|
-
outputOverrides?: Array<string>;
|
|
20
|
-
};
|
|
21
|
-
|
|
@@ -1,40 +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 { deadline } from './deadline';
|
|
8
|
-
import type { IndependentToken } from './IndependentToken';
|
|
9
|
-
import type { liquidity } from './liquidity';
|
|
10
|
-
import type { lpTickCurrent } from './lpTickCurrent';
|
|
11
|
-
import type { Permit } from './Permit';
|
|
12
|
-
import type { Position } from './Position';
|
|
13
|
-
import type { ProtocolItems } from './ProtocolItems';
|
|
14
|
-
import type { sqrtRatioX96 } from './sqrtRatioX96';
|
|
15
|
-
import type { tokenAmount } from './tokenAmount';
|
|
16
|
-
export type CreateLPPositionRequest = {
|
|
17
|
-
protocol?: ProtocolItems;
|
|
18
|
-
position?: Position;
|
|
19
|
-
walletAddress?: Address;
|
|
20
|
-
chainId?: ChainId;
|
|
21
|
-
initialPrice?: string;
|
|
22
|
-
poolLiquidity?: liquidity;
|
|
23
|
-
currentTick?: lpTickCurrent;
|
|
24
|
-
sqrtRatioX96?: sqrtRatioX96;
|
|
25
|
-
amount0?: tokenAmount;
|
|
26
|
-
amount1?: tokenAmount;
|
|
27
|
-
independentAmount?: tokenAmount;
|
|
28
|
-
independentToken?: IndependentToken;
|
|
29
|
-
initialDependentAmount?: tokenAmount;
|
|
30
|
-
defaultDependentAmount?: tokenAmount;
|
|
31
|
-
slippageTolerance?: number;
|
|
32
|
-
deadline?: deadline;
|
|
33
|
-
/**
|
|
34
|
-
* The signed permit.
|
|
35
|
-
*/
|
|
36
|
-
signature?: string;
|
|
37
|
-
batchPermitData?: Permit;
|
|
38
|
-
simulateTransaction?: boolean;
|
|
39
|
-
};
|
|
40
|
-
|
|
@@ -1,21 +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 { liquidity } from './liquidity';
|
|
7
|
-
import type { lpTickCurrent } from './lpTickCurrent';
|
|
8
|
-
import type { RequestId } from './RequestId';
|
|
9
|
-
import type { sqrtRatioX96 } from './sqrtRatioX96';
|
|
10
|
-
import type { tokenAmount } from './tokenAmount';
|
|
11
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
12
|
-
export type CreateLPPositionResponse = {
|
|
13
|
-
requestId?: RequestId;
|
|
14
|
-
create?: TransactionRequest;
|
|
15
|
-
gasFee?: gasFee;
|
|
16
|
-
dependentAmount?: tokenAmount;
|
|
17
|
-
poolLiquidity?: liquidity;
|
|
18
|
-
currentTick?: lpTickCurrent;
|
|
19
|
-
sqrtRatioX96?: sqrtRatioX96;
|
|
20
|
-
};
|
|
21
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { ChainedQuote } from './ChainedQuote';
|
|
6
|
-
import type { WalletExecutionContext } from './WalletExecutionContext';
|
|
7
|
-
export type CreatePlanRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* The routing type for the plan. Currently only CHAINED is supported for multi-step execution plans.
|
|
10
|
-
*/
|
|
11
|
-
routing: CreatePlanRequest.routing;
|
|
12
|
-
quote: ChainedQuote;
|
|
13
|
-
walletExecutionContext?: WalletExecutionContext;
|
|
14
|
-
};
|
|
15
|
-
export namespace CreatePlanRequest {
|
|
16
|
-
/**
|
|
17
|
-
* The routing type for the plan. Currently only CHAINED is supported for multi-step execution plans.
|
|
18
|
-
*/
|
|
19
|
-
export enum routing {
|
|
20
|
-
CHAINED = 'CHAINED',
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
@@ -1,22 +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 { inputToken } from './inputToken';
|
|
7
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
8
|
-
import type { senderWalletAddress } from './senderWalletAddress';
|
|
9
|
-
import type { tokenAmount } from './tokenAmount';
|
|
10
|
-
import type { Urgency } from './Urgency';
|
|
11
|
-
import { GasStrategy } from "../../types";
|
|
12
|
-
|
|
13
|
-
export type CreateSendRequest = {
|
|
14
|
-
sender: senderWalletAddress;
|
|
15
|
-
recipient: receiverWalletAddress;
|
|
16
|
-
token: inputToken;
|
|
17
|
-
amount: tokenAmount;
|
|
18
|
-
chainId: ChainId;
|
|
19
|
-
urgency?: Urgency;
|
|
20
|
-
gasStrategies?: GasStrategy[];
|
|
21
|
-
};
|
|
22
|
-
|
|
@@ -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 { gasFeeUSD } from './gasFeeUSD';
|
|
7
|
-
import type { RequestId } from './RequestId';
|
|
8
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
9
|
-
import { GasEstimate } from "../../types";
|
|
10
|
-
|
|
11
|
-
export type CreateSendResponse = {
|
|
12
|
-
requestId: RequestId;
|
|
13
|
-
send: TransactionRequest;
|
|
14
|
-
gasFee?: gasFee;
|
|
15
|
-
gasFeeUSD?: gasFeeUSD;
|
|
16
|
-
gasEstimates?: GasEstimate[];
|
|
17
|
-
};
|
|
18
|
-
|
|
@@ -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 { BridgeQuote } from './BridgeQuote';
|
|
6
|
-
import type { ClassicQuote } from './ClassicQuote';
|
|
7
|
-
import type { deadline } from './deadline';
|
|
8
|
-
import type { NullablePermit } from './NullablePermit';
|
|
9
|
-
import type { Urgency } from './Urgency';
|
|
10
|
-
import type { WrapUnwrapQuote } from './WrapUnwrapQuote';
|
|
11
|
-
export type CreateSwap5792Request = {
|
|
12
|
-
quote: (ClassicQuote | WrapUnwrapQuote | BridgeQuote);
|
|
13
|
-
permitData?: NullablePermit;
|
|
14
|
-
deadline?: deadline;
|
|
15
|
-
urgency?: Urgency;
|
|
16
|
-
};
|
|
17
|
-
|
|
@@ -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 { Address } from './Address';
|
|
6
|
-
import type { ChainId } from './ChainId';
|
|
7
|
-
import type { gasFee } from './gasFee';
|
|
8
|
-
import type { RequestId } from './RequestId';
|
|
9
|
-
import type { TransactionRequest5792 } from './TransactionRequest5792';
|
|
10
|
-
export type CreateSwap5792Response = {
|
|
11
|
-
requestId: RequestId;
|
|
12
|
-
from: Address;
|
|
13
|
-
chainId: ChainId;
|
|
14
|
-
calls: Array<TransactionRequest5792>;
|
|
15
|
-
gasFee?: gasFee;
|
|
16
|
-
};
|
|
17
|
-
|
|
@@ -1,21 +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 { BridgeQuote } from './BridgeQuote';
|
|
7
|
-
import type { ClassicQuote } from './ClassicQuote';
|
|
8
|
-
import type { deadline } from './deadline';
|
|
9
|
-
import type { NullablePermit } from './NullablePermit';
|
|
10
|
-
import type { Urgency } from './Urgency';
|
|
11
|
-
import type { WrapUnwrapQuote } from './WrapUnwrapQuote';
|
|
12
|
-
export type CreateSwap7702Request = {
|
|
13
|
-
quote: (ClassicQuote | WrapUnwrapQuote | BridgeQuote);
|
|
14
|
-
permitData?: NullablePermit;
|
|
15
|
-
smartContractDelegationAddress?: Address;
|
|
16
|
-
includeGasInfo?: boolean;
|
|
17
|
-
deadline?: deadline;
|
|
18
|
-
urgency?: Urgency;
|
|
19
|
-
simulateTransaction?: boolean;
|
|
20
|
-
};
|
|
21
|
-
|
|
@@ -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 CreateSwap7702Response = {
|
|
9
|
-
requestId: RequestId;
|
|
10
|
-
swap: TransactionRequest;
|
|
11
|
-
gasFee?: gasFee;
|
|
12
|
-
};
|
|
13
|
-
|
|
@@ -1,42 +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 { ClassicQuote } from './ClassicQuote';
|
|
7
|
-
import type { deadline } from './deadline';
|
|
8
|
-
import type { Permit } from './Permit';
|
|
9
|
-
import type { SwapSafetyMode } from './SwapSafetyMode';
|
|
10
|
-
import type { Urgency } from './Urgency';
|
|
11
|
-
import type { WrapUnwrapQuote } from './WrapUnwrapQuote';
|
|
12
|
-
import { GasStrategy } from "../../types";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The parameters **signature** and **permitData** should only be included if *permitData* was returned from **quote**.
|
|
16
|
-
*/
|
|
17
|
-
export type CreateSwapRequest = {
|
|
18
|
-
quote: (ClassicQuote | WrapUnwrapQuote | BridgeQuote);
|
|
19
|
-
/**
|
|
20
|
-
* The signed permit.
|
|
21
|
-
*/
|
|
22
|
-
signature?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Use `refreshGasPrice` instead.
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
includeGasInfo?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* If true, the gas price will be re-fetched from the network.
|
|
30
|
-
*/
|
|
31
|
-
refreshGasPrice?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* If true, the transaction will be simulated. If the simulation results on an onchain error, endpoint will return an error.
|
|
34
|
-
*/
|
|
35
|
-
simulateTransaction?: boolean;
|
|
36
|
-
permitData?: Permit;
|
|
37
|
-
safetyMode?: SwapSafetyMode;
|
|
38
|
-
deadline?: deadline;
|
|
39
|
-
urgency?: Urgency;
|
|
40
|
-
gasStrategies?: GasStrategy[];
|
|
41
|
-
};
|
|
42
|
-
|
|
@@ -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 { gasFee } from './gasFee';
|
|
6
|
-
import type { RequestId } from './RequestId';
|
|
7
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
8
|
-
import { GasEstimate } from "../../types";
|
|
9
|
-
|
|
10
|
-
export type CreateSwapResponse = {
|
|
11
|
-
requestId: RequestId;
|
|
12
|
-
swap: TransactionRequest;
|
|
13
|
-
gasFee?: gasFee;
|
|
14
|
-
gasEstimates?: GasEstimate[];
|
|
15
|
-
};
|
|
16
|
-
|
|
@@ -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 { ChainId } from './ChainId';
|
|
6
|
-
import type { CosignerData } from './CosignerData';
|
|
7
|
-
import type { encodedOrder } from './encodedOrder';
|
|
8
|
-
import type { nonce } from './nonce';
|
|
9
|
-
import type { orderId } from './orderId';
|
|
10
|
-
import type { OrderInput } from './OrderInput';
|
|
11
|
-
import type { OrderOutput } from './OrderOutput';
|
|
12
|
-
import type { OrderStatus } from './OrderStatus';
|
|
13
|
-
import type { OrderType } from './OrderType';
|
|
14
|
-
import type { quoteId } from './quoteId';
|
|
15
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
16
|
-
import type { SettledAmount } from './SettledAmount';
|
|
17
|
-
import type { TransactionHash } from './TransactionHash';
|
|
18
|
-
export type DEXOrder = {
|
|
19
|
-
type: OrderType;
|
|
20
|
-
encodedOrder: encodedOrder;
|
|
21
|
-
signature: string;
|
|
22
|
-
nonce: nonce;
|
|
23
|
-
orderStatus: OrderStatus;
|
|
24
|
-
orderId: orderId;
|
|
25
|
-
chainId: ChainId;
|
|
26
|
-
quoteId?: quoteId;
|
|
27
|
-
swapper?: receiverWalletAddress;
|
|
28
|
-
txHash?: TransactionHash;
|
|
29
|
-
input?: OrderInput;
|
|
30
|
-
outputs?: Array<OrderOutput>;
|
|
31
|
-
settledAmounts?: Array<SettledAmount>;
|
|
32
|
-
cosignature?: string;
|
|
33
|
-
cosignerData?: CosignerData;
|
|
34
|
-
};
|
|
35
|
-
|
|
@@ -1,33 +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 { deadline } from './deadline';
|
|
8
|
-
import type { liquidity } from './liquidity';
|
|
9
|
-
import type { lpTickCurrent } from './lpTickCurrent';
|
|
10
|
-
import type { Position } from './Position';
|
|
11
|
-
import type { ProtocolItems } from './ProtocolItems';
|
|
12
|
-
import type { sqrtRatioX96 } from './sqrtRatioX96';
|
|
13
|
-
export type DecreaseLPPositionRequest = {
|
|
14
|
-
protocol?: ProtocolItems;
|
|
15
|
-
tokenId?: number;
|
|
16
|
-
position?: Position;
|
|
17
|
-
walletAddress?: Address;
|
|
18
|
-
chainId?: ChainId;
|
|
19
|
-
liquidityPercentageToDecrease?: number;
|
|
20
|
-
liquidity0?: string;
|
|
21
|
-
liquidity1?: string;
|
|
22
|
-
slippageTolerance?: number;
|
|
23
|
-
poolLiquidity?: liquidity;
|
|
24
|
-
currentTick?: lpTickCurrent;
|
|
25
|
-
sqrtRatioX96?: sqrtRatioX96;
|
|
26
|
-
positionLiquidity?: string;
|
|
27
|
-
expectedTokenOwed0RawAmount?: string;
|
|
28
|
-
expectedTokenOwed1RawAmount?: string;
|
|
29
|
-
collectAsWETH?: boolean;
|
|
30
|
-
deadline?: deadline;
|
|
31
|
-
simulateTransaction?: boolean;
|
|
32
|
-
};
|
|
33
|
-
|
|
@@ -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 { gasFee } from './gasFee';
|
|
6
|
-
import type { liquidity } from './liquidity';
|
|
7
|
-
import type { lpTickCurrent } from './lpTickCurrent';
|
|
8
|
-
import type { RequestId } from './RequestId';
|
|
9
|
-
import type { sqrtRatioX96 } from './sqrtRatioX96';
|
|
10
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
11
|
-
export type DecreaseLPPositionResponse = {
|
|
12
|
-
requestId?: RequestId;
|
|
13
|
-
decrease?: TransactionRequest;
|
|
14
|
-
gasFee?: gasFee;
|
|
15
|
-
poolLiquidity?: liquidity;
|
|
16
|
-
currentTick?: lpTickCurrent;
|
|
17
|
-
sqrtRatioX96?: sqrtRatioX96;
|
|
18
|
-
};
|
|
19
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export type DelegationDetails = {
|
|
6
|
-
/**
|
|
7
|
-
* Whether the current delegation address is a Lux delegation address.
|
|
8
|
-
*/
|
|
9
|
-
isWalletDelegatedToLux: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* The current delegation address of the wallet. May be null if the wallet does not currently delegate to any address.
|
|
12
|
-
*/
|
|
13
|
-
currentDelegationAddress: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* The latest delegation address that the wallet could upgrade to.
|
|
16
|
-
*/
|
|
17
|
-
latestDelegationAddress: string;
|
|
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 { endAmount } from './endAmount';
|
|
6
|
-
import type { inputToken } from './inputToken';
|
|
7
|
-
import type { startAmount } from './startAmount';
|
|
8
|
-
export type DutchInput = {
|
|
9
|
-
startAmount: startAmount;
|
|
10
|
-
endAmount: endAmount;
|
|
11
|
-
token?: inputToken;
|
|
12
|
-
};
|
|
13
|
-
|
|
@@ -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 { Curve } from './Curve';
|
|
6
|
-
import type { inputToken } from './inputToken';
|
|
7
|
-
import type { startAmount } from './startAmount';
|
|
8
|
-
export type DutchInputV3 = {
|
|
9
|
-
startAmount: startAmount;
|
|
10
|
-
maxAmount: string;
|
|
11
|
-
adjustmentPerGweiBaseFee: string;
|
|
12
|
-
curve: Curve;
|
|
13
|
-
token: inputToken;
|
|
14
|
-
};
|
|
15
|
-
|
|
@@ -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 { additionalValidationContract } from './additionalValidationContract';
|
|
6
|
-
import type { additionalValidationData } from './additionalValidationData';
|
|
7
|
-
import type { ChainId } from './ChainId';
|
|
8
|
-
import type { contractAddress } from './contractAddress';
|
|
9
|
-
import type { deadline } from './deadline';
|
|
10
|
-
import type { DutchInput } from './DutchInput';
|
|
11
|
-
import type { DutchOutput } from './DutchOutput';
|
|
12
|
-
import type { nonce } from './nonce';
|
|
13
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
14
|
-
export type DutchOrderInfo = {
|
|
15
|
-
chainId: ChainId;
|
|
16
|
-
nonce: nonce;
|
|
17
|
-
reactor: contractAddress;
|
|
18
|
-
swapper: receiverWalletAddress;
|
|
19
|
-
deadline: deadline;
|
|
20
|
-
additionalValidationContract?: additionalValidationContract;
|
|
21
|
-
additionalValidationData?: additionalValidationData;
|
|
22
|
-
/**
|
|
23
|
-
* The unix timestamp at which the order will be eligible to be filled by alternate fillers at a lower price. Noted that the fill amount will not be lower than the output `endAmount`.
|
|
24
|
-
*/
|
|
25
|
-
decayStartTime?: number;
|
|
26
|
-
/**
|
|
27
|
-
* The unix timestamp at which the order will no longer be eligible to be filled by alternate fillers.
|
|
28
|
-
*/
|
|
29
|
-
decayEndTime?: number;
|
|
30
|
-
/**
|
|
31
|
-
* The address of the filler who has priority to fill the order by the `decayStartTime`.
|
|
32
|
-
*/
|
|
33
|
-
exclusiveFiller: string;
|
|
34
|
-
/**
|
|
35
|
-
* The portion of the order which is eligible to be filled by the `exclusiveFiller`, specified in basis points.
|
|
36
|
-
*/
|
|
37
|
-
exclusivityOverrideBps: string;
|
|
38
|
-
input: DutchInput;
|
|
39
|
-
outputs: Array<DutchOutput>;
|
|
40
|
-
};
|
|
41
|
-
|
|
@@ -1,27 +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 { DutchInput } from './DutchInput';
|
|
12
|
-
import type { DutchOutput } from './DutchOutput';
|
|
13
|
-
import type { nonce } from './nonce';
|
|
14
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
15
|
-
export type DutchOrderInfoV2 = {
|
|
16
|
-
chainId: ChainId;
|
|
17
|
-
nonce: nonce;
|
|
18
|
-
reactor: contractAddress;
|
|
19
|
-
swapper: receiverWalletAddress;
|
|
20
|
-
deadline: deadline;
|
|
21
|
-
additionalValidationContract?: additionalValidationContract;
|
|
22
|
-
additionalValidationData?: additionalValidationData;
|
|
23
|
-
input: DutchInput;
|
|
24
|
-
outputs: Array<DutchOutput>;
|
|
25
|
-
cosigner?: cosignerAddress;
|
|
26
|
-
};
|
|
27
|
-
|
|
@@ -1,28 +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 { DutchInputV3 } from './DutchInputV3';
|
|
12
|
-
import type { DutchOutputV3 } from './DutchOutputV3';
|
|
13
|
-
import type { nonce } from './nonce';
|
|
14
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
15
|
-
export type DutchOrderInfoV3 = {
|
|
16
|
-
chainId: ChainId;
|
|
17
|
-
nonce: nonce;
|
|
18
|
-
reactor: contractAddress;
|
|
19
|
-
swapper: receiverWalletAddress;
|
|
20
|
-
deadline: deadline;
|
|
21
|
-
additionalValidationContract?: additionalValidationContract;
|
|
22
|
-
additionalValidationData?: additionalValidationData;
|
|
23
|
-
input: DutchInputV3;
|
|
24
|
-
outputs: Array<DutchOutputV3>;
|
|
25
|
-
cosigner?: cosignerAddress;
|
|
26
|
-
startingBaseFee?: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
@@ -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 { endAmount } from './endAmount';
|
|
6
|
-
import type { outputToken } from './outputToken';
|
|
7
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
8
|
-
import type { startAmount } from './startAmount';
|
|
9
|
-
export type DutchOutput = {
|
|
10
|
-
startAmount: startAmount;
|
|
11
|
-
endAmount: endAmount;
|
|
12
|
-
token: outputToken;
|
|
13
|
-
recipient: receiverWalletAddress;
|
|
14
|
-
};
|
|
15
|
-
|