@codex-data/sdk 1.0.2 → 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.
Files changed (46) hide show
  1. package/dist/resources/generated_queries/BackfillWalletState.graphql +3 -0
  2. package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
  3. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  4. package/dist/resources/generated_queries/Holders.graphql +1 -0
  5. package/dist/resources/generated_queries/PairMetadata.graphql +126 -0
  6. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  7. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  8. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  9. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  10. package/dist/resources/graphql.d.ts +52 -2
  11. package/dist/resources/graphql.d.ts.map +1 -1
  12. package/dist/resources/graphql.js +9 -2
  13. package/dist/resources/graphql.js.map +1 -1
  14. package/dist/resources/graphql.schema.json +485 -13
  15. package/dist/resources/graphql.ts +56 -2
  16. package/dist/resources/schema.graphql +77 -3
  17. package/dist/sdk/Query.d.ts +3 -1
  18. package/dist/sdk/Query.d.ts.map +1 -1
  19. package/dist/sdk/Query.js +2 -0
  20. package/dist/sdk/Query.js.map +1 -1
  21. package/dist/sdk/Subscribe.js +3 -3
  22. package/dist/sdk/generated/gql.d.ts +28 -14
  23. package/dist/sdk/generated/gql.d.ts.map +1 -1
  24. package/dist/sdk/generated/gql.js +9 -7
  25. package/dist/sdk/generated/gql.js.map +1 -1
  26. package/dist/sdk/generated/graphql.d.ts +349 -2
  27. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  28. package/dist/sdk/generated/graphql.js +20 -11
  29. package/dist/sdk/generated/graphql.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/resources/generated_queries/BackfillWalletState.graphql +3 -0
  32. package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
  33. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  34. package/src/resources/generated_queries/Holders.graphql +1 -0
  35. package/src/resources/generated_queries/PairMetadata.graphql +126 -0
  36. package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  37. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  38. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  39. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  40. package/src/resources/graphql.schema.json +485 -13
  41. package/src/resources/graphql.ts +56 -2
  42. package/src/resources/schema.graphql +77 -3
  43. package/src/sdk/Query.ts +8 -0
  44. package/src/sdk/Subscribe.ts +3 -3
  45. package/src/sdk/generated/gql.ts +24 -14
  46. package/src/sdk/generated/graphql.ts +84 -16
@@ -93,6 +93,12 @@ export type AddUserAchievementInput = {
93
93
  userId: Scalars['String']['input'];
94
94
  };
95
95
 
96
+ export enum AddressType {
97
+ Evm = 'EVM',
98
+ Sol = 'SOL',
99
+ Tron = 'TRON'
100
+ }
101
+
96
102
  /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
97
103
  export enum AlertRecurrence {
98
104
  Indefinite = 'INDEFINITE',
@@ -933,12 +939,16 @@ export type Event = {
933
939
  quoteToken?: Maybe<QuoteToken>;
934
940
  /** The unix timestamp for when the transaction occurred. */
935
941
  timestamp: Scalars['Int']['output'];
942
+ /** The address of the event's token0. */
943
+ token0Address?: Maybe<Scalars['String']['output']>;
936
944
  /** The updated price of `token0` in USD, calculated after the transaction. */
937
945
  token0PoolValueUsd?: Maybe<Scalars['String']['output']>;
938
946
  /** The price of `token0` paid/received in USD, including any fees. */
939
947
  token0SwapValueUsd?: Maybe<Scalars['String']['output']>;
940
948
  /** The price of `token0` paid/received in the network's base token, including fees. */
941
949
  token0ValueBase?: Maybe<Scalars['String']['output']>;
950
+ /** The address of the event's token1. */
951
+ token1Address?: Maybe<Scalars['String']['output']>;
942
952
  /** The updated price of `token1` in USD, calculated after the transaction. */
943
953
  token1PoolValueUsd?: Maybe<Scalars['String']['output']>;
944
954
  /** The price of `token1` paid/received in USD, including any fees. */
@@ -1431,6 +1441,8 @@ export type HoldersResponse = {
1431
1441
  items: Array<Balance>;
1432
1442
  /** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
1433
1443
  status: HoldersStatus;
1444
+ /** What percentage of the total supply do the top 10 holders hold */
1445
+ top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
1434
1446
  };
1435
1447
 
1436
1448
  export enum HoldersSortAttribute {
@@ -1782,12 +1794,20 @@ export type MakerEventConnection = {
1782
1794
  };
1783
1795
 
1784
1796
  export type MakerEventsQueryInput = {
1797
+ /** The specific event type to filter by. */
1798
+ eventType?: InputMaybe<EventType>;
1785
1799
  /** The specific wallet address to filter by. */
1786
1800
  maker: Scalars['String']['input'];
1787
1801
  /** The network ID to filter by. */
1788
- networkId: Scalars['Int']['input'];
1789
- /** The token of interest. Can be `token0` or `token1`. */
1802
+ networkId?: InputMaybe<Scalars['Int']['input']>;
1803
+ /** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
1804
+ priceUsdTotal?: InputMaybe<NumberFilter>;
1805
+ /** docs: hide */
1790
1806
  quoteToken?: InputMaybe<QuoteToken>;
1807
+ /** The time range to filter by. */
1808
+ timestamp?: InputMaybe<EventQueryTimestampInput>;
1809
+ /** The token involved in the event. */
1810
+ tokenAddress?: InputMaybe<Scalars['String']['input']>;
1791
1811
  };
1792
1812
 
1793
1813
  /** The status for a network supported on Defined. */
@@ -4890,6 +4910,8 @@ export type PairFilters = {
4890
4910
 
4891
4911
  export type PairMetadata = {
4892
4912
  __typename?: 'PairMetadata';
4913
+ enhancedToken0?: Maybe<EnhancedToken>;
4914
+ enhancedToken1?: Maybe<EnhancedToken>;
4893
4915
  exchangeId?: Maybe<Scalars['String']['output']>;
4894
4916
  fee?: Maybe<Scalars['Int']['output']>;
4895
4917
  highPrice1?: Maybe<Scalars['String']['output']>;
@@ -5901,6 +5923,7 @@ export type Query = {
5901
5923
  apiToken: ApiToken;
5902
5924
  /** Get all active short-lived api tokens for this api key */
5903
5925
  apiTokens: Array<ApiToken>;
5926
+ backfillWalletState: Scalars['Boolean']['output'];
5904
5927
  /** Returns list of token balances that a wallet has */
5905
5928
  balances: BalancesResponse;
5906
5929
  /** Returns a URL for a pair chart. */
@@ -5986,6 +6009,7 @@ export type Query = {
5986
6009
  getTokenCount: Scalars['String']['output'];
5987
6010
  /** Returns transactions for a pair. */
5988
6011
  getTokenEvents?: Maybe<EventConnection>;
6012
+ /** Returns a list of token events for a given maker. */
5989
6013
  getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5990
6014
  /** Returns metadata for a given token. */
5991
6015
  getTokenInfo?: Maybe<TokenInfo>;
@@ -6034,6 +6058,8 @@ export type Query = {
6034
6058
  tokenSparklines: Array<TokenSparkline>;
6035
6059
  /** Find a list of tokens by their addresses & network id, with pagination. */
6036
6060
  tokens: Array<Maybe<EnhancedToken>>;
6061
+ /** What percent of the total supply do the top 10 holders of a token hold */
6062
+ top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
6037
6063
  /** Returns list of NFT assets held by a given wallet for a single collection. */
6038
6064
  walletNftCollectionAssets: WalletNftCollectionAssetsResponse;
6039
6065
  /** Returns list of collections and quantity of NFTs held by a given wallet. */
@@ -6536,6 +6562,11 @@ export type QueryTokensArgs = {
6536
6562
  };
6537
6563
 
6538
6564
 
6565
+ export type QueryTop10HoldersPercentArgs = {
6566
+ tokenId: Scalars['String']['input'];
6567
+ };
6568
+
6569
+
6539
6570
  export type QueryWalletNftCollectionAssetsArgs = {
6540
6571
  input: WalletNftCollectionAssetsInput;
6541
6572
  };
@@ -7225,6 +7256,26 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
7225
7256
  quoteToken?: InputMaybe<QuoteToken>;
7226
7257
  };
7227
7258
 
7259
+ export type SuiNetworkConfig = {
7260
+ __typename?: 'SuiNetworkConfig';
7261
+ baseTokenAddress: Scalars['String']['output'];
7262
+ baseTokenSymbol: Scalars['String']['output'];
7263
+ color?: Maybe<Scalars['String']['output']>;
7264
+ defaultPairAddress: Scalars['String']['output'];
7265
+ defaultPairQuoteToken: QuoteToken;
7266
+ enabled: Scalars['Boolean']['output'];
7267
+ id: Scalars['ID']['output'];
7268
+ mainnet: Scalars['Boolean']['output'];
7269
+ name: Scalars['String']['output'];
7270
+ networkIconUrl: Scalars['String']['output'];
7271
+ networkId: Scalars['Int']['output'];
7272
+ networkName: Scalars['String']['output'];
7273
+ networkShortName: Scalars['String']['output'];
7274
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
7275
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
7276
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
7277
+ };
7278
+
7228
7279
  /** Event data for a token swap event. */
7229
7280
  export type SwapEventData = {
7230
7281
  __typename?: 'SwapEventData';
@@ -7608,6 +7659,8 @@ export type TokenFilters = {
7608
7659
  marketCap?: InputMaybe<NumberFilter>;
7609
7660
  /** The list of network IDs to filter by. Applied in conjunction with `exchangeId` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
7610
7661
  network?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
7662
+ /** docs: hide */
7663
+ notableHolderCount?: InputMaybe<NumberFilter>;
7611
7664
  /** Filter potential Scams */
7612
7665
  potentialScam?: InputMaybe<Scalars['Boolean']['input']>;
7613
7666
  /** The token price in USD. */
@@ -7884,6 +7937,7 @@ export enum TokenRankingAttribute {
7884
7937
  Low12 = 'low12',
7885
7938
  Low24 = 'low24',
7886
7939
  MarketCap = 'marketCap',
7940
+ NotableHolderCount = 'notableHolderCount',
7887
7941
  PriceUsd = 'priceUSD',
7888
7942
  SellCount1 = 'sellCount1',
7889
7943
  SellCount4 = 'sellCount4',
@@ -58,6 +58,12 @@ type AddNftPoolEventsOutput {
58
58
  events: [NftPoolEvent]!
59
59
  }
60
60
 
61
+ enum AddressType {
62
+ EVM
63
+ SOL
64
+ TRON
65
+ }
66
+
61
67
  type AddTokenEventsOutput {
62
68
  id: String!
63
69
  events: [Event!]!
@@ -1199,6 +1205,12 @@ type Event {
1199
1205
  """The unix timestamp for when the transaction occurred."""
1200
1206
  timestamp: Int!
1201
1207
 
1208
+ """The address of the event's token0."""
1209
+ token0Address: String
1210
+
1211
+ """The address of the event's token1."""
1212
+ token1Address: String
1213
+
1202
1214
  """The price of `token0` paid/received in USD, including any fees."""
1203
1215
  token0SwapValueUsd: String
1204
1216
 
@@ -1814,6 +1826,9 @@ type HoldersResponse {
1814
1826
  Status of holder. Disabled if on unsupported network or there is insufficient holder data.
1815
1827
  """
1816
1828
  status: HoldersStatus!
1829
+
1830
+ """What percentage of the total supply do the top 10 holders hold"""
1831
+ top10HoldersPercent: Float
1817
1832
  }
1818
1833
 
1819
1834
  enum HoldersSortAttribute {
@@ -2297,11 +2312,25 @@ input MakerEventsQueryInput {
2297
2312
  """The specific wallet address to filter by."""
2298
2313
  maker: String!
2299
2314
 
2315
+ """The time range to filter by."""
2316
+ timestamp: EventQueryTimestampInput
2317
+
2300
2318
  """The network ID to filter by."""
2301
- networkId: Int!
2319
+ networkId: Int
2302
2320
 
2303
- """The token of interest. Can be `token0` or `token1`."""
2321
+ """docs: hide"""
2304
2322
  quoteToken: QuoteToken
2323
+
2324
+ """
2325
+ The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
2326
+ """
2327
+ priceUsdTotal: NumberFilter
2328
+
2329
+ """The specific event type to filter by."""
2330
+ eventType: EventType
2331
+
2332
+ """The token involved in the event."""
2333
+ tokenAddress: String
2305
2334
  }
2306
2335
 
2307
2336
  """The status for a network supported on Defined."""
@@ -6528,6 +6557,8 @@ type PairMetadata {
6528
6557
  lowPrice24: String
6529
6558
  lowPrice4: String
6530
6559
  lowPrice1w: String
6560
+ enhancedToken0: EnhancedToken
6561
+ enhancedToken1: EnhancedToken
6531
6562
  }
6532
6563
 
6533
6564
  type PairMetadataToken {
@@ -8511,7 +8542,23 @@ type Query {
8511
8542
  """
8512
8543
  direction: RankingDirection
8513
8544
  ): EventConnection
8514
- getTokenEventsForMaker(limit: Int, query: MakerEventsQueryInput!, cursor: String, direction: RankingDirection): MakerEventConnection
8545
+
8546
+ """Returns a list of token events for a given maker."""
8547
+ getTokenEventsForMaker(
8548
+ """The maximum number of events to return."""
8549
+ limit: Int
8550
+
8551
+ """The query filters to apply to the results."""
8552
+ query: MakerEventsQueryInput!
8553
+
8554
+ """The cursor to use for pagination."""
8555
+ cursor: String
8556
+
8557
+ """
8558
+ The order to receive the token events. Can be `DESC` (default) or `ASC`.
8559
+ """
8560
+ direction: RankingDirection
8561
+ ): MakerEventConnection
8515
8562
 
8516
8563
  """
8517
8564
  Returns real-time or historical prices for a list of tokens, fetched in batches.
@@ -8590,6 +8637,9 @@ type Query {
8590
8637
  search: String!
8591
8638
  ): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
8592
8639
 
8640
+ """What percent of the total supply do the top 10 holders of a token hold"""
8641
+ top10HoldersPercent(tokenId: String!): Float
8642
+
8593
8643
  """Returns a list of decentralized exchange metadata."""
8594
8644
  getExchanges(
8595
8645
  """Get exchanges with missing fields. Default is `false`."""
@@ -8772,6 +8822,7 @@ type Query {
8772
8822
  """The network id of the pair."""
8773
8823
  networkId: Int!
8774
8824
  ): LiquidityMetadata
8825
+ backfillWalletState: Boolean!
8775
8826
 
8776
8827
  """Returns community gathered notes."""
8777
8828
  getCommunityNotes(input: CommunityNotesInput): CommunityNotesResponse!
@@ -9578,6 +9629,25 @@ type Subscription {
9578
9629
  ): AddTokenLifecycleEventsOutput!
9579
9630
  }
9580
9631
 
9632
+ type SuiNetworkConfig {
9633
+ id: ID!
9634
+ networkId: Int!
9635
+ baseTokenAddress: String!
9636
+ baseTokenSymbol: String!
9637
+ color: String
9638
+ defaultPairAddress: String!
9639
+ defaultPairQuoteToken: QuoteToken!
9640
+ enabled: Boolean!
9641
+ newTokensEnabled: Boolean
9642
+ mainnet: Boolean!
9643
+ name: String!
9644
+ networkIconUrl: String!
9645
+ networkName: String!
9646
+ networkShortName: String!
9647
+ stableCoinAddresses: [String!]
9648
+ wrappedBaseTokenSymbol: String!
9649
+ }
9650
+
9581
9651
  """Event data for a token swap event."""
9582
9652
  type SwapEventData {
9583
9653
  """
@@ -10178,6 +10248,9 @@ input TokenFilters {
10178
10248
  """The number of different wallets holding the token."""
10179
10249
  holders: NumberFilter
10180
10250
 
10251
+ """docs: hide"""
10252
+ notableHolderCount: NumberFilter
10253
+
10181
10254
  """The token price in USD."""
10182
10255
  priceUSD: NumberFilter
10183
10256
 
@@ -10519,6 +10592,7 @@ enum TokenRankingAttribute {
10519
10592
  high12
10520
10593
  high24
10521
10594
  holders
10595
+ notableHolderCount
10522
10596
  liquidity
10523
10597
  low1
10524
10598
  low4
package/src/sdk/Query.ts CHANGED
@@ -4,6 +4,8 @@ import {
4
4
  ApiTokenQueryVariables,
5
5
  ApiTokensDocument,
6
6
  ApiTokensQueryVariables,
7
+ BackfillWalletStateDocument,
8
+ BackfillWalletStateQueryVariables,
7
9
  BalancesDocument,
8
10
  BalancesQueryVariables,
9
11
  ChartUrlsDocument,
@@ -130,6 +132,8 @@ import {
130
132
  TokenSparklinesDocument,
131
133
  TokenSparklinesQueryVariables,
132
134
  TokensQueryVariables,
135
+ Top10HoldersPercentDocument,
136
+ Top10HoldersPercentQueryVariables,
133
137
  WalletNftCollectionAssetsDocument,
134
138
  WalletNftCollectionAssetsQueryVariables,
135
139
  WalletNftCollectionsDocument,
@@ -218,6 +222,8 @@ export class Query {
218
222
  this.sdk.query(TokenLifecycleEventsDocument, vars);
219
223
  chartUrls = async (vars: ChartUrlsQueryVariables) =>
220
224
  this.sdk.query(ChartUrlsDocument, vars);
225
+ backfillWalletState = async (vars: BackfillWalletStateQueryVariables) =>
226
+ this.sdk.query(BackfillWalletStateDocument, vars);
221
227
  getPrimePools = async (vars: GetPrimePoolsQueryVariables) =>
222
228
  this.sdk.query(GetPrimePoolsDocument, vars);
223
229
  token = async (vars: TokenQueryVariables) =>
@@ -226,6 +232,8 @@ export class Query {
226
232
  this.sdk.query(GetNftPoolStatsDocument, vars);
227
233
  getTokenEventsForMaker = async (vars: GetTokenEventsForMakerQueryVariables) =>
228
234
  this.sdk.query(GetTokenEventsForMakerDocument, vars);
235
+ top10HoldersPercent = async (vars: Top10HoldersPercentQueryVariables) =>
236
+ this.sdk.query(Top10HoldersPercentDocument, vars);
229
237
  filterNftPools = async (vars: FilterNftPoolsQueryVariables) =>
230
238
  this.sdk.query(FilterNftPoolsDocument, vars);
231
239
  getPrimePoolEvents = async (vars: GetPrimePoolEventsQueryVariables) =>
@@ -89,7 +89,7 @@ export class Subscribe {
89
89
  this.sdk.subscribe(
90
90
  `subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $statsType: TokenPairStatisticsType) {
91
91
  onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, statsType: $statsType) {
92
- exchangeId, fee, highPrice1, highPrice1w, highPrice4, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice1w, lowPrice4, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange1w, priceChange4, priceChange5m, priceChange12, priceChange24, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume1w, volume4, volume12, volume24
92
+ enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isScam, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isScam, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, exchangeId, fee, highPrice1, highPrice1w, highPrice4, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice1w, lowPrice4, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange1w, priceChange4, priceChange5m, priceChange12, priceChange24, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume1w, volume4, volume12, volume24
93
93
  }
94
94
  }`,
95
95
  vars,
@@ -128,7 +128,7 @@ export class Subscribe {
128
128
  this.sdk.subscribe(
129
129
  `subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
130
130
  onTokenEventsCreated (input: $input) {
131
- events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex }, id
131
+ events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex }, id
132
132
  }
133
133
  }`,
134
134
  vars,
@@ -232,7 +232,7 @@ export class Subscribe {
232
232
  this.sdk.subscribe(
233
233
  `subscription OnEventsCreated($address: String, $id: String, $quoteToken: QuoteToken) {
234
234
  onEventsCreated (address: $address, id: $id, quoteToken: $quoteToken) {
235
- address, events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex }, id, networkId, quoteToken
235
+ address, events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex }, id, networkId, quoteToken
236
236
  }
237
237
  }`,
238
238
  vars,