@codex-data/sdk 1.0.0-rc3 → 1.0.0
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/dist/resources/generated_queries/GetTokenPrices.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
- package/dist/resources/graphql.d.ts +67 -0
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +406 -1
- package/dist/resources/graphql.ts +72 -0
- package/dist/resources/schema.graphql +93 -1
- package/dist/sdk/Subscribe.d.ts +2 -1
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +9 -2
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +14 -6
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +4 -3
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +154 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +5 -4
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +2 -2
- package/src/resources/generated_queries/GetTokenPrices.graphql +1 -0
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
- package/src/resources/graphql.schema.json +406 -1
- package/src/resources/graphql.ts +72 -0
- package/src/resources/schema.graphql +93 -1
- package/src/sdk/Subscribe.ts +17 -2
- package/src/sdk/generated/gql.ts +11 -6
- package/src/sdk/generated/graphql.ts +87 -6
|
@@ -1522,6 +1522,9 @@ input GetPriceInput {
|
|
|
1522
1522
|
"""The unix timestamp for the price."""
|
|
1523
1523
|
timestamp: Int
|
|
1524
1524
|
|
|
1525
|
+
"""The address of the pool, when omitted the top pool is used."""
|
|
1526
|
+
poolAddress: String
|
|
1527
|
+
|
|
1525
1528
|
"""
|
|
1526
1529
|
The maximum number of deviations from the token's Liquidity-Weighted Mean Price. This is used to mitigate low liquidity pairs producing prices that are not representative of reality. Default is `1`.
|
|
1527
1530
|
"""
|
|
@@ -5730,6 +5733,36 @@ input OnTokenEventsCreatedInput {
|
|
|
5730
5733
|
networkId: Int!
|
|
5731
5734
|
}
|
|
5732
5735
|
|
|
5736
|
+
"""Response returned by `onUnconfirmedBarsUpdated`."""
|
|
5737
|
+
type OnUnconfirmedBarsUpdated {
|
|
5738
|
+
"""The contract address for the pair."""
|
|
5739
|
+
pairAddress: String!
|
|
5740
|
+
|
|
5741
|
+
"""The network ID the pair is deployed on."""
|
|
5742
|
+
networkId: Int!
|
|
5743
|
+
|
|
5744
|
+
"""The ID for the pair (`pairAddress`:`networkId`)."""
|
|
5745
|
+
pairId: String!
|
|
5746
|
+
|
|
5747
|
+
"""The unix timestamp for the new bar."""
|
|
5748
|
+
timestamp: Int!
|
|
5749
|
+
|
|
5750
|
+
"""
|
|
5751
|
+
The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
5752
|
+
For example, `0000000016414564#00000224#00000413`.
|
|
5753
|
+
"""
|
|
5754
|
+
eventSortKey: String!
|
|
5755
|
+
|
|
5756
|
+
"""Price data broken down by resolution."""
|
|
5757
|
+
aggregates: UnconfirmedResolutionBarData!
|
|
5758
|
+
|
|
5759
|
+
"""The quote token within the pair."""
|
|
5760
|
+
quoteToken: QuoteToken
|
|
5761
|
+
|
|
5762
|
+
"""The address of the token being quoted"""
|
|
5763
|
+
quoteTokenAddress: String!
|
|
5764
|
+
}
|
|
5765
|
+
|
|
5733
5766
|
enum OrderState {
|
|
5734
5767
|
CREATED
|
|
5735
5768
|
PENDING
|
|
@@ -6769,6 +6802,9 @@ type Price {
|
|
|
6769
6802
|
"""The unix timestamp for the price."""
|
|
6770
6803
|
timestamp: Int!
|
|
6771
6804
|
|
|
6805
|
+
"""The pool that emitted the swap generating this price"""
|
|
6806
|
+
poolAddress: String!
|
|
6807
|
+
|
|
6772
6808
|
"""Ratio of how confident we are in the price"""
|
|
6773
6809
|
confidence: Float
|
|
6774
6810
|
}
|
|
@@ -7939,7 +7975,7 @@ type Query {
|
|
|
7939
7975
|
phrase: String
|
|
7940
7976
|
|
|
7941
7977
|
"""
|
|
7942
|
-
A list of token IDs (`address:networkId`). Can be left blank to discover new tokens.
|
|
7978
|
+
A list of token IDs (`address:networkId`) or addresses. Can be left blank to discover new tokens.
|
|
7943
7979
|
"""
|
|
7944
7980
|
tokens: [String]
|
|
7945
7981
|
|
|
@@ -9019,6 +9055,17 @@ type Subscription {
|
|
|
9019
9055
|
statsType: TokenPairStatisticsType
|
|
9020
9056
|
): OnBarsUpdatedResponse
|
|
9021
9057
|
|
|
9058
|
+
"""
|
|
9059
|
+
Unconfirmed live-streamed bar chart data to track price changes over time. (Solana only)
|
|
9060
|
+
"""
|
|
9061
|
+
onUnconfirmedBarsUpdated(
|
|
9062
|
+
"""The ID of the pair (`address`:`networkId`)."""
|
|
9063
|
+
pairId: String
|
|
9064
|
+
|
|
9065
|
+
"""The token of interest within the pair. Can be `token0` or `token1`."""
|
|
9066
|
+
quoteToken: QuoteToken
|
|
9067
|
+
): OnUnconfirmedBarsUpdated
|
|
9068
|
+
|
|
9022
9069
|
"""
|
|
9023
9070
|
Live-streamed bar chart data to track price changes over time for a token.
|
|
9024
9071
|
"""
|
|
@@ -10287,6 +10334,30 @@ type UnconfirmedEvent {
|
|
|
10287
10334
|
|
|
10288
10335
|
union UnconfirmedEventData = UnconfirmedSwapEventData | UnconfirmedLiquidityChangeEventData
|
|
10289
10336
|
|
|
10337
|
+
"""Unconfirmed bar chart data."""
|
|
10338
|
+
type UnconfirmedIndividualBarData {
|
|
10339
|
+
"""The opening price."""
|
|
10340
|
+
o: Float!
|
|
10341
|
+
|
|
10342
|
+
"""The high price."""
|
|
10343
|
+
h: Float!
|
|
10344
|
+
|
|
10345
|
+
"""The low price."""
|
|
10346
|
+
l: Float!
|
|
10347
|
+
|
|
10348
|
+
"""The closing price."""
|
|
10349
|
+
c: Float!
|
|
10350
|
+
|
|
10351
|
+
"""The volume."""
|
|
10352
|
+
v: Int
|
|
10353
|
+
|
|
10354
|
+
"""The volume with higher precision."""
|
|
10355
|
+
volume: String!
|
|
10356
|
+
|
|
10357
|
+
"""The timestamp for the bar."""
|
|
10358
|
+
t: Int!
|
|
10359
|
+
}
|
|
10360
|
+
|
|
10290
10361
|
type UnconfirmedLiquidityChangeEventData {
|
|
10291
10362
|
"""The amount of `token0` added or removed from the pair."""
|
|
10292
10363
|
amount0: String
|
|
@@ -10308,6 +10379,27 @@ type UnconfirmedLiquidityChangeEventData {
|
|
|
10308
10379
|
type: EventType!
|
|
10309
10380
|
}
|
|
10310
10381
|
|
|
10382
|
+
"""Unconfirmed price data for each supported resolution."""
|
|
10383
|
+
type UnconfirmedResolutionBarData {
|
|
10384
|
+
"""1 second resolution."""
|
|
10385
|
+
r1S: UnconfirmedIndividualBarData
|
|
10386
|
+
|
|
10387
|
+
"""5 second resolution."""
|
|
10388
|
+
r5S: UnconfirmedIndividualBarData
|
|
10389
|
+
|
|
10390
|
+
"""15 second resolution."""
|
|
10391
|
+
r15S: UnconfirmedIndividualBarData
|
|
10392
|
+
|
|
10393
|
+
"""1 minute resolution."""
|
|
10394
|
+
r1: UnconfirmedIndividualBarData
|
|
10395
|
+
|
|
10396
|
+
"""5 minute resolution."""
|
|
10397
|
+
r5: UnconfirmedIndividualBarData
|
|
10398
|
+
|
|
10399
|
+
"""15 minute resolution."""
|
|
10400
|
+
r15: UnconfirmedIndividualBarData
|
|
10401
|
+
}
|
|
10402
|
+
|
|
10311
10403
|
type UnconfirmedSwapEventData {
|
|
10312
10404
|
"""
|
|
10313
10405
|
The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap.
|
package/src/sdk/Subscribe.ts
CHANGED
|
@@ -34,6 +34,8 @@ import {
|
|
|
34
34
|
OnTokenEventsCreatedSubscriptionVariables,
|
|
35
35
|
OnTokenLifecycleEventsCreatedSubscription,
|
|
36
36
|
OnTokenLifecycleEventsCreatedSubscriptionVariables,
|
|
37
|
+
OnUnconfirmedBarsUpdatedSubscription,
|
|
38
|
+
OnUnconfirmedBarsUpdatedSubscriptionVariables,
|
|
37
39
|
OnUnconfirmedEventsCreatedSubscription,
|
|
38
40
|
OnUnconfirmedEventsCreatedSubscriptionVariables,
|
|
39
41
|
} from "./generated/graphql";
|
|
@@ -48,7 +50,7 @@ export class Subscribe {
|
|
|
48
50
|
this.sdk.subscribe(
|
|
49
51
|
`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
|
|
50
52
|
onPricesUpdated (input: $input) {
|
|
51
|
-
address, confidence, networkId, priceUsd, timestamp
|
|
53
|
+
address, confidence, networkId, poolAddress, priceUsd, timestamp
|
|
52
54
|
}
|
|
53
55
|
}`,
|
|
54
56
|
vars,
|
|
@@ -152,7 +154,7 @@ export class Subscribe {
|
|
|
152
154
|
this.sdk.subscribe(
|
|
153
155
|
`subscription OnPriceUpdated($address: String, $networkId: Int) {
|
|
154
156
|
onPriceUpdated (address: $address, networkId: $networkId) {
|
|
155
|
-
address, confidence, networkId, priceUsd, timestamp
|
|
157
|
+
address, confidence, networkId, poolAddress, priceUsd, timestamp
|
|
156
158
|
}
|
|
157
159
|
}`,
|
|
158
160
|
vars,
|
|
@@ -250,6 +252,19 @@ export class Subscribe {
|
|
|
250
252
|
onTokenLifecycleEventsCreated (address: $address, networkId: $networkId) {
|
|
251
253
|
events { blockHash, blockNumber, data { ... on TokenBurnEventData { amount, circulatingSupply, totalSupply }, ... on TokenMintEventData { amount, circulatingSupply, totalSupply } }, eventType, id, logIndex, maker, networkId, timestamp, tokenAddress, transactionHash, transactionIndex }, id
|
|
252
254
|
}
|
|
255
|
+
}`,
|
|
256
|
+
vars,
|
|
257
|
+
sink,
|
|
258
|
+
);
|
|
259
|
+
onUnconfirmedBarsUpdated = async (
|
|
260
|
+
vars: OnUnconfirmedBarsUpdatedSubscriptionVariables,
|
|
261
|
+
sink: Sink<ExecutionResult<OnUnconfirmedBarsUpdatedSubscription>>,
|
|
262
|
+
) =>
|
|
263
|
+
this.sdk.subscribe(
|
|
264
|
+
`subscription OnUnconfirmedBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
265
|
+
onUnconfirmedBarsUpdated (pairId: $pairId, quoteToken: $quoteToken) {
|
|
266
|
+
aggregates { r1 { c, h, l, o, t, v, volume }, r1S { c, h, l, o, t, v, volume }, r5 { c, h, l, o, t, v, volume }, r5S { c, h, l, o, t, v, volume }, r15 { c, h, l, o, t, v, volume }, r15S { c, h, l, o, t, v, volume } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, timestamp
|
|
267
|
+
}
|
|
253
268
|
}`,
|
|
254
269
|
vars,
|
|
255
270
|
sink,
|
package/src/sdk/generated/gql.ts
CHANGED
|
@@ -62,7 +62,7 @@ const documents = {
|
|
|
62
62
|
"query GetTokenEvents($cursor: String, $direction: RankingDirection, $limit: Int, $query: EventsQueryInput!) {\n getTokenEvents(\n cursor: $cursor\n direction: $direction\n limit: $limit\n query: $query\n ) {\n cursor\n items {\n address\n baseTokenPrice\n blockHash\n blockNumber\n data {\n ... on BurnEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n tickLower\n tickUpper\n type\n }\n ... on MintEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n tickLower\n tickUpper\n type\n }\n ... on PoolBalanceChangedEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n liquidity0\n liquidity1\n protocolFeeAmount0\n protocolFeeAmount1\n sender\n token0\n token1\n type\n }\n ... on SwapEventData {\n amount0\n amount0In\n amount0Out\n amount1\n amount1In\n amount1Out\n amountNonLiquidityToken\n priceBaseToken\n priceBaseTokenTotal\n priceUsd\n priceUsdTotal\n tick\n type\n }\n }\n eventDisplayType\n eventType\n id\n labels {\n sandwich {\n label\n sandwichType\n token0DrainedAmount\n token1DrainedAmount\n }\n washtrade {\n label\n }\n }\n liquidityToken\n logIndex\n maker\n networkId\n quoteToken\n timestamp\n token0PoolValueUsd\n token0SwapValueUsd\n token0ValueBase\n token1PoolValueUsd\n token1SwapValueUsd\n token1ValueBase\n transactionHash\n transactionIndex\n }\n }\n}": types.GetTokenEventsDocument,
|
|
63
63
|
"query GetTokenEventsForMaker($cursor: String, $direction: RankingDirection, $limit: Int, $query: MakerEventsQueryInput!) {\n getTokenEventsForMaker(\n cursor: $cursor\n direction: $direction\n limit: $limit\n query: $query\n ) {\n cursor\n items {\n address\n baseTokenPrice\n blockHash\n blockNumber\n data {\n ... on BurnEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n tickLower\n tickUpper\n type\n }\n ... on MintEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n tickLower\n tickUpper\n type\n }\n ... on PoolBalanceChangedEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n liquidity0\n liquidity1\n protocolFeeAmount0\n protocolFeeAmount1\n sender\n token0\n token1\n type\n }\n ... on SwapEventData {\n amount0\n amount0In\n amount0Out\n amount1\n amount1In\n amount1Out\n amountNonLiquidityToken\n priceBaseToken\n priceBaseTokenTotal\n priceUsd\n priceUsdTotal\n tick\n type\n }\n }\n eventDisplayType\n eventType\n id\n labels {\n sandwich {\n label\n sandwichType\n token0DrainedAmount\n token1DrainedAmount\n }\n washtrade {\n label\n }\n }\n liquidityToken\n logIndex\n maker\n networkId\n quoteToken\n timestamp\n token0PoolValueUsd\n token0SwapValueUsd\n token0ValueBase\n token1PoolValueUsd\n token1SwapValueUsd\n token1ValueBase\n transactionHash\n transactionIndex\n }\n }\n}": types.GetTokenEventsForMakerDocument,
|
|
64
64
|
"query GetTokenInfo($address: String!, $networkId: Int!) {\n getTokenInfo(address: $address, networkId: $networkId) {\n address\n circulatingSupply\n cmcId\n description\n id\n imageBannerUrl\n imageLargeUrl\n imageSmallUrl\n imageThumbUrl\n isScam\n name\n networkId\n symbol\n totalSupply\n }\n}": types.GetTokenInfoDocument,
|
|
65
|
-
"query GetTokenPrices($inputs: [GetPriceInput]) {\n getTokenPrices(inputs: $inputs) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}": types.GetTokenPricesDocument,
|
|
65
|
+
"query GetTokenPrices($inputs: [GetPriceInput]) {\n getTokenPrices(inputs: $inputs) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}": types.GetTokenPricesDocument,
|
|
66
66
|
"query GetTokensInfo($input: [GetTokensInfoInput!]!) {\n getTokensInfo(input: $input) {\n address\n circulatingSupply\n cmcId\n description\n id\n imageBannerUrl\n imageLargeUrl\n imageSmallUrl\n imageThumbUrl\n isScam\n name\n networkId\n symbol\n totalSupply\n }\n}": types.GetTokensInfoDocument,
|
|
67
67
|
"query GetUniV3Ticks($limit: Int, $networkId: Int!, $offset: Int, $poolAddress: String!) {\n getUniV3Ticks(\n limit: $limit\n networkId: $networkId\n offset: $offset\n poolAddress: $poolAddress\n ) {\n count\n offset\n results {\n liquidityNet\n price0\n price1\n tick\n }\n }\n}": types.GetUniV3TicksDocument,
|
|
68
68
|
"query GetWebhooks($bucketId: String, $bucketSortkey: String, $cursor: String, $limit: Int, $webhookId: String) {\n getWebhooks(\n bucketId: $bucketId\n bucketSortkey: $bucketSortkey\n cursor: $cursor\n limit: $limit\n webhookId: $webhookId\n ) {\n cursor\n items {\n alertRecurrence\n bucketId\n bucketSortkey\n callbackUrl\n conditions {\n ... on NftEventWebhookCondition {\n contractAddress {\n eq\n }\n eventType {\n eq\n }\n exchangeAddress {\n eq\n }\n fillSource {\n oneOf\n }\n ignoreTransfers\n individualBaseTokenPrice {\n eq\n gt\n gte\n lt\n lte\n }\n maker {\n eq\n }\n networkId {\n oneOf\n }\n tokenAddress {\n eq\n }\n tokenId {\n eq\n }\n }\n ... on PriceEventWebhookCondition {\n priceNetworkId: networkId {\n eq\n }\n priceUsd {\n eq\n gt\n gte\n lt\n lte\n }\n priceTokenAddress: tokenAddress {\n eq\n }\n }\n ... on RawTransactionWebhookCondition {\n from {\n eq\n }\n ignoreNftEvents\n ignoreTokenPairEvents\n input {\n contains\n notContains\n }\n networkId {\n oneOf\n }\n to {\n eq\n }\n toOrFrom {\n eq\n }\n }\n ... on TokenPairEventWebhookCondition {\n eventType {\n oneOf\n }\n exchangeAddress {\n eq\n }\n maker {\n eq\n }\n networkId {\n oneOf\n }\n pairAddress {\n eq\n }\n swapValue {\n eq\n gt\n gte\n lt\n lte\n }\n tokenAddress {\n eq\n }\n }\n }\n created\n groupId\n id\n name\n publishingType\n retrySettings {\n maxRetries\n maxRetryDelay\n maxTimeElapsed\n minRetryDelay\n }\n status\n webhookType\n }\n }\n}": types.GetWebhooksDocument,
|
|
@@ -94,12 +94,13 @@ const documents = {
|
|
|
94
94
|
"subscription OnNftEventsCreated($address: String, $networkId: Int) {\n onNftEventsCreated(address: $address, networkId: $networkId) {\n address\n events {\n aggregatorAddress\n blockNumber\n contractAddress\n eventType\n exchangeAddress\n fillSource\n id\n individualPriceNetworkBaseToken\n individualPriceUsd\n individualTradePrice\n logIndex\n maker\n networkId\n numberOfTokens\n orderDirection\n paymentTokenAddress\n poolAddress\n priceError\n sortKey\n taker\n timestamp\n tokenId\n totalPriceNetworkBaseToken\n totalPriceUsd\n totalTradePrice\n tradeOffer {\n ... on NftEventNftTradeItem {\n address\n amount\n recipient\n tokenId\n type\n }\n ... on NftEventTokenTradeItem {\n address\n amount\n individualPriceNetworkBaseToken\n individualPriceUsd\n individualTradePrice\n isPrice\n priceError\n recipient\n totalPriceNetworkBaseToken\n totalPriceUsd\n totalTradePrice\n type\n }\n }\n tradeReceived {\n ... on NftEventNftTradeItem {\n address\n amount\n recipient\n tokenId\n type\n }\n ... on NftEventTokenTradeItem {\n address\n amount\n individualPriceNetworkBaseToken\n individualPriceUsd\n individualTradePrice\n isPrice\n priceError\n recipient\n totalPriceNetworkBaseToken\n totalPriceUsd\n totalTradePrice\n type\n }\n }\n transactionHash\n transactionIndex\n }\n id\n networkId\n }\n}": types.OnNftEventsCreatedDocument,
|
|
95
95
|
"subscription OnNftPoolEventsCreated($collectionAddress: String, $exchangeAddress: String, $networkId: Int, $poolAddress: String) {\n onNftPoolEventsCreated(\n collectionAddress: $collectionAddress\n exchangeAddress: $exchangeAddress\n networkId: $networkId\n poolAddress: $poolAddress\n ) {\n collectionAddress\n events {\n blockHash\n blockNumber\n collectionAddress\n collectionId\n data {\n ... on NewPoolEventData {\n assetRecipientAddress\n bondingCurveAddress\n bondingCurveType\n buyPriceT\n collectionAddress\n createdAt\n delta\n feeAmountT\n nbtRatio\n networkId\n nftTokenBalance\n ownerAddress\n poolAddress\n sellPriceT\n startPriceT\n tokenAddress\n tokenBalanceT\n type\n usdRatio\n }\n ... on NewPoolEventDataV2 {\n assetRecipientAddress\n bondingCurveAddress\n bondingCurveType\n buyPriceT\n collectionAddress\n createdAt\n delta\n feeAmountT\n nbtRatio\n networkId\n nftAssets {\n address\n attributes {\n class\n css\n displayType\n maxValue\n name\n value\n valueType\n }\n description\n id\n media {\n image\n processed\n thumbLg\n thumbSm\n }\n name\n networkId\n originalImage\n quantity\n rawAssetData {\n animationUrl\n externalUrl\n imageData\n imageUrl\n }\n tokenId\n uri\n }\n nftTokenIds\n nftTokenQuantities\n ownerAddress\n poolAddress\n poolNftType\n propertyChecker\n royalties {\n percent\n recipient\n }\n sellPriceT\n startPriceT\n tokenAddress\n tokenBalanceT\n type\n usdRatio\n }\n ... on NftPoolAssetRecipientUpdateEventData {\n newAssetRecipient\n type\n }\n ... on NftPoolDeltaUpdateEventData {\n newDelta\n type\n }\n ... on NftPoolFeeUpdateEventData {\n nbtRatio\n newFeeT\n type\n usdRatio\n }\n ... on NftPoolNftDepositEventData {\n nftTokenBalance\n nftTokenIds\n tokenBalanceT\n type\n }\n ... on NftPoolNftDepositEventDataV2 {\n nftAssets {\n address\n attributes {\n class\n css\n displayType\n maxValue\n name\n value\n valueType\n }\n description\n id\n media {\n image\n processed\n thumbLg\n thumbSm\n }\n name\n networkId\n originalImage\n quantity\n rawAssetData {\n animationUrl\n externalUrl\n imageData\n imageUrl\n }\n tokenId\n uri\n }\n nftTokenAmounts\n nftTokenIds\n tokenBalanceT\n type\n }\n ... on NftPoolNftWithdrawalEventData {\n nftTokenBalance\n nftTokenIds\n tokenBalanceT\n type\n }\n ... on NftPoolNftWithdrawalEventDataV2 {\n nftAssets {\n address\n attributes {\n class\n css\n displayType\n maxValue\n name\n value\n valueType\n }\n description\n id\n media {\n image\n processed\n thumbLg\n thumbSm\n }\n name\n networkId\n originalImage\n quantity\n rawAssetData {\n animationUrl\n externalUrl\n imageData\n imageUrl\n }\n tokenId\n uri\n }\n nftTokenAmounts\n nftTokenIds\n tokenBalanceT\n type\n }\n ... on NftPoolOwnershipTransferredEventDataV2 {\n newOwner\n type\n }\n ... on NftPoolSpotPriceUpdateEventData {\n nbtRatio\n newBuyPriceT\n newSellPriceT\n newSpotPriceT\n type\n usdRatio\n }\n ... on NftPoolSpotPriceUpdateEventDataV2 {\n nbtRatio\n newBuyPriceT\n newSellPriceT\n newSpotPriceT\n type\n usdRatio\n }\n ... on NftPoolTokenDepositEventData {\n amountT\n nbtRatio\n nftTokenBalance\n tokenBalanceT\n type\n usdRatio\n }\n ... on NftPoolTokenDepositEventDataV2 {\n amountT\n nbtRatio\n tokenBalanceT\n type\n usdRatio\n }\n ... on NftPoolTokenWithdrawalEventData {\n amountT\n nbtRatio\n nftTokenBalance\n tokenBalanceT\n type\n usdRatio\n }\n ... on NftPoolTokenWithdrawalEventDataV2 {\n amountT\n nbtRatio\n tokenBalanceT\n type\n usdRatio\n }\n ... on SwapNftInPoolEventData {\n amountT\n nbtRatio\n newBuyPriceT\n newDelta\n newSellPriceT\n newSpotPriceT\n nftTokenBalance\n nftsTransfered {\n amountT\n nftTokenId\n }\n poolFeeT\n protocolFeeT\n tokenBalanceT\n tokenId\n type\n usdRatio\n }\n ... on SwapNftInPoolEventDataV2 {\n amountT\n nbtRatio\n newBuyPriceT\n newDelta\n newSellPriceT\n newSpotPriceT\n nftAssets {\n address\n attributes {\n class\n css\n displayType\n maxValue\n name\n value\n valueType\n }\n description\n id\n media {\n image\n processed\n thumbLg\n thumbSm\n }\n name\n networkId\n originalImage\n quantity\n rawAssetData {\n animationUrl\n externalUrl\n imageData\n imageUrl\n }\n tokenId\n uri\n }\n nftsTransfered {\n amountT\n nftQuantity\n nftTokenId\n }\n poolFeeT\n protocolFeeT\n tokenBalanceT\n tokenId\n type\n usdRatio\n }\n ... on SwapNftOutPoolEventData {\n amountT\n nbtRatio\n newBuyPriceT\n newDelta\n newSellPriceT\n newSpotPriceT\n nftTokenBalance\n nftsTransfered {\n amountT\n nftTokenId\n }\n poolFeeT\n protocolFeeT\n tokenBalanceT\n tokenId\n type\n usdRatio\n }\n ... on SwapNftOutPoolEventDataV2 {\n amountT\n nbtRatio\n newBuyPriceT\n newDelta\n newSellPriceT\n newSpotPriceT\n nftAssets {\n address\n attributes {\n class\n css\n displayType\n maxValue\n name\n value\n valueType\n }\n description\n id\n media {\n image\n processed\n thumbLg\n thumbSm\n }\n name\n networkId\n originalImage\n quantity\n rawAssetData {\n animationUrl\n externalUrl\n imageData\n imageUrl\n }\n tokenId\n uri\n }\n nftsTransfered {\n amountT\n nftQuantity\n nftTokenId\n }\n poolFeeT\n protocolFeeT\n tokenBalanceT\n tokenId\n type\n usdRatio\n }\n }\n eventType\n exchangeAddress\n id\n logIndex\n maker\n networkId\n poolAddress\n poolType\n timestamp\n tokenAddress\n transactionHash\n transactionIndex\n }\n exchangeAddress\n id\n networkId\n poolAddress\n }\n}": types.OnNftPoolEventsCreatedDocument,
|
|
96
96
|
"subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $statsType: TokenPairStatisticsType) {\n onPairMetadataUpdated(id: $id, quoteToken: $quoteToken, statsType: $statsType) {\n exchangeId\n fee\n highPrice1\n highPrice1w\n highPrice4\n highPrice12\n highPrice24\n id\n liquidity\n liquidityToken\n lowPrice1\n lowPrice1w\n lowPrice4\n lowPrice12\n lowPrice24\n networkId\n nonLiquidityToken\n pairAddress\n price\n priceChange1\n priceChange1w\n priceChange4\n priceChange5m\n priceChange12\n priceChange24\n quoteToken\n statsType\n tickSpacing\n token0 {\n address\n decimals\n labels {\n createdAt\n subType\n type\n }\n name\n networkId\n pooled\n price\n symbol\n }\n token1 {\n address\n decimals\n labels {\n createdAt\n subType\n type\n }\n name\n networkId\n pooled\n price\n symbol\n }\n volume1\n volume1w\n volume4\n volume12\n volume24\n }\n}": types.OnPairMetadataUpdatedDocument,
|
|
97
|
-
"subscription OnPriceUpdated($address: String, $networkId: Int) {\n onPriceUpdated(address: $address, networkId: $networkId) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}": types.OnPriceUpdatedDocument,
|
|
98
|
-
"subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {\n onPricesUpdated(input: $input) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}": types.OnPricesUpdatedDocument,
|
|
97
|
+
"subscription OnPriceUpdated($address: String, $networkId: Int) {\n onPriceUpdated(address: $address, networkId: $networkId) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}": types.OnPriceUpdatedDocument,
|
|
98
|
+
"subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {\n onPricesUpdated(input: $input) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}": types.OnPricesUpdatedDocument,
|
|
99
99
|
"subscription OnSimulateTokenContract($contractAddress: String, $networkId: Int!, $simulationId: String) {\n onSimulateTokenContract(\n contractAddress: $contractAddress\n networkId: $networkId\n simulationId: $simulationId\n ) {\n analysisType\n blockNumber\n contractBalance {\n tokenContractEthBalance\n tokenContractTokenBalance\n }\n contractHashKey\n creator {\n creatorAddress\n creatorEthBalance\n creatorTokenBalance\n }\n deploy {\n deploySuccess\n tokenMintedToDeployer\n }\n errors {\n contractBalanceErrors {\n tokenContractEthBalanceError\n tokenContractTokenBalanceError\n }\n creatorErrors {\n creatorEthBalanceError\n creatorTokenBalanceError\n }\n deployErrors {\n deployError\n tokenMintedToDeployerError\n }\n liquidityErrors {\n addLiquidityError\n lpTotalSupplyError\n postLiquidityEnableTradingError\n preLiquidityEnableTradingError\n }\n ownerErrors {\n ownerAddressError\n ownerEthBalanceError\n ownerTokenBalanceError\n }\n simulatorError\n swapErrors {\n buyError\n buyErrorEnum\n sellError\n sellErrorEnum\n }\n tokenErrors {\n canRenounceOwnershipError\n canTransferOwnershipError\n decimalsError\n tokenNameError\n tokenSymbolError\n totalSupplyError\n }\n transferErrors {\n tokenContractApprovalError\n tokenTransferredToContractError\n userApprovalError\n }\n }\n id\n liquidity {\n addLiquiditySuccess\n liquiditySetByPreLiquidityOpenTradingCall\n lpTotalSupply\n pairAddress\n postLiquidityEnableTradingCall\n postLiquidityEnableTradingSuccess\n preLiquidityEnableTradingCall\n preLiquidityEnableTradingSuccess\n preLiquidityEnableTradingSupportsTransfer\n }\n networkId\n owner {\n ownerAddress\n ownerEthBalance\n ownerTokenBalance\n }\n sortKey\n status\n swap {\n buyGasUsed\n buySuccess\n buyTax\n maxBuyAmount\n maxSellAmount\n sellGasUsed\n sellSuccess\n sellTax\n }\n timestamp\n token {\n canRenounceOwnership\n canTransferOwnership\n contractAddress\n decimals\n isOwnerRenounced\n tokenName\n tokenSymbol\n totalSupply\n }\n transfer {\n tokenContractApprovalSuccess\n tokenTransferredToContractSuccess\n userApprovalSuccess\n }\n uuid\n uuidHashKey\n }\n}": types.OnSimulateTokenContractDocument,
|
|
100
100
|
"subscription OnTokenBarsUpdated($statsType: TokenPairStatisticsType, $tokenId: String) {\n onTokenBarsUpdated(statsType: $statsType, tokenId: $tokenId) {\n aggregates {\n r1 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r1D {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r1S {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r5 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r5S {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r7D {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r15 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r15S {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r30 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r30S {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r60 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r240 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n r720 {\n t\n token {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n usd {\n buyVolume\n buyers\n buys\n c\n h\n l\n liquidity\n o\n sellVolume\n sellers\n sells\n t\n traders\n transactions\n v\n volume\n volumeNativeToken\n }\n }\n }\n eventSortKey\n networkId\n pairAddress\n pairId\n quoteToken\n statsType\n timestamp\n tokenAddress\n tokenId\n }\n}": types.OnTokenBarsUpdatedDocument,
|
|
101
101
|
"subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {\n onTokenEventsCreated(input: $input) {\n events {\n address\n baseTokenPrice\n blockHash\n blockNumber\n data {\n ... on BurnEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n tickLower\n tickUpper\n type\n }\n ... on MintEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n tickLower\n tickUpper\n type\n }\n ... on PoolBalanceChangedEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n liquidity0\n liquidity1\n protocolFeeAmount0\n protocolFeeAmount1\n sender\n token0\n token1\n type\n }\n ... on SwapEventData {\n amount0\n amount0In\n amount0Out\n amount1\n amount1In\n amount1Out\n amountNonLiquidityToken\n priceBaseToken\n priceBaseTokenTotal\n priceUsd\n priceUsdTotal\n tick\n type\n }\n }\n eventDisplayType\n eventType\n id\n labels {\n sandwich {\n label\n sandwichType\n token0DrainedAmount\n token1DrainedAmount\n }\n washtrade {\n label\n }\n }\n liquidityToken\n logIndex\n maker\n networkId\n quoteToken\n timestamp\n token0PoolValueUsd\n token0SwapValueUsd\n token0ValueBase\n token1PoolValueUsd\n token1SwapValueUsd\n token1ValueBase\n transactionHash\n transactionIndex\n }\n id\n }\n}": types.OnTokenEventsCreatedDocument,
|
|
102
102
|
"subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {\n onTokenLifecycleEventsCreated(address: $address, networkId: $networkId) {\n events {\n blockHash\n blockNumber\n data {\n ... on TokenBurnEventData {\n amount\n circulatingSupply\n totalSupply\n }\n ... on TokenMintEventData {\n amount\n circulatingSupply\n totalSupply\n }\n }\n eventType\n id\n logIndex\n maker\n networkId\n timestamp\n tokenAddress\n transactionHash\n transactionIndex\n }\n id\n }\n}": types.OnTokenLifecycleEventsCreatedDocument,
|
|
103
|
+
"subscription OnUnconfirmedBarsUpdated($pairId: String, $quoteToken: QuoteToken) {\n onUnconfirmedBarsUpdated(pairId: $pairId, quoteToken: $quoteToken) {\n aggregates {\n r1 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r1S {\n c\n h\n l\n o\n t\n v\n volume\n }\n r5 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r5S {\n c\n h\n l\n o\n t\n v\n volume\n }\n r15 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r15S {\n c\n h\n l\n o\n t\n v\n volume\n }\n }\n eventSortKey\n networkId\n pairAddress\n pairId\n quoteToken\n quoteTokenAddress\n timestamp\n }\n}": types.OnUnconfirmedBarsUpdatedDocument,
|
|
103
104
|
"subscription OnUnconfirmedEventsCreated($address: String, $id: String, $quoteToken: QuoteToken) {\n onUnconfirmedEventsCreated(address: $address, id: $id, quoteToken: $quoteToken) {\n address\n events {\n address\n blockHash\n blockNumber\n data {\n ... on UnconfirmedLiquidityChangeEventData {\n amount0\n amount0Shifted\n amount1\n amount1Shifted\n type\n }\n ... on UnconfirmedSwapEventData {\n amountNonLiquidityToken\n priceBaseToken\n priceBaseTokenTotal\n priceUsd\n priceUsdTotal\n type\n }\n }\n eventDisplayType\n eventType\n id\n logIndex\n maker\n networkId\n quoteToken\n supplementalIndex\n timestamp\n transactionHash\n transactionIndex\n }\n id\n networkId\n quoteToken\n }\n}": types.OnUnconfirmedEventsCreatedDocument,
|
|
104
105
|
};
|
|
105
106
|
|
|
@@ -316,7 +317,7 @@ export function graphql(source: "query GetTokenInfo($address: String!, $networkI
|
|
|
316
317
|
/**
|
|
317
318
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
318
319
|
*/
|
|
319
|
-
export function graphql(source: "query GetTokenPrices($inputs: [GetPriceInput]) {\n getTokenPrices(inputs: $inputs) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}"): (typeof documents)["query GetTokenPrices($inputs: [GetPriceInput]) {\n getTokenPrices(inputs: $inputs) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}"];
|
|
320
|
+
export function graphql(source: "query GetTokenPrices($inputs: [GetPriceInput]) {\n getTokenPrices(inputs: $inputs) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}"): (typeof documents)["query GetTokenPrices($inputs: [GetPriceInput]) {\n getTokenPrices(inputs: $inputs) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}"];
|
|
320
321
|
/**
|
|
321
322
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
322
323
|
*/
|
|
@@ -444,11 +445,11 @@ export function graphql(source: "subscription OnPairMetadataUpdated($id: String,
|
|
|
444
445
|
/**
|
|
445
446
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
446
447
|
*/
|
|
447
|
-
export function graphql(source: "subscription OnPriceUpdated($address: String, $networkId: Int) {\n onPriceUpdated(address: $address, networkId: $networkId) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}"): (typeof documents)["subscription OnPriceUpdated($address: String, $networkId: Int) {\n onPriceUpdated(address: $address, networkId: $networkId) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}"];
|
|
448
|
+
export function graphql(source: "subscription OnPriceUpdated($address: String, $networkId: Int) {\n onPriceUpdated(address: $address, networkId: $networkId) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}"): (typeof documents)["subscription OnPriceUpdated($address: String, $networkId: Int) {\n onPriceUpdated(address: $address, networkId: $networkId) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}"];
|
|
448
449
|
/**
|
|
449
450
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
450
451
|
*/
|
|
451
|
-
export function graphql(source: "subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {\n onPricesUpdated(input: $input) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}"): (typeof documents)["subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {\n onPricesUpdated(input: $input) {\n address\n confidence\n networkId\n priceUsd\n timestamp\n }\n}"];
|
|
452
|
+
export function graphql(source: "subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {\n onPricesUpdated(input: $input) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}"): (typeof documents)["subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {\n onPricesUpdated(input: $input) {\n address\n confidence\n networkId\n poolAddress\n priceUsd\n timestamp\n }\n}"];
|
|
452
453
|
/**
|
|
453
454
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
454
455
|
*/
|
|
@@ -465,6 +466,10 @@ export function graphql(source: "subscription OnTokenEventsCreated($input: OnTok
|
|
|
465
466
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
466
467
|
*/
|
|
467
468
|
export function graphql(source: "subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {\n onTokenLifecycleEventsCreated(address: $address, networkId: $networkId) {\n events {\n blockHash\n blockNumber\n data {\n ... on TokenBurnEventData {\n amount\n circulatingSupply\n totalSupply\n }\n ... on TokenMintEventData {\n amount\n circulatingSupply\n totalSupply\n }\n }\n eventType\n id\n logIndex\n maker\n networkId\n timestamp\n tokenAddress\n transactionHash\n transactionIndex\n }\n id\n }\n}"): (typeof documents)["subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {\n onTokenLifecycleEventsCreated(address: $address, networkId: $networkId) {\n events {\n blockHash\n blockNumber\n data {\n ... on TokenBurnEventData {\n amount\n circulatingSupply\n totalSupply\n }\n ... on TokenMintEventData {\n amount\n circulatingSupply\n totalSupply\n }\n }\n eventType\n id\n logIndex\n maker\n networkId\n timestamp\n tokenAddress\n transactionHash\n transactionIndex\n }\n id\n }\n}"];
|
|
469
|
+
/**
|
|
470
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
471
|
+
*/
|
|
472
|
+
export function graphql(source: "subscription OnUnconfirmedBarsUpdated($pairId: String, $quoteToken: QuoteToken) {\n onUnconfirmedBarsUpdated(pairId: $pairId, quoteToken: $quoteToken) {\n aggregates {\n r1 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r1S {\n c\n h\n l\n o\n t\n v\n volume\n }\n r5 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r5S {\n c\n h\n l\n o\n t\n v\n volume\n }\n r15 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r15S {\n c\n h\n l\n o\n t\n v\n volume\n }\n }\n eventSortKey\n networkId\n pairAddress\n pairId\n quoteToken\n quoteTokenAddress\n timestamp\n }\n}"): (typeof documents)["subscription OnUnconfirmedBarsUpdated($pairId: String, $quoteToken: QuoteToken) {\n onUnconfirmedBarsUpdated(pairId: $pairId, quoteToken: $quoteToken) {\n aggregates {\n r1 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r1S {\n c\n h\n l\n o\n t\n v\n volume\n }\n r5 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r5S {\n c\n h\n l\n o\n t\n v\n volume\n }\n r15 {\n c\n h\n l\n o\n t\n v\n volume\n }\n r15S {\n c\n h\n l\n o\n t\n v\n volume\n }\n }\n eventSortKey\n networkId\n pairAddress\n pairId\n quoteToken\n quoteTokenAddress\n timestamp\n }\n}"];
|
|
468
473
|
/**
|
|
469
474
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
470
475
|
*/
|