@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,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 { NullablePermit } from './NullablePermit';
|
|
7
|
-
import type { Quote } from './Quote';
|
|
8
|
-
import type { RequestId } from './RequestId';
|
|
9
|
-
import type { Routing } from './Routing';
|
|
10
|
-
import type { TransactionRequest } from './TransactionRequest';
|
|
11
|
-
export type QuoteResponse = {
|
|
12
|
-
requestId: RequestId;
|
|
13
|
-
quote: Quote;
|
|
14
|
-
routing: Routing;
|
|
15
|
-
permitTransaction?: TransactionRequest;
|
|
16
|
-
permitData: NullablePermit;
|
|
17
|
-
permitGasFee?: gasFee;
|
|
18
|
-
};
|
|
19
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* The routing for the proposed transaction.
|
|
7
|
-
*/
|
|
8
|
-
export enum Routing {
|
|
9
|
-
DUTCH_LIMIT = 'DUTCH_LIMIT',
|
|
10
|
-
CLASSIC = 'CLASSIC',
|
|
11
|
-
DUTCH_V2 = 'DUTCH_V2',
|
|
12
|
-
DUTCH_V3 = 'DUTCH_V3',
|
|
13
|
-
BRIDGE = 'BRIDGE',
|
|
14
|
-
LIMIT_ORDER = 'LIMIT_ORDER',
|
|
15
|
-
PRIORITY = 'PRIORITY',
|
|
16
|
-
WRAP = 'WRAP',
|
|
17
|
-
UNWRAP = 'UNWRAP',
|
|
18
|
-
CHAINED = 'CHAINED',
|
|
19
|
-
JUPITER = "JUPITER"
|
|
20
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* The `routingPreference` specifies the preferred strategy to determine the quote. If the `routingPreference` is `BEST_PRICE`, then the quote will propose a route through the specified whitelisted protocols (or all, if none are specified) that provides the best price. When the `routingPreference` is `FASTEST`, the quote will propose the first route which is found to complete the swap.
|
|
7
|
-
*/
|
|
8
|
-
export enum RoutingPreference {
|
|
9
|
-
BEST_PRICE = 'BEST_PRICE',
|
|
10
|
-
FASTEST = 'FASTEST',
|
|
11
|
-
ROUTING_CLASSIC = 'ROUTING_CLASSIC',
|
|
12
|
-
ROUTING_LUXX_V2 = 'ROUTING_LUXX_V2',
|
|
13
|
-
V3_ONLY = 'V3_ONLY',
|
|
14
|
-
V2_ONLY = 'V2_ONLY',
|
|
15
|
-
BEST_PRICE_V2 = 'BEST_PRICE_V2',
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export enum SafetyLevel {
|
|
6
|
-
BLOCKED = 'BLOCKED',
|
|
7
|
-
MEDIUM_WARNING = 'MEDIUM_WARNING',
|
|
8
|
-
STRONG_WARNING = 'STRONG_WARNING',
|
|
9
|
-
VERIFIED = 'VERIFIED',
|
|
10
|
-
}
|
|
@@ -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 { ClientContext } from './ClientContext';
|
|
6
|
-
/**
|
|
7
|
-
* Data defining a wallet scope including accounts, methods, capabilities, chains, and client context.
|
|
8
|
-
*/
|
|
9
|
-
export type ScopeData = {
|
|
10
|
-
/**
|
|
11
|
-
* Array of account addresses associated with this scope.
|
|
12
|
-
*/
|
|
13
|
-
accounts: Array<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Array of methods allowed in this scope.
|
|
16
|
-
*/
|
|
17
|
-
methods: Array<string>;
|
|
18
|
-
/**
|
|
19
|
-
* Additional capabilities for this scope.
|
|
20
|
-
*/
|
|
21
|
-
capabilities?: Record<string, any>;
|
|
22
|
-
/**
|
|
23
|
-
* Array of chain identifiers allowed in this scope.
|
|
24
|
-
*/
|
|
25
|
-
chains?: Array<string>;
|
|
26
|
-
clientContext?: ClientContext;
|
|
27
|
-
};
|
|
28
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { inputToken } from './inputToken';
|
|
6
|
-
import type { outputToken } from './outputToken';
|
|
7
|
-
import type { tokenAmount } from './tokenAmount';
|
|
8
|
-
export type SettledAmount = {
|
|
9
|
-
tokenOut?: outputToken;
|
|
10
|
-
amountOut?: tokenAmount;
|
|
11
|
-
tokenIn?: inputToken;
|
|
12
|
-
amountIn?: tokenAmount;
|
|
13
|
-
};
|
|
14
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* For DEX swaps, when set to `EXECUTION`, quotes optimize for looser spreads at higher fill rates. When set to `PRICE`, quotes optimize for tighter spreads at lower fill rates. This field is not applicable to Lux Protocols (v2, v3, v4), bridging, or wrapping/unwrapping and will be ignored if set.
|
|
7
|
-
*/
|
|
8
|
-
export enum SpreadOptimization {
|
|
9
|
-
EXECUTION = 'EXECUTION',
|
|
10
|
-
PRICE = 'PRICE',
|
|
11
|
-
}
|
|
@@ -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 { TransactionHash } from './TransactionHash';
|
|
6
|
-
/**
|
|
7
|
-
* Represents a single step update with proof. Note: orderId is not accepted in update requests; it is system-generated after receiving a signature.
|
|
8
|
-
*/
|
|
9
|
-
export type StepUpdate = {
|
|
10
|
-
/**
|
|
11
|
-
* The index of the step being updated (0-based).
|
|
12
|
-
*/
|
|
13
|
-
stepIndex: number;
|
|
14
|
-
/**
|
|
15
|
-
* Proof of step completion. Must provide either txHash or signature.
|
|
16
|
-
*/
|
|
17
|
-
proof: {
|
|
18
|
-
txHash?: TransactionHash;
|
|
19
|
-
/**
|
|
20
|
-
* The signature for a message signing step.
|
|
21
|
-
*/
|
|
22
|
-
signature?: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Swap safety mode will automatically sweep the transaction for the native token and return it to the sender wallet address. This is to prevent accidental loss of funds in the event that the token amount is set in the transaction value instead of as part of the calldata.
|
|
7
|
-
*/
|
|
8
|
-
export enum SwapSafetyMode {
|
|
9
|
-
SAFE = 'SAFE',
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export enum SwapStatus {
|
|
6
|
-
PENDING = 'PENDING',
|
|
7
|
-
SUCCESS = 'SUCCESS',
|
|
8
|
-
NOT_FOUND = 'NOT_FOUND',
|
|
9
|
-
FAILED = 'FAILED',
|
|
10
|
-
EXPIRED = 'EXPIRED',
|
|
11
|
-
}
|
|
@@ -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 { bpsFee } from './bpsFee';
|
|
6
|
-
import type { ChainId } from './ChainId';
|
|
7
|
-
import type { inputToken } from './inputToken';
|
|
8
|
-
import type { tokenSymbol } from './tokenSymbol';
|
|
9
|
-
export type TokenInRoute = {
|
|
10
|
-
address?: inputToken;
|
|
11
|
-
chainId?: ChainId;
|
|
12
|
-
symbol?: tokenSymbol;
|
|
13
|
-
/**
|
|
14
|
-
* The number of decimals supported by the token. This number is used to convert token amounts to the token's common representation.
|
|
15
|
-
*/
|
|
16
|
-
decimals?: string;
|
|
17
|
-
buyFeeBps?: bpsFee;
|
|
18
|
-
sellFeeBps?: bpsFee;
|
|
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 { isSpam } from './isSpam';
|
|
6
|
-
import type { SafetyLevel } from './SafetyLevel';
|
|
7
|
-
import type { TokenProjectLogo } from './TokenProjectLogo';
|
|
8
|
-
export type TokenProject = {
|
|
9
|
-
logo: TokenProjectLogo | null;
|
|
10
|
-
safetyLevel: SafetyLevel;
|
|
11
|
-
isSpam: isSpam;
|
|
12
|
-
};
|
|
13
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* The handling of the `amount` field. `EXACT_INPUT` means the requester will send the specified `amount` of input tokens and get a quote with a variable quantity of output tokens. `EXACT_OUTPUT` means the requester will receive the specified `amount` of output tokens and get a quote with a variable quantity of input tokens.
|
|
7
|
-
*/
|
|
8
|
-
export enum TradeType {
|
|
9
|
-
EXACT_INPUT = 'EXACT_INPUT',
|
|
10
|
-
EXACT_OUTPUT = 'EXACT_OUTPUT',
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export enum TransactionFailureReason {
|
|
6
|
-
SIMULATION_ERROR = 'SIMULATION_ERROR',
|
|
7
|
-
UNSUPPORTED_SIMULATION = 'UNSUPPORTED_SIMULATION',
|
|
8
|
-
SIMULATION_UNAVAILABLE = 'SIMULATION_UNAVAILABLE',
|
|
9
|
-
SLIPPAGE_TOO_LOW = 'SLIPPAGE_TOO_LOW',
|
|
10
|
-
TRANSFER_FROM_FAILED = 'TRANSFER_FROM_FAILED',
|
|
11
|
-
}
|
|
@@ -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 { ChainId } from './ChainId';
|
|
6
|
-
import type { gasLimit } from './gasLimit';
|
|
7
|
-
import type { gasPrice } from './gasPrice';
|
|
8
|
-
import type { maxFeePerGas } from './maxFeePerGas';
|
|
9
|
-
import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
|
|
10
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
11
|
-
import type { senderWalletAddress } from './senderWalletAddress';
|
|
12
|
-
export type TransactionRequest = {
|
|
13
|
-
to: receiverWalletAddress;
|
|
14
|
-
from: senderWalletAddress;
|
|
15
|
-
/**
|
|
16
|
-
* The calldata for the transaction.
|
|
17
|
-
*/
|
|
18
|
-
data: string;
|
|
19
|
-
/**
|
|
20
|
-
* The quantity of ETH tokens approved for spending by the transaction, denominated in wei. Note that by default Lux Industries sets this to the maximum approvable spend.
|
|
21
|
-
*/
|
|
22
|
-
value: string;
|
|
23
|
-
gasLimit?: gasLimit;
|
|
24
|
-
chainId: ChainId;
|
|
25
|
-
maxFeePerGas?: maxFeePerGas;
|
|
26
|
-
maxPriorityFeePerGas?: maxPriorityFeePerGas;
|
|
27
|
-
gasPrice?: gasPrice;
|
|
28
|
-
};
|
|
29
|
-
|
|
@@ -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 { gasLimit } from './gasLimit';
|
|
6
|
-
import type { gasPrice } from './gasPrice';
|
|
7
|
-
import type { maxFeePerGas } from './maxFeePerGas';
|
|
8
|
-
import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
|
|
9
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
10
|
-
export type TransactionRequest5792 = {
|
|
11
|
-
to: receiverWalletAddress;
|
|
12
|
-
/**
|
|
13
|
-
* The calldata for the transaction.
|
|
14
|
-
*/
|
|
15
|
-
data: string;
|
|
16
|
-
/**
|
|
17
|
-
* The quantity of ETH tokens approved for spending by the transaction, denominated in wei. Note that by default Lux Industries sets this to the maximum approvable spend.
|
|
18
|
-
*/
|
|
19
|
-
value: string;
|
|
20
|
-
gasLimit?: gasLimit;
|
|
21
|
-
maxFeePerGas?: maxFeePerGas;
|
|
22
|
-
maxPriorityFeePerGas?: maxPriorityFeePerGas;
|
|
23
|
-
gasPrice?: gasPrice;
|
|
24
|
-
};
|
|
25
|
-
|
|
@@ -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 { ChainId } from './ChainId';
|
|
6
|
-
import type { inputToken } from './inputToken';
|
|
7
|
-
import type { outputToken } from './outputToken';
|
|
8
|
-
import type { PlanStepType } from './PlanStepType';
|
|
9
|
-
import type { slippageTolerance } from './slippageTolerance';
|
|
10
|
-
/**
|
|
11
|
-
* A truncated representation of a plan step containing only routing information.
|
|
12
|
-
*/
|
|
13
|
-
export type TruncatedPlanStep = {
|
|
14
|
-
stepType: PlanStepType;
|
|
15
|
-
tokenIn?: inputToken;
|
|
16
|
-
tokenInChainId?: ChainId;
|
|
17
|
-
tokenOut?: outputToken;
|
|
18
|
-
tokenOutChainId?: ChainId;
|
|
19
|
-
slippage?: slippageTolerance;
|
|
20
|
-
};
|
|
21
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { StepUpdate } from './StepUpdate';
|
|
6
|
-
export type UpdatePlanRequest = {
|
|
7
|
-
/**
|
|
8
|
-
* Array of steps with proofs to attach. Only steps being updated need to be included.
|
|
9
|
-
*/
|
|
10
|
-
steps: Array<StepUpdate>;
|
|
11
|
-
};
|
|
12
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* The urgency impacts the estimated gas price of the transaction. The higher the urgency, the higher the gas price, and the faster the transaction is likely to be selected from the mempool. The default value is `urgent`.
|
|
7
|
-
*/
|
|
8
|
-
export enum Urgency {
|
|
9
|
-
NORMAL = 'normal',
|
|
10
|
-
FAST = 'fast',
|
|
11
|
-
URGENT = 'urgent',
|
|
12
|
-
}
|
|
@@ -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 { contractAddress } from './contractAddress';
|
|
6
|
-
import type { tokenAmount } from './tokenAmount';
|
|
7
|
-
import type { TokenInRoute } from './TokenInRoute';
|
|
8
|
-
import type { V2Reserve } from './V2Reserve';
|
|
9
|
-
export type V2PoolInRoute = {
|
|
10
|
-
type?: string;
|
|
11
|
-
address?: contractAddress;
|
|
12
|
-
tokenIn?: TokenInRoute;
|
|
13
|
-
tokenOut?: TokenInRoute;
|
|
14
|
-
reserve0?: V2Reserve;
|
|
15
|
-
reserve1?: V2Reserve;
|
|
16
|
-
amountIn?: tokenAmount;
|
|
17
|
-
amountOut?: tokenAmount;
|
|
18
|
-
};
|
|
19
|
-
|
|
@@ -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 { TokenInRoute } from './TokenInRoute';
|
|
6
|
-
/**
|
|
7
|
-
* The remaining reserve of this token in the pool.
|
|
8
|
-
*/
|
|
9
|
-
export type V2Reserve = {
|
|
10
|
-
token?: TokenInRoute;
|
|
11
|
-
/**
|
|
12
|
-
* The quantity of this token remaining in the pool, specified in the base units of the token.
|
|
13
|
-
*/
|
|
14
|
-
quotient?: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { contractAddress } from './contractAddress';
|
|
6
|
-
import type { liquidity } from './liquidity';
|
|
7
|
-
import type { poolFee } from './poolFee';
|
|
8
|
-
import type { sqrtRatioX96 } from './sqrtRatioX96';
|
|
9
|
-
import type { tickCurrent } from './tickCurrent';
|
|
10
|
-
import type { tokenAmount } from './tokenAmount';
|
|
11
|
-
import type { TokenInRoute } from './TokenInRoute';
|
|
12
|
-
export type V3PoolInRoute = {
|
|
13
|
-
type?: string;
|
|
14
|
-
address?: contractAddress;
|
|
15
|
-
tokenIn?: TokenInRoute;
|
|
16
|
-
tokenOut?: TokenInRoute;
|
|
17
|
-
sqrtRatioX96?: sqrtRatioX96;
|
|
18
|
-
liquidity?: liquidity;
|
|
19
|
-
tickCurrent?: tickCurrent;
|
|
20
|
-
fee?: poolFee;
|
|
21
|
-
amountIn?: tokenAmount;
|
|
22
|
-
amountOut?: tokenAmount;
|
|
23
|
-
};
|
|
24
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { contractAddress } from './contractAddress';
|
|
6
|
-
import type { liquidity } from './liquidity';
|
|
7
|
-
import type { poolFee } from './poolFee';
|
|
8
|
-
import type { sqrtRatioX96 } from './sqrtRatioX96';
|
|
9
|
-
import type { tickCurrent } from './tickCurrent';
|
|
10
|
-
import type { tickSpacing } from './tickSpacing';
|
|
11
|
-
import type { tokenAmount } from './tokenAmount';
|
|
12
|
-
import type { TokenInRoute } from './TokenInRoute';
|
|
13
|
-
export type V4PoolInRoute = {
|
|
14
|
-
type: string;
|
|
15
|
-
address: contractAddress;
|
|
16
|
-
tokenIn: TokenInRoute;
|
|
17
|
-
tokenOut: TokenInRoute;
|
|
18
|
-
sqrtRatioX96: sqrtRatioX96;
|
|
19
|
-
liquidity: liquidity;
|
|
20
|
-
tickCurrent: tickCurrent;
|
|
21
|
-
fee: poolFee;
|
|
22
|
-
tickSpacing: tickSpacing;
|
|
23
|
-
/**
|
|
24
|
-
* The address of the hook for the pool, if any. If the pool has no hook, this field will be the null address (e.g. 0x0000000000000000000000000000000000000000).
|
|
25
|
-
*/
|
|
26
|
-
hooks: string;
|
|
27
|
-
amountIn?: tokenAmount;
|
|
28
|
-
amountOut?: tokenAmount;
|
|
29
|
-
};
|
|
30
|
-
|
|
@@ -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
|
-
export type WalletCheckDelegationRequestBody = {
|
|
8
|
-
/**
|
|
9
|
-
* Array of wallet addresses to check delegation status for.
|
|
10
|
-
*/
|
|
11
|
-
walletAddresses?: Array<Address>;
|
|
12
|
-
/**
|
|
13
|
-
* Array of chain IDs to check delegation status for.
|
|
14
|
-
*/
|
|
15
|
-
chainIds: Array<ChainId>;
|
|
16
|
-
};
|
|
17
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { ChainDelegationMap } from './ChainDelegationMap';
|
|
6
|
-
import type { RequestId } from './RequestId';
|
|
7
|
-
export type WalletCheckDelegationResponseBody = {
|
|
8
|
-
requestId: RequestId;
|
|
9
|
-
/**
|
|
10
|
-
* Map of wallet addresses to chain IDs to delegation details.
|
|
11
|
-
*/
|
|
12
|
-
delegationDetails: Record<string, ChainDelegationMap>;
|
|
13
|
-
};
|
|
14
|
-
|
|
@@ -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 { TransactionRequest } from './TransactionRequest';
|
|
7
|
-
export type WalletEncode7702RequestBody = {
|
|
8
|
-
/**
|
|
9
|
-
* Array of transaction requests to be encoded. All transactions must have the same chainId.
|
|
10
|
-
*/
|
|
11
|
-
calls: Array<TransactionRequest>;
|
|
12
|
-
/**
|
|
13
|
-
* The address of the smart contract delegation implementation to use.
|
|
14
|
-
*/
|
|
15
|
-
smartContractDelegationAddress: Address;
|
|
16
|
-
/**
|
|
17
|
-
* The address of the wallet for which the transactions will be encoded.
|
|
18
|
-
*/
|
|
19
|
-
walletAddress: Address;
|
|
20
|
-
};
|
|
21
|
-
|
|
@@ -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 { ScopeData } from './ScopeData';
|
|
6
|
-
import type { WalletProperties } from './WalletProperties';
|
|
7
|
-
/**
|
|
8
|
-
* Wallet execution context based on CAIP-25 Standard. Provides information about wallet capabilities and scopes.
|
|
9
|
-
*/
|
|
10
|
-
export type WalletExecutionContext = {
|
|
11
|
-
/**
|
|
12
|
-
* Map of scope identifiers to their scope data.
|
|
13
|
-
*/
|
|
14
|
-
scopes: Record<string, ScopeData>;
|
|
15
|
-
properties?: WalletProperties;
|
|
16
|
-
};
|
|
17
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Information about the wallet.
|
|
7
|
-
*/
|
|
8
|
-
export type WalletInfo = {
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier for the wallet.
|
|
11
|
-
*/
|
|
12
|
-
uuid?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Name of the wallet.
|
|
15
|
-
*/
|
|
16
|
-
name?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Reverse domain name identifier for the wallet.
|
|
19
|
-
*/
|
|
20
|
-
rdns?: string;
|
|
21
|
-
};
|
|
22
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { WalletInfo } from './WalletInfo';
|
|
6
|
-
/**
|
|
7
|
-
* Properties describing the wallet.
|
|
8
|
-
*/
|
|
9
|
-
export type WalletProperties = {
|
|
10
|
-
walletInfo?: WalletInfo;
|
|
11
|
-
};
|
|
12
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { ChainId } from './ChainId';
|
|
6
|
-
import type { ClassicInput } from './ClassicInput';
|
|
7
|
-
import type { ClassicOutput } from './ClassicOutput';
|
|
8
|
-
import type { gasFee } from './gasFee';
|
|
9
|
-
import type { gasFeeInCurrency } from './gasFeeInCurrency';
|
|
10
|
-
import type { gasFeeUSD } from './gasFeeUSD';
|
|
11
|
-
import type { gasLimit } from './gasLimit';
|
|
12
|
-
import type { gasPrice } from './gasPrice';
|
|
13
|
-
import type { maxFeePerGas } from './maxFeePerGas';
|
|
14
|
-
import type { maxPriorityFeePerGas } from './maxPriorityFeePerGas';
|
|
15
|
-
import type { receiverWalletAddress } from './receiverWalletAddress';
|
|
16
|
-
import type { TradeType } from './TradeType';
|
|
17
|
-
export type WrapUnwrapQuote = {
|
|
18
|
-
swapper?: receiverWalletAddress;
|
|
19
|
-
input?: ClassicInput;
|
|
20
|
-
output?: ClassicOutput;
|
|
21
|
-
chainId?: ChainId;
|
|
22
|
-
tradeType?: TradeType;
|
|
23
|
-
gasFee?: gasFee;
|
|
24
|
-
gasFeeUSD?: gasFeeUSD;
|
|
25
|
-
gasFeeQuote?: gasFeeInCurrency;
|
|
26
|
-
gasUseEstimate?: gasLimit;
|
|
27
|
-
gasPrice?: gasPrice;
|
|
28
|
-
maxFeePerGas?: maxFeePerGas;
|
|
29
|
-
maxPriorityFeePerGas?: maxPriorityFeePerGas;
|
|
30
|
-
};
|
|
31
|
-
|