@codex-data/sdk 1.0.0-rc1 → 1.0.0-rc3

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 (113) hide show
  1. package/dist/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  2. package/dist/resources/generated_queries/FilterPairs.graphql +8 -0
  3. package/dist/resources/generated_queries/FilterTokens.graphql +7 -0
  4. package/dist/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  5. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
  6. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
  7. package/dist/resources/generated_queries/GetEventLabels.graphql +11 -0
  8. package/dist/resources/generated_queries/GetNftEvents.graphql +46 -0
  9. package/dist/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  10. package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  11. package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
  12. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
  13. package/dist/resources/generated_queries/GetTokenInfo.graphql +1 -0
  14. package/dist/resources/generated_queries/GetTokensInfo.graphql +1 -0
  15. package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
  16. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
  17. package/dist/resources/generated_queries/ListPairsForToken.graphql +2 -0
  18. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
  19. package/dist/resources/generated_queries/ListTopTokens.graphql +1 -0
  20. package/dist/resources/generated_queries/Token.graphql +1 -0
  21. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  22. package/dist/resources/generated_queries/Tokens.graphql +1 -0
  23. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  24. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  25. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  26. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  27. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  28. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  29. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  30. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  31. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  32. package/dist/resources/graphql.d.ts +138 -13
  33. package/dist/resources/graphql.d.ts.map +1 -1
  34. package/dist/resources/graphql.js +8 -0
  35. package/dist/resources/graphql.js.map +1 -1
  36. package/dist/resources/graphql.schema.json +940 -122
  37. package/dist/resources/graphql.ts +148 -14
  38. package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
  39. package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
  40. package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
  41. package/dist/resources/schema.graphql +185 -16
  42. package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  43. package/dist/scripts/generateGraphql.d.ts +1 -0
  44. package/dist/scripts/generateGraphql.d.ts.map +1 -1
  45. package/dist/scripts/generateGraphql.js +48 -12
  46. package/dist/scripts/generateGraphql.js.map +1 -1
  47. package/dist/sdk/Mutation.d.ts +1 -1
  48. package/dist/sdk/Mutation.js +1 -1
  49. package/dist/sdk/Query.d.ts +55 -54
  50. package/dist/sdk/Query.d.ts.map +1 -1
  51. package/dist/sdk/Query.js +54 -53
  52. package/dist/sdk/Query.js.map +1 -1
  53. package/dist/sdk/Subscribe.d.ts +12 -11
  54. package/dist/sdk/Subscribe.d.ts.map +1 -1
  55. package/dist/sdk/Subscribe.js +80 -55
  56. package/dist/sdk/Subscribe.js.map +1 -1
  57. package/dist/sdk/generated/gql.d.ts +76 -58
  58. package/dist/sdk/generated/gql.d.ts.map +1 -1
  59. package/dist/sdk/generated/gql.js +31 -29
  60. package/dist/sdk/generated/gql.js.map +1 -1
  61. package/dist/sdk/generated/graphql.d.ts +2908 -90
  62. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  63. package/dist/sdk/generated/graphql.js +41 -31
  64. package/dist/sdk/generated/graphql.js.map +1 -1
  65. package/dist/sdk/index.d.ts.map +1 -1
  66. package/dist/sdk/index.js +1 -0
  67. package/dist/sdk/index.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  70. package/src/resources/generated_queries/FilterPairs.graphql +8 -0
  71. package/src/resources/generated_queries/FilterTokens.graphql +7 -0
  72. package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  73. package/src/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
  74. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
  75. package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
  76. package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
  77. package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  78. package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  79. package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
  80. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
  81. package/src/resources/generated_queries/GetTokenInfo.graphql +1 -0
  82. package/src/resources/generated_queries/GetTokensInfo.graphql +1 -0
  83. package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
  84. package/src/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
  85. package/src/resources/generated_queries/ListPairsForToken.graphql +2 -0
  86. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
  87. package/src/resources/generated_queries/ListTopTokens.graphql +1 -0
  88. package/src/resources/generated_queries/Token.graphql +1 -0
  89. package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  90. package/src/resources/generated_queries/Tokens.graphql +1 -0
  91. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  92. package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  93. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  94. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  95. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  96. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  97. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  98. package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  99. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  100. package/src/resources/graphql.schema.json +940 -122
  101. package/src/resources/graphql.ts +148 -14
  102. package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
  103. package/src/resources/queries_override/GetEventLabels.graphql +35 -0
  104. package/src/resources/queries_override/GetWebhooks.graphql +134 -0
  105. package/src/resources/schema.graphql +185 -16
  106. package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  107. package/src/scripts/generateGraphql.ts +87 -17
  108. package/src/sdk/Mutation.ts +2 -2
  109. package/src/sdk/Query.ts +117 -113
  110. package/src/sdk/Subscribe.ts +118 -85
  111. package/src/sdk/generated/gql.ts +68 -58
  112. package/src/sdk/generated/graphql.ts +226 -72
  113. package/src/sdk/index.ts +1 -0
@@ -68,6 +68,11 @@ export type AddTokenLifecycleEventsOutput = {
68
68
  id: Scalars['String']['output'];
69
69
  };
70
70
 
71
+ export type AddTrackedWalletEventsOutput = {
72
+ __typename?: 'AddTrackedWalletEventsOutput';
73
+ userId: Scalars['String']['output'];
74
+ };
75
+
71
76
  /** Response returned by `onUnconfirmedEventsCreated`. */
72
77
  export type AddUnconfirmedEventsOutput = {
73
78
  __typename?: 'AddUnconfirmedEventsOutput';
@@ -362,7 +367,7 @@ export enum CostBasisMethod {
362
367
  export type CreateApiTokensInput = {
363
368
  /** Number of tokens to create, default is 1 */
364
369
  count?: InputMaybe<Scalars['Int']['input']>;
365
- /** Number of milliseconds until the token expires, defaults to 1 hour (3600000) */
370
+ /** Number of seconds until the token expires, defaults to 1 hour (3600) */
366
371
  expiresIn?: InputMaybe<Scalars['Int']['input']>;
367
372
  /** Number of requests allowed per token, represented as a string, default is 5000 */
368
373
  requestLimit?: InputMaybe<Scalars['String']['input']>;
@@ -374,6 +379,7 @@ export type CreateNftEventWebhookArgs = {
374
379
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
375
380
  callbackUrl: Scalars['String']['input'];
376
381
  conditions: NftEventWebhookConditionInput;
382
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
377
383
  groupId?: InputMaybe<Scalars['String']['input']>;
378
384
  name: Scalars['String']['input'];
379
385
  publishingType?: InputMaybe<PublishingType>;
@@ -391,6 +397,7 @@ export type CreatePriceWebhookArgs = {
391
397
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
392
398
  callbackUrl: Scalars['String']['input'];
393
399
  conditions: PriceEventWebhookConditionInput;
400
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
394
401
  groupId?: InputMaybe<Scalars['String']['input']>;
395
402
  name: Scalars['String']['input'];
396
403
  publishingType?: InputMaybe<PublishingType>;
@@ -408,6 +415,7 @@ export type CreateRawTransactionWebhookArgs = {
408
415
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
409
416
  callbackUrl: Scalars['String']['input'];
410
417
  conditions: RawTransactionWebhookConditionInput;
418
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
411
419
  groupId?: InputMaybe<Scalars['String']['input']>;
412
420
  name: Scalars['String']['input'];
413
421
  publishingType?: InputMaybe<PublishingType>;
@@ -425,6 +433,7 @@ export type CreateTokenPairEventWebhookArgs = {
425
433
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
426
434
  callbackUrl: Scalars['String']['input'];
427
435
  conditions: TokenPairEventWebhookConditionInput;
436
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
428
437
  groupId?: InputMaybe<Scalars['String']['input']>;
429
438
  name: Scalars['String']['input'];
430
439
  publishingType?: InputMaybe<PublishingType>;
@@ -1153,9 +1162,10 @@ export type FrontRunLabelData = {
1153
1162
 
1154
1163
  export type GasEstimate = {
1155
1164
  __typename?: 'GasEstimate';
1156
- approveTxHash?: Maybe<Scalars['String']['output']>;
1157
1165
  error?: Maybe<Scalars['String']['output']>;
1166
+ errorReason?: Maybe<Scalars['String']['output']>;
1158
1167
  gasLimitEstimate?: Maybe<Scalars['String']['output']>;
1168
+ gasPrice?: Maybe<Scalars['String']['output']>;
1159
1169
  totalFee?: Maybe<Scalars['String']['output']>;
1160
1170
  };
1161
1171
 
@@ -1206,6 +1216,7 @@ export type GetGasEstimateInput = {
1206
1216
  outputTokenAddress: Scalars['String']['input'];
1207
1217
  poolAddress?: InputMaybe<Scalars['String']['input']>;
1208
1218
  sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
1219
+ slippage?: InputMaybe<Scalars['Float']['input']>;
1209
1220
  userId?: InputMaybe<Scalars['Int']['input']>;
1210
1221
  walletId?: InputMaybe<Scalars['Int']['input']>;
1211
1222
  };
@@ -1265,6 +1276,7 @@ export type GetQuoteInput = {
1265
1276
  networkId: Scalars['Int']['input'];
1266
1277
  outputTokenAddress: Scalars['String']['input'];
1267
1278
  poolAddress?: InputMaybe<Scalars['String']['input']>;
1279
+ slippage?: InputMaybe<Scalars['Float']['input']>;
1268
1280
  userId?: InputMaybe<Scalars['Int']['input']>;
1269
1281
  };
1270
1282
 
@@ -1657,6 +1669,24 @@ export type LockedLiquidityData = {
1657
1669
  lockBreakdown: Array<Maybe<LockBreakdown>>;
1658
1670
  };
1659
1671
 
1672
+ /** Response returned by `getTokenEventsForMaker`. */
1673
+ export type MakerEventConnection = {
1674
+ __typename?: 'MakerEventConnection';
1675
+ /** A cursor for use in pagination. */
1676
+ cursor?: Maybe<Scalars['String']['output']>;
1677
+ /** A list of transactions for a token's top pair. */
1678
+ items?: Maybe<Array<Maybe<Event>>>;
1679
+ };
1680
+
1681
+ export type MakerEventsQueryInput = {
1682
+ /** The specific wallet address to filter by. */
1683
+ maker: Scalars['String']['input'];
1684
+ /** The network ID to filter by. */
1685
+ networkId: Scalars['Int']['input'];
1686
+ /** The token of interest. Can be `token0` or `token1`. */
1687
+ quoteToken?: InputMaybe<QuoteToken>;
1688
+ };
1689
+
1660
1690
  /** The status for a network supported on Defined. */
1661
1691
  export type MetadataResponse = {
1662
1692
  __typename?: 'MetadataResponse';
@@ -1670,6 +1700,18 @@ export type MetadataResponse = {
1670
1700
  networkName: Scalars['String']['output'];
1671
1701
  };
1672
1702
 
1703
+ export type MigrateTrackedWalletsInput = {
1704
+ fromUserId: Scalars['String']['input'];
1705
+ toUserId: Scalars['String']['input'];
1706
+ };
1707
+
1708
+ export type MigrateTrackedWalletsOutput = {
1709
+ __typename?: 'MigrateTrackedWalletsOutput';
1710
+ fromUserId: Scalars['String']['output'];
1711
+ status: Scalars['String']['output'];
1712
+ toUserId: Scalars['String']['output'];
1713
+ };
1714
+
1673
1715
  /** Event data for a token mint event. */
1674
1716
  export type MintEventData = {
1675
1717
  __typename?: 'MintEventData';
@@ -4313,6 +4355,8 @@ export type OnBarsUpdatedResponse = {
4313
4355
  pairId: Scalars['String']['output'];
4314
4356
  /** The quote token within the pair. */
4315
4357
  quoteToken?: Maybe<QuoteToken>;
4358
+ /** The address of the token being quoted */
4359
+ quoteTokenAddress: Scalars['String']['output'];
4316
4360
  /** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
4317
4361
  statsType: TokenPairStatisticsType;
4318
4362
  /** The unix timestamp for the new bar. */
@@ -4324,6 +4368,34 @@ export type OnPricesUpdatedInput = {
4324
4368
  networkId: Scalars['Int']['input'];
4325
4369
  };
4326
4370
 
4371
+ /** Response returned by `onBarsUpdated`. */
4372
+ export type OnTokenBarsUpdatedResponse = {
4373
+ __typename?: 'OnTokenBarsUpdatedResponse';
4374
+ /** Price data broken down by resolution. */
4375
+ aggregates: ResolutionBarData;
4376
+ /**
4377
+ * The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
4378
+ * For example, `0000000016414564#00000224#00000413`.
4379
+ */
4380
+ eventSortKey: Scalars['String']['output'];
4381
+ /** The network ID the pair is deployed on. */
4382
+ networkId: Scalars['Int']['output'];
4383
+ /** The contract address for the pair. */
4384
+ pairAddress: Scalars['String']['output'];
4385
+ /** The ID for the pair (`pairAddress`:`networkId`). */
4386
+ pairId: Scalars['String']['output'];
4387
+ /** The quote token within the pair. */
4388
+ quoteToken?: Maybe<QuoteToken>;
4389
+ /** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
4390
+ statsType: TokenPairStatisticsType;
4391
+ /** The unix timestamp for the new bar. */
4392
+ timestamp: Scalars['Int']['output'];
4393
+ /** The address of the token being quoted */
4394
+ tokenAddress: Scalars['String']['output'];
4395
+ /** The address of the token being quoted */
4396
+ tokenId: Scalars['String']['output'];
4397
+ };
4398
+
4327
4399
  export type OnTokenEventsCreatedInput = {
4328
4400
  networkId: Scalars['Int']['input'];
4329
4401
  tokenAddress: Scalars['String']['input'];
@@ -4524,6 +4596,14 @@ export type PairFilterResult = {
4524
4596
  uniqueTransactions12?: Maybe<Scalars['Int']['output']>;
4525
4597
  /** The unique number of transactions in the past 24 hours. */
4526
4598
  uniqueTransactions24?: Maybe<Scalars['Int']['output']>;
4599
+ /** The percent volume change in the past hour. Decimal format. */
4600
+ volumeChange1?: Maybe<Scalars['String']['output']>;
4601
+ /** The percent volume change in the past 4 hours. Decimal format. */
4602
+ volumeChange4?: Maybe<Scalars['String']['output']>;
4603
+ /** The percent volume change in the past 12 hours. Decimal format. */
4604
+ volumeChange12?: Maybe<Scalars['String']['output']>;
4605
+ /** The percent volume change in the past 24 hours. Decimal format. */
4606
+ volumeChange24?: Maybe<Scalars['String']['output']>;
4527
4607
  /** The trade volume in USD in the past hour. */
4528
4608
  volumeUSD1?: Maybe<Scalars['String']['output']>;
4529
4609
  /** The trade volume in USD in the past 4 hours. */
@@ -4628,6 +4708,14 @@ export type PairFilters = {
4628
4708
  uniqueTransactions12?: InputMaybe<NumberFilter>;
4629
4709
  /** The unique number of transactions in the past 24 hours. */
4630
4710
  uniqueTransactions24?: InputMaybe<NumberFilter>;
4711
+ /** The percent volume change in the past hour. Decimal format. */
4712
+ volumeChange1?: InputMaybe<NumberFilter>;
4713
+ /** The percent volume change in the past 4 hours. Decimal format. */
4714
+ volumeChange4?: InputMaybe<NumberFilter>;
4715
+ /** The percent volume change in the past 12 hours. Decimal format. */
4716
+ volumeChange12?: InputMaybe<NumberFilter>;
4717
+ /** The percent volume change in the past 24 hours. Decimal format. */
4718
+ volumeChange24?: InputMaybe<NumberFilter>;
4631
4719
  /** The trade volume in USD in the past hour. */
4632
4720
  volumeUSD1?: InputMaybe<NumberFilter>;
4633
4721
  /** The trade volume in USD in the past 4 hours. */
@@ -4746,6 +4834,10 @@ export enum PairRankingAttribute {
4746
4834
  UniqueTransactions4 = 'uniqueTransactions4',
4747
4835
  UniqueTransactions12 = 'uniqueTransactions12',
4748
4836
  UniqueTransactions24 = 'uniqueTransactions24',
4837
+ VolumeChange1 = 'volumeChange1',
4838
+ VolumeChange4 = 'volumeChange4',
4839
+ VolumeChange12 = 'volumeChange12',
4840
+ VolumeChange24 = 'volumeChange24',
4749
4841
  VolumeUsd1 = 'volumeUSD1',
4750
4842
  VolumeUsd4 = 'volumeUSD4',
4751
4843
  VolumeUsd12 = 'volumeUSD12',
@@ -5673,6 +5765,7 @@ export type Query = {
5673
5765
  /** Returns new tokens listed over the last three days. */
5674
5766
  getLatestPairs?: Maybe<LatestPairConnection>;
5675
5767
  getLatestTokens?: Maybe<LatestTokenConnection>;
5768
+ /** Returns metadata for a given network. */
5676
5769
  getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5677
5770
  /** Returns the status of a list of networks supported on Defined. */
5678
5771
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
@@ -5717,6 +5810,7 @@ export type Query = {
5717
5810
  getTokenCount: Scalars['String']['output'];
5718
5811
  /** Returns transactions for a pair. */
5719
5812
  getTokenEvents?: Maybe<EventConnection>;
5813
+ getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5720
5814
  /** Returns metadata for a given token. */
5721
5815
  getTokenInfo?: Maybe<TokenInfo>;
5722
5816
  /** Returns real-time or historical prices for a list of tokens, fetched in batches. */
@@ -6115,6 +6209,14 @@ export type QueryGetTokenEventsArgs = {
6115
6209
  };
6116
6210
 
6117
6211
 
6212
+ export type QueryGetTokenEventsForMakerArgs = {
6213
+ cursor?: InputMaybe<Scalars['String']['input']>;
6214
+ direction?: InputMaybe<RankingDirection>;
6215
+ limit?: InputMaybe<Scalars['Int']['input']>;
6216
+ query: MakerEventsQueryInput;
6217
+ };
6218
+
6219
+
6118
6220
  export type QueryGetTokenInfoArgs = {
6119
6221
  address: Scalars['String']['input'];
6120
6222
  networkId: Scalars['Int']['input'];
@@ -6269,6 +6371,7 @@ export type QueryWalletNftCollectionsArgs = {
6269
6371
  export type Quote = {
6270
6372
  __typename?: 'Quote';
6271
6373
  exchange: QuoteExchange;
6374
+ outputAmountMin?: Maybe<Scalars['String']['output']>;
6272
6375
  poolFee?: Maybe<Scalars['String']['output']>;
6273
6376
  poolFeeBps?: Maybe<Scalars['Float']['output']>;
6274
6377
  quoteType: QuoteType;
@@ -6305,17 +6408,6 @@ export enum QuoteType {
6305
6408
  Output = 'OUTPUT'
6306
6409
  }
6307
6410
 
6308
- export type QuoteV2 = {
6309
- __typename?: 'QuoteV2';
6310
- exchange: QuoteExchange;
6311
- poolFee?: Maybe<Scalars['String']['output']>;
6312
- poolFeeBps?: Maybe<Scalars['Float']['output']>;
6313
- quoteType: QuoteType;
6314
- quotedAmount: Scalars['String']['output'];
6315
- tradeFee: Scalars['String']['output'];
6316
- tradeFeeBps: Scalars['Float']['output'];
6317
- };
6318
-
6319
6411
  /** The order of ranking. */
6320
6412
  export enum RankingDirection {
6321
6413
  Asc = 'ASC',
@@ -6404,6 +6496,8 @@ export type ResolutionBarData = {
6404
6496
  r15S?: Maybe<CurrencyBarData>;
6405
6497
  /** 30 minute resolution. */
6406
6498
  r30?: Maybe<CurrencyBarData>;
6499
+ /** 30 second resolution. */
6500
+ r30S?: Maybe<CurrencyBarData>;
6407
6501
  /** 60 minute resolution. */
6408
6502
  r60?: Maybe<CurrencyBarData>;
6409
6503
  /** 4 hour resolution. */
@@ -6786,6 +6880,8 @@ export type Subscription = {
6786
6880
  /** Live-streamed price updates for multiple tokens. */
6787
6881
  onPricesUpdated: Price;
6788
6882
  onSimulateTokenContract: SimulateTokenContractResult;
6883
+ /** Live-streamed bar chart data to track price changes over time for a token. */
6884
+ onTokenBarsUpdated?: Maybe<OnTokenBarsUpdatedResponse>;
6789
6885
  /** Live streamed events for a given token across all it's pools */
6790
6886
  onTokenEventsCreated: AddTokenEventsOutput;
6791
6887
  /** Live-streamed token lifecycle events (mints and burns) */
@@ -6880,6 +6976,12 @@ export type SubscriptionOnSimulateTokenContractArgs = {
6880
6976
  };
6881
6977
 
6882
6978
 
6979
+ export type SubscriptionOnTokenBarsUpdatedArgs = {
6980
+ statsType?: InputMaybe<TokenPairStatisticsType>;
6981
+ tokenId?: InputMaybe<Scalars['String']['input']>;
6982
+ };
6983
+
6984
+
6883
6985
  export type SubscriptionOnTokenEventsCreatedArgs = {
6884
6986
  input: OnTokenEventsCreatedInput;
6885
6987
  };
@@ -7210,6 +7312,14 @@ export type TokenFilterResult = {
7210
7312
  volume12?: Maybe<Scalars['String']['output']>;
7211
7313
  /** The trade volume in USD in the past 24 hours. */
7212
7314
  volume24?: Maybe<Scalars['String']['output']>;
7315
+ /** The percent volume change in the past hour. Decimal format. */
7316
+ volumeChange1?: Maybe<Scalars['String']['output']>;
7317
+ /** The percent volume change in the past 4 hours. Decimal format. */
7318
+ volumeChange4?: Maybe<Scalars['String']['output']>;
7319
+ /** The percent volume change in the past 12 hours. Decimal format. */
7320
+ volumeChange12?: Maybe<Scalars['String']['output']>;
7321
+ /** The percent volume change in the past 24 hours. Decimal format. */
7322
+ volumeChange24?: Maybe<Scalars['String']['output']>;
7213
7323
  };
7214
7324
 
7215
7325
  /** Input type of `TokenFilters`. */
@@ -7324,6 +7434,14 @@ export type TokenFilters = {
7324
7434
  volume12?: InputMaybe<NumberFilter>;
7325
7435
  /** The trade volume in USD in the past 24 hours. */
7326
7436
  volume24?: InputMaybe<NumberFilter>;
7437
+ /** The percent volume change in the past hour. Decimal format. */
7438
+ volumeChange1?: InputMaybe<NumberFilter>;
7439
+ /** The percent volume change in the past 4 hours. Decimal format. */
7440
+ volumeChange4?: InputMaybe<NumberFilter>;
7441
+ /** The percent volume change in the past 12 hours. Decimal format. */
7442
+ volumeChange12?: InputMaybe<NumberFilter>;
7443
+ /** The percent volume change in the past 24 hours. Decimal format. */
7444
+ volumeChange24?: InputMaybe<NumberFilter>;
7327
7445
  };
7328
7446
 
7329
7447
  /** Metadata for a token. */
@@ -7339,6 +7457,8 @@ export type TokenInfo = {
7339
7457
  description?: Maybe<Scalars['String']['output']>;
7340
7458
  /** Uniquely identifies the token. */
7341
7459
  id: Scalars['String']['output'];
7460
+ /** The token banner URL. */
7461
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
7342
7462
  /** The large token logo URL. */
7343
7463
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
7344
7464
  /** The small token logo URL. */
@@ -7544,7 +7664,11 @@ export enum TokenRankingAttribute {
7544
7664
  Volume1 = 'volume1',
7545
7665
  Volume4 = 'volume4',
7546
7666
  Volume12 = 'volume12',
7547
- Volume24 = 'volume24'
7667
+ Volume24 = 'volume24',
7668
+ VolumeChange1 = 'volumeChange1',
7669
+ VolumeChange4 = 'volumeChange4',
7670
+ VolumeChange12 = 'volumeChange12',
7671
+ VolumeChange24 = 'volumeChange24'
7548
7672
  }
7549
7673
 
7550
7674
  /** Response returned by `searchTokens`. */
@@ -7586,6 +7710,8 @@ export type TokenWithMetadata = {
7586
7710
  exchanges: Array<Exchange>;
7587
7711
  /** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
7588
7712
  id: Scalars['String']['output'];
7713
+ /** The token banner URL. */
7714
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
7589
7715
  /** The token logo URL. */
7590
7716
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
7591
7717
  /** The token logo URL. */
@@ -7707,6 +7833,14 @@ export type UnconfirmedSwapEventData = {
7707
7833
  __typename?: 'UnconfirmedSwapEventData';
7708
7834
  /** 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. */
7709
7835
  amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
7836
+ /** The price per `quoteToken` at the time of the swap in the network's base token. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in ETH. */
7837
+ priceBaseToken?: Maybe<Scalars['String']['output']>;
7838
+ /** The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`). */
7839
+ priceBaseTokenTotal?: Maybe<Scalars['String']['output']>;
7840
+ /** The price per `quoteToken` at the time of the swap in USD. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in USD ($1.00). */
7841
+ priceUsd?: Maybe<Scalars['String']['output']>;
7842
+ /** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
7843
+ priceUsdTotal?: Maybe<Scalars['String']['output']>;
7710
7844
  /** The type of token event, `Swap`. */
7711
7845
  type: EventType;
7712
7846
  };