@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,4245 +0,0 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
import * as Apollo from '@apollo/client';
|
|
3
|
-
import { type TokenPriceHistoryQueryVariables, type TokenPriceHistoryQuery, type AccountListQueryVariables, type AccountListQuery, type NftsQueryVariables, type NftsQuery, type NftItemScreenQueryVariables, type NftItemScreenQuery, type NftCollectionScreenQueryVariables, type NftCollectionScreenQuery, type NftsTabQueryVariables, type NftsTabQuery, type TokenBalanceMainPartsFragment, type TokenBalanceQuantityPartsFragment, type TokenBalancePartsFragment, type PortfolioBalancesQueryVariables, type PortfolioBalancesQuery, type MultiplePortfolioBalancesQueryVariables, type MultiplePortfolioBalancesQuery, type SelectWalletScreenQueryVariables, type SelectWalletScreenQuery, type TransactionHistoryUpdaterQueryVariables, type TransactionHistoryUpdaterQuery, type TokenQueryVariables, type TokenQuery, type TokenDetailsScreenQueryVariables, type TokenDetailsScreenQuery, type TokenProjectDescriptionQueryVariables, type TokenProjectDescriptionQuery, type TokenProjectsQueryVariables, type TokenProjectsQuery, type TransactionListQueryVariables, type TransactionListQuery, type FeedTransactionListQueryVariables, type FeedTransactionListQuery, type TopTokensQueryVariables, type TopTokensQuery, type TokenPartsFragment, type TokenBasicInfoPartsFragment, type TokenBasicProjectPartsFragment, type TokenProjectUrlsPartsFragment, type TokenProjectMarketsPartsFragment, type TokenMarketPartsFragment, type TokenFeeDataPartsFragment, type TokenProtectionInfoPartsFragment, type TopTokenPartsFragment, type HomeScreenTokenPartsFragment, type HomeScreenTokensQueryVariables, type HomeScreenTokensQuery, type FavoriteTokenCardQueryVariables, type FavoriteTokenCardQuery, type WidgetTokensQueryVariables, type WidgetTokensQuery, type TokensQueryVariables, type TokensQuery, type ConvertQueryVariables, type ConvertQuery, type LuxPricesQueryVariables, type LuxPricesQuery, type RecentTokenTransfersQueryVariables, type RecentTokenTransfersQuery, type SimpleTokenDetailsFragment, type TokenSpotPriceQueryVariables, type TokenSpotPriceQuery, type NftAssetPartsFragment, type NftTransferPartsFragment, type TokenAssetPartsFragment, type TokenTransferPartsFragment, type OnRampTransferPartsFragment, type TokenApprovalPartsFragment, type NftApprovalPartsFragment, type NftApproveForAllPartsFragment, type TransactionPartsFragment, type TransactionDetailsPartsFragment, type OnRampTransactionDetailsPartsFragment, type OffRampTransactionDetailsPartsFragment, type SwapOrderDetailsPartsFragment, type AssetActivityPartsFragment, type ActivityWebQueryVariables, type ActivityWebQuery, type OnAssetActivitySubscriptionVariables, type OnAssetActivitySubscription, type AllV3TicksQueryVariables, type AllV3TicksQuery, type AllV4TicksQueryVariables, type AllV4TicksQuery, type FeeTierDistributionQueryVariables, type FeeTierDistributionQuery, type TokenPromoQueryVariables, type TokenPromoQuery, type CollectionPromoQueryVariables, type CollectionPromoQuery, type DailyProtocolVolumeQueryVariables, type DailyProtocolVolumeQuery, type IsV3SubgraphStaleQueryVariables, type IsV3SubgraphStaleQuery, type CollectionSearchQueryVariables, type CollectionSearchQuery, type NftBalanceQueryVariables, type NftBalanceQuery, type TokenPriceFragment, type V3PoolQueryVariables, type V3PoolQuery, type V4PoolQueryVariables, type V4PoolQuery, type PoolPriceHistoryQueryVariables, type PoolPriceHistoryQuery, type PoolVolumeHistoryQueryVariables, type PoolVolumeHistoryQuery, type V2PairQueryVariables, type V2PairQuery, type PoolTransactionTokenFragment, type V4PoolTransactionsQueryVariables, type V4PoolTransactionsQuery, type V3PoolTransactionsQueryVariables, type V3PoolTransactionsQuery, type V2PairTransactionsQueryVariables, type V2PairTransactionsQuery, type QuickTokenBalancePartsFragment, type PortfolioTokenBalancePartsFragment, type QuickTokenBalancesWebQueryVariables, type QuickTokenBalancesWebQuery, type TokenWebQueryVariables, type TokenWebQuery, type TokenProjectWebQueryVariables, type TokenProjectWebQuery, type CandlestickOhlcFragment, type PriceHistoryFallbackFragment, type TokenPriceQueryVariables, type TokenPriceQuery, type TokenHistoricalVolumesQueryVariables, type TokenHistoricalVolumesQuery, type TokenHistoricalTvlsQueryVariables, type TokenHistoricalTvlsQuery, type V4TokenTransactionsQueryVariables, type V4TokenTransactionsQuery, type V3TokenTransactionsQueryVariables, type V3TokenTransactionsQuery, type V2TokenTransactionsQueryVariables, type V2TokenTransactionsQuery, type TopV4PoolsQueryVariables, type TopV4PoolsQuery, type TopV3PoolsQueryVariables, type TopV3PoolsQuery, type TopV2PairsQueryVariables, type TopV2PairsQuery, type TransactionTokenFragment, type PoolTxFragment, type V4TransactionsQueryVariables, type V4TransactionsQuery, type V3TransactionsQueryVariables, type V3TransactionsQuery, type V2TransactionsQueryVariables, type V2TransactionsQuery } from "./operations";
|
|
4
|
-
|
|
5
|
-
const defaultOptions = {} as const;
|
|
6
|
-
export const TokenBalanceQuantityPartsFragmentDoc = gql`
|
|
7
|
-
fragment TokenBalanceQuantityParts on TokenBalance {
|
|
8
|
-
id
|
|
9
|
-
quantity
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
export const TokenBalanceMainPartsFragmentDoc = gql`
|
|
13
|
-
fragment TokenBalanceMainParts on TokenBalance {
|
|
14
|
-
...TokenBalanceQuantityParts
|
|
15
|
-
denominatedValue {
|
|
16
|
-
currency
|
|
17
|
-
value
|
|
18
|
-
}
|
|
19
|
-
tokenProjectMarket {
|
|
20
|
-
relativeChange24: pricePercentChange(duration: DAY) {
|
|
21
|
-
value
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
${TokenBalanceQuantityPartsFragmentDoc}`;
|
|
26
|
-
export const TokenBasicInfoPartsFragmentDoc = gql`
|
|
27
|
-
fragment TokenBasicInfoParts on Token {
|
|
28
|
-
id
|
|
29
|
-
address
|
|
30
|
-
chain
|
|
31
|
-
decimals
|
|
32
|
-
name
|
|
33
|
-
standard
|
|
34
|
-
symbol
|
|
35
|
-
isBridged
|
|
36
|
-
bridgedWithdrawalInfo {
|
|
37
|
-
chain
|
|
38
|
-
provider
|
|
39
|
-
url
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
export const TokenBasicProjectPartsFragmentDoc = gql`
|
|
44
|
-
fragment TokenBasicProjectParts on Token {
|
|
45
|
-
project {
|
|
46
|
-
id
|
|
47
|
-
isSpam
|
|
48
|
-
logoUrl
|
|
49
|
-
name
|
|
50
|
-
safetyLevel
|
|
51
|
-
spamCode
|
|
52
|
-
tokens {
|
|
53
|
-
chain
|
|
54
|
-
address
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
export const TokenFeeDataPartsFragmentDoc = gql`
|
|
60
|
-
fragment TokenFeeDataParts on Token {
|
|
61
|
-
feeData {
|
|
62
|
-
buyFeeBps
|
|
63
|
-
sellFeeBps
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
67
|
-
export const TokenProtectionInfoPartsFragmentDoc = gql`
|
|
68
|
-
fragment TokenProtectionInfoParts on Token {
|
|
69
|
-
protectionInfo {
|
|
70
|
-
result
|
|
71
|
-
attackTypes
|
|
72
|
-
blockaidFees {
|
|
73
|
-
buy
|
|
74
|
-
sell
|
|
75
|
-
transfer
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
export const TokenPartsFragmentDoc = gql`
|
|
81
|
-
fragment TokenParts on Token {
|
|
82
|
-
...TokenBasicInfoParts
|
|
83
|
-
...TokenBasicProjectParts
|
|
84
|
-
...TokenFeeDataParts
|
|
85
|
-
...TokenProtectionInfoParts
|
|
86
|
-
}
|
|
87
|
-
${TokenBasicInfoPartsFragmentDoc}
|
|
88
|
-
${TokenBasicProjectPartsFragmentDoc}
|
|
89
|
-
${TokenFeeDataPartsFragmentDoc}
|
|
90
|
-
${TokenProtectionInfoPartsFragmentDoc}`;
|
|
91
|
-
export const TokenBalancePartsFragmentDoc = gql`
|
|
92
|
-
fragment TokenBalanceParts on TokenBalance {
|
|
93
|
-
...TokenBalanceMainParts
|
|
94
|
-
isHidden
|
|
95
|
-
token {
|
|
96
|
-
...TokenParts
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
${TokenBalanceMainPartsFragmentDoc}
|
|
100
|
-
${TokenPartsFragmentDoc}`;
|
|
101
|
-
export const TokenProjectUrlsPartsFragmentDoc = gql`
|
|
102
|
-
fragment TokenProjectUrlsParts on Token {
|
|
103
|
-
project {
|
|
104
|
-
homepageUrl
|
|
105
|
-
twitterName
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
`;
|
|
109
|
-
export const TokenProjectMarketsPartsFragmentDoc = gql`
|
|
110
|
-
fragment TokenProjectMarketsParts on Token {
|
|
111
|
-
project {
|
|
112
|
-
markets(currencies: [USD]) {
|
|
113
|
-
id
|
|
114
|
-
price {
|
|
115
|
-
value
|
|
116
|
-
}
|
|
117
|
-
marketCap {
|
|
118
|
-
value
|
|
119
|
-
}
|
|
120
|
-
fullyDilutedValuation {
|
|
121
|
-
value
|
|
122
|
-
}
|
|
123
|
-
priceHigh52W: priceHighLow(duration: YEAR, highLow: HIGH) {
|
|
124
|
-
value
|
|
125
|
-
}
|
|
126
|
-
priceLow52W: priceHighLow(duration: YEAR, highLow: LOW) {
|
|
127
|
-
value
|
|
128
|
-
}
|
|
129
|
-
pricePercentChange24h {
|
|
130
|
-
value
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
`;
|
|
136
|
-
export const TokenMarketPartsFragmentDoc = gql`
|
|
137
|
-
fragment TokenMarketParts on Token {
|
|
138
|
-
market(currency: USD) {
|
|
139
|
-
id
|
|
140
|
-
volume(duration: DAY) {
|
|
141
|
-
value
|
|
142
|
-
}
|
|
143
|
-
price {
|
|
144
|
-
value
|
|
145
|
-
}
|
|
146
|
-
priceHigh52W: priceHighLow(duration: YEAR, highLow: HIGH) {
|
|
147
|
-
value
|
|
148
|
-
}
|
|
149
|
-
priceLow52W: priceHighLow(duration: YEAR, highLow: LOW) {
|
|
150
|
-
value
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
155
|
-
export const TopTokenPartsFragmentDoc = gql`
|
|
156
|
-
fragment TopTokenParts on Token {
|
|
157
|
-
...TokenBasicInfoParts
|
|
158
|
-
market {
|
|
159
|
-
id
|
|
160
|
-
totalValueLocked {
|
|
161
|
-
value
|
|
162
|
-
}
|
|
163
|
-
volume(duration: DAY) {
|
|
164
|
-
value
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
project {
|
|
168
|
-
id
|
|
169
|
-
logoUrl
|
|
170
|
-
markets(currencies: [USD]) {
|
|
171
|
-
id
|
|
172
|
-
price {
|
|
173
|
-
value
|
|
174
|
-
}
|
|
175
|
-
pricePercentChange24h {
|
|
176
|
-
value
|
|
177
|
-
}
|
|
178
|
-
marketCap {
|
|
179
|
-
value
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
${TokenBasicInfoPartsFragmentDoc}`;
|
|
185
|
-
export const HomeScreenTokenPartsFragmentDoc = gql`
|
|
186
|
-
fragment HomeScreenTokenParts on Token {
|
|
187
|
-
...TokenBasicInfoParts
|
|
188
|
-
project {
|
|
189
|
-
id
|
|
190
|
-
logoUrl
|
|
191
|
-
markets(currencies: [USD]) {
|
|
192
|
-
id
|
|
193
|
-
price {
|
|
194
|
-
value
|
|
195
|
-
}
|
|
196
|
-
pricePercentChange24h {
|
|
197
|
-
value
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
${TokenBasicInfoPartsFragmentDoc}`;
|
|
203
|
-
export const TransactionPartsFragmentDoc = gql`
|
|
204
|
-
fragment TransactionParts on Transaction {
|
|
205
|
-
id
|
|
206
|
-
blockNumber
|
|
207
|
-
hash
|
|
208
|
-
status
|
|
209
|
-
to
|
|
210
|
-
from
|
|
211
|
-
nonce
|
|
212
|
-
}
|
|
213
|
-
`;
|
|
214
|
-
export const TokenAssetPartsFragmentDoc = gql`
|
|
215
|
-
fragment TokenAssetParts on Token {
|
|
216
|
-
id
|
|
217
|
-
address
|
|
218
|
-
chain
|
|
219
|
-
symbol
|
|
220
|
-
name
|
|
221
|
-
decimals
|
|
222
|
-
standard
|
|
223
|
-
project {
|
|
224
|
-
id
|
|
225
|
-
name
|
|
226
|
-
logo {
|
|
227
|
-
id
|
|
228
|
-
url
|
|
229
|
-
}
|
|
230
|
-
safetyLevel
|
|
231
|
-
logoUrl
|
|
232
|
-
isSpam
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
`;
|
|
236
|
-
export const TokenTransferPartsFragmentDoc = gql`
|
|
237
|
-
fragment TokenTransferParts on TokenTransfer {
|
|
238
|
-
id
|
|
239
|
-
asset {
|
|
240
|
-
...TokenAssetParts
|
|
241
|
-
}
|
|
242
|
-
tokenStandard
|
|
243
|
-
quantity
|
|
244
|
-
sender
|
|
245
|
-
recipient
|
|
246
|
-
direction
|
|
247
|
-
transactedValue {
|
|
248
|
-
id
|
|
249
|
-
currency
|
|
250
|
-
value
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
${TokenAssetPartsFragmentDoc}`;
|
|
254
|
-
export const NftAssetPartsFragmentDoc = gql`
|
|
255
|
-
fragment NFTAssetParts on NftAsset {
|
|
256
|
-
id
|
|
257
|
-
name
|
|
258
|
-
isSpam
|
|
259
|
-
nftContract {
|
|
260
|
-
id
|
|
261
|
-
chain
|
|
262
|
-
address
|
|
263
|
-
}
|
|
264
|
-
tokenId
|
|
265
|
-
image {
|
|
266
|
-
id
|
|
267
|
-
url
|
|
268
|
-
}
|
|
269
|
-
collection {
|
|
270
|
-
id
|
|
271
|
-
name
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
`;
|
|
275
|
-
export const NftTransferPartsFragmentDoc = gql`
|
|
276
|
-
fragment NFTTransferParts on NftTransfer {
|
|
277
|
-
id
|
|
278
|
-
asset {
|
|
279
|
-
...NFTAssetParts
|
|
280
|
-
}
|
|
281
|
-
nftStandard
|
|
282
|
-
sender
|
|
283
|
-
recipient
|
|
284
|
-
direction
|
|
285
|
-
}
|
|
286
|
-
${NftAssetPartsFragmentDoc}`;
|
|
287
|
-
export const TokenApprovalPartsFragmentDoc = gql`
|
|
288
|
-
fragment TokenApprovalParts on TokenApproval {
|
|
289
|
-
id
|
|
290
|
-
asset {
|
|
291
|
-
...TokenAssetParts
|
|
292
|
-
}
|
|
293
|
-
tokenStandard
|
|
294
|
-
approvedAddress
|
|
295
|
-
quantity
|
|
296
|
-
}
|
|
297
|
-
${TokenAssetPartsFragmentDoc}`;
|
|
298
|
-
export const NftApprovalPartsFragmentDoc = gql`
|
|
299
|
-
fragment NFTApprovalParts on NftApproval {
|
|
300
|
-
id
|
|
301
|
-
asset {
|
|
302
|
-
...NFTAssetParts
|
|
303
|
-
}
|
|
304
|
-
nftStandard
|
|
305
|
-
approvedAddress
|
|
306
|
-
}
|
|
307
|
-
${NftAssetPartsFragmentDoc}`;
|
|
308
|
-
export const NftApproveForAllPartsFragmentDoc = gql`
|
|
309
|
-
fragment NFTApproveForAllParts on NftApproveForAll {
|
|
310
|
-
id
|
|
311
|
-
asset {
|
|
312
|
-
...NFTAssetParts
|
|
313
|
-
}
|
|
314
|
-
nftStandard
|
|
315
|
-
operatorAddress
|
|
316
|
-
approved
|
|
317
|
-
}
|
|
318
|
-
${NftAssetPartsFragmentDoc}`;
|
|
319
|
-
export const SimpleTokenDetailsFragmentDoc = gql`
|
|
320
|
-
fragment SimpleTokenDetails on Token {
|
|
321
|
-
...TokenBasicInfoParts
|
|
322
|
-
project {
|
|
323
|
-
id
|
|
324
|
-
isSpam
|
|
325
|
-
logoUrl
|
|
326
|
-
name
|
|
327
|
-
safetyLevel
|
|
328
|
-
}
|
|
329
|
-
...TokenFeeDataParts
|
|
330
|
-
...TokenProtectionInfoParts
|
|
331
|
-
}
|
|
332
|
-
${TokenBasicInfoPartsFragmentDoc}
|
|
333
|
-
${TokenFeeDataPartsFragmentDoc}
|
|
334
|
-
${TokenProtectionInfoPartsFragmentDoc}`;
|
|
335
|
-
export const OnRampTransferPartsFragmentDoc = gql`
|
|
336
|
-
fragment OnRampTransferParts on OnRampTransfer {
|
|
337
|
-
id
|
|
338
|
-
token {
|
|
339
|
-
...SimpleTokenDetails
|
|
340
|
-
}
|
|
341
|
-
tokenStandard
|
|
342
|
-
amount
|
|
343
|
-
sourceCurrency
|
|
344
|
-
sourceAmount
|
|
345
|
-
serviceProvider {
|
|
346
|
-
serviceProvider
|
|
347
|
-
name
|
|
348
|
-
url
|
|
349
|
-
logoLightUrl
|
|
350
|
-
logoDarkUrl
|
|
351
|
-
}
|
|
352
|
-
transactionReferenceId
|
|
353
|
-
externalSessionId
|
|
354
|
-
networkFee
|
|
355
|
-
transactionFee
|
|
356
|
-
totalFee
|
|
357
|
-
}
|
|
358
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
359
|
-
export const TransactionDetailsPartsFragmentDoc = gql`
|
|
360
|
-
fragment TransactionDetailsParts on TransactionDetails {
|
|
361
|
-
id
|
|
362
|
-
type
|
|
363
|
-
from
|
|
364
|
-
to
|
|
365
|
-
hash
|
|
366
|
-
nonce
|
|
367
|
-
status: transactionStatus
|
|
368
|
-
networkFee {
|
|
369
|
-
quantity
|
|
370
|
-
tokenSymbol
|
|
371
|
-
tokenAddress
|
|
372
|
-
tokenChain
|
|
373
|
-
}
|
|
374
|
-
assetChanges {
|
|
375
|
-
__typename
|
|
376
|
-
... on TokenTransfer {
|
|
377
|
-
...TokenTransferParts
|
|
378
|
-
}
|
|
379
|
-
... on NftTransfer {
|
|
380
|
-
...NFTTransferParts
|
|
381
|
-
}
|
|
382
|
-
... on TokenApproval {
|
|
383
|
-
...TokenApprovalParts
|
|
384
|
-
}
|
|
385
|
-
... on NftApproval {
|
|
386
|
-
...NFTApprovalParts
|
|
387
|
-
}
|
|
388
|
-
... on NftApproveForAll {
|
|
389
|
-
...NFTApproveForAllParts
|
|
390
|
-
}
|
|
391
|
-
... on OnRampTransfer {
|
|
392
|
-
...OnRampTransferParts
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
${TokenTransferPartsFragmentDoc}
|
|
397
|
-
${NftTransferPartsFragmentDoc}
|
|
398
|
-
${TokenApprovalPartsFragmentDoc}
|
|
399
|
-
${NftApprovalPartsFragmentDoc}
|
|
400
|
-
${NftApproveForAllPartsFragmentDoc}
|
|
401
|
-
${OnRampTransferPartsFragmentDoc}`;
|
|
402
|
-
export const SwapOrderDetailsPartsFragmentDoc = gql`
|
|
403
|
-
fragment SwapOrderDetailsParts on SwapOrderDetails {
|
|
404
|
-
id
|
|
405
|
-
offerer
|
|
406
|
-
hash
|
|
407
|
-
orderStatus: swapOrderStatus
|
|
408
|
-
expiry
|
|
409
|
-
swapOrderType
|
|
410
|
-
encodedOrder
|
|
411
|
-
inputToken {
|
|
412
|
-
...TokenAssetParts
|
|
413
|
-
}
|
|
414
|
-
inputTokenQuantity
|
|
415
|
-
outputToken {
|
|
416
|
-
...TokenAssetParts
|
|
417
|
-
}
|
|
418
|
-
outputTokenQuantity
|
|
419
|
-
}
|
|
420
|
-
${TokenAssetPartsFragmentDoc}`;
|
|
421
|
-
export const OnRampTransactionDetailsPartsFragmentDoc = gql`
|
|
422
|
-
fragment OnRampTransactionDetailsParts on OnRampTransactionDetails {
|
|
423
|
-
id
|
|
424
|
-
status
|
|
425
|
-
receiverAddress
|
|
426
|
-
onRampTransfer {
|
|
427
|
-
id
|
|
428
|
-
token {
|
|
429
|
-
...SimpleTokenDetails
|
|
430
|
-
}
|
|
431
|
-
amount
|
|
432
|
-
sourceCurrency
|
|
433
|
-
sourceAmount
|
|
434
|
-
serviceProvider {
|
|
435
|
-
serviceProvider
|
|
436
|
-
name
|
|
437
|
-
url
|
|
438
|
-
logoLightUrl
|
|
439
|
-
logoDarkUrl
|
|
440
|
-
}
|
|
441
|
-
transactionReferenceId
|
|
442
|
-
externalSessionId
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
446
|
-
export const OffRampTransactionDetailsPartsFragmentDoc = gql`
|
|
447
|
-
fragment OffRampTransactionDetailsParts on OffRampTransactionDetails {
|
|
448
|
-
id
|
|
449
|
-
status
|
|
450
|
-
senderAddress
|
|
451
|
-
offRampTransfer {
|
|
452
|
-
id
|
|
453
|
-
token {
|
|
454
|
-
...SimpleTokenDetails
|
|
455
|
-
}
|
|
456
|
-
amount
|
|
457
|
-
destinationCurrency
|
|
458
|
-
destinationAmount
|
|
459
|
-
serviceProvider {
|
|
460
|
-
serviceProvider
|
|
461
|
-
name
|
|
462
|
-
url
|
|
463
|
-
logoLightUrl
|
|
464
|
-
logoDarkUrl
|
|
465
|
-
}
|
|
466
|
-
transactionReferenceId
|
|
467
|
-
externalSessionId
|
|
468
|
-
networkFee
|
|
469
|
-
transactionFee
|
|
470
|
-
totalFee
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
474
|
-
export const AssetActivityPartsFragmentDoc = gql`
|
|
475
|
-
fragment AssetActivityParts on AssetActivity {
|
|
476
|
-
id
|
|
477
|
-
timestamp
|
|
478
|
-
chain
|
|
479
|
-
details {
|
|
480
|
-
__typename
|
|
481
|
-
... on TransactionDetails {
|
|
482
|
-
...TransactionDetailsParts
|
|
483
|
-
}
|
|
484
|
-
... on SwapOrderDetails {
|
|
485
|
-
...SwapOrderDetailsParts
|
|
486
|
-
}
|
|
487
|
-
... on OnRampTransactionDetails {
|
|
488
|
-
...OnRampTransactionDetailsParts
|
|
489
|
-
}
|
|
490
|
-
... on OffRampTransactionDetails {
|
|
491
|
-
...OffRampTransactionDetailsParts
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
${TransactionDetailsPartsFragmentDoc}
|
|
496
|
-
${SwapOrderDetailsPartsFragmentDoc}
|
|
497
|
-
${OnRampTransactionDetailsPartsFragmentDoc}
|
|
498
|
-
${OffRampTransactionDetailsPartsFragmentDoc}`;
|
|
499
|
-
export const TokenPriceFragmentDoc = gql`
|
|
500
|
-
fragment TokenPrice on Token {
|
|
501
|
-
id
|
|
502
|
-
project {
|
|
503
|
-
id
|
|
504
|
-
markets(currencies: [USD]) {
|
|
505
|
-
id
|
|
506
|
-
price {
|
|
507
|
-
id
|
|
508
|
-
value
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
logo {
|
|
512
|
-
id
|
|
513
|
-
url
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
market(currency: USD) {
|
|
517
|
-
id
|
|
518
|
-
price {
|
|
519
|
-
id
|
|
520
|
-
value
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
`;
|
|
525
|
-
export const PoolTransactionTokenFragmentDoc = gql`
|
|
526
|
-
fragment PoolTransactionToken on Token {
|
|
527
|
-
id
|
|
528
|
-
address
|
|
529
|
-
symbol
|
|
530
|
-
chain
|
|
531
|
-
decimals
|
|
532
|
-
project {
|
|
533
|
-
id
|
|
534
|
-
name
|
|
535
|
-
logo {
|
|
536
|
-
id
|
|
537
|
-
url
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
`;
|
|
542
|
-
export const QuickTokenBalancePartsFragmentDoc = gql`
|
|
543
|
-
fragment QuickTokenBalanceParts on TokenBalance {
|
|
544
|
-
id
|
|
545
|
-
quantity
|
|
546
|
-
denominatedValue {
|
|
547
|
-
id
|
|
548
|
-
value
|
|
549
|
-
currency
|
|
550
|
-
}
|
|
551
|
-
token {
|
|
552
|
-
id
|
|
553
|
-
address
|
|
554
|
-
chain
|
|
555
|
-
standard
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
`;
|
|
559
|
-
export const PortfolioTokenBalancePartsFragmentDoc = gql`
|
|
560
|
-
fragment PortfolioTokenBalanceParts on TokenBalance {
|
|
561
|
-
id
|
|
562
|
-
quantity
|
|
563
|
-
denominatedValue {
|
|
564
|
-
id
|
|
565
|
-
currency
|
|
566
|
-
value
|
|
567
|
-
}
|
|
568
|
-
token {
|
|
569
|
-
...SimpleTokenDetails
|
|
570
|
-
id
|
|
571
|
-
address
|
|
572
|
-
chain
|
|
573
|
-
symbol
|
|
574
|
-
name
|
|
575
|
-
decimals
|
|
576
|
-
standard
|
|
577
|
-
project {
|
|
578
|
-
id
|
|
579
|
-
name
|
|
580
|
-
logo {
|
|
581
|
-
id
|
|
582
|
-
url
|
|
583
|
-
}
|
|
584
|
-
safetyLevel
|
|
585
|
-
logoUrl
|
|
586
|
-
isSpam
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
tokenProjectMarket {
|
|
590
|
-
id
|
|
591
|
-
pricePercentChange(duration: DAY) {
|
|
592
|
-
id
|
|
593
|
-
value
|
|
594
|
-
}
|
|
595
|
-
tokenProject {
|
|
596
|
-
id
|
|
597
|
-
logoUrl
|
|
598
|
-
isSpam
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
603
|
-
export const CandlestickOhlcFragmentDoc = gql`
|
|
604
|
-
fragment CandlestickOHLC on TimestampedOhlc {
|
|
605
|
-
id
|
|
606
|
-
timestamp
|
|
607
|
-
open {
|
|
608
|
-
id
|
|
609
|
-
value
|
|
610
|
-
}
|
|
611
|
-
high {
|
|
612
|
-
id
|
|
613
|
-
value
|
|
614
|
-
}
|
|
615
|
-
low {
|
|
616
|
-
id
|
|
617
|
-
value
|
|
618
|
-
}
|
|
619
|
-
close {
|
|
620
|
-
id
|
|
621
|
-
value
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
`;
|
|
625
|
-
export const PriceHistoryFallbackFragmentDoc = gql`
|
|
626
|
-
fragment PriceHistoryFallback on TimestampedAmount {
|
|
627
|
-
id
|
|
628
|
-
value
|
|
629
|
-
timestamp
|
|
630
|
-
}
|
|
631
|
-
`;
|
|
632
|
-
export const TransactionTokenFragmentDoc = gql`
|
|
633
|
-
fragment TransactionToken on Token {
|
|
634
|
-
id
|
|
635
|
-
address
|
|
636
|
-
symbol
|
|
637
|
-
chain
|
|
638
|
-
decimals
|
|
639
|
-
project {
|
|
640
|
-
id
|
|
641
|
-
name
|
|
642
|
-
tokens {
|
|
643
|
-
id
|
|
644
|
-
address
|
|
645
|
-
symbol
|
|
646
|
-
chain
|
|
647
|
-
}
|
|
648
|
-
logo {
|
|
649
|
-
id
|
|
650
|
-
url
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
`;
|
|
655
|
-
export const PoolTxFragmentDoc = gql`
|
|
656
|
-
fragment PoolTx on PoolTransaction {
|
|
657
|
-
id
|
|
658
|
-
chain
|
|
659
|
-
protocolVersion
|
|
660
|
-
timestamp
|
|
661
|
-
hash
|
|
662
|
-
account
|
|
663
|
-
token0 {
|
|
664
|
-
...TransactionToken
|
|
665
|
-
}
|
|
666
|
-
token0Quantity
|
|
667
|
-
token1 {
|
|
668
|
-
...TransactionToken
|
|
669
|
-
}
|
|
670
|
-
token1Quantity
|
|
671
|
-
usdValue {
|
|
672
|
-
id
|
|
673
|
-
value
|
|
674
|
-
}
|
|
675
|
-
type
|
|
676
|
-
}
|
|
677
|
-
${TransactionTokenFragmentDoc}`;
|
|
678
|
-
export const TokenPriceHistoryDocument = gql`
|
|
679
|
-
query TokenPriceHistory($contract: ContractInput!, $duration: HistoryDuration = DAY, $maxHistoryLength: Int = 1000) {
|
|
680
|
-
tokenProjects(contracts: [$contract]) {
|
|
681
|
-
id
|
|
682
|
-
name
|
|
683
|
-
markets(currencies: [USD]) {
|
|
684
|
-
id
|
|
685
|
-
price {
|
|
686
|
-
value
|
|
687
|
-
}
|
|
688
|
-
pricePercentChange24h {
|
|
689
|
-
value
|
|
690
|
-
}
|
|
691
|
-
priceHistory(duration: $duration, maxLength: $maxHistoryLength) {
|
|
692
|
-
timestamp
|
|
693
|
-
value
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
tokens {
|
|
697
|
-
id
|
|
698
|
-
chain
|
|
699
|
-
address
|
|
700
|
-
symbol
|
|
701
|
-
decimals
|
|
702
|
-
market(currency: USD) {
|
|
703
|
-
id
|
|
704
|
-
price {
|
|
705
|
-
value
|
|
706
|
-
}
|
|
707
|
-
pricePercentChange24h: pricePercentChange(duration: DAY) {
|
|
708
|
-
value
|
|
709
|
-
}
|
|
710
|
-
priceHistory(duration: $duration, maxLength: $maxHistoryLength) {
|
|
711
|
-
timestamp
|
|
712
|
-
value
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
`;
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* __useTokenPriceHistoryQuery__
|
|
722
|
-
*
|
|
723
|
-
* To run a query within a React component, call `useTokenPriceHistoryQuery` and pass it any options that fit your needs.
|
|
724
|
-
* When your component renders, `useTokenPriceHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
725
|
-
* you can use to render your UI.
|
|
726
|
-
*
|
|
727
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
728
|
-
*
|
|
729
|
-
* @example
|
|
730
|
-
* const { data, loading, error } = useTokenPriceHistoryQuery({
|
|
731
|
-
* variables: {
|
|
732
|
-
* contract: // value for 'contract'
|
|
733
|
-
* duration: // value for 'duration'
|
|
734
|
-
* maxHistoryLength: // value for 'maxHistoryLength'
|
|
735
|
-
* },
|
|
736
|
-
* });
|
|
737
|
-
*/
|
|
738
|
-
export function useTokenPriceHistoryQuery(baseOptions: Apollo.QueryHookOptions<TokenPriceHistoryQuery, TokenPriceHistoryQueryVariables>) {
|
|
739
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
740
|
-
return Apollo.useQuery<TokenPriceHistoryQuery, TokenPriceHistoryQueryVariables>(TokenPriceHistoryDocument, options);
|
|
741
|
-
}
|
|
742
|
-
export function useTokenPriceHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenPriceHistoryQuery, TokenPriceHistoryQueryVariables>) {
|
|
743
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
744
|
-
return Apollo.useLazyQuery<TokenPriceHistoryQuery, TokenPriceHistoryQueryVariables>(TokenPriceHistoryDocument, options);
|
|
745
|
-
}
|
|
746
|
-
export type TokenPriceHistoryQueryHookResult = ReturnType<typeof useTokenPriceHistoryQuery>;
|
|
747
|
-
export type TokenPriceHistoryLazyQueryHookResult = ReturnType<typeof useTokenPriceHistoryLazyQuery>;
|
|
748
|
-
export type TokenPriceHistoryQueryResult = Apollo.QueryResult<TokenPriceHistoryQuery, TokenPriceHistoryQueryVariables>;
|
|
749
|
-
export const AccountListDocument = gql`
|
|
750
|
-
query AccountList($addresses: [String!]!, $valueModifiers: [PortfolioValueModifier!], $chains: [Chain!]) {
|
|
751
|
-
portfolios(
|
|
752
|
-
ownerAddresses: $addresses
|
|
753
|
-
chains: $chains
|
|
754
|
-
valueModifiers: $valueModifiers
|
|
755
|
-
) {
|
|
756
|
-
id
|
|
757
|
-
ownerAddress
|
|
758
|
-
tokensTotalDenominatedValue {
|
|
759
|
-
value
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
`;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* __useAccountListQuery__
|
|
767
|
-
*
|
|
768
|
-
* To run a query within a React component, call `useAccountListQuery` and pass it any options that fit your needs.
|
|
769
|
-
* When your component renders, `useAccountListQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
770
|
-
* you can use to render your UI.
|
|
771
|
-
*
|
|
772
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
773
|
-
*
|
|
774
|
-
* @example
|
|
775
|
-
* const { data, loading, error } = useAccountListQuery({
|
|
776
|
-
* variables: {
|
|
777
|
-
* addresses: // value for 'addresses'
|
|
778
|
-
* valueModifiers: // value for 'valueModifiers'
|
|
779
|
-
* chains: // value for 'chains'
|
|
780
|
-
* },
|
|
781
|
-
* });
|
|
782
|
-
*/
|
|
783
|
-
export function useAccountListQuery(baseOptions: Apollo.QueryHookOptions<AccountListQuery, AccountListQueryVariables>) {
|
|
784
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
785
|
-
return Apollo.useQuery<AccountListQuery, AccountListQueryVariables>(AccountListDocument, options);
|
|
786
|
-
}
|
|
787
|
-
export function useAccountListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AccountListQuery, AccountListQueryVariables>) {
|
|
788
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
789
|
-
return Apollo.useLazyQuery<AccountListQuery, AccountListQueryVariables>(AccountListDocument, options);
|
|
790
|
-
}
|
|
791
|
-
export type AccountListQueryHookResult = ReturnType<typeof useAccountListQuery>;
|
|
792
|
-
export type AccountListLazyQueryHookResult = ReturnType<typeof useAccountListLazyQuery>;
|
|
793
|
-
export type AccountListQueryResult = Apollo.QueryResult<AccountListQuery, AccountListQueryVariables>;
|
|
794
|
-
export const NftsDocument = gql`
|
|
795
|
-
query Nfts($ownerAddress: String!) {
|
|
796
|
-
portfolios(ownerAddresses: [$ownerAddress]) {
|
|
797
|
-
id
|
|
798
|
-
nftBalances {
|
|
799
|
-
id
|
|
800
|
-
ownedAsset {
|
|
801
|
-
id
|
|
802
|
-
collection {
|
|
803
|
-
id
|
|
804
|
-
collectionId
|
|
805
|
-
description
|
|
806
|
-
image {
|
|
807
|
-
id
|
|
808
|
-
url
|
|
809
|
-
}
|
|
810
|
-
isVerified
|
|
811
|
-
name
|
|
812
|
-
numAssets
|
|
813
|
-
markets(currencies: [USD]) {
|
|
814
|
-
id
|
|
815
|
-
floorPrice {
|
|
816
|
-
value
|
|
817
|
-
}
|
|
818
|
-
owners
|
|
819
|
-
volume24h {
|
|
820
|
-
value
|
|
821
|
-
}
|
|
822
|
-
totalVolume {
|
|
823
|
-
value
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
description
|
|
828
|
-
image {
|
|
829
|
-
id
|
|
830
|
-
url
|
|
831
|
-
}
|
|
832
|
-
name
|
|
833
|
-
nftContract {
|
|
834
|
-
id
|
|
835
|
-
address
|
|
836
|
-
chain
|
|
837
|
-
standard
|
|
838
|
-
}
|
|
839
|
-
thumbnail {
|
|
840
|
-
id
|
|
841
|
-
url
|
|
842
|
-
}
|
|
843
|
-
tokenId
|
|
844
|
-
creator {
|
|
845
|
-
id
|
|
846
|
-
address
|
|
847
|
-
username
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
`;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* __useNftsQuery__
|
|
857
|
-
*
|
|
858
|
-
* To run a query within a React component, call `useNftsQuery` and pass it any options that fit your needs.
|
|
859
|
-
* When your component renders, `useNftsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
860
|
-
* you can use to render your UI.
|
|
861
|
-
*
|
|
862
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
863
|
-
*
|
|
864
|
-
* @example
|
|
865
|
-
* const { data, loading, error } = useNftsQuery({
|
|
866
|
-
* variables: {
|
|
867
|
-
* ownerAddress: // value for 'ownerAddress'
|
|
868
|
-
* },
|
|
869
|
-
* });
|
|
870
|
-
*/
|
|
871
|
-
export function useNftsQuery(baseOptions: Apollo.QueryHookOptions<NftsQuery, NftsQueryVariables>) {
|
|
872
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
873
|
-
return Apollo.useQuery<NftsQuery, NftsQueryVariables>(NftsDocument, options);
|
|
874
|
-
}
|
|
875
|
-
export function useNftsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NftsQuery, NftsQueryVariables>) {
|
|
876
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
877
|
-
return Apollo.useLazyQuery<NftsQuery, NftsQueryVariables>(NftsDocument, options);
|
|
878
|
-
}
|
|
879
|
-
export type NftsQueryHookResult = ReturnType<typeof useNftsQuery>;
|
|
880
|
-
export type NftsLazyQueryHookResult = ReturnType<typeof useNftsLazyQuery>;
|
|
881
|
-
export type NftsQueryResult = Apollo.QueryResult<NftsQuery, NftsQueryVariables>;
|
|
882
|
-
export const NftItemScreenDocument = gql`
|
|
883
|
-
query NFTItemScreen($contractAddress: String!, $filter: NftAssetsFilterInput, $activityFilter: NftActivityFilterInput) {
|
|
884
|
-
nftAssets(address: $contractAddress, filter: $filter) {
|
|
885
|
-
edges {
|
|
886
|
-
node {
|
|
887
|
-
id
|
|
888
|
-
ownerAddress
|
|
889
|
-
collection {
|
|
890
|
-
id
|
|
891
|
-
collectionId
|
|
892
|
-
description
|
|
893
|
-
image {
|
|
894
|
-
id
|
|
895
|
-
url
|
|
896
|
-
}
|
|
897
|
-
isVerified
|
|
898
|
-
name
|
|
899
|
-
numAssets
|
|
900
|
-
markets(currencies: [USD]) {
|
|
901
|
-
id
|
|
902
|
-
floorPrice {
|
|
903
|
-
value
|
|
904
|
-
}
|
|
905
|
-
owners
|
|
906
|
-
totalVolume {
|
|
907
|
-
value
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
nftContracts {
|
|
911
|
-
id
|
|
912
|
-
address
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
description
|
|
916
|
-
image {
|
|
917
|
-
id
|
|
918
|
-
url
|
|
919
|
-
dimensions {
|
|
920
|
-
width
|
|
921
|
-
height
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
name
|
|
925
|
-
nftContract {
|
|
926
|
-
id
|
|
927
|
-
address
|
|
928
|
-
chain
|
|
929
|
-
standard
|
|
930
|
-
}
|
|
931
|
-
tokenId
|
|
932
|
-
creator {
|
|
933
|
-
id
|
|
934
|
-
address
|
|
935
|
-
username
|
|
936
|
-
}
|
|
937
|
-
traits {
|
|
938
|
-
id
|
|
939
|
-
name
|
|
940
|
-
rarity
|
|
941
|
-
value
|
|
942
|
-
}
|
|
943
|
-
listings(first: 1) {
|
|
944
|
-
edges {
|
|
945
|
-
node {
|
|
946
|
-
id
|
|
947
|
-
price {
|
|
948
|
-
currency
|
|
949
|
-
value
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
nftActivity(filter: $activityFilter) {
|
|
958
|
-
edges {
|
|
959
|
-
node {
|
|
960
|
-
id
|
|
961
|
-
quantity
|
|
962
|
-
price {
|
|
963
|
-
currency
|
|
964
|
-
value
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
`;
|
|
971
|
-
|
|
972
|
-
/**
|
|
973
|
-
* __useNftItemScreenQuery__
|
|
974
|
-
*
|
|
975
|
-
* To run a query within a React component, call `useNftItemScreenQuery` and pass it any options that fit your needs.
|
|
976
|
-
* When your component renders, `useNftItemScreenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
977
|
-
* you can use to render your UI.
|
|
978
|
-
*
|
|
979
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
980
|
-
*
|
|
981
|
-
* @example
|
|
982
|
-
* const { data, loading, error } = useNftItemScreenQuery({
|
|
983
|
-
* variables: {
|
|
984
|
-
* contractAddress: // value for 'contractAddress'
|
|
985
|
-
* filter: // value for 'filter'
|
|
986
|
-
* activityFilter: // value for 'activityFilter'
|
|
987
|
-
* },
|
|
988
|
-
* });
|
|
989
|
-
*/
|
|
990
|
-
export function useNftItemScreenQuery(baseOptions: Apollo.QueryHookOptions<NftItemScreenQuery, NftItemScreenQueryVariables>) {
|
|
991
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
992
|
-
return Apollo.useQuery<NftItemScreenQuery, NftItemScreenQueryVariables>(NftItemScreenDocument, options);
|
|
993
|
-
}
|
|
994
|
-
export function useNftItemScreenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NftItemScreenQuery, NftItemScreenQueryVariables>) {
|
|
995
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
996
|
-
return Apollo.useLazyQuery<NftItemScreenQuery, NftItemScreenQueryVariables>(NftItemScreenDocument, options);
|
|
997
|
-
}
|
|
998
|
-
export type NftItemScreenQueryHookResult = ReturnType<typeof useNftItemScreenQuery>;
|
|
999
|
-
export type NftItemScreenLazyQueryHookResult = ReturnType<typeof useNftItemScreenLazyQuery>;
|
|
1000
|
-
export type NftItemScreenQueryResult = Apollo.QueryResult<NftItemScreenQuery, NftItemScreenQueryVariables>;
|
|
1001
|
-
export const NftCollectionScreenDocument = gql`
|
|
1002
|
-
query NftCollectionScreen($contractAddress: String!, $first: Int, $after: String) {
|
|
1003
|
-
nftCollections(filter: {addresses: [$contractAddress]}) {
|
|
1004
|
-
edges {
|
|
1005
|
-
node {
|
|
1006
|
-
id
|
|
1007
|
-
bannerImage {
|
|
1008
|
-
id
|
|
1009
|
-
url
|
|
1010
|
-
}
|
|
1011
|
-
isVerified
|
|
1012
|
-
numAssets
|
|
1013
|
-
description
|
|
1014
|
-
homepageUrl
|
|
1015
|
-
twitterName
|
|
1016
|
-
image {
|
|
1017
|
-
id
|
|
1018
|
-
url
|
|
1019
|
-
}
|
|
1020
|
-
name
|
|
1021
|
-
markets(currencies: [USD]) {
|
|
1022
|
-
id
|
|
1023
|
-
floorPrice {
|
|
1024
|
-
value
|
|
1025
|
-
}
|
|
1026
|
-
owners
|
|
1027
|
-
volume24h {
|
|
1028
|
-
value
|
|
1029
|
-
}
|
|
1030
|
-
totalVolume {
|
|
1031
|
-
value
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
nftAssets(
|
|
1038
|
-
address: $contractAddress
|
|
1039
|
-
first: $first
|
|
1040
|
-
after: $after
|
|
1041
|
-
orderBy: PRICE
|
|
1042
|
-
asc: true
|
|
1043
|
-
) {
|
|
1044
|
-
edges {
|
|
1045
|
-
node {
|
|
1046
|
-
ownerAddress
|
|
1047
|
-
id
|
|
1048
|
-
name
|
|
1049
|
-
tokenId
|
|
1050
|
-
nftContract {
|
|
1051
|
-
id
|
|
1052
|
-
address
|
|
1053
|
-
}
|
|
1054
|
-
collection {
|
|
1055
|
-
id
|
|
1056
|
-
collectionId
|
|
1057
|
-
name
|
|
1058
|
-
}
|
|
1059
|
-
image {
|
|
1060
|
-
id
|
|
1061
|
-
url
|
|
1062
|
-
dimensions {
|
|
1063
|
-
width
|
|
1064
|
-
height
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
listings(first: 1) {
|
|
1068
|
-
edges {
|
|
1069
|
-
node {
|
|
1070
|
-
id
|
|
1071
|
-
price {
|
|
1072
|
-
currency
|
|
1073
|
-
value
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
pageInfo {
|
|
1081
|
-
endCursor
|
|
1082
|
-
hasNextPage
|
|
1083
|
-
hasPreviousPage
|
|
1084
|
-
startCursor
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
`;
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* __useNftCollectionScreenQuery__
|
|
1092
|
-
*
|
|
1093
|
-
* To run a query within a React component, call `useNftCollectionScreenQuery` and pass it any options that fit your needs.
|
|
1094
|
-
* When your component renders, `useNftCollectionScreenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1095
|
-
* you can use to render your UI.
|
|
1096
|
-
*
|
|
1097
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1098
|
-
*
|
|
1099
|
-
* @example
|
|
1100
|
-
* const { data, loading, error } = useNftCollectionScreenQuery({
|
|
1101
|
-
* variables: {
|
|
1102
|
-
* contractAddress: // value for 'contractAddress'
|
|
1103
|
-
* first: // value for 'first'
|
|
1104
|
-
* after: // value for 'after'
|
|
1105
|
-
* },
|
|
1106
|
-
* });
|
|
1107
|
-
*/
|
|
1108
|
-
export function useNftCollectionScreenQuery(baseOptions: Apollo.QueryHookOptions<NftCollectionScreenQuery, NftCollectionScreenQueryVariables>) {
|
|
1109
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1110
|
-
return Apollo.useQuery<NftCollectionScreenQuery, NftCollectionScreenQueryVariables>(NftCollectionScreenDocument, options);
|
|
1111
|
-
}
|
|
1112
|
-
export function useNftCollectionScreenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NftCollectionScreenQuery, NftCollectionScreenQueryVariables>) {
|
|
1113
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1114
|
-
return Apollo.useLazyQuery<NftCollectionScreenQuery, NftCollectionScreenQueryVariables>(NftCollectionScreenDocument, options);
|
|
1115
|
-
}
|
|
1116
|
-
export type NftCollectionScreenQueryHookResult = ReturnType<typeof useNftCollectionScreenQuery>;
|
|
1117
|
-
export type NftCollectionScreenLazyQueryHookResult = ReturnType<typeof useNftCollectionScreenLazyQuery>;
|
|
1118
|
-
export type NftCollectionScreenQueryResult = Apollo.QueryResult<NftCollectionScreenQuery, NftCollectionScreenQueryVariables>;
|
|
1119
|
-
export const NftsTabDocument = gql`
|
|
1120
|
-
query NftsTab($ownerAddress: String!, $first: Int, $after: String, $filter: NftBalancesFilterInput, $chains: [Chain!]!) {
|
|
1121
|
-
nftBalances(
|
|
1122
|
-
ownerAddress: $ownerAddress
|
|
1123
|
-
chains: $chains
|
|
1124
|
-
first: $first
|
|
1125
|
-
after: $after
|
|
1126
|
-
filter: $filter
|
|
1127
|
-
) {
|
|
1128
|
-
edges {
|
|
1129
|
-
node {
|
|
1130
|
-
ownedAsset {
|
|
1131
|
-
chain
|
|
1132
|
-
id
|
|
1133
|
-
collection {
|
|
1134
|
-
id
|
|
1135
|
-
name
|
|
1136
|
-
isVerified
|
|
1137
|
-
markets(currencies: [ETH]) {
|
|
1138
|
-
id
|
|
1139
|
-
floorPrice {
|
|
1140
|
-
value
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
image {
|
|
1145
|
-
id
|
|
1146
|
-
url
|
|
1147
|
-
dimensions {
|
|
1148
|
-
width
|
|
1149
|
-
height
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
thumbnail {
|
|
1153
|
-
id
|
|
1154
|
-
url
|
|
1155
|
-
}
|
|
1156
|
-
name
|
|
1157
|
-
tokenId
|
|
1158
|
-
description
|
|
1159
|
-
nftContract {
|
|
1160
|
-
id
|
|
1161
|
-
address
|
|
1162
|
-
}
|
|
1163
|
-
isSpam
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
pageInfo {
|
|
1168
|
-
endCursor
|
|
1169
|
-
hasNextPage
|
|
1170
|
-
hasPreviousPage
|
|
1171
|
-
startCursor
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
`;
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* __useNftsTabQuery__
|
|
1179
|
-
*
|
|
1180
|
-
* To run a query within a React component, call `useNftsTabQuery` and pass it any options that fit your needs.
|
|
1181
|
-
* When your component renders, `useNftsTabQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1182
|
-
* you can use to render your UI.
|
|
1183
|
-
*
|
|
1184
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1185
|
-
*
|
|
1186
|
-
* @example
|
|
1187
|
-
* const { data, loading, error } = useNftsTabQuery({
|
|
1188
|
-
* variables: {
|
|
1189
|
-
* ownerAddress: // value for 'ownerAddress'
|
|
1190
|
-
* first: // value for 'first'
|
|
1191
|
-
* after: // value for 'after'
|
|
1192
|
-
* filter: // value for 'filter'
|
|
1193
|
-
* chains: // value for 'chains'
|
|
1194
|
-
* },
|
|
1195
|
-
* });
|
|
1196
|
-
*/
|
|
1197
|
-
export function useNftsTabQuery(baseOptions: Apollo.QueryHookOptions<NftsTabQuery, NftsTabQueryVariables>) {
|
|
1198
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1199
|
-
return Apollo.useQuery<NftsTabQuery, NftsTabQueryVariables>(NftsTabDocument, options);
|
|
1200
|
-
}
|
|
1201
|
-
export function useNftsTabLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NftsTabQuery, NftsTabQueryVariables>) {
|
|
1202
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1203
|
-
return Apollo.useLazyQuery<NftsTabQuery, NftsTabQueryVariables>(NftsTabDocument, options);
|
|
1204
|
-
}
|
|
1205
|
-
export type NftsTabQueryHookResult = ReturnType<typeof useNftsTabQuery>;
|
|
1206
|
-
export type NftsTabLazyQueryHookResult = ReturnType<typeof useNftsTabLazyQuery>;
|
|
1207
|
-
export type NftsTabQueryResult = Apollo.QueryResult<NftsTabQuery, NftsTabQueryVariables>;
|
|
1208
|
-
export const PortfolioBalancesDocument = gql`
|
|
1209
|
-
query PortfolioBalances($ownerAddress: String!, $valueModifiers: [PortfolioValueModifier!], $chains: [Chain!]!) {
|
|
1210
|
-
portfolios(
|
|
1211
|
-
ownerAddresses: [$ownerAddress]
|
|
1212
|
-
chains: $chains
|
|
1213
|
-
valueModifiers: $valueModifiers
|
|
1214
|
-
) {
|
|
1215
|
-
id
|
|
1216
|
-
tokensTotalDenominatedValue {
|
|
1217
|
-
value
|
|
1218
|
-
}
|
|
1219
|
-
tokensTotalDenominatedValueChange(duration: DAY) {
|
|
1220
|
-
absolute {
|
|
1221
|
-
value
|
|
1222
|
-
}
|
|
1223
|
-
percentage {
|
|
1224
|
-
value
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
tokenBalances {
|
|
1228
|
-
...TokenBalanceParts
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
${TokenBalancePartsFragmentDoc}`;
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* __usePortfolioBalancesQuery__
|
|
1236
|
-
*
|
|
1237
|
-
* To run a query within a React component, call `usePortfolioBalancesQuery` and pass it any options that fit your needs.
|
|
1238
|
-
* When your component renders, `usePortfolioBalancesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1239
|
-
* you can use to render your UI.
|
|
1240
|
-
*
|
|
1241
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1242
|
-
*
|
|
1243
|
-
* @example
|
|
1244
|
-
* const { data, loading, error } = usePortfolioBalancesQuery({
|
|
1245
|
-
* variables: {
|
|
1246
|
-
* ownerAddress: // value for 'ownerAddress'
|
|
1247
|
-
* valueModifiers: // value for 'valueModifiers'
|
|
1248
|
-
* chains: // value for 'chains'
|
|
1249
|
-
* },
|
|
1250
|
-
* });
|
|
1251
|
-
*/
|
|
1252
|
-
export function usePortfolioBalancesQuery(baseOptions: Apollo.QueryHookOptions<PortfolioBalancesQuery, PortfolioBalancesQueryVariables>) {
|
|
1253
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1254
|
-
return Apollo.useQuery<PortfolioBalancesQuery, PortfolioBalancesQueryVariables>(PortfolioBalancesDocument, options);
|
|
1255
|
-
}
|
|
1256
|
-
export function usePortfolioBalancesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PortfolioBalancesQuery, PortfolioBalancesQueryVariables>) {
|
|
1257
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1258
|
-
return Apollo.useLazyQuery<PortfolioBalancesQuery, PortfolioBalancesQueryVariables>(PortfolioBalancesDocument, options);
|
|
1259
|
-
}
|
|
1260
|
-
export type PortfolioBalancesQueryHookResult = ReturnType<typeof usePortfolioBalancesQuery>;
|
|
1261
|
-
export type PortfolioBalancesLazyQueryHookResult = ReturnType<typeof usePortfolioBalancesLazyQuery>;
|
|
1262
|
-
export type PortfolioBalancesQueryResult = Apollo.QueryResult<PortfolioBalancesQuery, PortfolioBalancesQueryVariables>;
|
|
1263
|
-
export const MultiplePortfolioBalancesDocument = gql`
|
|
1264
|
-
query MultiplePortfolioBalances($ownerAddresses: [String!]!, $valueModifiers: [PortfolioValueModifier!], $chains: [Chain!]!) {
|
|
1265
|
-
portfolios(
|
|
1266
|
-
ownerAddresses: $ownerAddresses
|
|
1267
|
-
chains: $chains
|
|
1268
|
-
valueModifiers: $valueModifiers
|
|
1269
|
-
) {
|
|
1270
|
-
id
|
|
1271
|
-
tokensTotalDenominatedValue {
|
|
1272
|
-
value
|
|
1273
|
-
}
|
|
1274
|
-
tokensTotalDenominatedValueChange(duration: DAY) {
|
|
1275
|
-
absolute {
|
|
1276
|
-
value
|
|
1277
|
-
}
|
|
1278
|
-
percentage {
|
|
1279
|
-
value
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
tokenBalances {
|
|
1283
|
-
id
|
|
1284
|
-
quantity
|
|
1285
|
-
isHidden
|
|
1286
|
-
denominatedValue {
|
|
1287
|
-
currency
|
|
1288
|
-
value
|
|
1289
|
-
}
|
|
1290
|
-
token {
|
|
1291
|
-
...TokenBasicInfoParts
|
|
1292
|
-
...TokenBasicProjectParts
|
|
1293
|
-
}
|
|
1294
|
-
tokenProjectMarket {
|
|
1295
|
-
relativeChange24: pricePercentChange(duration: DAY) {
|
|
1296
|
-
value
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
${TokenBasicInfoPartsFragmentDoc}
|
|
1303
|
-
${TokenBasicProjectPartsFragmentDoc}`;
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* __useMultiplePortfolioBalancesQuery__
|
|
1307
|
-
*
|
|
1308
|
-
* To run a query within a React component, call `useMultiplePortfolioBalancesQuery` and pass it any options that fit your needs.
|
|
1309
|
-
* When your component renders, `useMultiplePortfolioBalancesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1310
|
-
* you can use to render your UI.
|
|
1311
|
-
*
|
|
1312
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1313
|
-
*
|
|
1314
|
-
* @example
|
|
1315
|
-
* const { data, loading, error } = useMultiplePortfolioBalancesQuery({
|
|
1316
|
-
* variables: {
|
|
1317
|
-
* ownerAddresses: // value for 'ownerAddresses'
|
|
1318
|
-
* valueModifiers: // value for 'valueModifiers'
|
|
1319
|
-
* chains: // value for 'chains'
|
|
1320
|
-
* },
|
|
1321
|
-
* });
|
|
1322
|
-
*/
|
|
1323
|
-
export function useMultiplePortfolioBalancesQuery(baseOptions: Apollo.QueryHookOptions<MultiplePortfolioBalancesQuery, MultiplePortfolioBalancesQueryVariables>) {
|
|
1324
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1325
|
-
return Apollo.useQuery<MultiplePortfolioBalancesQuery, MultiplePortfolioBalancesQueryVariables>(MultiplePortfolioBalancesDocument, options);
|
|
1326
|
-
}
|
|
1327
|
-
export function useMultiplePortfolioBalancesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MultiplePortfolioBalancesQuery, MultiplePortfolioBalancesQueryVariables>) {
|
|
1328
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1329
|
-
return Apollo.useLazyQuery<MultiplePortfolioBalancesQuery, MultiplePortfolioBalancesQueryVariables>(MultiplePortfolioBalancesDocument, options);
|
|
1330
|
-
}
|
|
1331
|
-
export type MultiplePortfolioBalancesQueryHookResult = ReturnType<typeof useMultiplePortfolioBalancesQuery>;
|
|
1332
|
-
export type MultiplePortfolioBalancesLazyQueryHookResult = ReturnType<typeof useMultiplePortfolioBalancesLazyQuery>;
|
|
1333
|
-
export type MultiplePortfolioBalancesQueryResult = Apollo.QueryResult<MultiplePortfolioBalancesQuery, MultiplePortfolioBalancesQueryVariables>;
|
|
1334
|
-
export const SelectWalletScreenDocument = gql`
|
|
1335
|
-
query SelectWalletScreen($ownerAddresses: [String!]!, $valueModifiers: [PortfolioValueModifier!], $chains: [Chain!]!) {
|
|
1336
|
-
portfolios(
|
|
1337
|
-
ownerAddresses: $ownerAddresses
|
|
1338
|
-
chains: $chains
|
|
1339
|
-
valueModifiers: $valueModifiers
|
|
1340
|
-
) {
|
|
1341
|
-
id
|
|
1342
|
-
ownerAddress
|
|
1343
|
-
tokensTotalDenominatedValue {
|
|
1344
|
-
value
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
`;
|
|
1349
|
-
|
|
1350
|
-
/**
|
|
1351
|
-
* __useSelectWalletScreenQuery__
|
|
1352
|
-
*
|
|
1353
|
-
* To run a query within a React component, call `useSelectWalletScreenQuery` and pass it any options that fit your needs.
|
|
1354
|
-
* When your component renders, `useSelectWalletScreenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1355
|
-
* you can use to render your UI.
|
|
1356
|
-
*
|
|
1357
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1358
|
-
*
|
|
1359
|
-
* @example
|
|
1360
|
-
* const { data, loading, error } = useSelectWalletScreenQuery({
|
|
1361
|
-
* variables: {
|
|
1362
|
-
* ownerAddresses: // value for 'ownerAddresses'
|
|
1363
|
-
* valueModifiers: // value for 'valueModifiers'
|
|
1364
|
-
* chains: // value for 'chains'
|
|
1365
|
-
* },
|
|
1366
|
-
* });
|
|
1367
|
-
*/
|
|
1368
|
-
export function useSelectWalletScreenQuery(baseOptions: Apollo.QueryHookOptions<SelectWalletScreenQuery, SelectWalletScreenQueryVariables>) {
|
|
1369
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1370
|
-
return Apollo.useQuery<SelectWalletScreenQuery, SelectWalletScreenQueryVariables>(SelectWalletScreenDocument, options);
|
|
1371
|
-
}
|
|
1372
|
-
export function useSelectWalletScreenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SelectWalletScreenQuery, SelectWalletScreenQueryVariables>) {
|
|
1373
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1374
|
-
return Apollo.useLazyQuery<SelectWalletScreenQuery, SelectWalletScreenQueryVariables>(SelectWalletScreenDocument, options);
|
|
1375
|
-
}
|
|
1376
|
-
export type SelectWalletScreenQueryHookResult = ReturnType<typeof useSelectWalletScreenQuery>;
|
|
1377
|
-
export type SelectWalletScreenLazyQueryHookResult = ReturnType<typeof useSelectWalletScreenLazyQuery>;
|
|
1378
|
-
export type SelectWalletScreenQueryResult = Apollo.QueryResult<SelectWalletScreenQuery, SelectWalletScreenQueryVariables>;
|
|
1379
|
-
export const TransactionHistoryUpdaterDocument = gql`
|
|
1380
|
-
query TransactionHistoryUpdater($addresses: [String!]!, $onRampAuth: OnRampTransactionsAuth, $chains: [Chain!]!) {
|
|
1381
|
-
portfolios(ownerAddresses: $addresses, chains: $chains) {
|
|
1382
|
-
id
|
|
1383
|
-
ownerAddress
|
|
1384
|
-
assetActivities(
|
|
1385
|
-
pageSize: 1
|
|
1386
|
-
page: 1
|
|
1387
|
-
chains: $chains
|
|
1388
|
-
onRampTransactionsAuth: $onRampAuth
|
|
1389
|
-
includeBridging: true
|
|
1390
|
-
) {
|
|
1391
|
-
id
|
|
1392
|
-
timestamp
|
|
1393
|
-
details {
|
|
1394
|
-
... on TransactionDetails {
|
|
1395
|
-
id
|
|
1396
|
-
hash
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
`;
|
|
1403
|
-
|
|
1404
|
-
/**
|
|
1405
|
-
* __useTransactionHistoryUpdaterQuery__
|
|
1406
|
-
*
|
|
1407
|
-
* To run a query within a React component, call `useTransactionHistoryUpdaterQuery` and pass it any options that fit your needs.
|
|
1408
|
-
* When your component renders, `useTransactionHistoryUpdaterQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1409
|
-
* you can use to render your UI.
|
|
1410
|
-
*
|
|
1411
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1412
|
-
*
|
|
1413
|
-
* @example
|
|
1414
|
-
* const { data, loading, error } = useTransactionHistoryUpdaterQuery({
|
|
1415
|
-
* variables: {
|
|
1416
|
-
* addresses: // value for 'addresses'
|
|
1417
|
-
* onRampAuth: // value for 'onRampAuth'
|
|
1418
|
-
* chains: // value for 'chains'
|
|
1419
|
-
* },
|
|
1420
|
-
* });
|
|
1421
|
-
*/
|
|
1422
|
-
export function useTransactionHistoryUpdaterQuery(baseOptions: Apollo.QueryHookOptions<TransactionHistoryUpdaterQuery, TransactionHistoryUpdaterQueryVariables>) {
|
|
1423
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1424
|
-
return Apollo.useQuery<TransactionHistoryUpdaterQuery, TransactionHistoryUpdaterQueryVariables>(TransactionHistoryUpdaterDocument, options);
|
|
1425
|
-
}
|
|
1426
|
-
export function useTransactionHistoryUpdaterLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TransactionHistoryUpdaterQuery, TransactionHistoryUpdaterQueryVariables>) {
|
|
1427
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1428
|
-
return Apollo.useLazyQuery<TransactionHistoryUpdaterQuery, TransactionHistoryUpdaterQueryVariables>(TransactionHistoryUpdaterDocument, options);
|
|
1429
|
-
}
|
|
1430
|
-
export type TransactionHistoryUpdaterQueryHookResult = ReturnType<typeof useTransactionHistoryUpdaterQuery>;
|
|
1431
|
-
export type TransactionHistoryUpdaterLazyQueryHookResult = ReturnType<typeof useTransactionHistoryUpdaterLazyQuery>;
|
|
1432
|
-
export type TransactionHistoryUpdaterQueryResult = Apollo.QueryResult<TransactionHistoryUpdaterQuery, TransactionHistoryUpdaterQueryVariables>;
|
|
1433
|
-
export const TokenDocument = gql`
|
|
1434
|
-
query Token($chain: Chain!, $address: String) {
|
|
1435
|
-
token(chain: $chain, address: $address) {
|
|
1436
|
-
...TokenParts
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
${TokenPartsFragmentDoc}`;
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* __useTokenQuery__
|
|
1443
|
-
*
|
|
1444
|
-
* To run a query within a React component, call `useTokenQuery` and pass it any options that fit your needs.
|
|
1445
|
-
* When your component renders, `useTokenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1446
|
-
* you can use to render your UI.
|
|
1447
|
-
*
|
|
1448
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1449
|
-
*
|
|
1450
|
-
* @example
|
|
1451
|
-
* const { data, loading, error } = useTokenQuery({
|
|
1452
|
-
* variables: {
|
|
1453
|
-
* chain: // value for 'chain'
|
|
1454
|
-
* address: // value for 'address'
|
|
1455
|
-
* },
|
|
1456
|
-
* });
|
|
1457
|
-
*/
|
|
1458
|
-
export function useTokenQuery(baseOptions: Apollo.QueryHookOptions<TokenQuery, TokenQueryVariables>) {
|
|
1459
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1460
|
-
return Apollo.useQuery<TokenQuery, TokenQueryVariables>(TokenDocument, options);
|
|
1461
|
-
}
|
|
1462
|
-
export function useTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenQuery, TokenQueryVariables>) {
|
|
1463
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1464
|
-
return Apollo.useLazyQuery<TokenQuery, TokenQueryVariables>(TokenDocument, options);
|
|
1465
|
-
}
|
|
1466
|
-
export type TokenQueryHookResult = ReturnType<typeof useTokenQuery>;
|
|
1467
|
-
export type TokenLazyQueryHookResult = ReturnType<typeof useTokenLazyQuery>;
|
|
1468
|
-
export type TokenQueryResult = Apollo.QueryResult<TokenQuery, TokenQueryVariables>;
|
|
1469
|
-
export const TokenDetailsScreenDocument = gql`
|
|
1470
|
-
query TokenDetailsScreen($chain: Chain!, $address: String) {
|
|
1471
|
-
token(chain: $chain, address: $address) {
|
|
1472
|
-
...TokenParts
|
|
1473
|
-
...TokenMarketParts
|
|
1474
|
-
...TokenBasicProjectParts
|
|
1475
|
-
...TokenProjectUrlsParts
|
|
1476
|
-
...TokenProjectMarketsParts
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
${TokenPartsFragmentDoc}
|
|
1480
|
-
${TokenMarketPartsFragmentDoc}
|
|
1481
|
-
${TokenBasicProjectPartsFragmentDoc}
|
|
1482
|
-
${TokenProjectUrlsPartsFragmentDoc}
|
|
1483
|
-
${TokenProjectMarketsPartsFragmentDoc}`;
|
|
1484
|
-
|
|
1485
|
-
/**
|
|
1486
|
-
* __useTokenDetailsScreenQuery__
|
|
1487
|
-
*
|
|
1488
|
-
* To run a query within a React component, call `useTokenDetailsScreenQuery` and pass it any options that fit your needs.
|
|
1489
|
-
* When your component renders, `useTokenDetailsScreenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1490
|
-
* you can use to render your UI.
|
|
1491
|
-
*
|
|
1492
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1493
|
-
*
|
|
1494
|
-
* @example
|
|
1495
|
-
* const { data, loading, error } = useTokenDetailsScreenQuery({
|
|
1496
|
-
* variables: {
|
|
1497
|
-
* chain: // value for 'chain'
|
|
1498
|
-
* address: // value for 'address'
|
|
1499
|
-
* },
|
|
1500
|
-
* });
|
|
1501
|
-
*/
|
|
1502
|
-
export function useTokenDetailsScreenQuery(baseOptions: Apollo.QueryHookOptions<TokenDetailsScreenQuery, TokenDetailsScreenQueryVariables>) {
|
|
1503
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1504
|
-
return Apollo.useQuery<TokenDetailsScreenQuery, TokenDetailsScreenQueryVariables>(TokenDetailsScreenDocument, options);
|
|
1505
|
-
}
|
|
1506
|
-
export function useTokenDetailsScreenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenDetailsScreenQuery, TokenDetailsScreenQueryVariables>) {
|
|
1507
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1508
|
-
return Apollo.useLazyQuery<TokenDetailsScreenQuery, TokenDetailsScreenQueryVariables>(TokenDetailsScreenDocument, options);
|
|
1509
|
-
}
|
|
1510
|
-
export type TokenDetailsScreenQueryHookResult = ReturnType<typeof useTokenDetailsScreenQuery>;
|
|
1511
|
-
export type TokenDetailsScreenLazyQueryHookResult = ReturnType<typeof useTokenDetailsScreenLazyQuery>;
|
|
1512
|
-
export type TokenDetailsScreenQueryResult = Apollo.QueryResult<TokenDetailsScreenQuery, TokenDetailsScreenQueryVariables>;
|
|
1513
|
-
export const TokenProjectDescriptionDocument = gql`
|
|
1514
|
-
query TokenProjectDescription($chain: Chain!, $address: String, $includeSpanish: Boolean = false, $includeFrench: Boolean = false, $includeJapanese: Boolean = false, $includePortuguese: Boolean = false, $includeVietnamese: Boolean = false, $includeChineseSimplified: Boolean = false, $includeChineseTraditional: Boolean = false) {
|
|
1515
|
-
token(chain: $chain, address: $address) {
|
|
1516
|
-
chain
|
|
1517
|
-
address
|
|
1518
|
-
project {
|
|
1519
|
-
id
|
|
1520
|
-
description
|
|
1521
|
-
descriptionTranslations {
|
|
1522
|
-
descriptionEsEs @include(if: $includeSpanish)
|
|
1523
|
-
descriptionFrFr @include(if: $includeFrench)
|
|
1524
|
-
descriptionJaJp @include(if: $includeJapanese)
|
|
1525
|
-
descriptionPtPt @include(if: $includePortuguese)
|
|
1526
|
-
descriptionViVn @include(if: $includeVietnamese)
|
|
1527
|
-
descriptionZhHans @include(if: $includeChineseSimplified)
|
|
1528
|
-
descriptionZhHant @include(if: $includeChineseTraditional)
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
`;
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* __useTokenProjectDescriptionQuery__
|
|
1537
|
-
*
|
|
1538
|
-
* To run a query within a React component, call `useTokenProjectDescriptionQuery` and pass it any options that fit your needs.
|
|
1539
|
-
* When your component renders, `useTokenProjectDescriptionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1540
|
-
* you can use to render your UI.
|
|
1541
|
-
*
|
|
1542
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1543
|
-
*
|
|
1544
|
-
* @example
|
|
1545
|
-
* const { data, loading, error } = useTokenProjectDescriptionQuery({
|
|
1546
|
-
* variables: {
|
|
1547
|
-
* chain: // value for 'chain'
|
|
1548
|
-
* address: // value for 'address'
|
|
1549
|
-
* includeSpanish: // value for 'includeSpanish'
|
|
1550
|
-
* includeFrench: // value for 'includeFrench'
|
|
1551
|
-
* includeJapanese: // value for 'includeJapanese'
|
|
1552
|
-
* includePortuguese: // value for 'includePortuguese'
|
|
1553
|
-
* includeVietnamese: // value for 'includeVietnamese'
|
|
1554
|
-
* includeChineseSimplified: // value for 'includeChineseSimplified'
|
|
1555
|
-
* includeChineseTraditional: // value for 'includeChineseTraditional'
|
|
1556
|
-
* },
|
|
1557
|
-
* });
|
|
1558
|
-
*/
|
|
1559
|
-
export function useTokenProjectDescriptionQuery(baseOptions: Apollo.QueryHookOptions<TokenProjectDescriptionQuery, TokenProjectDescriptionQueryVariables>) {
|
|
1560
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1561
|
-
return Apollo.useQuery<TokenProjectDescriptionQuery, TokenProjectDescriptionQueryVariables>(TokenProjectDescriptionDocument, options);
|
|
1562
|
-
}
|
|
1563
|
-
export function useTokenProjectDescriptionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenProjectDescriptionQuery, TokenProjectDescriptionQueryVariables>) {
|
|
1564
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1565
|
-
return Apollo.useLazyQuery<TokenProjectDescriptionQuery, TokenProjectDescriptionQueryVariables>(TokenProjectDescriptionDocument, options);
|
|
1566
|
-
}
|
|
1567
|
-
export type TokenProjectDescriptionQueryHookResult = ReturnType<typeof useTokenProjectDescriptionQuery>;
|
|
1568
|
-
export type TokenProjectDescriptionLazyQueryHookResult = ReturnType<typeof useTokenProjectDescriptionLazyQuery>;
|
|
1569
|
-
export type TokenProjectDescriptionQueryResult = Apollo.QueryResult<TokenProjectDescriptionQuery, TokenProjectDescriptionQueryVariables>;
|
|
1570
|
-
export const TokenProjectsDocument = gql`
|
|
1571
|
-
query TokenProjects($contracts: [ContractInput!]!) {
|
|
1572
|
-
tokenProjects(contracts: $contracts) {
|
|
1573
|
-
id
|
|
1574
|
-
logoUrl
|
|
1575
|
-
safetyLevel
|
|
1576
|
-
tokens {
|
|
1577
|
-
...TokenBasicInfoParts
|
|
1578
|
-
...TokenFeeDataParts
|
|
1579
|
-
...TokenProtectionInfoParts
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
${TokenBasicInfoPartsFragmentDoc}
|
|
1584
|
-
${TokenFeeDataPartsFragmentDoc}
|
|
1585
|
-
${TokenProtectionInfoPartsFragmentDoc}`;
|
|
1586
|
-
|
|
1587
|
-
/**
|
|
1588
|
-
* __useTokenProjectsQuery__
|
|
1589
|
-
*
|
|
1590
|
-
* To run a query within a React component, call `useTokenProjectsQuery` and pass it any options that fit your needs.
|
|
1591
|
-
* When your component renders, `useTokenProjectsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1592
|
-
* you can use to render your UI.
|
|
1593
|
-
*
|
|
1594
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1595
|
-
*
|
|
1596
|
-
* @example
|
|
1597
|
-
* const { data, loading, error } = useTokenProjectsQuery({
|
|
1598
|
-
* variables: {
|
|
1599
|
-
* contracts: // value for 'contracts'
|
|
1600
|
-
* },
|
|
1601
|
-
* });
|
|
1602
|
-
*/
|
|
1603
|
-
export function useTokenProjectsQuery(baseOptions: Apollo.QueryHookOptions<TokenProjectsQuery, TokenProjectsQueryVariables>) {
|
|
1604
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1605
|
-
return Apollo.useQuery<TokenProjectsQuery, TokenProjectsQueryVariables>(TokenProjectsDocument, options);
|
|
1606
|
-
}
|
|
1607
|
-
export function useTokenProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenProjectsQuery, TokenProjectsQueryVariables>) {
|
|
1608
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1609
|
-
return Apollo.useLazyQuery<TokenProjectsQuery, TokenProjectsQueryVariables>(TokenProjectsDocument, options);
|
|
1610
|
-
}
|
|
1611
|
-
export type TokenProjectsQueryHookResult = ReturnType<typeof useTokenProjectsQuery>;
|
|
1612
|
-
export type TokenProjectsLazyQueryHookResult = ReturnType<typeof useTokenProjectsLazyQuery>;
|
|
1613
|
-
export type TokenProjectsQueryResult = Apollo.QueryResult<TokenProjectsQuery, TokenProjectsQueryVariables>;
|
|
1614
|
-
export const TransactionListDocument = gql`
|
|
1615
|
-
query TransactionList($address: String!, $onRampAuth: OnRampTransactionsAuth, $chains: [Chain!]!, $pageSize: Int = 100) {
|
|
1616
|
-
portfolios(ownerAddresses: [$address], chains: $chains) {
|
|
1617
|
-
id
|
|
1618
|
-
assetActivities(
|
|
1619
|
-
pageSize: $pageSize
|
|
1620
|
-
page: 1
|
|
1621
|
-
includeOffChain: true
|
|
1622
|
-
includeBridging: true
|
|
1623
|
-
chains: $chains
|
|
1624
|
-
onRampTransactionsAuth: $onRampAuth
|
|
1625
|
-
) {
|
|
1626
|
-
id
|
|
1627
|
-
timestamp
|
|
1628
|
-
chain
|
|
1629
|
-
details {
|
|
1630
|
-
... on OnRampTransactionDetails {
|
|
1631
|
-
id
|
|
1632
|
-
status
|
|
1633
|
-
receiverAddress
|
|
1634
|
-
onRampTransfer {
|
|
1635
|
-
id
|
|
1636
|
-
transactionReferenceId
|
|
1637
|
-
externalSessionId
|
|
1638
|
-
token {
|
|
1639
|
-
...TokenBasicInfoParts
|
|
1640
|
-
...TokenBasicProjectParts
|
|
1641
|
-
}
|
|
1642
|
-
tokenStandard
|
|
1643
|
-
amount
|
|
1644
|
-
sourceCurrency
|
|
1645
|
-
sourceAmount
|
|
1646
|
-
serviceProvider {
|
|
1647
|
-
serviceProvider
|
|
1648
|
-
name
|
|
1649
|
-
url
|
|
1650
|
-
logoLightUrl
|
|
1651
|
-
logoDarkUrl
|
|
1652
|
-
supportUrl
|
|
1653
|
-
}
|
|
1654
|
-
networkFee
|
|
1655
|
-
transactionFee
|
|
1656
|
-
totalFee
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
... on TransactionDetails {
|
|
1660
|
-
id
|
|
1661
|
-
to
|
|
1662
|
-
type
|
|
1663
|
-
hash
|
|
1664
|
-
from
|
|
1665
|
-
status
|
|
1666
|
-
application {
|
|
1667
|
-
name
|
|
1668
|
-
address
|
|
1669
|
-
icon {
|
|
1670
|
-
url
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
assetChanges {
|
|
1674
|
-
__typename
|
|
1675
|
-
... on TokenTransfer {
|
|
1676
|
-
id
|
|
1677
|
-
asset {
|
|
1678
|
-
id
|
|
1679
|
-
symbol
|
|
1680
|
-
address
|
|
1681
|
-
decimals
|
|
1682
|
-
chain
|
|
1683
|
-
project {
|
|
1684
|
-
id
|
|
1685
|
-
isSpam
|
|
1686
|
-
spamCode
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
tokenStandard
|
|
1690
|
-
quantity
|
|
1691
|
-
sender
|
|
1692
|
-
recipient
|
|
1693
|
-
direction
|
|
1694
|
-
transactedValue {
|
|
1695
|
-
id
|
|
1696
|
-
currency
|
|
1697
|
-
value
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
... on NftTransfer {
|
|
1701
|
-
id
|
|
1702
|
-
asset {
|
|
1703
|
-
id
|
|
1704
|
-
name
|
|
1705
|
-
isSpam
|
|
1706
|
-
nftContract {
|
|
1707
|
-
id
|
|
1708
|
-
chain
|
|
1709
|
-
address
|
|
1710
|
-
}
|
|
1711
|
-
tokenId
|
|
1712
|
-
image {
|
|
1713
|
-
id
|
|
1714
|
-
url
|
|
1715
|
-
}
|
|
1716
|
-
collection {
|
|
1717
|
-
id
|
|
1718
|
-
name
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
nftStandard
|
|
1722
|
-
sender
|
|
1723
|
-
recipient
|
|
1724
|
-
direction
|
|
1725
|
-
}
|
|
1726
|
-
... on OnRampTransfer {
|
|
1727
|
-
id
|
|
1728
|
-
transactionReferenceId
|
|
1729
|
-
externalSessionId
|
|
1730
|
-
token {
|
|
1731
|
-
...TokenBasicInfoParts
|
|
1732
|
-
...TokenBasicProjectParts
|
|
1733
|
-
}
|
|
1734
|
-
tokenStandard
|
|
1735
|
-
amount
|
|
1736
|
-
sourceCurrency
|
|
1737
|
-
sourceAmount
|
|
1738
|
-
serviceProvider {
|
|
1739
|
-
serviceProvider
|
|
1740
|
-
name
|
|
1741
|
-
url
|
|
1742
|
-
logoLightUrl
|
|
1743
|
-
logoDarkUrl
|
|
1744
|
-
supportUrl
|
|
1745
|
-
}
|
|
1746
|
-
networkFee
|
|
1747
|
-
transactionFee
|
|
1748
|
-
totalFee
|
|
1749
|
-
}
|
|
1750
|
-
... on TokenApproval {
|
|
1751
|
-
id
|
|
1752
|
-
asset {
|
|
1753
|
-
id
|
|
1754
|
-
symbol
|
|
1755
|
-
decimals
|
|
1756
|
-
address
|
|
1757
|
-
chain
|
|
1758
|
-
}
|
|
1759
|
-
tokenStandard
|
|
1760
|
-
approvedAddress
|
|
1761
|
-
quantity
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
networkFee {
|
|
1765
|
-
quantity
|
|
1766
|
-
tokenSymbol
|
|
1767
|
-
tokenAddress
|
|
1768
|
-
tokenChain
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
... on SwapOrderDetails {
|
|
1772
|
-
id
|
|
1773
|
-
offerer
|
|
1774
|
-
hash
|
|
1775
|
-
orderStatus: swapOrderStatus
|
|
1776
|
-
expiry
|
|
1777
|
-
swapOrderType
|
|
1778
|
-
encodedOrder
|
|
1779
|
-
inputToken {
|
|
1780
|
-
id
|
|
1781
|
-
symbol
|
|
1782
|
-
address
|
|
1783
|
-
decimals
|
|
1784
|
-
chain
|
|
1785
|
-
}
|
|
1786
|
-
inputTokenQuantity
|
|
1787
|
-
outputToken {
|
|
1788
|
-
id
|
|
1789
|
-
symbol
|
|
1790
|
-
address
|
|
1791
|
-
decimals
|
|
1792
|
-
chain
|
|
1793
|
-
}
|
|
1794
|
-
outputTokenQuantity
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
${TokenBasicInfoPartsFragmentDoc}
|
|
1801
|
-
${TokenBasicProjectPartsFragmentDoc}`;
|
|
1802
|
-
|
|
1803
|
-
/**
|
|
1804
|
-
* __useTransactionListQuery__
|
|
1805
|
-
*
|
|
1806
|
-
* To run a query within a React component, call `useTransactionListQuery` and pass it any options that fit your needs.
|
|
1807
|
-
* When your component renders, `useTransactionListQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1808
|
-
* you can use to render your UI.
|
|
1809
|
-
*
|
|
1810
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1811
|
-
*
|
|
1812
|
-
* @example
|
|
1813
|
-
* const { data, loading, error } = useTransactionListQuery({
|
|
1814
|
-
* variables: {
|
|
1815
|
-
* address: // value for 'address'
|
|
1816
|
-
* onRampAuth: // value for 'onRampAuth'
|
|
1817
|
-
* chains: // value for 'chains'
|
|
1818
|
-
* pageSize: // value for 'pageSize'
|
|
1819
|
-
* },
|
|
1820
|
-
* });
|
|
1821
|
-
*/
|
|
1822
|
-
export function useTransactionListQuery(baseOptions: Apollo.QueryHookOptions<TransactionListQuery, TransactionListQueryVariables>) {
|
|
1823
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1824
|
-
return Apollo.useQuery<TransactionListQuery, TransactionListQueryVariables>(TransactionListDocument, options);
|
|
1825
|
-
}
|
|
1826
|
-
export function useTransactionListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TransactionListQuery, TransactionListQueryVariables>) {
|
|
1827
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1828
|
-
return Apollo.useLazyQuery<TransactionListQuery, TransactionListQueryVariables>(TransactionListDocument, options);
|
|
1829
|
-
}
|
|
1830
|
-
export type TransactionListQueryHookResult = ReturnType<typeof useTransactionListQuery>;
|
|
1831
|
-
export type TransactionListLazyQueryHookResult = ReturnType<typeof useTransactionListLazyQuery>;
|
|
1832
|
-
export type TransactionListQueryResult = Apollo.QueryResult<TransactionListQuery, TransactionListQueryVariables>;
|
|
1833
|
-
export const FeedTransactionListDocument = gql`
|
|
1834
|
-
query FeedTransactionList($addresses: [String!]!, $chains: [Chain!]!) {
|
|
1835
|
-
portfolios(ownerAddresses: $addresses, chains: $chains) {
|
|
1836
|
-
id
|
|
1837
|
-
ownerAddress
|
|
1838
|
-
assetActivities(pageSize: 30, includeBridging: true, page: 1, chains: $chains) {
|
|
1839
|
-
id
|
|
1840
|
-
timestamp
|
|
1841
|
-
chain
|
|
1842
|
-
details {
|
|
1843
|
-
... on TransactionDetails {
|
|
1844
|
-
id
|
|
1845
|
-
to
|
|
1846
|
-
type
|
|
1847
|
-
hash
|
|
1848
|
-
from
|
|
1849
|
-
status
|
|
1850
|
-
assetChanges {
|
|
1851
|
-
__typename
|
|
1852
|
-
... on TokenTransfer {
|
|
1853
|
-
id
|
|
1854
|
-
asset {
|
|
1855
|
-
id
|
|
1856
|
-
symbol
|
|
1857
|
-
address
|
|
1858
|
-
decimals
|
|
1859
|
-
chain
|
|
1860
|
-
project {
|
|
1861
|
-
id
|
|
1862
|
-
isSpam
|
|
1863
|
-
spamCode
|
|
1864
|
-
}
|
|
1865
|
-
}
|
|
1866
|
-
tokenStandard
|
|
1867
|
-
quantity
|
|
1868
|
-
sender
|
|
1869
|
-
recipient
|
|
1870
|
-
direction
|
|
1871
|
-
transactedValue {
|
|
1872
|
-
currency
|
|
1873
|
-
value
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
... on NftTransfer {
|
|
1877
|
-
id
|
|
1878
|
-
asset {
|
|
1879
|
-
id
|
|
1880
|
-
name
|
|
1881
|
-
isSpam
|
|
1882
|
-
nftContract {
|
|
1883
|
-
id
|
|
1884
|
-
chain
|
|
1885
|
-
address
|
|
1886
|
-
}
|
|
1887
|
-
tokenId
|
|
1888
|
-
image {
|
|
1889
|
-
id
|
|
1890
|
-
url
|
|
1891
|
-
}
|
|
1892
|
-
collection {
|
|
1893
|
-
id
|
|
1894
|
-
name
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
nftStandard
|
|
1898
|
-
sender
|
|
1899
|
-
recipient
|
|
1900
|
-
direction
|
|
1901
|
-
}
|
|
1902
|
-
... on TokenApproval {
|
|
1903
|
-
id
|
|
1904
|
-
asset {
|
|
1905
|
-
id
|
|
1906
|
-
symbol
|
|
1907
|
-
decimals
|
|
1908
|
-
address
|
|
1909
|
-
chain
|
|
1910
|
-
}
|
|
1911
|
-
tokenStandard
|
|
1912
|
-
approvedAddress
|
|
1913
|
-
quantity
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
`;
|
|
1922
|
-
|
|
1923
|
-
/**
|
|
1924
|
-
* __useFeedTransactionListQuery__
|
|
1925
|
-
*
|
|
1926
|
-
* To run a query within a React component, call `useFeedTransactionListQuery` and pass it any options that fit your needs.
|
|
1927
|
-
* When your component renders, `useFeedTransactionListQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1928
|
-
* you can use to render your UI.
|
|
1929
|
-
*
|
|
1930
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1931
|
-
*
|
|
1932
|
-
* @example
|
|
1933
|
-
* const { data, loading, error } = useFeedTransactionListQuery({
|
|
1934
|
-
* variables: {
|
|
1935
|
-
* addresses: // value for 'addresses'
|
|
1936
|
-
* chains: // value for 'chains'
|
|
1937
|
-
* },
|
|
1938
|
-
* });
|
|
1939
|
-
*/
|
|
1940
|
-
export function useFeedTransactionListQuery(baseOptions: Apollo.QueryHookOptions<FeedTransactionListQuery, FeedTransactionListQueryVariables>) {
|
|
1941
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1942
|
-
return Apollo.useQuery<FeedTransactionListQuery, FeedTransactionListQueryVariables>(FeedTransactionListDocument, options);
|
|
1943
|
-
}
|
|
1944
|
-
export function useFeedTransactionListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FeedTransactionListQuery, FeedTransactionListQueryVariables>) {
|
|
1945
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1946
|
-
return Apollo.useLazyQuery<FeedTransactionListQuery, FeedTransactionListQueryVariables>(FeedTransactionListDocument, options);
|
|
1947
|
-
}
|
|
1948
|
-
export type FeedTransactionListQueryHookResult = ReturnType<typeof useFeedTransactionListQuery>;
|
|
1949
|
-
export type FeedTransactionListLazyQueryHookResult = ReturnType<typeof useFeedTransactionListLazyQuery>;
|
|
1950
|
-
export type FeedTransactionListQueryResult = Apollo.QueryResult<FeedTransactionListQuery, FeedTransactionListQueryVariables>;
|
|
1951
|
-
export const TopTokensDocument = gql`
|
|
1952
|
-
query TopTokens($chain: Chain, $page: Int = 1, $pageSize: Int = 100, $orderBy: TokenSortableField = POPULARITY) {
|
|
1953
|
-
topTokens(chain: $chain, page: $page, pageSize: $pageSize, orderBy: $orderBy) {
|
|
1954
|
-
...TokenParts
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
${TokenPartsFragmentDoc}`;
|
|
1958
|
-
|
|
1959
|
-
/**
|
|
1960
|
-
* __useTopTokensQuery__
|
|
1961
|
-
*
|
|
1962
|
-
* To run a query within a React component, call `useTopTokensQuery` and pass it any options that fit your needs.
|
|
1963
|
-
* When your component renders, `useTopTokensQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1964
|
-
* you can use to render your UI.
|
|
1965
|
-
*
|
|
1966
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1967
|
-
*
|
|
1968
|
-
* @example
|
|
1969
|
-
* const { data, loading, error } = useTopTokensQuery({
|
|
1970
|
-
* variables: {
|
|
1971
|
-
* chain: // value for 'chain'
|
|
1972
|
-
* page: // value for 'page'
|
|
1973
|
-
* pageSize: // value for 'pageSize'
|
|
1974
|
-
* orderBy: // value for 'orderBy'
|
|
1975
|
-
* },
|
|
1976
|
-
* });
|
|
1977
|
-
*/
|
|
1978
|
-
export function useTopTokensQuery(baseOptions?: Apollo.QueryHookOptions<TopTokensQuery, TopTokensQueryVariables>) {
|
|
1979
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1980
|
-
return Apollo.useQuery<TopTokensQuery, TopTokensQueryVariables>(TopTokensDocument, options);
|
|
1981
|
-
}
|
|
1982
|
-
export function useTopTokensLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TopTokensQuery, TopTokensQueryVariables>) {
|
|
1983
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
1984
|
-
return Apollo.useLazyQuery<TopTokensQuery, TopTokensQueryVariables>(TopTokensDocument, options);
|
|
1985
|
-
}
|
|
1986
|
-
export type TopTokensQueryHookResult = ReturnType<typeof useTopTokensQuery>;
|
|
1987
|
-
export type TopTokensLazyQueryHookResult = ReturnType<typeof useTopTokensLazyQuery>;
|
|
1988
|
-
export type TopTokensQueryResult = Apollo.QueryResult<TopTokensQuery, TopTokensQueryVariables>;
|
|
1989
|
-
export const HomeScreenTokensDocument = gql`
|
|
1990
|
-
query HomeScreenTokens($contracts: [ContractInput!]!, $chain: Chain!) {
|
|
1991
|
-
tokens(contracts: $contracts) {
|
|
1992
|
-
...HomeScreenTokenParts
|
|
1993
|
-
}
|
|
1994
|
-
eth: token(address: null, chain: $chain) {
|
|
1995
|
-
...HomeScreenTokenParts
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
${HomeScreenTokenPartsFragmentDoc}`;
|
|
1999
|
-
|
|
2000
|
-
/**
|
|
2001
|
-
* __useHomeScreenTokensQuery__
|
|
2002
|
-
*
|
|
2003
|
-
* To run a query within a React component, call `useHomeScreenTokensQuery` and pass it any options that fit your needs.
|
|
2004
|
-
* When your component renders, `useHomeScreenTokensQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2005
|
-
* you can use to render your UI.
|
|
2006
|
-
*
|
|
2007
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2008
|
-
*
|
|
2009
|
-
* @example
|
|
2010
|
-
* const { data, loading, error } = useHomeScreenTokensQuery({
|
|
2011
|
-
* variables: {
|
|
2012
|
-
* contracts: // value for 'contracts'
|
|
2013
|
-
* chain: // value for 'chain'
|
|
2014
|
-
* },
|
|
2015
|
-
* });
|
|
2016
|
-
*/
|
|
2017
|
-
export function useHomeScreenTokensQuery(baseOptions: Apollo.QueryHookOptions<HomeScreenTokensQuery, HomeScreenTokensQueryVariables>) {
|
|
2018
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2019
|
-
return Apollo.useQuery<HomeScreenTokensQuery, HomeScreenTokensQueryVariables>(HomeScreenTokensDocument, options);
|
|
2020
|
-
}
|
|
2021
|
-
export function useHomeScreenTokensLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<HomeScreenTokensQuery, HomeScreenTokensQueryVariables>) {
|
|
2022
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2023
|
-
return Apollo.useLazyQuery<HomeScreenTokensQuery, HomeScreenTokensQueryVariables>(HomeScreenTokensDocument, options);
|
|
2024
|
-
}
|
|
2025
|
-
export type HomeScreenTokensQueryHookResult = ReturnType<typeof useHomeScreenTokensQuery>;
|
|
2026
|
-
export type HomeScreenTokensLazyQueryHookResult = ReturnType<typeof useHomeScreenTokensLazyQuery>;
|
|
2027
|
-
export type HomeScreenTokensQueryResult = Apollo.QueryResult<HomeScreenTokensQuery, HomeScreenTokensQueryVariables>;
|
|
2028
|
-
export const FavoriteTokenCardDocument = gql`
|
|
2029
|
-
query FavoriteTokenCard($chain: Chain!, $address: String) {
|
|
2030
|
-
token(chain: $chain, address: $address) {
|
|
2031
|
-
...TokenBasicInfoParts
|
|
2032
|
-
...TokenBasicProjectParts
|
|
2033
|
-
...TokenProjectMarketsParts
|
|
2034
|
-
market(currency: USD) {
|
|
2035
|
-
id
|
|
2036
|
-
price {
|
|
2037
|
-
value
|
|
2038
|
-
}
|
|
2039
|
-
pricePercentChange(duration: DAY) {
|
|
2040
|
-
value
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
${TokenBasicInfoPartsFragmentDoc}
|
|
2046
|
-
${TokenBasicProjectPartsFragmentDoc}
|
|
2047
|
-
${TokenProjectMarketsPartsFragmentDoc}`;
|
|
2048
|
-
|
|
2049
|
-
/**
|
|
2050
|
-
* __useFavoriteTokenCardQuery__
|
|
2051
|
-
*
|
|
2052
|
-
* To run a query within a React component, call `useFavoriteTokenCardQuery` and pass it any options that fit your needs.
|
|
2053
|
-
* When your component renders, `useFavoriteTokenCardQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2054
|
-
* you can use to render your UI.
|
|
2055
|
-
*
|
|
2056
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2057
|
-
*
|
|
2058
|
-
* @example
|
|
2059
|
-
* const { data, loading, error } = useFavoriteTokenCardQuery({
|
|
2060
|
-
* variables: {
|
|
2061
|
-
* chain: // value for 'chain'
|
|
2062
|
-
* address: // value for 'address'
|
|
2063
|
-
* },
|
|
2064
|
-
* });
|
|
2065
|
-
*/
|
|
2066
|
-
export function useFavoriteTokenCardQuery(baseOptions: Apollo.QueryHookOptions<FavoriteTokenCardQuery, FavoriteTokenCardQueryVariables>) {
|
|
2067
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2068
|
-
return Apollo.useQuery<FavoriteTokenCardQuery, FavoriteTokenCardQueryVariables>(FavoriteTokenCardDocument, options);
|
|
2069
|
-
}
|
|
2070
|
-
export function useFavoriteTokenCardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FavoriteTokenCardQuery, FavoriteTokenCardQueryVariables>) {
|
|
2071
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2072
|
-
return Apollo.useLazyQuery<FavoriteTokenCardQuery, FavoriteTokenCardQueryVariables>(FavoriteTokenCardDocument, options);
|
|
2073
|
-
}
|
|
2074
|
-
export type FavoriteTokenCardQueryHookResult = ReturnType<typeof useFavoriteTokenCardQuery>;
|
|
2075
|
-
export type FavoriteTokenCardLazyQueryHookResult = ReturnType<typeof useFavoriteTokenCardLazyQuery>;
|
|
2076
|
-
export type FavoriteTokenCardQueryResult = Apollo.QueryResult<FavoriteTokenCardQuery, FavoriteTokenCardQueryVariables>;
|
|
2077
|
-
export const WidgetTokensDocument = gql`
|
|
2078
|
-
query WidgetTokens($contracts: [ContractInput!]!) {
|
|
2079
|
-
tokens(contracts: $contracts) {
|
|
2080
|
-
symbol
|
|
2081
|
-
chain
|
|
2082
|
-
address
|
|
2083
|
-
name
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
`;
|
|
2087
|
-
|
|
2088
|
-
/**
|
|
2089
|
-
* __useWidgetTokensQuery__
|
|
2090
|
-
*
|
|
2091
|
-
* To run a query within a React component, call `useWidgetTokensQuery` and pass it any options that fit your needs.
|
|
2092
|
-
* When your component renders, `useWidgetTokensQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2093
|
-
* you can use to render your UI.
|
|
2094
|
-
*
|
|
2095
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2096
|
-
*
|
|
2097
|
-
* @example
|
|
2098
|
-
* const { data, loading, error } = useWidgetTokensQuery({
|
|
2099
|
-
* variables: {
|
|
2100
|
-
* contracts: // value for 'contracts'
|
|
2101
|
-
* },
|
|
2102
|
-
* });
|
|
2103
|
-
*/
|
|
2104
|
-
export function useWidgetTokensQuery(baseOptions: Apollo.QueryHookOptions<WidgetTokensQuery, WidgetTokensQueryVariables>) {
|
|
2105
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2106
|
-
return Apollo.useQuery<WidgetTokensQuery, WidgetTokensQueryVariables>(WidgetTokensDocument, options);
|
|
2107
|
-
}
|
|
2108
|
-
export function useWidgetTokensLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<WidgetTokensQuery, WidgetTokensQueryVariables>) {
|
|
2109
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2110
|
-
return Apollo.useLazyQuery<WidgetTokensQuery, WidgetTokensQueryVariables>(WidgetTokensDocument, options);
|
|
2111
|
-
}
|
|
2112
|
-
export type WidgetTokensQueryHookResult = ReturnType<typeof useWidgetTokensQuery>;
|
|
2113
|
-
export type WidgetTokensLazyQueryHookResult = ReturnType<typeof useWidgetTokensLazyQuery>;
|
|
2114
|
-
export type WidgetTokensQueryResult = Apollo.QueryResult<WidgetTokensQuery, WidgetTokensQueryVariables>;
|
|
2115
|
-
export const TokensDocument = gql`
|
|
2116
|
-
query Tokens($contracts: [ContractInput!]!) {
|
|
2117
|
-
tokens(contracts: $contracts) {
|
|
2118
|
-
...TokenParts
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
${TokenPartsFragmentDoc}`;
|
|
2122
|
-
|
|
2123
|
-
/**
|
|
2124
|
-
* __useTokensQuery__
|
|
2125
|
-
*
|
|
2126
|
-
* To run a query within a React component, call `useTokensQuery` and pass it any options that fit your needs.
|
|
2127
|
-
* When your component renders, `useTokensQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2128
|
-
* you can use to render your UI.
|
|
2129
|
-
*
|
|
2130
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2131
|
-
*
|
|
2132
|
-
* @example
|
|
2133
|
-
* const { data, loading, error } = useTokensQuery({
|
|
2134
|
-
* variables: {
|
|
2135
|
-
* contracts: // value for 'contracts'
|
|
2136
|
-
* },
|
|
2137
|
-
* });
|
|
2138
|
-
*/
|
|
2139
|
-
export function useTokensQuery(baseOptions: Apollo.QueryHookOptions<TokensQuery, TokensQueryVariables>) {
|
|
2140
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2141
|
-
return Apollo.useQuery<TokensQuery, TokensQueryVariables>(TokensDocument, options);
|
|
2142
|
-
}
|
|
2143
|
-
export function useTokensLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokensQuery, TokensQueryVariables>) {
|
|
2144
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2145
|
-
return Apollo.useLazyQuery<TokensQuery, TokensQueryVariables>(TokensDocument, options);
|
|
2146
|
-
}
|
|
2147
|
-
export type TokensQueryHookResult = ReturnType<typeof useTokensQuery>;
|
|
2148
|
-
export type TokensLazyQueryHookResult = ReturnType<typeof useTokensLazyQuery>;
|
|
2149
|
-
export type TokensQueryResult = Apollo.QueryResult<TokensQuery, TokensQueryVariables>;
|
|
2150
|
-
export const ConvertDocument = gql`
|
|
2151
|
-
query Convert($fromCurrency: Currency!, $toCurrency: Currency!) {
|
|
2152
|
-
convert(
|
|
2153
|
-
fromAmount: {currency: $fromCurrency, value: 1.0}
|
|
2154
|
-
toCurrency: $toCurrency
|
|
2155
|
-
) {
|
|
2156
|
-
value
|
|
2157
|
-
currency
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
`;
|
|
2161
|
-
|
|
2162
|
-
/**
|
|
2163
|
-
* __useConvertQuery__
|
|
2164
|
-
*
|
|
2165
|
-
* To run a query within a React component, call `useConvertQuery` and pass it any options that fit your needs.
|
|
2166
|
-
* When your component renders, `useConvertQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2167
|
-
* you can use to render your UI.
|
|
2168
|
-
*
|
|
2169
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2170
|
-
*
|
|
2171
|
-
* @example
|
|
2172
|
-
* const { data, loading, error } = useConvertQuery({
|
|
2173
|
-
* variables: {
|
|
2174
|
-
* fromCurrency: // value for 'fromCurrency'
|
|
2175
|
-
* toCurrency: // value for 'toCurrency'
|
|
2176
|
-
* },
|
|
2177
|
-
* });
|
|
2178
|
-
*/
|
|
2179
|
-
export function useConvertQuery(baseOptions: Apollo.QueryHookOptions<ConvertQuery, ConvertQueryVariables>) {
|
|
2180
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2181
|
-
return Apollo.useQuery<ConvertQuery, ConvertQueryVariables>(ConvertDocument, options);
|
|
2182
|
-
}
|
|
2183
|
-
export function useConvertLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConvertQuery, ConvertQueryVariables>) {
|
|
2184
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2185
|
-
return Apollo.useLazyQuery<ConvertQuery, ConvertQueryVariables>(ConvertDocument, options);
|
|
2186
|
-
}
|
|
2187
|
-
export type ConvertQueryHookResult = ReturnType<typeof useConvertQuery>;
|
|
2188
|
-
export type ConvertLazyQueryHookResult = ReturnType<typeof useConvertLazyQuery>;
|
|
2189
|
-
export type ConvertQueryResult = Apollo.QueryResult<ConvertQuery, ConvertQueryVariables>;
|
|
2190
|
-
export const LuxPricesDocument = gql`
|
|
2191
|
-
query LuxPrices($contracts: [ContractInput!]!) {
|
|
2192
|
-
tokens(contracts: $contracts) {
|
|
2193
|
-
id
|
|
2194
|
-
address
|
|
2195
|
-
chain
|
|
2196
|
-
standard
|
|
2197
|
-
project {
|
|
2198
|
-
id
|
|
2199
|
-
markets(currencies: [USD]) {
|
|
2200
|
-
id
|
|
2201
|
-
price {
|
|
2202
|
-
id
|
|
2203
|
-
value
|
|
2204
|
-
}
|
|
2205
|
-
}
|
|
2206
|
-
}
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
`;
|
|
2210
|
-
|
|
2211
|
-
/**
|
|
2212
|
-
* __useLuxPricesQuery__
|
|
2213
|
-
*
|
|
2214
|
-
* To run a query within a React component, call `useLuxPricesQuery` and pass it any options that fit your needs.
|
|
2215
|
-
* When your component renders, `useLuxPricesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2216
|
-
* you can use to render your UI.
|
|
2217
|
-
*
|
|
2218
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2219
|
-
*
|
|
2220
|
-
* @example
|
|
2221
|
-
* const { data, loading, error } = useLuxPricesQuery({
|
|
2222
|
-
* variables: {
|
|
2223
|
-
* contracts: // value for 'contracts'
|
|
2224
|
-
* },
|
|
2225
|
-
* });
|
|
2226
|
-
*/
|
|
2227
|
-
export function useLuxPricesQuery(baseOptions: Apollo.QueryHookOptions<LuxPricesQuery, LuxPricesQueryVariables>) {
|
|
2228
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2229
|
-
return Apollo.useQuery<LuxPricesQuery, LuxPricesQueryVariables>(LuxPricesDocument, options);
|
|
2230
|
-
}
|
|
2231
|
-
export function useLuxPricesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<LuxPricesQuery, LuxPricesQueryVariables>) {
|
|
2232
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2233
|
-
return Apollo.useLazyQuery<LuxPricesQuery, LuxPricesQueryVariables>(LuxPricesDocument, options);
|
|
2234
|
-
}
|
|
2235
|
-
export type LuxPricesQueryHookResult = ReturnType<typeof useLuxPricesQuery>;
|
|
2236
|
-
export type LuxPricesLazyQueryHookResult = ReturnType<typeof useLuxPricesLazyQuery>;
|
|
2237
|
-
export type LuxPricesQueryResult = Apollo.QueryResult<LuxPricesQuery, LuxPricesQueryVariables>;
|
|
2238
|
-
export const RecentTokenTransfersDocument = gql`
|
|
2239
|
-
query RecentTokenTransfers($address: String!, $chains: [Chain!]) {
|
|
2240
|
-
portfolios(ownerAddresses: [$address], chains: $chains) {
|
|
2241
|
-
id
|
|
2242
|
-
ownerAddress
|
|
2243
|
-
assetActivities(pageSize: 100, page: 1, chains: $chains) {
|
|
2244
|
-
id
|
|
2245
|
-
timestamp
|
|
2246
|
-
chain
|
|
2247
|
-
details {
|
|
2248
|
-
... on TransactionDetails {
|
|
2249
|
-
to
|
|
2250
|
-
type
|
|
2251
|
-
hash
|
|
2252
|
-
from
|
|
2253
|
-
status
|
|
2254
|
-
assetChanges {
|
|
2255
|
-
__typename
|
|
2256
|
-
... on TokenTransfer {
|
|
2257
|
-
id
|
|
2258
|
-
asset {
|
|
2259
|
-
id
|
|
2260
|
-
symbol
|
|
2261
|
-
address
|
|
2262
|
-
decimals
|
|
2263
|
-
chain
|
|
2264
|
-
project {
|
|
2265
|
-
id
|
|
2266
|
-
isSpam
|
|
2267
|
-
spamCode
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
tokenStandard
|
|
2271
|
-
quantity
|
|
2272
|
-
sender
|
|
2273
|
-
recipient
|
|
2274
|
-
direction
|
|
2275
|
-
transactedValue {
|
|
2276
|
-
currency
|
|
2277
|
-
value
|
|
2278
|
-
}
|
|
2279
|
-
}
|
|
2280
|
-
... on NftTransfer {
|
|
2281
|
-
id
|
|
2282
|
-
asset {
|
|
2283
|
-
id
|
|
2284
|
-
name
|
|
2285
|
-
isSpam
|
|
2286
|
-
nftContract {
|
|
2287
|
-
id
|
|
2288
|
-
chain
|
|
2289
|
-
address
|
|
2290
|
-
}
|
|
2291
|
-
tokenId
|
|
2292
|
-
image {
|
|
2293
|
-
id
|
|
2294
|
-
url
|
|
2295
|
-
}
|
|
2296
|
-
collection {
|
|
2297
|
-
id
|
|
2298
|
-
name
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
nftStandard
|
|
2302
|
-
sender
|
|
2303
|
-
recipient
|
|
2304
|
-
direction
|
|
2305
|
-
}
|
|
2306
|
-
... on TokenApproval {
|
|
2307
|
-
id
|
|
2308
|
-
asset {
|
|
2309
|
-
id
|
|
2310
|
-
symbol
|
|
2311
|
-
decimals
|
|
2312
|
-
address
|
|
2313
|
-
chain
|
|
2314
|
-
}
|
|
2315
|
-
tokenStandard
|
|
2316
|
-
approvedAddress
|
|
2317
|
-
quantity
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
}
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
`;
|
|
2326
|
-
|
|
2327
|
-
/**
|
|
2328
|
-
* __useRecentTokenTransfersQuery__
|
|
2329
|
-
*
|
|
2330
|
-
* To run a query within a React component, call `useRecentTokenTransfersQuery` and pass it any options that fit your needs.
|
|
2331
|
-
* When your component renders, `useRecentTokenTransfersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2332
|
-
* you can use to render your UI.
|
|
2333
|
-
*
|
|
2334
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2335
|
-
*
|
|
2336
|
-
* @example
|
|
2337
|
-
* const { data, loading, error } = useRecentTokenTransfersQuery({
|
|
2338
|
-
* variables: {
|
|
2339
|
-
* address: // value for 'address'
|
|
2340
|
-
* chains: // value for 'chains'
|
|
2341
|
-
* },
|
|
2342
|
-
* });
|
|
2343
|
-
*/
|
|
2344
|
-
export function useRecentTokenTransfersQuery(baseOptions: Apollo.QueryHookOptions<RecentTokenTransfersQuery, RecentTokenTransfersQueryVariables>) {
|
|
2345
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2346
|
-
return Apollo.useQuery<RecentTokenTransfersQuery, RecentTokenTransfersQueryVariables>(RecentTokenTransfersDocument, options);
|
|
2347
|
-
}
|
|
2348
|
-
export function useRecentTokenTransfersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<RecentTokenTransfersQuery, RecentTokenTransfersQueryVariables>) {
|
|
2349
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2350
|
-
return Apollo.useLazyQuery<RecentTokenTransfersQuery, RecentTokenTransfersQueryVariables>(RecentTokenTransfersDocument, options);
|
|
2351
|
-
}
|
|
2352
|
-
export type RecentTokenTransfersQueryHookResult = ReturnType<typeof useRecentTokenTransfersQuery>;
|
|
2353
|
-
export type RecentTokenTransfersLazyQueryHookResult = ReturnType<typeof useRecentTokenTransfersLazyQuery>;
|
|
2354
|
-
export type RecentTokenTransfersQueryResult = Apollo.QueryResult<RecentTokenTransfersQuery, RecentTokenTransfersQueryVariables>;
|
|
2355
|
-
export const TokenSpotPriceDocument = gql`
|
|
2356
|
-
query TokenSpotPrice($chain: Chain!, $address: String = null) {
|
|
2357
|
-
token(chain: $chain, address: $address) {
|
|
2358
|
-
id
|
|
2359
|
-
address
|
|
2360
|
-
chain
|
|
2361
|
-
name
|
|
2362
|
-
symbol
|
|
2363
|
-
project {
|
|
2364
|
-
id
|
|
2365
|
-
markets(currencies: [USD]) {
|
|
2366
|
-
id
|
|
2367
|
-
price {
|
|
2368
|
-
id
|
|
2369
|
-
value
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
}
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
`;
|
|
2376
|
-
|
|
2377
|
-
/**
|
|
2378
|
-
* __useTokenSpotPriceQuery__
|
|
2379
|
-
*
|
|
2380
|
-
* To run a query within a React component, call `useTokenSpotPriceQuery` and pass it any options that fit your needs.
|
|
2381
|
-
* When your component renders, `useTokenSpotPriceQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2382
|
-
* you can use to render your UI.
|
|
2383
|
-
*
|
|
2384
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2385
|
-
*
|
|
2386
|
-
* @example
|
|
2387
|
-
* const { data, loading, error } = useTokenSpotPriceQuery({
|
|
2388
|
-
* variables: {
|
|
2389
|
-
* chain: // value for 'chain'
|
|
2390
|
-
* address: // value for 'address'
|
|
2391
|
-
* },
|
|
2392
|
-
* });
|
|
2393
|
-
*/
|
|
2394
|
-
export function useTokenSpotPriceQuery(baseOptions: Apollo.QueryHookOptions<TokenSpotPriceQuery, TokenSpotPriceQueryVariables>) {
|
|
2395
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2396
|
-
return Apollo.useQuery<TokenSpotPriceQuery, TokenSpotPriceQueryVariables>(TokenSpotPriceDocument, options);
|
|
2397
|
-
}
|
|
2398
|
-
export function useTokenSpotPriceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenSpotPriceQuery, TokenSpotPriceQueryVariables>) {
|
|
2399
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2400
|
-
return Apollo.useLazyQuery<TokenSpotPriceQuery, TokenSpotPriceQueryVariables>(TokenSpotPriceDocument, options);
|
|
2401
|
-
}
|
|
2402
|
-
export type TokenSpotPriceQueryHookResult = ReturnType<typeof useTokenSpotPriceQuery>;
|
|
2403
|
-
export type TokenSpotPriceLazyQueryHookResult = ReturnType<typeof useTokenSpotPriceLazyQuery>;
|
|
2404
|
-
export type TokenSpotPriceQueryResult = Apollo.QueryResult<TokenSpotPriceQuery, TokenSpotPriceQueryVariables>;
|
|
2405
|
-
export const ActivityWebDocument = gql`
|
|
2406
|
-
query ActivityWeb($account: String!, $chains: [Chain!]!, $onRampTransactionIDs: [String!], $includeOffChain: Boolean!, $page: Int = 1, $pageSize: Int = 100) {
|
|
2407
|
-
portfolios(ownerAddresses: [$account], chains: $chains) {
|
|
2408
|
-
id
|
|
2409
|
-
assetActivities(
|
|
2410
|
-
pageSize: $pageSize
|
|
2411
|
-
page: $page
|
|
2412
|
-
includeOffChain: $includeOffChain
|
|
2413
|
-
chains: $chains
|
|
2414
|
-
onRampTransactionIDs: $onRampTransactionIDs
|
|
2415
|
-
includeBridging: true
|
|
2416
|
-
) {
|
|
2417
|
-
...AssetActivityParts
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
${AssetActivityPartsFragmentDoc}`;
|
|
2422
|
-
|
|
2423
|
-
/**
|
|
2424
|
-
* __useActivityWebQuery__
|
|
2425
|
-
*
|
|
2426
|
-
* To run a query within a React component, call `useActivityWebQuery` and pass it any options that fit your needs.
|
|
2427
|
-
* When your component renders, `useActivityWebQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2428
|
-
* you can use to render your UI.
|
|
2429
|
-
*
|
|
2430
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2431
|
-
*
|
|
2432
|
-
* @example
|
|
2433
|
-
* const { data, loading, error } = useActivityWebQuery({
|
|
2434
|
-
* variables: {
|
|
2435
|
-
* account: // value for 'account'
|
|
2436
|
-
* chains: // value for 'chains'
|
|
2437
|
-
* onRampTransactionIDs: // value for 'onRampTransactionIDs'
|
|
2438
|
-
* includeOffChain: // value for 'includeOffChain'
|
|
2439
|
-
* page: // value for 'page'
|
|
2440
|
-
* pageSize: // value for 'pageSize'
|
|
2441
|
-
* },
|
|
2442
|
-
* });
|
|
2443
|
-
*/
|
|
2444
|
-
export function useActivityWebQuery(baseOptions: Apollo.QueryHookOptions<ActivityWebQuery, ActivityWebQueryVariables>) {
|
|
2445
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2446
|
-
return Apollo.useQuery<ActivityWebQuery, ActivityWebQueryVariables>(ActivityWebDocument, options);
|
|
2447
|
-
}
|
|
2448
|
-
export function useActivityWebLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ActivityWebQuery, ActivityWebQueryVariables>) {
|
|
2449
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2450
|
-
return Apollo.useLazyQuery<ActivityWebQuery, ActivityWebQueryVariables>(ActivityWebDocument, options);
|
|
2451
|
-
}
|
|
2452
|
-
export type ActivityWebQueryHookResult = ReturnType<typeof useActivityWebQuery>;
|
|
2453
|
-
export type ActivityWebLazyQueryHookResult = ReturnType<typeof useActivityWebLazyQuery>;
|
|
2454
|
-
export type ActivityWebQueryResult = Apollo.QueryResult<ActivityWebQuery, ActivityWebQueryVariables>;
|
|
2455
|
-
export const OnAssetActivityDocument = gql`
|
|
2456
|
-
subscription OnAssetActivity($subscriptionId: ID!, $account: String!) {
|
|
2457
|
-
onAssetActivity(subscriptionId: $subscriptionId, addresses: [$account]) {
|
|
2458
|
-
...AssetActivityParts
|
|
2459
|
-
}
|
|
2460
|
-
}
|
|
2461
|
-
${AssetActivityPartsFragmentDoc}`;
|
|
2462
|
-
|
|
2463
|
-
/**
|
|
2464
|
-
* __useOnAssetActivitySubscription__
|
|
2465
|
-
*
|
|
2466
|
-
* To run a query within a React component, call `useOnAssetActivitySubscription` and pass it any options that fit your needs.
|
|
2467
|
-
* When your component renders, `useOnAssetActivitySubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2468
|
-
* you can use to render your UI.
|
|
2469
|
-
*
|
|
2470
|
-
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2471
|
-
*
|
|
2472
|
-
* @example
|
|
2473
|
-
* const { data, loading, error } = useOnAssetActivitySubscription({
|
|
2474
|
-
* variables: {
|
|
2475
|
-
* subscriptionId: // value for 'subscriptionId'
|
|
2476
|
-
* account: // value for 'account'
|
|
2477
|
-
* },
|
|
2478
|
-
* });
|
|
2479
|
-
*/
|
|
2480
|
-
export function useOnAssetActivitySubscription(baseOptions: Apollo.SubscriptionHookOptions<OnAssetActivitySubscription, OnAssetActivitySubscriptionVariables>) {
|
|
2481
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2482
|
-
return Apollo.useSubscription<OnAssetActivitySubscription, OnAssetActivitySubscriptionVariables>(OnAssetActivityDocument, options);
|
|
2483
|
-
}
|
|
2484
|
-
export type OnAssetActivitySubscriptionHookResult = ReturnType<typeof useOnAssetActivitySubscription>;
|
|
2485
|
-
export type OnAssetActivitySubscriptionResult = Apollo.SubscriptionResult<OnAssetActivitySubscription>;
|
|
2486
|
-
export const AllV3TicksDocument = gql`
|
|
2487
|
-
query AllV3Ticks($chain: Chain!, $address: String!, $skip: Int, $first: Int) {
|
|
2488
|
-
v3Pool(chain: $chain, address: $address) {
|
|
2489
|
-
id
|
|
2490
|
-
ticks(skip: $skip, first: $first) {
|
|
2491
|
-
tick: tickIdx
|
|
2492
|
-
liquidityNet
|
|
2493
|
-
price0
|
|
2494
|
-
price1
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
`;
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* __useAllV3TicksQuery__
|
|
2502
|
-
*
|
|
2503
|
-
* To run a query within a React component, call `useAllV3TicksQuery` and pass it any options that fit your needs.
|
|
2504
|
-
* When your component renders, `useAllV3TicksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2505
|
-
* you can use to render your UI.
|
|
2506
|
-
*
|
|
2507
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2508
|
-
*
|
|
2509
|
-
* @example
|
|
2510
|
-
* const { data, loading, error } = useAllV3TicksQuery({
|
|
2511
|
-
* variables: {
|
|
2512
|
-
* chain: // value for 'chain'
|
|
2513
|
-
* address: // value for 'address'
|
|
2514
|
-
* skip: // value for 'skip'
|
|
2515
|
-
* first: // value for 'first'
|
|
2516
|
-
* },
|
|
2517
|
-
* });
|
|
2518
|
-
*/
|
|
2519
|
-
export function useAllV3TicksQuery(baseOptions: Apollo.QueryHookOptions<AllV3TicksQuery, AllV3TicksQueryVariables>) {
|
|
2520
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2521
|
-
return Apollo.useQuery<AllV3TicksQuery, AllV3TicksQueryVariables>(AllV3TicksDocument, options);
|
|
2522
|
-
}
|
|
2523
|
-
export function useAllV3TicksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AllV3TicksQuery, AllV3TicksQueryVariables>) {
|
|
2524
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2525
|
-
return Apollo.useLazyQuery<AllV3TicksQuery, AllV3TicksQueryVariables>(AllV3TicksDocument, options);
|
|
2526
|
-
}
|
|
2527
|
-
export type AllV3TicksQueryHookResult = ReturnType<typeof useAllV3TicksQuery>;
|
|
2528
|
-
export type AllV3TicksLazyQueryHookResult = ReturnType<typeof useAllV3TicksLazyQuery>;
|
|
2529
|
-
export type AllV3TicksQueryResult = Apollo.QueryResult<AllV3TicksQuery, AllV3TicksQueryVariables>;
|
|
2530
|
-
export const AllV4TicksDocument = gql`
|
|
2531
|
-
query AllV4Ticks($chain: Chain!, $poolId: String!, $skip: Int, $first: Int) {
|
|
2532
|
-
v4Pool(chain: $chain, poolId: $poolId) {
|
|
2533
|
-
id
|
|
2534
|
-
ticks(skip: $skip, first: $first) {
|
|
2535
|
-
tick: tickIdx
|
|
2536
|
-
liquidityNet
|
|
2537
|
-
price0
|
|
2538
|
-
price1
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
`;
|
|
2543
|
-
|
|
2544
|
-
/**
|
|
2545
|
-
* __useAllV4TicksQuery__
|
|
2546
|
-
*
|
|
2547
|
-
* To run a query within a React component, call `useAllV4TicksQuery` and pass it any options that fit your needs.
|
|
2548
|
-
* When your component renders, `useAllV4TicksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2549
|
-
* you can use to render your UI.
|
|
2550
|
-
*
|
|
2551
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2552
|
-
*
|
|
2553
|
-
* @example
|
|
2554
|
-
* const { data, loading, error } = useAllV4TicksQuery({
|
|
2555
|
-
* variables: {
|
|
2556
|
-
* chain: // value for 'chain'
|
|
2557
|
-
* poolId: // value for 'poolId'
|
|
2558
|
-
* skip: // value for 'skip'
|
|
2559
|
-
* first: // value for 'first'
|
|
2560
|
-
* },
|
|
2561
|
-
* });
|
|
2562
|
-
*/
|
|
2563
|
-
export function useAllV4TicksQuery(baseOptions: Apollo.QueryHookOptions<AllV4TicksQuery, AllV4TicksQueryVariables>) {
|
|
2564
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2565
|
-
return Apollo.useQuery<AllV4TicksQuery, AllV4TicksQueryVariables>(AllV4TicksDocument, options);
|
|
2566
|
-
}
|
|
2567
|
-
export function useAllV4TicksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AllV4TicksQuery, AllV4TicksQueryVariables>) {
|
|
2568
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2569
|
-
return Apollo.useLazyQuery<AllV4TicksQuery, AllV4TicksQueryVariables>(AllV4TicksDocument, options);
|
|
2570
|
-
}
|
|
2571
|
-
export type AllV4TicksQueryHookResult = ReturnType<typeof useAllV4TicksQuery>;
|
|
2572
|
-
export type AllV4TicksLazyQueryHookResult = ReturnType<typeof useAllV4TicksLazyQuery>;
|
|
2573
|
-
export type AllV4TicksQueryResult = Apollo.QueryResult<AllV4TicksQuery, AllV4TicksQueryVariables>;
|
|
2574
|
-
export const FeeTierDistributionDocument = gql`
|
|
2575
|
-
query FeeTierDistribution($chain: Chain!, $token0: String!, $token1: String!) {
|
|
2576
|
-
v3PoolsForTokenPair(chain: $chain, token0: $token0, token1: $token1) {
|
|
2577
|
-
feeTier
|
|
2578
|
-
token0Supply
|
|
2579
|
-
token1Supply
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
`;
|
|
2583
|
-
|
|
2584
|
-
/**
|
|
2585
|
-
* __useFeeTierDistributionQuery__
|
|
2586
|
-
*
|
|
2587
|
-
* To run a query within a React component, call `useFeeTierDistributionQuery` and pass it any options that fit your needs.
|
|
2588
|
-
* When your component renders, `useFeeTierDistributionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2589
|
-
* you can use to render your UI.
|
|
2590
|
-
*
|
|
2591
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2592
|
-
*
|
|
2593
|
-
* @example
|
|
2594
|
-
* const { data, loading, error } = useFeeTierDistributionQuery({
|
|
2595
|
-
* variables: {
|
|
2596
|
-
* chain: // value for 'chain'
|
|
2597
|
-
* token0: // value for 'token0'
|
|
2598
|
-
* token1: // value for 'token1'
|
|
2599
|
-
* },
|
|
2600
|
-
* });
|
|
2601
|
-
*/
|
|
2602
|
-
export function useFeeTierDistributionQuery(baseOptions: Apollo.QueryHookOptions<FeeTierDistributionQuery, FeeTierDistributionQueryVariables>) {
|
|
2603
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2604
|
-
return Apollo.useQuery<FeeTierDistributionQuery, FeeTierDistributionQueryVariables>(FeeTierDistributionDocument, options);
|
|
2605
|
-
}
|
|
2606
|
-
export function useFeeTierDistributionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FeeTierDistributionQuery, FeeTierDistributionQueryVariables>) {
|
|
2607
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2608
|
-
return Apollo.useLazyQuery<FeeTierDistributionQuery, FeeTierDistributionQueryVariables>(FeeTierDistributionDocument, options);
|
|
2609
|
-
}
|
|
2610
|
-
export type FeeTierDistributionQueryHookResult = ReturnType<typeof useFeeTierDistributionQuery>;
|
|
2611
|
-
export type FeeTierDistributionLazyQueryHookResult = ReturnType<typeof useFeeTierDistributionLazyQuery>;
|
|
2612
|
-
export type FeeTierDistributionQueryResult = Apollo.QueryResult<FeeTierDistributionQuery, FeeTierDistributionQueryVariables>;
|
|
2613
|
-
export const TokenPromoDocument = gql`
|
|
2614
|
-
query TokenPromo($chain: Chain!, $address: String = null) {
|
|
2615
|
-
token(chain: $chain, address: $address) {
|
|
2616
|
-
id
|
|
2617
|
-
address
|
|
2618
|
-
chain
|
|
2619
|
-
market(currency: USD) {
|
|
2620
|
-
id
|
|
2621
|
-
price {
|
|
2622
|
-
id
|
|
2623
|
-
value
|
|
2624
|
-
}
|
|
2625
|
-
pricePercentChange(duration: DAY) {
|
|
2626
|
-
id
|
|
2627
|
-
value
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
}
|
|
2631
|
-
}
|
|
2632
|
-
`;
|
|
2633
|
-
|
|
2634
|
-
/**
|
|
2635
|
-
* __useTokenPromoQuery__
|
|
2636
|
-
*
|
|
2637
|
-
* To run a query within a React component, call `useTokenPromoQuery` and pass it any options that fit your needs.
|
|
2638
|
-
* When your component renders, `useTokenPromoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2639
|
-
* you can use to render your UI.
|
|
2640
|
-
*
|
|
2641
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2642
|
-
*
|
|
2643
|
-
* @example
|
|
2644
|
-
* const { data, loading, error } = useTokenPromoQuery({
|
|
2645
|
-
* variables: {
|
|
2646
|
-
* chain: // value for 'chain'
|
|
2647
|
-
* address: // value for 'address'
|
|
2648
|
-
* },
|
|
2649
|
-
* });
|
|
2650
|
-
*/
|
|
2651
|
-
export function useTokenPromoQuery(baseOptions: Apollo.QueryHookOptions<TokenPromoQuery, TokenPromoQueryVariables>) {
|
|
2652
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2653
|
-
return Apollo.useQuery<TokenPromoQuery, TokenPromoQueryVariables>(TokenPromoDocument, options);
|
|
2654
|
-
}
|
|
2655
|
-
export function useTokenPromoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenPromoQuery, TokenPromoQueryVariables>) {
|
|
2656
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2657
|
-
return Apollo.useLazyQuery<TokenPromoQuery, TokenPromoQueryVariables>(TokenPromoDocument, options);
|
|
2658
|
-
}
|
|
2659
|
-
export type TokenPromoQueryHookResult = ReturnType<typeof useTokenPromoQuery>;
|
|
2660
|
-
export type TokenPromoLazyQueryHookResult = ReturnType<typeof useTokenPromoLazyQuery>;
|
|
2661
|
-
export type TokenPromoQueryResult = Apollo.QueryResult<TokenPromoQuery, TokenPromoQueryVariables>;
|
|
2662
|
-
export const CollectionPromoDocument = gql`
|
|
2663
|
-
query CollectionPromo($addresses: [String!]!) {
|
|
2664
|
-
nftCollections(filter: {addresses: $addresses}) {
|
|
2665
|
-
edges {
|
|
2666
|
-
node {
|
|
2667
|
-
markets(currencies: ETH) {
|
|
2668
|
-
floorPricePercentChange(duration: DAY) {
|
|
2669
|
-
value
|
|
2670
|
-
}
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
}
|
|
2674
|
-
}
|
|
2675
|
-
}
|
|
2676
|
-
`;
|
|
2677
|
-
|
|
2678
|
-
/**
|
|
2679
|
-
* __useCollectionPromoQuery__
|
|
2680
|
-
*
|
|
2681
|
-
* To run a query within a React component, call `useCollectionPromoQuery` and pass it any options that fit your needs.
|
|
2682
|
-
* When your component renders, `useCollectionPromoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2683
|
-
* you can use to render your UI.
|
|
2684
|
-
*
|
|
2685
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2686
|
-
*
|
|
2687
|
-
* @example
|
|
2688
|
-
* const { data, loading, error } = useCollectionPromoQuery({
|
|
2689
|
-
* variables: {
|
|
2690
|
-
* addresses: // value for 'addresses'
|
|
2691
|
-
* },
|
|
2692
|
-
* });
|
|
2693
|
-
*/
|
|
2694
|
-
export function useCollectionPromoQuery(baseOptions: Apollo.QueryHookOptions<CollectionPromoQuery, CollectionPromoQueryVariables>) {
|
|
2695
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2696
|
-
return Apollo.useQuery<CollectionPromoQuery, CollectionPromoQueryVariables>(CollectionPromoDocument, options);
|
|
2697
|
-
}
|
|
2698
|
-
export function useCollectionPromoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CollectionPromoQuery, CollectionPromoQueryVariables>) {
|
|
2699
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2700
|
-
return Apollo.useLazyQuery<CollectionPromoQuery, CollectionPromoQueryVariables>(CollectionPromoDocument, options);
|
|
2701
|
-
}
|
|
2702
|
-
export type CollectionPromoQueryHookResult = ReturnType<typeof useCollectionPromoQuery>;
|
|
2703
|
-
export type CollectionPromoLazyQueryHookResult = ReturnType<typeof useCollectionPromoLazyQuery>;
|
|
2704
|
-
export type CollectionPromoQueryResult = Apollo.QueryResult<CollectionPromoQuery, CollectionPromoQueryVariables>;
|
|
2705
|
-
export const DailyProtocolVolumeDocument = gql`
|
|
2706
|
-
query DailyProtocolVolume($version: ProtocolVersion!) {
|
|
2707
|
-
historicalProtocolVolume(chain: ETHEREUM, version: $version, duration: MONTH) {
|
|
2708
|
-
value
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
`;
|
|
2712
|
-
|
|
2713
|
-
/**
|
|
2714
|
-
* __useDailyProtocolVolumeQuery__
|
|
2715
|
-
*
|
|
2716
|
-
* To run a query within a React component, call `useDailyProtocolVolumeQuery` and pass it any options that fit your needs.
|
|
2717
|
-
* When your component renders, `useDailyProtocolVolumeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2718
|
-
* you can use to render your UI.
|
|
2719
|
-
*
|
|
2720
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2721
|
-
*
|
|
2722
|
-
* @example
|
|
2723
|
-
* const { data, loading, error } = useDailyProtocolVolumeQuery({
|
|
2724
|
-
* variables: {
|
|
2725
|
-
* version: // value for 'version'
|
|
2726
|
-
* },
|
|
2727
|
-
* });
|
|
2728
|
-
*/
|
|
2729
|
-
export function useDailyProtocolVolumeQuery(baseOptions: Apollo.QueryHookOptions<DailyProtocolVolumeQuery, DailyProtocolVolumeQueryVariables>) {
|
|
2730
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2731
|
-
return Apollo.useQuery<DailyProtocolVolumeQuery, DailyProtocolVolumeQueryVariables>(DailyProtocolVolumeDocument, options);
|
|
2732
|
-
}
|
|
2733
|
-
export function useDailyProtocolVolumeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<DailyProtocolVolumeQuery, DailyProtocolVolumeQueryVariables>) {
|
|
2734
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2735
|
-
return Apollo.useLazyQuery<DailyProtocolVolumeQuery, DailyProtocolVolumeQueryVariables>(DailyProtocolVolumeDocument, options);
|
|
2736
|
-
}
|
|
2737
|
-
export type DailyProtocolVolumeQueryHookResult = ReturnType<typeof useDailyProtocolVolumeQuery>;
|
|
2738
|
-
export type DailyProtocolVolumeLazyQueryHookResult = ReturnType<typeof useDailyProtocolVolumeLazyQuery>;
|
|
2739
|
-
export type DailyProtocolVolumeQueryResult = Apollo.QueryResult<DailyProtocolVolumeQuery, DailyProtocolVolumeQueryVariables>;
|
|
2740
|
-
export const IsV3SubgraphStaleDocument = gql`
|
|
2741
|
-
query isV3SubgraphStale($chain: Chain!) {
|
|
2742
|
-
isV3SubgraphStale(chain: $chain)
|
|
2743
|
-
}
|
|
2744
|
-
`;
|
|
2745
|
-
|
|
2746
|
-
/**
|
|
2747
|
-
* __useIsV3SubgraphStaleQuery__
|
|
2748
|
-
*
|
|
2749
|
-
* To run a query within a React component, call `useIsV3SubgraphStaleQuery` and pass it any options that fit your needs.
|
|
2750
|
-
* When your component renders, `useIsV3SubgraphStaleQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2751
|
-
* you can use to render your UI.
|
|
2752
|
-
*
|
|
2753
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2754
|
-
*
|
|
2755
|
-
* @example
|
|
2756
|
-
* const { data, loading, error } = useIsV3SubgraphStaleQuery({
|
|
2757
|
-
* variables: {
|
|
2758
|
-
* chain: // value for 'chain'
|
|
2759
|
-
* },
|
|
2760
|
-
* });
|
|
2761
|
-
*/
|
|
2762
|
-
export function useIsV3SubgraphStaleQuery(baseOptions: Apollo.QueryHookOptions<IsV3SubgraphStaleQuery, IsV3SubgraphStaleQueryVariables>) {
|
|
2763
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2764
|
-
return Apollo.useQuery<IsV3SubgraphStaleQuery, IsV3SubgraphStaleQueryVariables>(IsV3SubgraphStaleDocument, options);
|
|
2765
|
-
}
|
|
2766
|
-
export function useIsV3SubgraphStaleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IsV3SubgraphStaleQuery, IsV3SubgraphStaleQueryVariables>) {
|
|
2767
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2768
|
-
return Apollo.useLazyQuery<IsV3SubgraphStaleQuery, IsV3SubgraphStaleQueryVariables>(IsV3SubgraphStaleDocument, options);
|
|
2769
|
-
}
|
|
2770
|
-
export type IsV3SubgraphStaleQueryHookResult = ReturnType<typeof useIsV3SubgraphStaleQuery>;
|
|
2771
|
-
export type IsV3SubgraphStaleLazyQueryHookResult = ReturnType<typeof useIsV3SubgraphStaleLazyQuery>;
|
|
2772
|
-
export type IsV3SubgraphStaleQueryResult = Apollo.QueryResult<IsV3SubgraphStaleQuery, IsV3SubgraphStaleQueryVariables>;
|
|
2773
|
-
export const CollectionSearchDocument = gql`
|
|
2774
|
-
query CollectionSearch($query: String!) {
|
|
2775
|
-
nftCollections(filter: {nameQuery: $query}) {
|
|
2776
|
-
edges {
|
|
2777
|
-
cursor
|
|
2778
|
-
node {
|
|
2779
|
-
image {
|
|
2780
|
-
url
|
|
2781
|
-
}
|
|
2782
|
-
isVerified
|
|
2783
|
-
name
|
|
2784
|
-
numAssets
|
|
2785
|
-
nftContracts {
|
|
2786
|
-
address
|
|
2787
|
-
chain
|
|
2788
|
-
name
|
|
2789
|
-
symbol
|
|
2790
|
-
totalSupply
|
|
2791
|
-
}
|
|
2792
|
-
markets(currencies: ETH) {
|
|
2793
|
-
floorPrice {
|
|
2794
|
-
currency
|
|
2795
|
-
value
|
|
2796
|
-
}
|
|
2797
|
-
}
|
|
2798
|
-
}
|
|
2799
|
-
}
|
|
2800
|
-
pageInfo {
|
|
2801
|
-
endCursor
|
|
2802
|
-
hasNextPage
|
|
2803
|
-
hasPreviousPage
|
|
2804
|
-
startCursor
|
|
2805
|
-
}
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
`;
|
|
2809
|
-
|
|
2810
|
-
/**
|
|
2811
|
-
* __useCollectionSearchQuery__
|
|
2812
|
-
*
|
|
2813
|
-
* To run a query within a React component, call `useCollectionSearchQuery` and pass it any options that fit your needs.
|
|
2814
|
-
* When your component renders, `useCollectionSearchQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2815
|
-
* you can use to render your UI.
|
|
2816
|
-
*
|
|
2817
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2818
|
-
*
|
|
2819
|
-
* @example
|
|
2820
|
-
* const { data, loading, error } = useCollectionSearchQuery({
|
|
2821
|
-
* variables: {
|
|
2822
|
-
* query: // value for 'query'
|
|
2823
|
-
* },
|
|
2824
|
-
* });
|
|
2825
|
-
*/
|
|
2826
|
-
export function useCollectionSearchQuery(baseOptions: Apollo.QueryHookOptions<CollectionSearchQuery, CollectionSearchQueryVariables>) {
|
|
2827
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2828
|
-
return Apollo.useQuery<CollectionSearchQuery, CollectionSearchQueryVariables>(CollectionSearchDocument, options);
|
|
2829
|
-
}
|
|
2830
|
-
export function useCollectionSearchLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CollectionSearchQuery, CollectionSearchQueryVariables>) {
|
|
2831
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2832
|
-
return Apollo.useLazyQuery<CollectionSearchQuery, CollectionSearchQueryVariables>(CollectionSearchDocument, options);
|
|
2833
|
-
}
|
|
2834
|
-
export type CollectionSearchQueryHookResult = ReturnType<typeof useCollectionSearchQuery>;
|
|
2835
|
-
export type CollectionSearchLazyQueryHookResult = ReturnType<typeof useCollectionSearchLazyQuery>;
|
|
2836
|
-
export type CollectionSearchQueryResult = Apollo.QueryResult<CollectionSearchQuery, CollectionSearchQueryVariables>;
|
|
2837
|
-
export const NftBalanceDocument = gql`
|
|
2838
|
-
query NftBalance($ownerAddress: String!, $filter: NftBalancesFilterInput, $chains: [Chain!] = [ETHEREUM], $first: Int, $after: String, $last: Int, $before: String) {
|
|
2839
|
-
nftBalances(
|
|
2840
|
-
ownerAddress: $ownerAddress
|
|
2841
|
-
chains: $chains
|
|
2842
|
-
filter: $filter
|
|
2843
|
-
first: $first
|
|
2844
|
-
after: $after
|
|
2845
|
-
last: $last
|
|
2846
|
-
before: $before
|
|
2847
|
-
) {
|
|
2848
|
-
edges {
|
|
2849
|
-
node {
|
|
2850
|
-
ownedAsset {
|
|
2851
|
-
id
|
|
2852
|
-
animationUrl
|
|
2853
|
-
collection {
|
|
2854
|
-
id
|
|
2855
|
-
isVerified
|
|
2856
|
-
image {
|
|
2857
|
-
id
|
|
2858
|
-
url
|
|
2859
|
-
}
|
|
2860
|
-
name
|
|
2861
|
-
twitterName
|
|
2862
|
-
nftContracts {
|
|
2863
|
-
id
|
|
2864
|
-
address
|
|
2865
|
-
chain
|
|
2866
|
-
name
|
|
2867
|
-
standard
|
|
2868
|
-
symbol
|
|
2869
|
-
totalSupply
|
|
2870
|
-
}
|
|
2871
|
-
markets(currencies: ETH) {
|
|
2872
|
-
id
|
|
2873
|
-
floorPrice {
|
|
2874
|
-
id
|
|
2875
|
-
value
|
|
2876
|
-
}
|
|
2877
|
-
}
|
|
2878
|
-
}
|
|
2879
|
-
chain
|
|
2880
|
-
description
|
|
2881
|
-
flaggedBy
|
|
2882
|
-
image {
|
|
2883
|
-
id
|
|
2884
|
-
url
|
|
2885
|
-
}
|
|
2886
|
-
originalImage {
|
|
2887
|
-
id
|
|
2888
|
-
url
|
|
2889
|
-
}
|
|
2890
|
-
name
|
|
2891
|
-
ownerAddress
|
|
2892
|
-
smallImage {
|
|
2893
|
-
id
|
|
2894
|
-
url
|
|
2895
|
-
}
|
|
2896
|
-
suspiciousFlag
|
|
2897
|
-
tokenId
|
|
2898
|
-
thumbnail {
|
|
2899
|
-
id
|
|
2900
|
-
url
|
|
2901
|
-
}
|
|
2902
|
-
listings(first: 1) {
|
|
2903
|
-
edges {
|
|
2904
|
-
node {
|
|
2905
|
-
price {
|
|
2906
|
-
id
|
|
2907
|
-
value
|
|
2908
|
-
currency
|
|
2909
|
-
}
|
|
2910
|
-
createdAt
|
|
2911
|
-
marketplace
|
|
2912
|
-
endAt
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
listedMarketplaces
|
|
2918
|
-
listingFees {
|
|
2919
|
-
id
|
|
2920
|
-
payoutAddress
|
|
2921
|
-
basisPoints
|
|
2922
|
-
}
|
|
2923
|
-
lastPrice {
|
|
2924
|
-
id
|
|
2925
|
-
currency
|
|
2926
|
-
timestamp
|
|
2927
|
-
value
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
pageInfo {
|
|
2932
|
-
endCursor
|
|
2933
|
-
hasNextPage
|
|
2934
|
-
hasPreviousPage
|
|
2935
|
-
startCursor
|
|
2936
|
-
}
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
`;
|
|
2940
|
-
|
|
2941
|
-
/**
|
|
2942
|
-
* __useNftBalanceQuery__
|
|
2943
|
-
*
|
|
2944
|
-
* To run a query within a React component, call `useNftBalanceQuery` and pass it any options that fit your needs.
|
|
2945
|
-
* When your component renders, `useNftBalanceQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2946
|
-
* you can use to render your UI.
|
|
2947
|
-
*
|
|
2948
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2949
|
-
*
|
|
2950
|
-
* @example
|
|
2951
|
-
* const { data, loading, error } = useNftBalanceQuery({
|
|
2952
|
-
* variables: {
|
|
2953
|
-
* ownerAddress: // value for 'ownerAddress'
|
|
2954
|
-
* filter: // value for 'filter'
|
|
2955
|
-
* chains: // value for 'chains'
|
|
2956
|
-
* first: // value for 'first'
|
|
2957
|
-
* after: // value for 'after'
|
|
2958
|
-
* last: // value for 'last'
|
|
2959
|
-
* before: // value for 'before'
|
|
2960
|
-
* },
|
|
2961
|
-
* });
|
|
2962
|
-
*/
|
|
2963
|
-
export function useNftBalanceQuery(baseOptions: Apollo.QueryHookOptions<NftBalanceQuery, NftBalanceQueryVariables>) {
|
|
2964
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2965
|
-
return Apollo.useQuery<NftBalanceQuery, NftBalanceQueryVariables>(NftBalanceDocument, options);
|
|
2966
|
-
}
|
|
2967
|
-
export function useNftBalanceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NftBalanceQuery, NftBalanceQueryVariables>) {
|
|
2968
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
2969
|
-
return Apollo.useLazyQuery<NftBalanceQuery, NftBalanceQueryVariables>(NftBalanceDocument, options);
|
|
2970
|
-
}
|
|
2971
|
-
export type NftBalanceQueryHookResult = ReturnType<typeof useNftBalanceQuery>;
|
|
2972
|
-
export type NftBalanceLazyQueryHookResult = ReturnType<typeof useNftBalanceLazyQuery>;
|
|
2973
|
-
export type NftBalanceQueryResult = Apollo.QueryResult<NftBalanceQuery, NftBalanceQueryVariables>;
|
|
2974
|
-
export const V3PoolDocument = gql`
|
|
2975
|
-
query V3Pool($chain: Chain!, $address: String!) {
|
|
2976
|
-
v3Pool(chain: $chain, address: $address) {
|
|
2977
|
-
id
|
|
2978
|
-
protocolVersion
|
|
2979
|
-
address
|
|
2980
|
-
feeTier
|
|
2981
|
-
token0 {
|
|
2982
|
-
...SimpleTokenDetails
|
|
2983
|
-
...TokenPrice
|
|
2984
|
-
}
|
|
2985
|
-
token0Supply
|
|
2986
|
-
token1 {
|
|
2987
|
-
...SimpleTokenDetails
|
|
2988
|
-
...TokenPrice
|
|
2989
|
-
}
|
|
2990
|
-
token1Supply
|
|
2991
|
-
txCount
|
|
2992
|
-
volume24h: cumulativeVolume(duration: DAY) {
|
|
2993
|
-
value
|
|
2994
|
-
}
|
|
2995
|
-
historicalVolume(duration: WEEK) {
|
|
2996
|
-
value
|
|
2997
|
-
timestamp
|
|
2998
|
-
}
|
|
2999
|
-
totalLiquidity {
|
|
3000
|
-
value
|
|
3001
|
-
}
|
|
3002
|
-
totalLiquidityPercentChange24h {
|
|
3003
|
-
value
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
${SimpleTokenDetailsFragmentDoc}
|
|
3008
|
-
${TokenPriceFragmentDoc}`;
|
|
3009
|
-
|
|
3010
|
-
/**
|
|
3011
|
-
* __useV3PoolQuery__
|
|
3012
|
-
*
|
|
3013
|
-
* To run a query within a React component, call `useV3PoolQuery` and pass it any options that fit your needs.
|
|
3014
|
-
* When your component renders, `useV3PoolQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3015
|
-
* you can use to render your UI.
|
|
3016
|
-
*
|
|
3017
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3018
|
-
*
|
|
3019
|
-
* @example
|
|
3020
|
-
* const { data, loading, error } = useV3PoolQuery({
|
|
3021
|
-
* variables: {
|
|
3022
|
-
* chain: // value for 'chain'
|
|
3023
|
-
* address: // value for 'address'
|
|
3024
|
-
* },
|
|
3025
|
-
* });
|
|
3026
|
-
*/
|
|
3027
|
-
export function useV3PoolQuery(baseOptions: Apollo.QueryHookOptions<V3PoolQuery, V3PoolQueryVariables>) {
|
|
3028
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3029
|
-
return Apollo.useQuery<V3PoolQuery, V3PoolQueryVariables>(V3PoolDocument, options);
|
|
3030
|
-
}
|
|
3031
|
-
export function useV3PoolLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V3PoolQuery, V3PoolQueryVariables>) {
|
|
3032
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3033
|
-
return Apollo.useLazyQuery<V3PoolQuery, V3PoolQueryVariables>(V3PoolDocument, options);
|
|
3034
|
-
}
|
|
3035
|
-
export type V3PoolQueryHookResult = ReturnType<typeof useV3PoolQuery>;
|
|
3036
|
-
export type V3PoolLazyQueryHookResult = ReturnType<typeof useV3PoolLazyQuery>;
|
|
3037
|
-
export type V3PoolQueryResult = Apollo.QueryResult<V3PoolQuery, V3PoolQueryVariables>;
|
|
3038
|
-
export const V4PoolDocument = gql`
|
|
3039
|
-
query V4Pool($chain: Chain!, $poolId: String!) {
|
|
3040
|
-
v4Pool(chain: $chain, poolId: $poolId) {
|
|
3041
|
-
id
|
|
3042
|
-
protocolVersion
|
|
3043
|
-
feeTier
|
|
3044
|
-
isDynamicFee
|
|
3045
|
-
tickSpacing
|
|
3046
|
-
poolId
|
|
3047
|
-
hook {
|
|
3048
|
-
id
|
|
3049
|
-
address
|
|
3050
|
-
}
|
|
3051
|
-
token0 {
|
|
3052
|
-
...SimpleTokenDetails
|
|
3053
|
-
...TokenPrice
|
|
3054
|
-
}
|
|
3055
|
-
token0Supply
|
|
3056
|
-
token1 {
|
|
3057
|
-
...SimpleTokenDetails
|
|
3058
|
-
...TokenPrice
|
|
3059
|
-
}
|
|
3060
|
-
token1Supply
|
|
3061
|
-
txCount
|
|
3062
|
-
volume24h: cumulativeVolume(duration: DAY) {
|
|
3063
|
-
value
|
|
3064
|
-
}
|
|
3065
|
-
historicalVolume(duration: WEEK) {
|
|
3066
|
-
value
|
|
3067
|
-
timestamp
|
|
3068
|
-
}
|
|
3069
|
-
rewardsCampaign {
|
|
3070
|
-
id
|
|
3071
|
-
boostedApr
|
|
3072
|
-
startTimestamp
|
|
3073
|
-
endTimestamp
|
|
3074
|
-
totalRewardAllocation
|
|
3075
|
-
distributedRewards
|
|
3076
|
-
}
|
|
3077
|
-
totalLiquidity {
|
|
3078
|
-
value
|
|
3079
|
-
}
|
|
3080
|
-
totalLiquidityPercentChange24h {
|
|
3081
|
-
value
|
|
3082
|
-
}
|
|
3083
|
-
}
|
|
3084
|
-
}
|
|
3085
|
-
${SimpleTokenDetailsFragmentDoc}
|
|
3086
|
-
${TokenPriceFragmentDoc}`;
|
|
3087
|
-
|
|
3088
|
-
/**
|
|
3089
|
-
* __useV4PoolQuery__
|
|
3090
|
-
*
|
|
3091
|
-
* To run a query within a React component, call `useV4PoolQuery` and pass it any options that fit your needs.
|
|
3092
|
-
* When your component renders, `useV4PoolQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3093
|
-
* you can use to render your UI.
|
|
3094
|
-
*
|
|
3095
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3096
|
-
*
|
|
3097
|
-
* @example
|
|
3098
|
-
* const { data, loading, error } = useV4PoolQuery({
|
|
3099
|
-
* variables: {
|
|
3100
|
-
* chain: // value for 'chain'
|
|
3101
|
-
* poolId: // value for 'poolId'
|
|
3102
|
-
* },
|
|
3103
|
-
* });
|
|
3104
|
-
*/
|
|
3105
|
-
export function useV4PoolQuery(baseOptions: Apollo.QueryHookOptions<V4PoolQuery, V4PoolQueryVariables>) {
|
|
3106
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3107
|
-
return Apollo.useQuery<V4PoolQuery, V4PoolQueryVariables>(V4PoolDocument, options);
|
|
3108
|
-
}
|
|
3109
|
-
export function useV4PoolLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V4PoolQuery, V4PoolQueryVariables>) {
|
|
3110
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3111
|
-
return Apollo.useLazyQuery<V4PoolQuery, V4PoolQueryVariables>(V4PoolDocument, options);
|
|
3112
|
-
}
|
|
3113
|
-
export type V4PoolQueryHookResult = ReturnType<typeof useV4PoolQuery>;
|
|
3114
|
-
export type V4PoolLazyQueryHookResult = ReturnType<typeof useV4PoolLazyQuery>;
|
|
3115
|
-
export type V4PoolQueryResult = Apollo.QueryResult<V4PoolQuery, V4PoolQueryVariables>;
|
|
3116
|
-
export const PoolPriceHistoryDocument = gql`
|
|
3117
|
-
query PoolPriceHistory($chain: Chain!, $addressOrId: String!, $duration: HistoryDuration!, $isV4: Boolean!, $isV3: Boolean!, $isV2: Boolean!) {
|
|
3118
|
-
v4Pool(chain: $chain, poolId: $addressOrId) @include(if: $isV4) {
|
|
3119
|
-
id
|
|
3120
|
-
priceHistory(duration: $duration) {
|
|
3121
|
-
id
|
|
3122
|
-
token0Price
|
|
3123
|
-
token1Price
|
|
3124
|
-
timestamp
|
|
3125
|
-
}
|
|
3126
|
-
}
|
|
3127
|
-
v3Pool(chain: $chain, address: $addressOrId) @include(if: $isV3) {
|
|
3128
|
-
id
|
|
3129
|
-
priceHistory(duration: $duration) {
|
|
3130
|
-
id
|
|
3131
|
-
token0Price
|
|
3132
|
-
token1Price
|
|
3133
|
-
timestamp
|
|
3134
|
-
}
|
|
3135
|
-
}
|
|
3136
|
-
v2Pair(chain: $chain, address: $addressOrId) @include(if: $isV2) {
|
|
3137
|
-
id
|
|
3138
|
-
priceHistory(duration: $duration) {
|
|
3139
|
-
id
|
|
3140
|
-
token0Price
|
|
3141
|
-
token1Price
|
|
3142
|
-
timestamp
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
`;
|
|
3147
|
-
|
|
3148
|
-
/**
|
|
3149
|
-
* __usePoolPriceHistoryQuery__
|
|
3150
|
-
*
|
|
3151
|
-
* To run a query within a React component, call `usePoolPriceHistoryQuery` and pass it any options that fit your needs.
|
|
3152
|
-
* When your component renders, `usePoolPriceHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3153
|
-
* you can use to render your UI.
|
|
3154
|
-
*
|
|
3155
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3156
|
-
*
|
|
3157
|
-
* @example
|
|
3158
|
-
* const { data, loading, error } = usePoolPriceHistoryQuery({
|
|
3159
|
-
* variables: {
|
|
3160
|
-
* chain: // value for 'chain'
|
|
3161
|
-
* addressOrId: // value for 'addressOrId'
|
|
3162
|
-
* duration: // value for 'duration'
|
|
3163
|
-
* isV4: // value for 'isV4'
|
|
3164
|
-
* isV3: // value for 'isV3'
|
|
3165
|
-
* isV2: // value for 'isV2'
|
|
3166
|
-
* },
|
|
3167
|
-
* });
|
|
3168
|
-
*/
|
|
3169
|
-
export function usePoolPriceHistoryQuery(baseOptions: Apollo.QueryHookOptions<PoolPriceHistoryQuery, PoolPriceHistoryQueryVariables>) {
|
|
3170
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3171
|
-
return Apollo.useQuery<PoolPriceHistoryQuery, PoolPriceHistoryQueryVariables>(PoolPriceHistoryDocument, options);
|
|
3172
|
-
}
|
|
3173
|
-
export function usePoolPriceHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PoolPriceHistoryQuery, PoolPriceHistoryQueryVariables>) {
|
|
3174
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3175
|
-
return Apollo.useLazyQuery<PoolPriceHistoryQuery, PoolPriceHistoryQueryVariables>(PoolPriceHistoryDocument, options);
|
|
3176
|
-
}
|
|
3177
|
-
export type PoolPriceHistoryQueryHookResult = ReturnType<typeof usePoolPriceHistoryQuery>;
|
|
3178
|
-
export type PoolPriceHistoryLazyQueryHookResult = ReturnType<typeof usePoolPriceHistoryLazyQuery>;
|
|
3179
|
-
export type PoolPriceHistoryQueryResult = Apollo.QueryResult<PoolPriceHistoryQuery, PoolPriceHistoryQueryVariables>;
|
|
3180
|
-
export const PoolVolumeHistoryDocument = gql`
|
|
3181
|
-
query PoolVolumeHistory($chain: Chain!, $addressOrId: String!, $duration: HistoryDuration!, $isV4: Boolean!, $isV3: Boolean!, $isV2: Boolean!) {
|
|
3182
|
-
v4Pool(chain: $chain, poolId: $addressOrId) @include(if: $isV4) {
|
|
3183
|
-
id
|
|
3184
|
-
historicalVolume(duration: $duration) {
|
|
3185
|
-
id
|
|
3186
|
-
value
|
|
3187
|
-
timestamp
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
v3Pool(chain: $chain, address: $addressOrId) @include(if: $isV3) {
|
|
3191
|
-
id
|
|
3192
|
-
historicalVolume(duration: $duration) {
|
|
3193
|
-
id
|
|
3194
|
-
value
|
|
3195
|
-
timestamp
|
|
3196
|
-
}
|
|
3197
|
-
}
|
|
3198
|
-
v2Pair(chain: $chain, address: $addressOrId) @include(if: $isV2) {
|
|
3199
|
-
id
|
|
3200
|
-
historicalVolume(duration: $duration) {
|
|
3201
|
-
id
|
|
3202
|
-
value
|
|
3203
|
-
timestamp
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
}
|
|
3207
|
-
`;
|
|
3208
|
-
|
|
3209
|
-
/**
|
|
3210
|
-
* __usePoolVolumeHistoryQuery__
|
|
3211
|
-
*
|
|
3212
|
-
* To run a query within a React component, call `usePoolVolumeHistoryQuery` and pass it any options that fit your needs.
|
|
3213
|
-
* When your component renders, `usePoolVolumeHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3214
|
-
* you can use to render your UI.
|
|
3215
|
-
*
|
|
3216
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3217
|
-
*
|
|
3218
|
-
* @example
|
|
3219
|
-
* const { data, loading, error } = usePoolVolumeHistoryQuery({
|
|
3220
|
-
* variables: {
|
|
3221
|
-
* chain: // value for 'chain'
|
|
3222
|
-
* addressOrId: // value for 'addressOrId'
|
|
3223
|
-
* duration: // value for 'duration'
|
|
3224
|
-
* isV4: // value for 'isV4'
|
|
3225
|
-
* isV3: // value for 'isV3'
|
|
3226
|
-
* isV2: // value for 'isV2'
|
|
3227
|
-
* },
|
|
3228
|
-
* });
|
|
3229
|
-
*/
|
|
3230
|
-
export function usePoolVolumeHistoryQuery(baseOptions: Apollo.QueryHookOptions<PoolVolumeHistoryQuery, PoolVolumeHistoryQueryVariables>) {
|
|
3231
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3232
|
-
return Apollo.useQuery<PoolVolumeHistoryQuery, PoolVolumeHistoryQueryVariables>(PoolVolumeHistoryDocument, options);
|
|
3233
|
-
}
|
|
3234
|
-
export function usePoolVolumeHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PoolVolumeHistoryQuery, PoolVolumeHistoryQueryVariables>) {
|
|
3235
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3236
|
-
return Apollo.useLazyQuery<PoolVolumeHistoryQuery, PoolVolumeHistoryQueryVariables>(PoolVolumeHistoryDocument, options);
|
|
3237
|
-
}
|
|
3238
|
-
export type PoolVolumeHistoryQueryHookResult = ReturnType<typeof usePoolVolumeHistoryQuery>;
|
|
3239
|
-
export type PoolVolumeHistoryLazyQueryHookResult = ReturnType<typeof usePoolVolumeHistoryLazyQuery>;
|
|
3240
|
-
export type PoolVolumeHistoryQueryResult = Apollo.QueryResult<PoolVolumeHistoryQuery, PoolVolumeHistoryQueryVariables>;
|
|
3241
|
-
export const V2PairDocument = gql`
|
|
3242
|
-
query V2Pair($chain: Chain!, $address: String!) {
|
|
3243
|
-
v2Pair(chain: $chain, address: $address) {
|
|
3244
|
-
id
|
|
3245
|
-
protocolVersion
|
|
3246
|
-
address
|
|
3247
|
-
token0 {
|
|
3248
|
-
...SimpleTokenDetails
|
|
3249
|
-
...TokenPrice
|
|
3250
|
-
}
|
|
3251
|
-
token0Supply
|
|
3252
|
-
token1 {
|
|
3253
|
-
...SimpleTokenDetails
|
|
3254
|
-
...TokenPrice
|
|
3255
|
-
}
|
|
3256
|
-
token1Supply
|
|
3257
|
-
txCount
|
|
3258
|
-
volume24h: cumulativeVolume(duration: DAY) {
|
|
3259
|
-
value
|
|
3260
|
-
}
|
|
3261
|
-
historicalVolume(duration: WEEK) {
|
|
3262
|
-
value
|
|
3263
|
-
timestamp
|
|
3264
|
-
}
|
|
3265
|
-
totalLiquidity {
|
|
3266
|
-
value
|
|
3267
|
-
}
|
|
3268
|
-
totalLiquidityPercentChange24h {
|
|
3269
|
-
value
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3273
|
-
${SimpleTokenDetailsFragmentDoc}
|
|
3274
|
-
${TokenPriceFragmentDoc}`;
|
|
3275
|
-
|
|
3276
|
-
/**
|
|
3277
|
-
* __useV2PairQuery__
|
|
3278
|
-
*
|
|
3279
|
-
* To run a query within a React component, call `useV2PairQuery` and pass it any options that fit your needs.
|
|
3280
|
-
* When your component renders, `useV2PairQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3281
|
-
* you can use to render your UI.
|
|
3282
|
-
*
|
|
3283
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3284
|
-
*
|
|
3285
|
-
* @example
|
|
3286
|
-
* const { data, loading, error } = useV2PairQuery({
|
|
3287
|
-
* variables: {
|
|
3288
|
-
* chain: // value for 'chain'
|
|
3289
|
-
* address: // value for 'address'
|
|
3290
|
-
* },
|
|
3291
|
-
* });
|
|
3292
|
-
*/
|
|
3293
|
-
export function useV2PairQuery(baseOptions: Apollo.QueryHookOptions<V2PairQuery, V2PairQueryVariables>) {
|
|
3294
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3295
|
-
return Apollo.useQuery<V2PairQuery, V2PairQueryVariables>(V2PairDocument, options);
|
|
3296
|
-
}
|
|
3297
|
-
export function useV2PairLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V2PairQuery, V2PairQueryVariables>) {
|
|
3298
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3299
|
-
return Apollo.useLazyQuery<V2PairQuery, V2PairQueryVariables>(V2PairDocument, options);
|
|
3300
|
-
}
|
|
3301
|
-
export type V2PairQueryHookResult = ReturnType<typeof useV2PairQuery>;
|
|
3302
|
-
export type V2PairLazyQueryHookResult = ReturnType<typeof useV2PairLazyQuery>;
|
|
3303
|
-
export type V2PairQueryResult = Apollo.QueryResult<V2PairQuery, V2PairQueryVariables>;
|
|
3304
|
-
export const V4PoolTransactionsDocument = gql`
|
|
3305
|
-
query V4PoolTransactions($chain: Chain!, $poolId: String!, $first: Int!, $cursor: Int) {
|
|
3306
|
-
v4Pool(chain: $chain, poolId: $poolId) {
|
|
3307
|
-
id
|
|
3308
|
-
transactions(first: $first, timestampCursor: $cursor) {
|
|
3309
|
-
timestamp
|
|
3310
|
-
hash
|
|
3311
|
-
account
|
|
3312
|
-
token0 {
|
|
3313
|
-
...PoolTransactionToken
|
|
3314
|
-
}
|
|
3315
|
-
token0Quantity
|
|
3316
|
-
token1 {
|
|
3317
|
-
...PoolTransactionToken
|
|
3318
|
-
}
|
|
3319
|
-
token1Quantity
|
|
3320
|
-
usdValue {
|
|
3321
|
-
value
|
|
3322
|
-
}
|
|
3323
|
-
type
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
${PoolTransactionTokenFragmentDoc}`;
|
|
3328
|
-
|
|
3329
|
-
/**
|
|
3330
|
-
* __useV4PoolTransactionsQuery__
|
|
3331
|
-
*
|
|
3332
|
-
* To run a query within a React component, call `useV4PoolTransactionsQuery` and pass it any options that fit your needs.
|
|
3333
|
-
* When your component renders, `useV4PoolTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3334
|
-
* you can use to render your UI.
|
|
3335
|
-
*
|
|
3336
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3337
|
-
*
|
|
3338
|
-
* @example
|
|
3339
|
-
* const { data, loading, error } = useV4PoolTransactionsQuery({
|
|
3340
|
-
* variables: {
|
|
3341
|
-
* chain: // value for 'chain'
|
|
3342
|
-
* poolId: // value for 'poolId'
|
|
3343
|
-
* first: // value for 'first'
|
|
3344
|
-
* cursor: // value for 'cursor'
|
|
3345
|
-
* },
|
|
3346
|
-
* });
|
|
3347
|
-
*/
|
|
3348
|
-
export function useV4PoolTransactionsQuery(baseOptions: Apollo.QueryHookOptions<V4PoolTransactionsQuery, V4PoolTransactionsQueryVariables>) {
|
|
3349
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3350
|
-
return Apollo.useQuery<V4PoolTransactionsQuery, V4PoolTransactionsQueryVariables>(V4PoolTransactionsDocument, options);
|
|
3351
|
-
}
|
|
3352
|
-
export function useV4PoolTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V4PoolTransactionsQuery, V4PoolTransactionsQueryVariables>) {
|
|
3353
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3354
|
-
return Apollo.useLazyQuery<V4PoolTransactionsQuery, V4PoolTransactionsQueryVariables>(V4PoolTransactionsDocument, options);
|
|
3355
|
-
}
|
|
3356
|
-
export type V4PoolTransactionsQueryHookResult = ReturnType<typeof useV4PoolTransactionsQuery>;
|
|
3357
|
-
export type V4PoolTransactionsLazyQueryHookResult = ReturnType<typeof useV4PoolTransactionsLazyQuery>;
|
|
3358
|
-
export type V4PoolTransactionsQueryResult = Apollo.QueryResult<V4PoolTransactionsQuery, V4PoolTransactionsQueryVariables>;
|
|
3359
|
-
export const V3PoolTransactionsDocument = gql`
|
|
3360
|
-
query V3PoolTransactions($chain: Chain!, $address: String!, $first: Int!, $cursor: Int) {
|
|
3361
|
-
v3Pool(chain: $chain, address: $address) {
|
|
3362
|
-
id
|
|
3363
|
-
transactions(first: $first, timestampCursor: $cursor) {
|
|
3364
|
-
timestamp
|
|
3365
|
-
hash
|
|
3366
|
-
account
|
|
3367
|
-
token0 {
|
|
3368
|
-
...PoolTransactionToken
|
|
3369
|
-
}
|
|
3370
|
-
token0Quantity
|
|
3371
|
-
token1 {
|
|
3372
|
-
...PoolTransactionToken
|
|
3373
|
-
}
|
|
3374
|
-
token1Quantity
|
|
3375
|
-
usdValue {
|
|
3376
|
-
value
|
|
3377
|
-
}
|
|
3378
|
-
type
|
|
3379
|
-
}
|
|
3380
|
-
}
|
|
3381
|
-
}
|
|
3382
|
-
${PoolTransactionTokenFragmentDoc}`;
|
|
3383
|
-
|
|
3384
|
-
/**
|
|
3385
|
-
* __useV3PoolTransactionsQuery__
|
|
3386
|
-
*
|
|
3387
|
-
* To run a query within a React component, call `useV3PoolTransactionsQuery` and pass it any options that fit your needs.
|
|
3388
|
-
* When your component renders, `useV3PoolTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3389
|
-
* you can use to render your UI.
|
|
3390
|
-
*
|
|
3391
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3392
|
-
*
|
|
3393
|
-
* @example
|
|
3394
|
-
* const { data, loading, error } = useV3PoolTransactionsQuery({
|
|
3395
|
-
* variables: {
|
|
3396
|
-
* chain: // value for 'chain'
|
|
3397
|
-
* address: // value for 'address'
|
|
3398
|
-
* first: // value for 'first'
|
|
3399
|
-
* cursor: // value for 'cursor'
|
|
3400
|
-
* },
|
|
3401
|
-
* });
|
|
3402
|
-
*/
|
|
3403
|
-
export function useV3PoolTransactionsQuery(baseOptions: Apollo.QueryHookOptions<V3PoolTransactionsQuery, V3PoolTransactionsQueryVariables>) {
|
|
3404
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3405
|
-
return Apollo.useQuery<V3PoolTransactionsQuery, V3PoolTransactionsQueryVariables>(V3PoolTransactionsDocument, options);
|
|
3406
|
-
}
|
|
3407
|
-
export function useV3PoolTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V3PoolTransactionsQuery, V3PoolTransactionsQueryVariables>) {
|
|
3408
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3409
|
-
return Apollo.useLazyQuery<V3PoolTransactionsQuery, V3PoolTransactionsQueryVariables>(V3PoolTransactionsDocument, options);
|
|
3410
|
-
}
|
|
3411
|
-
export type V3PoolTransactionsQueryHookResult = ReturnType<typeof useV3PoolTransactionsQuery>;
|
|
3412
|
-
export type V3PoolTransactionsLazyQueryHookResult = ReturnType<typeof useV3PoolTransactionsLazyQuery>;
|
|
3413
|
-
export type V3PoolTransactionsQueryResult = Apollo.QueryResult<V3PoolTransactionsQuery, V3PoolTransactionsQueryVariables>;
|
|
3414
|
-
export const V2PairTransactionsDocument = gql`
|
|
3415
|
-
query V2PairTransactions($chain: Chain!, $address: String!, $first: Int!, $cursor: Int) {
|
|
3416
|
-
v2Pair(chain: $chain, address: $address) {
|
|
3417
|
-
id
|
|
3418
|
-
transactions(first: $first, timestampCursor: $cursor) {
|
|
3419
|
-
timestamp
|
|
3420
|
-
hash
|
|
3421
|
-
account
|
|
3422
|
-
token0 {
|
|
3423
|
-
...PoolTransactionToken
|
|
3424
|
-
}
|
|
3425
|
-
token0Quantity
|
|
3426
|
-
token1 {
|
|
3427
|
-
...PoolTransactionToken
|
|
3428
|
-
}
|
|
3429
|
-
token1Quantity
|
|
3430
|
-
usdValue {
|
|
3431
|
-
value
|
|
3432
|
-
}
|
|
3433
|
-
type
|
|
3434
|
-
}
|
|
3435
|
-
}
|
|
3436
|
-
}
|
|
3437
|
-
${PoolTransactionTokenFragmentDoc}`;
|
|
3438
|
-
|
|
3439
|
-
/**
|
|
3440
|
-
* __useV2PairTransactionsQuery__
|
|
3441
|
-
*
|
|
3442
|
-
* To run a query within a React component, call `useV2PairTransactionsQuery` and pass it any options that fit your needs.
|
|
3443
|
-
* When your component renders, `useV2PairTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3444
|
-
* you can use to render your UI.
|
|
3445
|
-
*
|
|
3446
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3447
|
-
*
|
|
3448
|
-
* @example
|
|
3449
|
-
* const { data, loading, error } = useV2PairTransactionsQuery({
|
|
3450
|
-
* variables: {
|
|
3451
|
-
* chain: // value for 'chain'
|
|
3452
|
-
* address: // value for 'address'
|
|
3453
|
-
* first: // value for 'first'
|
|
3454
|
-
* cursor: // value for 'cursor'
|
|
3455
|
-
* },
|
|
3456
|
-
* });
|
|
3457
|
-
*/
|
|
3458
|
-
export function useV2PairTransactionsQuery(baseOptions: Apollo.QueryHookOptions<V2PairTransactionsQuery, V2PairTransactionsQueryVariables>) {
|
|
3459
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3460
|
-
return Apollo.useQuery<V2PairTransactionsQuery, V2PairTransactionsQueryVariables>(V2PairTransactionsDocument, options);
|
|
3461
|
-
}
|
|
3462
|
-
export function useV2PairTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V2PairTransactionsQuery, V2PairTransactionsQueryVariables>) {
|
|
3463
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3464
|
-
return Apollo.useLazyQuery<V2PairTransactionsQuery, V2PairTransactionsQueryVariables>(V2PairTransactionsDocument, options);
|
|
3465
|
-
}
|
|
3466
|
-
export type V2PairTransactionsQueryHookResult = ReturnType<typeof useV2PairTransactionsQuery>;
|
|
3467
|
-
export type V2PairTransactionsLazyQueryHookResult = ReturnType<typeof useV2PairTransactionsLazyQuery>;
|
|
3468
|
-
export type V2PairTransactionsQueryResult = Apollo.QueryResult<V2PairTransactionsQuery, V2PairTransactionsQueryVariables>;
|
|
3469
|
-
export const QuickTokenBalancesWebDocument = gql`
|
|
3470
|
-
query QuickTokenBalancesWeb($ownerAddress: String!, $chains: [Chain!]!) {
|
|
3471
|
-
portfolios(ownerAddresses: [$ownerAddress], chains: $chains) {
|
|
3472
|
-
id
|
|
3473
|
-
tokenBalances {
|
|
3474
|
-
...QuickTokenBalanceParts
|
|
3475
|
-
}
|
|
3476
|
-
}
|
|
3477
|
-
}
|
|
3478
|
-
${QuickTokenBalancePartsFragmentDoc}`;
|
|
3479
|
-
|
|
3480
|
-
/**
|
|
3481
|
-
* __useQuickTokenBalancesWebQuery__
|
|
3482
|
-
*
|
|
3483
|
-
* To run a query within a React component, call `useQuickTokenBalancesWebQuery` and pass it any options that fit your needs.
|
|
3484
|
-
* When your component renders, `useQuickTokenBalancesWebQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3485
|
-
* you can use to render your UI.
|
|
3486
|
-
*
|
|
3487
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3488
|
-
*
|
|
3489
|
-
* @example
|
|
3490
|
-
* const { data, loading, error } = useQuickTokenBalancesWebQuery({
|
|
3491
|
-
* variables: {
|
|
3492
|
-
* ownerAddress: // value for 'ownerAddress'
|
|
3493
|
-
* chains: // value for 'chains'
|
|
3494
|
-
* },
|
|
3495
|
-
* });
|
|
3496
|
-
*/
|
|
3497
|
-
export function useQuickTokenBalancesWebQuery(baseOptions: Apollo.QueryHookOptions<QuickTokenBalancesWebQuery, QuickTokenBalancesWebQueryVariables>) {
|
|
3498
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3499
|
-
return Apollo.useQuery<QuickTokenBalancesWebQuery, QuickTokenBalancesWebQueryVariables>(QuickTokenBalancesWebDocument, options);
|
|
3500
|
-
}
|
|
3501
|
-
export function useQuickTokenBalancesWebLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<QuickTokenBalancesWebQuery, QuickTokenBalancesWebQueryVariables>) {
|
|
3502
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3503
|
-
return Apollo.useLazyQuery<QuickTokenBalancesWebQuery, QuickTokenBalancesWebQueryVariables>(QuickTokenBalancesWebDocument, options);
|
|
3504
|
-
}
|
|
3505
|
-
export type QuickTokenBalancesWebQueryHookResult = ReturnType<typeof useQuickTokenBalancesWebQuery>;
|
|
3506
|
-
export type QuickTokenBalancesWebLazyQueryHookResult = ReturnType<typeof useQuickTokenBalancesWebLazyQuery>;
|
|
3507
|
-
export type QuickTokenBalancesWebQueryResult = Apollo.QueryResult<QuickTokenBalancesWebQuery, QuickTokenBalancesWebQueryVariables>;
|
|
3508
|
-
export const TokenWebDocument = gql`
|
|
3509
|
-
query TokenWeb($chain: Chain!, $address: String = null) {
|
|
3510
|
-
token(chain: $chain, address: $address) {
|
|
3511
|
-
id
|
|
3512
|
-
decimals
|
|
3513
|
-
name
|
|
3514
|
-
chain
|
|
3515
|
-
address
|
|
3516
|
-
symbol
|
|
3517
|
-
standard
|
|
3518
|
-
market(currency: USD) {
|
|
3519
|
-
id
|
|
3520
|
-
totalValueLocked {
|
|
3521
|
-
id
|
|
3522
|
-
value
|
|
3523
|
-
currency
|
|
3524
|
-
}
|
|
3525
|
-
price {
|
|
3526
|
-
id
|
|
3527
|
-
value
|
|
3528
|
-
currency
|
|
3529
|
-
}
|
|
3530
|
-
volume24H: volume(duration: DAY) {
|
|
3531
|
-
id
|
|
3532
|
-
value
|
|
3533
|
-
currency
|
|
3534
|
-
}
|
|
3535
|
-
priceHigh52W: priceHighLow(duration: YEAR, highLow: HIGH) {
|
|
3536
|
-
id
|
|
3537
|
-
value
|
|
3538
|
-
}
|
|
3539
|
-
priceLow52W: priceHighLow(duration: YEAR, highLow: LOW) {
|
|
3540
|
-
id
|
|
3541
|
-
value
|
|
3542
|
-
}
|
|
3543
|
-
}
|
|
3544
|
-
project {
|
|
3545
|
-
id
|
|
3546
|
-
name
|
|
3547
|
-
description
|
|
3548
|
-
homepageUrl
|
|
3549
|
-
twitterName
|
|
3550
|
-
logoUrl
|
|
3551
|
-
isSpam
|
|
3552
|
-
tokens {
|
|
3553
|
-
id
|
|
3554
|
-
chain
|
|
3555
|
-
address
|
|
3556
|
-
}
|
|
3557
|
-
markets(currencies: [USD]) {
|
|
3558
|
-
id
|
|
3559
|
-
fullyDilutedValuation {
|
|
3560
|
-
id
|
|
3561
|
-
value
|
|
3562
|
-
currency
|
|
3563
|
-
}
|
|
3564
|
-
marketCap {
|
|
3565
|
-
id
|
|
3566
|
-
value
|
|
3567
|
-
currency
|
|
3568
|
-
}
|
|
3569
|
-
priceHigh52W: priceHighLow(duration: YEAR, highLow: HIGH) {
|
|
3570
|
-
id
|
|
3571
|
-
value
|
|
3572
|
-
}
|
|
3573
|
-
priceLow52W: priceHighLow(duration: YEAR, highLow: LOW) {
|
|
3574
|
-
id
|
|
3575
|
-
value
|
|
3576
|
-
}
|
|
3577
|
-
}
|
|
3578
|
-
}
|
|
3579
|
-
}
|
|
3580
|
-
}
|
|
3581
|
-
`;
|
|
3582
|
-
|
|
3583
|
-
/**
|
|
3584
|
-
* __useTokenWebQuery__
|
|
3585
|
-
*
|
|
3586
|
-
* To run a query within a React component, call `useTokenWebQuery` and pass it any options that fit your needs.
|
|
3587
|
-
* When your component renders, `useTokenWebQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3588
|
-
* you can use to render your UI.
|
|
3589
|
-
*
|
|
3590
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3591
|
-
*
|
|
3592
|
-
* @example
|
|
3593
|
-
* const { data, loading, error } = useTokenWebQuery({
|
|
3594
|
-
* variables: {
|
|
3595
|
-
* chain: // value for 'chain'
|
|
3596
|
-
* address: // value for 'address'
|
|
3597
|
-
* },
|
|
3598
|
-
* });
|
|
3599
|
-
*/
|
|
3600
|
-
export function useTokenWebQuery(baseOptions: Apollo.QueryHookOptions<TokenWebQuery, TokenWebQueryVariables>) {
|
|
3601
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3602
|
-
return Apollo.useQuery<TokenWebQuery, TokenWebQueryVariables>(TokenWebDocument, options);
|
|
3603
|
-
}
|
|
3604
|
-
export function useTokenWebLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenWebQuery, TokenWebQueryVariables>) {
|
|
3605
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3606
|
-
return Apollo.useLazyQuery<TokenWebQuery, TokenWebQueryVariables>(TokenWebDocument, options);
|
|
3607
|
-
}
|
|
3608
|
-
export type TokenWebQueryHookResult = ReturnType<typeof useTokenWebQuery>;
|
|
3609
|
-
export type TokenWebLazyQueryHookResult = ReturnType<typeof useTokenWebLazyQuery>;
|
|
3610
|
-
export type TokenWebQueryResult = Apollo.QueryResult<TokenWebQuery, TokenWebQueryVariables>;
|
|
3611
|
-
export const TokenProjectWebDocument = gql`
|
|
3612
|
-
query TokenProjectWeb($chain: Chain!, $address: String = null) {
|
|
3613
|
-
token(chain: $chain, address: $address) {
|
|
3614
|
-
id
|
|
3615
|
-
decimals
|
|
3616
|
-
name
|
|
3617
|
-
chain
|
|
3618
|
-
address
|
|
3619
|
-
symbol
|
|
3620
|
-
standard
|
|
3621
|
-
project {
|
|
3622
|
-
id
|
|
3623
|
-
description
|
|
3624
|
-
homepageUrl
|
|
3625
|
-
twitterName
|
|
3626
|
-
logoUrl
|
|
3627
|
-
isSpam
|
|
3628
|
-
tokens {
|
|
3629
|
-
id
|
|
3630
|
-
chain
|
|
3631
|
-
address
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
}
|
|
3635
|
-
}
|
|
3636
|
-
`;
|
|
3637
|
-
|
|
3638
|
-
/**
|
|
3639
|
-
* __useTokenProjectWebQuery__
|
|
3640
|
-
*
|
|
3641
|
-
* To run a query within a React component, call `useTokenProjectWebQuery` and pass it any options that fit your needs.
|
|
3642
|
-
* When your component renders, `useTokenProjectWebQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3643
|
-
* you can use to render your UI.
|
|
3644
|
-
*
|
|
3645
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3646
|
-
*
|
|
3647
|
-
* @example
|
|
3648
|
-
* const { data, loading, error } = useTokenProjectWebQuery({
|
|
3649
|
-
* variables: {
|
|
3650
|
-
* chain: // value for 'chain'
|
|
3651
|
-
* address: // value for 'address'
|
|
3652
|
-
* },
|
|
3653
|
-
* });
|
|
3654
|
-
*/
|
|
3655
|
-
export function useTokenProjectWebQuery(baseOptions: Apollo.QueryHookOptions<TokenProjectWebQuery, TokenProjectWebQueryVariables>) {
|
|
3656
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3657
|
-
return Apollo.useQuery<TokenProjectWebQuery, TokenProjectWebQueryVariables>(TokenProjectWebDocument, options);
|
|
3658
|
-
}
|
|
3659
|
-
export function useTokenProjectWebLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenProjectWebQuery, TokenProjectWebQueryVariables>) {
|
|
3660
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3661
|
-
return Apollo.useLazyQuery<TokenProjectWebQuery, TokenProjectWebQueryVariables>(TokenProjectWebDocument, options);
|
|
3662
|
-
}
|
|
3663
|
-
export type TokenProjectWebQueryHookResult = ReturnType<typeof useTokenProjectWebQuery>;
|
|
3664
|
-
export type TokenProjectWebLazyQueryHookResult = ReturnType<typeof useTokenProjectWebLazyQuery>;
|
|
3665
|
-
export type TokenProjectWebQueryResult = Apollo.QueryResult<TokenProjectWebQuery, TokenProjectWebQueryVariables>;
|
|
3666
|
-
export const TokenPriceDocument = gql`
|
|
3667
|
-
query TokenPrice($chain: Chain!, $address: String = null, $duration: HistoryDuration!, $fallback: Boolean = false) {
|
|
3668
|
-
token(chain: $chain, address: $address) {
|
|
3669
|
-
id
|
|
3670
|
-
address
|
|
3671
|
-
chain
|
|
3672
|
-
market(currency: USD) {
|
|
3673
|
-
id
|
|
3674
|
-
price {
|
|
3675
|
-
id
|
|
3676
|
-
value
|
|
3677
|
-
}
|
|
3678
|
-
ohlc(duration: $duration) @skip(if: $fallback) {
|
|
3679
|
-
...CandlestickOHLC
|
|
3680
|
-
}
|
|
3681
|
-
priceHistory(duration: $duration) @include(if: $fallback) {
|
|
3682
|
-
...PriceHistoryFallback
|
|
3683
|
-
}
|
|
3684
|
-
}
|
|
3685
|
-
}
|
|
3686
|
-
}
|
|
3687
|
-
${CandlestickOhlcFragmentDoc}
|
|
3688
|
-
${PriceHistoryFallbackFragmentDoc}`;
|
|
3689
|
-
|
|
3690
|
-
/**
|
|
3691
|
-
* __useTokenPriceQuery__
|
|
3692
|
-
*
|
|
3693
|
-
* To run a query within a React component, call `useTokenPriceQuery` and pass it any options that fit your needs.
|
|
3694
|
-
* When your component renders, `useTokenPriceQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3695
|
-
* you can use to render your UI.
|
|
3696
|
-
*
|
|
3697
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3698
|
-
*
|
|
3699
|
-
* @example
|
|
3700
|
-
* const { data, loading, error } = useTokenPriceQuery({
|
|
3701
|
-
* variables: {
|
|
3702
|
-
* chain: // value for 'chain'
|
|
3703
|
-
* address: // value for 'address'
|
|
3704
|
-
* duration: // value for 'duration'
|
|
3705
|
-
* fallback: // value for 'fallback'
|
|
3706
|
-
* },
|
|
3707
|
-
* });
|
|
3708
|
-
*/
|
|
3709
|
-
export function useTokenPriceQuery(baseOptions: Apollo.QueryHookOptions<TokenPriceQuery, TokenPriceQueryVariables>) {
|
|
3710
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3711
|
-
return Apollo.useQuery<TokenPriceQuery, TokenPriceQueryVariables>(TokenPriceDocument, options);
|
|
3712
|
-
}
|
|
3713
|
-
export function useTokenPriceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenPriceQuery, TokenPriceQueryVariables>) {
|
|
3714
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3715
|
-
return Apollo.useLazyQuery<TokenPriceQuery, TokenPriceQueryVariables>(TokenPriceDocument, options);
|
|
3716
|
-
}
|
|
3717
|
-
export type TokenPriceQueryHookResult = ReturnType<typeof useTokenPriceQuery>;
|
|
3718
|
-
export type TokenPriceLazyQueryHookResult = ReturnType<typeof useTokenPriceLazyQuery>;
|
|
3719
|
-
export type TokenPriceQueryResult = Apollo.QueryResult<TokenPriceQuery, TokenPriceQueryVariables>;
|
|
3720
|
-
export const TokenHistoricalVolumesDocument = gql`
|
|
3721
|
-
query TokenHistoricalVolumes($chain: Chain!, $address: String = null, $duration: HistoryDuration!) {
|
|
3722
|
-
token(chain: $chain, address: $address) {
|
|
3723
|
-
id
|
|
3724
|
-
address
|
|
3725
|
-
chain
|
|
3726
|
-
market(currency: USD) {
|
|
3727
|
-
id
|
|
3728
|
-
historicalVolume(duration: $duration) {
|
|
3729
|
-
id
|
|
3730
|
-
timestamp
|
|
3731
|
-
value
|
|
3732
|
-
}
|
|
3733
|
-
}
|
|
3734
|
-
}
|
|
3735
|
-
}
|
|
3736
|
-
`;
|
|
3737
|
-
|
|
3738
|
-
/**
|
|
3739
|
-
* __useTokenHistoricalVolumesQuery__
|
|
3740
|
-
*
|
|
3741
|
-
* To run a query within a React component, call `useTokenHistoricalVolumesQuery` and pass it any options that fit your needs.
|
|
3742
|
-
* When your component renders, `useTokenHistoricalVolumesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3743
|
-
* you can use to render your UI.
|
|
3744
|
-
*
|
|
3745
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3746
|
-
*
|
|
3747
|
-
* @example
|
|
3748
|
-
* const { data, loading, error } = useTokenHistoricalVolumesQuery({
|
|
3749
|
-
* variables: {
|
|
3750
|
-
* chain: // value for 'chain'
|
|
3751
|
-
* address: // value for 'address'
|
|
3752
|
-
* duration: // value for 'duration'
|
|
3753
|
-
* },
|
|
3754
|
-
* });
|
|
3755
|
-
*/
|
|
3756
|
-
export function useTokenHistoricalVolumesQuery(baseOptions: Apollo.QueryHookOptions<TokenHistoricalVolumesQuery, TokenHistoricalVolumesQueryVariables>) {
|
|
3757
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3758
|
-
return Apollo.useQuery<TokenHistoricalVolumesQuery, TokenHistoricalVolumesQueryVariables>(TokenHistoricalVolumesDocument, options);
|
|
3759
|
-
}
|
|
3760
|
-
export function useTokenHistoricalVolumesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenHistoricalVolumesQuery, TokenHistoricalVolumesQueryVariables>) {
|
|
3761
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3762
|
-
return Apollo.useLazyQuery<TokenHistoricalVolumesQuery, TokenHistoricalVolumesQueryVariables>(TokenHistoricalVolumesDocument, options);
|
|
3763
|
-
}
|
|
3764
|
-
export type TokenHistoricalVolumesQueryHookResult = ReturnType<typeof useTokenHistoricalVolumesQuery>;
|
|
3765
|
-
export type TokenHistoricalVolumesLazyQueryHookResult = ReturnType<typeof useTokenHistoricalVolumesLazyQuery>;
|
|
3766
|
-
export type TokenHistoricalVolumesQueryResult = Apollo.QueryResult<TokenHistoricalVolumesQuery, TokenHistoricalVolumesQueryVariables>;
|
|
3767
|
-
export const TokenHistoricalTvlsDocument = gql`
|
|
3768
|
-
query TokenHistoricalTvls($chain: Chain!, $address: String = null, $duration: HistoryDuration!) {
|
|
3769
|
-
token(chain: $chain, address: $address) {
|
|
3770
|
-
id
|
|
3771
|
-
address
|
|
3772
|
-
chain
|
|
3773
|
-
market(currency: USD) {
|
|
3774
|
-
id
|
|
3775
|
-
historicalTvl(duration: $duration) {
|
|
3776
|
-
id
|
|
3777
|
-
timestamp
|
|
3778
|
-
value
|
|
3779
|
-
}
|
|
3780
|
-
totalValueLocked {
|
|
3781
|
-
id
|
|
3782
|
-
value
|
|
3783
|
-
currency
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
`;
|
|
3789
|
-
|
|
3790
|
-
/**
|
|
3791
|
-
* __useTokenHistoricalTvlsQuery__
|
|
3792
|
-
*
|
|
3793
|
-
* To run a query within a React component, call `useTokenHistoricalTvlsQuery` and pass it any options that fit your needs.
|
|
3794
|
-
* When your component renders, `useTokenHistoricalTvlsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3795
|
-
* you can use to render your UI.
|
|
3796
|
-
*
|
|
3797
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3798
|
-
*
|
|
3799
|
-
* @example
|
|
3800
|
-
* const { data, loading, error } = useTokenHistoricalTvlsQuery({
|
|
3801
|
-
* variables: {
|
|
3802
|
-
* chain: // value for 'chain'
|
|
3803
|
-
* address: // value for 'address'
|
|
3804
|
-
* duration: // value for 'duration'
|
|
3805
|
-
* },
|
|
3806
|
-
* });
|
|
3807
|
-
*/
|
|
3808
|
-
export function useTokenHistoricalTvlsQuery(baseOptions: Apollo.QueryHookOptions<TokenHistoricalTvlsQuery, TokenHistoricalTvlsQueryVariables>) {
|
|
3809
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3810
|
-
return Apollo.useQuery<TokenHistoricalTvlsQuery, TokenHistoricalTvlsQueryVariables>(TokenHistoricalTvlsDocument, options);
|
|
3811
|
-
}
|
|
3812
|
-
export function useTokenHistoricalTvlsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TokenHistoricalTvlsQuery, TokenHistoricalTvlsQueryVariables>) {
|
|
3813
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3814
|
-
return Apollo.useLazyQuery<TokenHistoricalTvlsQuery, TokenHistoricalTvlsQueryVariables>(TokenHistoricalTvlsDocument, options);
|
|
3815
|
-
}
|
|
3816
|
-
export type TokenHistoricalTvlsQueryHookResult = ReturnType<typeof useTokenHistoricalTvlsQuery>;
|
|
3817
|
-
export type TokenHistoricalTvlsLazyQueryHookResult = ReturnType<typeof useTokenHistoricalTvlsLazyQuery>;
|
|
3818
|
-
export type TokenHistoricalTvlsQueryResult = Apollo.QueryResult<TokenHistoricalTvlsQuery, TokenHistoricalTvlsQueryVariables>;
|
|
3819
|
-
export const V4TokenTransactionsDocument = gql`
|
|
3820
|
-
query V4TokenTransactions($chain: Chain!, $address: String!, $first: Int!, $cursor: Int) {
|
|
3821
|
-
token(chain: $chain, address: $address) {
|
|
3822
|
-
...TransactionToken
|
|
3823
|
-
v4Transactions(first: $first, timestampCursor: $cursor) {
|
|
3824
|
-
...PoolTx
|
|
3825
|
-
}
|
|
3826
|
-
}
|
|
3827
|
-
}
|
|
3828
|
-
${TransactionTokenFragmentDoc}
|
|
3829
|
-
${PoolTxFragmentDoc}`;
|
|
3830
|
-
|
|
3831
|
-
/**
|
|
3832
|
-
* __useV4TokenTransactionsQuery__
|
|
3833
|
-
*
|
|
3834
|
-
* To run a query within a React component, call `useV4TokenTransactionsQuery` and pass it any options that fit your needs.
|
|
3835
|
-
* When your component renders, `useV4TokenTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3836
|
-
* you can use to render your UI.
|
|
3837
|
-
*
|
|
3838
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3839
|
-
*
|
|
3840
|
-
* @example
|
|
3841
|
-
* const { data, loading, error } = useV4TokenTransactionsQuery({
|
|
3842
|
-
* variables: {
|
|
3843
|
-
* chain: // value for 'chain'
|
|
3844
|
-
* address: // value for 'address'
|
|
3845
|
-
* first: // value for 'first'
|
|
3846
|
-
* cursor: // value for 'cursor'
|
|
3847
|
-
* },
|
|
3848
|
-
* });
|
|
3849
|
-
*/
|
|
3850
|
-
export function useV4TokenTransactionsQuery(baseOptions: Apollo.QueryHookOptions<V4TokenTransactionsQuery, V4TokenTransactionsQueryVariables>) {
|
|
3851
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3852
|
-
return Apollo.useQuery<V4TokenTransactionsQuery, V4TokenTransactionsQueryVariables>(V4TokenTransactionsDocument, options);
|
|
3853
|
-
}
|
|
3854
|
-
export function useV4TokenTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V4TokenTransactionsQuery, V4TokenTransactionsQueryVariables>) {
|
|
3855
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3856
|
-
return Apollo.useLazyQuery<V4TokenTransactionsQuery, V4TokenTransactionsQueryVariables>(V4TokenTransactionsDocument, options);
|
|
3857
|
-
}
|
|
3858
|
-
export type V4TokenTransactionsQueryHookResult = ReturnType<typeof useV4TokenTransactionsQuery>;
|
|
3859
|
-
export type V4TokenTransactionsLazyQueryHookResult = ReturnType<typeof useV4TokenTransactionsLazyQuery>;
|
|
3860
|
-
export type V4TokenTransactionsQueryResult = Apollo.QueryResult<V4TokenTransactionsQuery, V4TokenTransactionsQueryVariables>;
|
|
3861
|
-
export const V3TokenTransactionsDocument = gql`
|
|
3862
|
-
query V3TokenTransactions($chain: Chain!, $address: String!, $first: Int!, $cursor: Int) {
|
|
3863
|
-
token(chain: $chain, address: $address) {
|
|
3864
|
-
...TransactionToken
|
|
3865
|
-
v3Transactions(first: $first, timestampCursor: $cursor) {
|
|
3866
|
-
...PoolTx
|
|
3867
|
-
}
|
|
3868
|
-
}
|
|
3869
|
-
}
|
|
3870
|
-
${TransactionTokenFragmentDoc}
|
|
3871
|
-
${PoolTxFragmentDoc}`;
|
|
3872
|
-
|
|
3873
|
-
/**
|
|
3874
|
-
* __useV3TokenTransactionsQuery__
|
|
3875
|
-
*
|
|
3876
|
-
* To run a query within a React component, call `useV3TokenTransactionsQuery` and pass it any options that fit your needs.
|
|
3877
|
-
* When your component renders, `useV3TokenTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3878
|
-
* you can use to render your UI.
|
|
3879
|
-
*
|
|
3880
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3881
|
-
*
|
|
3882
|
-
* @example
|
|
3883
|
-
* const { data, loading, error } = useV3TokenTransactionsQuery({
|
|
3884
|
-
* variables: {
|
|
3885
|
-
* chain: // value for 'chain'
|
|
3886
|
-
* address: // value for 'address'
|
|
3887
|
-
* first: // value for 'first'
|
|
3888
|
-
* cursor: // value for 'cursor'
|
|
3889
|
-
* },
|
|
3890
|
-
* });
|
|
3891
|
-
*/
|
|
3892
|
-
export function useV3TokenTransactionsQuery(baseOptions: Apollo.QueryHookOptions<V3TokenTransactionsQuery, V3TokenTransactionsQueryVariables>) {
|
|
3893
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3894
|
-
return Apollo.useQuery<V3TokenTransactionsQuery, V3TokenTransactionsQueryVariables>(V3TokenTransactionsDocument, options);
|
|
3895
|
-
}
|
|
3896
|
-
export function useV3TokenTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V3TokenTransactionsQuery, V3TokenTransactionsQueryVariables>) {
|
|
3897
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3898
|
-
return Apollo.useLazyQuery<V3TokenTransactionsQuery, V3TokenTransactionsQueryVariables>(V3TokenTransactionsDocument, options);
|
|
3899
|
-
}
|
|
3900
|
-
export type V3TokenTransactionsQueryHookResult = ReturnType<typeof useV3TokenTransactionsQuery>;
|
|
3901
|
-
export type V3TokenTransactionsLazyQueryHookResult = ReturnType<typeof useV3TokenTransactionsLazyQuery>;
|
|
3902
|
-
export type V3TokenTransactionsQueryResult = Apollo.QueryResult<V3TokenTransactionsQuery, V3TokenTransactionsQueryVariables>;
|
|
3903
|
-
export const V2TokenTransactionsDocument = gql`
|
|
3904
|
-
query V2TokenTransactions($chain: Chain!, $address: String!, $first: Int!, $cursor: Int) {
|
|
3905
|
-
token(chain: $chain, address: $address) {
|
|
3906
|
-
...TransactionToken
|
|
3907
|
-
v2Transactions(first: $first, timestampCursor: $cursor) {
|
|
3908
|
-
...PoolTx
|
|
3909
|
-
}
|
|
3910
|
-
}
|
|
3911
|
-
}
|
|
3912
|
-
${TransactionTokenFragmentDoc}
|
|
3913
|
-
${PoolTxFragmentDoc}`;
|
|
3914
|
-
|
|
3915
|
-
/**
|
|
3916
|
-
* __useV2TokenTransactionsQuery__
|
|
3917
|
-
*
|
|
3918
|
-
* To run a query within a React component, call `useV2TokenTransactionsQuery` and pass it any options that fit your needs.
|
|
3919
|
-
* When your component renders, `useV2TokenTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3920
|
-
* you can use to render your UI.
|
|
3921
|
-
*
|
|
3922
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3923
|
-
*
|
|
3924
|
-
* @example
|
|
3925
|
-
* const { data, loading, error } = useV2TokenTransactionsQuery({
|
|
3926
|
-
* variables: {
|
|
3927
|
-
* chain: // value for 'chain'
|
|
3928
|
-
* address: // value for 'address'
|
|
3929
|
-
* first: // value for 'first'
|
|
3930
|
-
* cursor: // value for 'cursor'
|
|
3931
|
-
* },
|
|
3932
|
-
* });
|
|
3933
|
-
*/
|
|
3934
|
-
export function useV2TokenTransactionsQuery(baseOptions: Apollo.QueryHookOptions<V2TokenTransactionsQuery, V2TokenTransactionsQueryVariables>) {
|
|
3935
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3936
|
-
return Apollo.useQuery<V2TokenTransactionsQuery, V2TokenTransactionsQueryVariables>(V2TokenTransactionsDocument, options);
|
|
3937
|
-
}
|
|
3938
|
-
export function useV2TokenTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V2TokenTransactionsQuery, V2TokenTransactionsQueryVariables>) {
|
|
3939
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
3940
|
-
return Apollo.useLazyQuery<V2TokenTransactionsQuery, V2TokenTransactionsQueryVariables>(V2TokenTransactionsDocument, options);
|
|
3941
|
-
}
|
|
3942
|
-
export type V2TokenTransactionsQueryHookResult = ReturnType<typeof useV2TokenTransactionsQuery>;
|
|
3943
|
-
export type V2TokenTransactionsLazyQueryHookResult = ReturnType<typeof useV2TokenTransactionsLazyQuery>;
|
|
3944
|
-
export type V2TokenTransactionsQueryResult = Apollo.QueryResult<V2TokenTransactionsQuery, V2TokenTransactionsQueryVariables>;
|
|
3945
|
-
export const TopV4PoolsDocument = gql`
|
|
3946
|
-
query TopV4Pools($chain: Chain!, $first: Int!, $cursor: Float, $tokenAddress: String) {
|
|
3947
|
-
topV4Pools(
|
|
3948
|
-
first: $first
|
|
3949
|
-
chain: $chain
|
|
3950
|
-
tokenFilter: $tokenAddress
|
|
3951
|
-
tvlCursor: $cursor
|
|
3952
|
-
) {
|
|
3953
|
-
id
|
|
3954
|
-
protocolVersion
|
|
3955
|
-
poolId
|
|
3956
|
-
isDynamicFee
|
|
3957
|
-
hook {
|
|
3958
|
-
id
|
|
3959
|
-
address
|
|
3960
|
-
}
|
|
3961
|
-
totalLiquidity {
|
|
3962
|
-
value
|
|
3963
|
-
}
|
|
3964
|
-
feeTier
|
|
3965
|
-
token0 {
|
|
3966
|
-
...SimpleTokenDetails
|
|
3967
|
-
}
|
|
3968
|
-
token1 {
|
|
3969
|
-
...SimpleTokenDetails
|
|
3970
|
-
}
|
|
3971
|
-
txCount
|
|
3972
|
-
volume24h: cumulativeVolume(duration: DAY) {
|
|
3973
|
-
value
|
|
3974
|
-
}
|
|
3975
|
-
volume30d: cumulativeVolume(duration: MONTH) {
|
|
3976
|
-
value
|
|
3977
|
-
}
|
|
3978
|
-
}
|
|
3979
|
-
}
|
|
3980
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
3981
|
-
|
|
3982
|
-
/**
|
|
3983
|
-
* __useTopV4PoolsQuery__
|
|
3984
|
-
*
|
|
3985
|
-
* To run a query within a React component, call `useTopV4PoolsQuery` and pass it any options that fit your needs.
|
|
3986
|
-
* When your component renders, `useTopV4PoolsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3987
|
-
* you can use to render your UI.
|
|
3988
|
-
*
|
|
3989
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3990
|
-
*
|
|
3991
|
-
* @example
|
|
3992
|
-
* const { data, loading, error } = useTopV4PoolsQuery({
|
|
3993
|
-
* variables: {
|
|
3994
|
-
* chain: // value for 'chain'
|
|
3995
|
-
* first: // value for 'first'
|
|
3996
|
-
* cursor: // value for 'cursor'
|
|
3997
|
-
* tokenAddress: // value for 'tokenAddress'
|
|
3998
|
-
* },
|
|
3999
|
-
* });
|
|
4000
|
-
*/
|
|
4001
|
-
export function useTopV4PoolsQuery(baseOptions: Apollo.QueryHookOptions<TopV4PoolsQuery, TopV4PoolsQueryVariables>) {
|
|
4002
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4003
|
-
return Apollo.useQuery<TopV4PoolsQuery, TopV4PoolsQueryVariables>(TopV4PoolsDocument, options);
|
|
4004
|
-
}
|
|
4005
|
-
export function useTopV4PoolsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TopV4PoolsQuery, TopV4PoolsQueryVariables>) {
|
|
4006
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4007
|
-
return Apollo.useLazyQuery<TopV4PoolsQuery, TopV4PoolsQueryVariables>(TopV4PoolsDocument, options);
|
|
4008
|
-
}
|
|
4009
|
-
export type TopV4PoolsQueryHookResult = ReturnType<typeof useTopV4PoolsQuery>;
|
|
4010
|
-
export type TopV4PoolsLazyQueryHookResult = ReturnType<typeof useTopV4PoolsLazyQuery>;
|
|
4011
|
-
export type TopV4PoolsQueryResult = Apollo.QueryResult<TopV4PoolsQuery, TopV4PoolsQueryVariables>;
|
|
4012
|
-
export const TopV3PoolsDocument = gql`
|
|
4013
|
-
query TopV3Pools($chain: Chain!, $first: Int!, $cursor: Float, $tokenAddress: String) {
|
|
4014
|
-
topV3Pools(
|
|
4015
|
-
first: $first
|
|
4016
|
-
chain: $chain
|
|
4017
|
-
tokenFilter: $tokenAddress
|
|
4018
|
-
tvlCursor: $cursor
|
|
4019
|
-
) {
|
|
4020
|
-
id
|
|
4021
|
-
protocolVersion
|
|
4022
|
-
address
|
|
4023
|
-
totalLiquidity {
|
|
4024
|
-
value
|
|
4025
|
-
}
|
|
4026
|
-
feeTier
|
|
4027
|
-
token0 {
|
|
4028
|
-
...SimpleTokenDetails
|
|
4029
|
-
}
|
|
4030
|
-
token1 {
|
|
4031
|
-
...SimpleTokenDetails
|
|
4032
|
-
}
|
|
4033
|
-
txCount
|
|
4034
|
-
volume24h: cumulativeVolume(duration: DAY) {
|
|
4035
|
-
value
|
|
4036
|
-
}
|
|
4037
|
-
volume30d: cumulativeVolume(duration: MONTH) {
|
|
4038
|
-
value
|
|
4039
|
-
}
|
|
4040
|
-
}
|
|
4041
|
-
}
|
|
4042
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
4043
|
-
|
|
4044
|
-
/**
|
|
4045
|
-
* __useTopV3PoolsQuery__
|
|
4046
|
-
*
|
|
4047
|
-
* To run a query within a React component, call `useTopV3PoolsQuery` and pass it any options that fit your needs.
|
|
4048
|
-
* When your component renders, `useTopV3PoolsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4049
|
-
* you can use to render your UI.
|
|
4050
|
-
*
|
|
4051
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4052
|
-
*
|
|
4053
|
-
* @example
|
|
4054
|
-
* const { data, loading, error } = useTopV3PoolsQuery({
|
|
4055
|
-
* variables: {
|
|
4056
|
-
* chain: // value for 'chain'
|
|
4057
|
-
* first: // value for 'first'
|
|
4058
|
-
* cursor: // value for 'cursor'
|
|
4059
|
-
* tokenAddress: // value for 'tokenAddress'
|
|
4060
|
-
* },
|
|
4061
|
-
* });
|
|
4062
|
-
*/
|
|
4063
|
-
export function useTopV3PoolsQuery(baseOptions: Apollo.QueryHookOptions<TopV3PoolsQuery, TopV3PoolsQueryVariables>) {
|
|
4064
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4065
|
-
return Apollo.useQuery<TopV3PoolsQuery, TopV3PoolsQueryVariables>(TopV3PoolsDocument, options);
|
|
4066
|
-
}
|
|
4067
|
-
export function useTopV3PoolsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TopV3PoolsQuery, TopV3PoolsQueryVariables>) {
|
|
4068
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4069
|
-
return Apollo.useLazyQuery<TopV3PoolsQuery, TopV3PoolsQueryVariables>(TopV3PoolsDocument, options);
|
|
4070
|
-
}
|
|
4071
|
-
export type TopV3PoolsQueryHookResult = ReturnType<typeof useTopV3PoolsQuery>;
|
|
4072
|
-
export type TopV3PoolsLazyQueryHookResult = ReturnType<typeof useTopV3PoolsLazyQuery>;
|
|
4073
|
-
export type TopV3PoolsQueryResult = Apollo.QueryResult<TopV3PoolsQuery, TopV3PoolsQueryVariables>;
|
|
4074
|
-
export const TopV2PairsDocument = gql`
|
|
4075
|
-
query TopV2Pairs($chain: Chain!, $first: Int!, $cursor: Float, $tokenAddress: String) {
|
|
4076
|
-
topV2Pairs(
|
|
4077
|
-
first: $first
|
|
4078
|
-
chain: $chain
|
|
4079
|
-
tokenFilter: $tokenAddress
|
|
4080
|
-
tvlCursor: $cursor
|
|
4081
|
-
) {
|
|
4082
|
-
id
|
|
4083
|
-
protocolVersion
|
|
4084
|
-
address
|
|
4085
|
-
totalLiquidity {
|
|
4086
|
-
value
|
|
4087
|
-
}
|
|
4088
|
-
token0 {
|
|
4089
|
-
...SimpleTokenDetails
|
|
4090
|
-
}
|
|
4091
|
-
token1 {
|
|
4092
|
-
...SimpleTokenDetails
|
|
4093
|
-
}
|
|
4094
|
-
txCount
|
|
4095
|
-
volume24h: cumulativeVolume(duration: DAY) {
|
|
4096
|
-
value
|
|
4097
|
-
}
|
|
4098
|
-
volume30d: cumulativeVolume(duration: MONTH) {
|
|
4099
|
-
value
|
|
4100
|
-
}
|
|
4101
|
-
}
|
|
4102
|
-
}
|
|
4103
|
-
${SimpleTokenDetailsFragmentDoc}`;
|
|
4104
|
-
|
|
4105
|
-
/**
|
|
4106
|
-
* __useTopV2PairsQuery__
|
|
4107
|
-
*
|
|
4108
|
-
* To run a query within a React component, call `useTopV2PairsQuery` and pass it any options that fit your needs.
|
|
4109
|
-
* When your component renders, `useTopV2PairsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4110
|
-
* you can use to render your UI.
|
|
4111
|
-
*
|
|
4112
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4113
|
-
*
|
|
4114
|
-
* @example
|
|
4115
|
-
* const { data, loading, error } = useTopV2PairsQuery({
|
|
4116
|
-
* variables: {
|
|
4117
|
-
* chain: // value for 'chain'
|
|
4118
|
-
* first: // value for 'first'
|
|
4119
|
-
* cursor: // value for 'cursor'
|
|
4120
|
-
* tokenAddress: // value for 'tokenAddress'
|
|
4121
|
-
* },
|
|
4122
|
-
* });
|
|
4123
|
-
*/
|
|
4124
|
-
export function useTopV2PairsQuery(baseOptions: Apollo.QueryHookOptions<TopV2PairsQuery, TopV2PairsQueryVariables>) {
|
|
4125
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4126
|
-
return Apollo.useQuery<TopV2PairsQuery, TopV2PairsQueryVariables>(TopV2PairsDocument, options);
|
|
4127
|
-
}
|
|
4128
|
-
export function useTopV2PairsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TopV2PairsQuery, TopV2PairsQueryVariables>) {
|
|
4129
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4130
|
-
return Apollo.useLazyQuery<TopV2PairsQuery, TopV2PairsQueryVariables>(TopV2PairsDocument, options);
|
|
4131
|
-
}
|
|
4132
|
-
export type TopV2PairsQueryHookResult = ReturnType<typeof useTopV2PairsQuery>;
|
|
4133
|
-
export type TopV2PairsLazyQueryHookResult = ReturnType<typeof useTopV2PairsLazyQuery>;
|
|
4134
|
-
export type TopV2PairsQueryResult = Apollo.QueryResult<TopV2PairsQuery, TopV2PairsQueryVariables>;
|
|
4135
|
-
export const V4TransactionsDocument = gql`
|
|
4136
|
-
query V4Transactions($chain: Chain!, $first: Int!, $cursor: Int) {
|
|
4137
|
-
v4Transactions(chain: $chain, first: $first, timestampCursor: $cursor) {
|
|
4138
|
-
...PoolTx
|
|
4139
|
-
}
|
|
4140
|
-
}
|
|
4141
|
-
${PoolTxFragmentDoc}`;
|
|
4142
|
-
|
|
4143
|
-
/**
|
|
4144
|
-
* __useV4TransactionsQuery__
|
|
4145
|
-
*
|
|
4146
|
-
* To run a query within a React component, call `useV4TransactionsQuery` and pass it any options that fit your needs.
|
|
4147
|
-
* When your component renders, `useV4TransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4148
|
-
* you can use to render your UI.
|
|
4149
|
-
*
|
|
4150
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4151
|
-
*
|
|
4152
|
-
* @example
|
|
4153
|
-
* const { data, loading, error } = useV4TransactionsQuery({
|
|
4154
|
-
* variables: {
|
|
4155
|
-
* chain: // value for 'chain'
|
|
4156
|
-
* first: // value for 'first'
|
|
4157
|
-
* cursor: // value for 'cursor'
|
|
4158
|
-
* },
|
|
4159
|
-
* });
|
|
4160
|
-
*/
|
|
4161
|
-
export function useV4TransactionsQuery(baseOptions: Apollo.QueryHookOptions<V4TransactionsQuery, V4TransactionsQueryVariables>) {
|
|
4162
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4163
|
-
return Apollo.useQuery<V4TransactionsQuery, V4TransactionsQueryVariables>(V4TransactionsDocument, options);
|
|
4164
|
-
}
|
|
4165
|
-
export function useV4TransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V4TransactionsQuery, V4TransactionsQueryVariables>) {
|
|
4166
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4167
|
-
return Apollo.useLazyQuery<V4TransactionsQuery, V4TransactionsQueryVariables>(V4TransactionsDocument, options);
|
|
4168
|
-
}
|
|
4169
|
-
export type V4TransactionsQueryHookResult = ReturnType<typeof useV4TransactionsQuery>;
|
|
4170
|
-
export type V4TransactionsLazyQueryHookResult = ReturnType<typeof useV4TransactionsLazyQuery>;
|
|
4171
|
-
export type V4TransactionsQueryResult = Apollo.QueryResult<V4TransactionsQuery, V4TransactionsQueryVariables>;
|
|
4172
|
-
export const V3TransactionsDocument = gql`
|
|
4173
|
-
query V3Transactions($chain: Chain!, $first: Int!, $cursor: Int) {
|
|
4174
|
-
v3Transactions(chain: $chain, first: $first, timestampCursor: $cursor) {
|
|
4175
|
-
...PoolTx
|
|
4176
|
-
}
|
|
4177
|
-
}
|
|
4178
|
-
${PoolTxFragmentDoc}`;
|
|
4179
|
-
|
|
4180
|
-
/**
|
|
4181
|
-
* __useV3TransactionsQuery__
|
|
4182
|
-
*
|
|
4183
|
-
* To run a query within a React component, call `useV3TransactionsQuery` and pass it any options that fit your needs.
|
|
4184
|
-
* When your component renders, `useV3TransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4185
|
-
* you can use to render your UI.
|
|
4186
|
-
*
|
|
4187
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4188
|
-
*
|
|
4189
|
-
* @example
|
|
4190
|
-
* const { data, loading, error } = useV3TransactionsQuery({
|
|
4191
|
-
* variables: {
|
|
4192
|
-
* chain: // value for 'chain'
|
|
4193
|
-
* first: // value for 'first'
|
|
4194
|
-
* cursor: // value for 'cursor'
|
|
4195
|
-
* },
|
|
4196
|
-
* });
|
|
4197
|
-
*/
|
|
4198
|
-
export function useV3TransactionsQuery(baseOptions: Apollo.QueryHookOptions<V3TransactionsQuery, V3TransactionsQueryVariables>) {
|
|
4199
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4200
|
-
return Apollo.useQuery<V3TransactionsQuery, V3TransactionsQueryVariables>(V3TransactionsDocument, options);
|
|
4201
|
-
}
|
|
4202
|
-
export function useV3TransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V3TransactionsQuery, V3TransactionsQueryVariables>) {
|
|
4203
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4204
|
-
return Apollo.useLazyQuery<V3TransactionsQuery, V3TransactionsQueryVariables>(V3TransactionsDocument, options);
|
|
4205
|
-
}
|
|
4206
|
-
export type V3TransactionsQueryHookResult = ReturnType<typeof useV3TransactionsQuery>;
|
|
4207
|
-
export type V3TransactionsLazyQueryHookResult = ReturnType<typeof useV3TransactionsLazyQuery>;
|
|
4208
|
-
export type V3TransactionsQueryResult = Apollo.QueryResult<V3TransactionsQuery, V3TransactionsQueryVariables>;
|
|
4209
|
-
export const V2TransactionsDocument = gql`
|
|
4210
|
-
query V2Transactions($chain: Chain!, $first: Int!, $cursor: Int) {
|
|
4211
|
-
v2Transactions(chain: $chain, first: $first, timestampCursor: $cursor) {
|
|
4212
|
-
...PoolTx
|
|
4213
|
-
}
|
|
4214
|
-
}
|
|
4215
|
-
${PoolTxFragmentDoc}`;
|
|
4216
|
-
|
|
4217
|
-
/**
|
|
4218
|
-
* __useV2TransactionsQuery__
|
|
4219
|
-
*
|
|
4220
|
-
* To run a query within a React component, call `useV2TransactionsQuery` and pass it any options that fit your needs.
|
|
4221
|
-
* When your component renders, `useV2TransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4222
|
-
* you can use to render your UI.
|
|
4223
|
-
*
|
|
4224
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4225
|
-
*
|
|
4226
|
-
* @example
|
|
4227
|
-
* const { data, loading, error } = useV2TransactionsQuery({
|
|
4228
|
-
* variables: {
|
|
4229
|
-
* chain: // value for 'chain'
|
|
4230
|
-
* first: // value for 'first'
|
|
4231
|
-
* cursor: // value for 'cursor'
|
|
4232
|
-
* },
|
|
4233
|
-
* });
|
|
4234
|
-
*/
|
|
4235
|
-
export function useV2TransactionsQuery(baseOptions: Apollo.QueryHookOptions<V2TransactionsQuery, V2TransactionsQueryVariables>) {
|
|
4236
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4237
|
-
return Apollo.useQuery<V2TransactionsQuery, V2TransactionsQueryVariables>(V2TransactionsDocument, options);
|
|
4238
|
-
}
|
|
4239
|
-
export function useV2TransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<V2TransactionsQuery, V2TransactionsQueryVariables>) {
|
|
4240
|
-
const options = {...defaultOptions, ...baseOptions}
|
|
4241
|
-
return Apollo.useLazyQuery<V2TransactionsQuery, V2TransactionsQueryVariables>(V2TransactionsDocument, options);
|
|
4242
|
-
}
|
|
4243
|
-
export type V2TransactionsQueryHookResult = ReturnType<typeof useV2TransactionsQuery>;
|
|
4244
|
-
export type V2TransactionsLazyQueryHookResult = ReturnType<typeof useV2TransactionsLazyQuery>;
|
|
4245
|
-
export type V2TransactionsQueryResult = Apollo.QueryResult<V2TransactionsQuery, V2TransactionsQueryVariables>;
|