@codex-data/sdk 1.0.2 → 1.0.4

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 (90) hide show
  1. package/dist/resources/generated_queries/FilterPairs.graphql +44 -0
  2. package/dist/resources/generated_queries/FilterTokens.graphql +44 -0
  3. package/dist/resources/generated_queries/GetBars.graphql +165 -0
  4. package/dist/resources/generated_queries/GetCommunityNotes.graphql +11 -0
  5. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
  6. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
  7. package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
  8. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  9. package/dist/resources/generated_queries/Holders.graphql +1 -0
  10. package/dist/resources/generated_queries/ListPairsForToken.graphql +22 -0
  11. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
  12. package/dist/resources/generated_queries/PairMetadata.graphql +152 -0
  13. package/dist/resources/generated_queries/Token.graphql +11 -0
  14. package/dist/resources/generated_queries/Tokens.graphql +11 -0
  15. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  16. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  17. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
  18. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +152 -0
  19. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  20. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
  21. package/dist/resources/graphql.d.ts +250 -107
  22. package/dist/resources/graphql.d.ts.map +1 -1
  23. package/dist/resources/graphql.js +26 -2
  24. package/dist/resources/graphql.js.map +1 -1
  25. package/dist/resources/graphql.schema.json +1506 -931
  26. package/dist/resources/graphql.ts +260 -122
  27. package/dist/resources/schema.graphql +386 -154
  28. package/dist/sdk/Mutation.d.ts +2 -2
  29. package/dist/sdk/Mutation.js +2 -2
  30. package/dist/sdk/Query.d.ts +48 -55
  31. package/dist/sdk/Query.d.ts.map +1 -1
  32. package/dist/sdk/Query.js +47 -54
  33. package/dist/sdk/Query.js.map +1 -1
  34. package/dist/sdk/Subscribe.d.ts +13 -12
  35. package/dist/sdk/Subscribe.d.ts.map +1 -1
  36. package/dist/sdk/Subscribe.js +68 -61
  37. package/dist/sdk/Subscribe.js.map +1 -1
  38. package/dist/sdk/generated/gql.d.ts +51 -104
  39. package/dist/sdk/generated/gql.d.ts.map +1 -1
  40. package/dist/sdk/generated/gql.js +20 -26
  41. package/dist/sdk/generated/gql.js.map +1 -1
  42. package/dist/sdk/generated/graphql.d.ts +1109 -477
  43. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  44. package/dist/sdk/generated/graphql.js +48 -30
  45. package/dist/sdk/generated/graphql.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/resources/generated_queries/FilterPairs.graphql +44 -0
  48. package/src/resources/generated_queries/FilterTokens.graphql +44 -0
  49. package/src/resources/generated_queries/GetBars.graphql +165 -0
  50. package/src/resources/generated_queries/GetCommunityNotes.graphql +11 -0
  51. package/src/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
  52. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
  53. package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
  54. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  55. package/src/resources/generated_queries/Holders.graphql +1 -0
  56. package/src/resources/generated_queries/ListPairsForToken.graphql +22 -0
  57. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
  58. package/src/resources/generated_queries/PairMetadata.graphql +152 -0
  59. package/src/resources/generated_queries/Token.graphql +11 -0
  60. package/src/resources/generated_queries/Tokens.graphql +11 -0
  61. package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  62. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  63. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
  64. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +152 -0
  65. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  66. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
  67. package/src/resources/graphql.schema.json +1506 -931
  68. package/src/resources/graphql.ts +260 -122
  69. package/src/resources/schema.graphql +386 -154
  70. package/src/sdk/Mutation.ts +4 -4
  71. package/src/sdk/Query.ts +102 -130
  72. package/src/sdk/Subscribe.ts +112 -97
  73. package/src/sdk/generated/gql.ts +46 -76
  74. package/src/sdk/generated/graphql.ts +316 -235
  75. package/dist/resources/generated_queries/GetLatestPairs.graphql +0 -57
  76. package/dist/resources/generated_queries/GetParallelAssets.graphql +0 -50
  77. package/dist/resources/generated_queries/GetTokenCount.graphql +0 -3
  78. package/dist/resources/generated_queries/GetTokenInfo.graphql +0 -18
  79. package/dist/resources/generated_queries/GetTokensInfo.graphql +0 -18
  80. package/dist/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
  81. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
  82. package/dist/resources/generated_queries/PrimeBalance.graphql +0 -12
  83. package/src/resources/generated_queries/GetLatestPairs.graphql +0 -57
  84. package/src/resources/generated_queries/GetParallelAssets.graphql +0 -50
  85. package/src/resources/generated_queries/GetTokenCount.graphql +0 -3
  86. package/src/resources/generated_queries/GetTokenInfo.graphql +0 -18
  87. package/src/resources/generated_queries/GetTokensInfo.graphql +0 -18
  88. package/src/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
  89. package/src/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
  90. package/src/resources/generated_queries/PrimeBalance.graphql +0 -12
@@ -49,6 +49,7 @@ type AddNftEventsOutput {
49
49
  events: [NftEvent]!
50
50
  }
51
51
 
52
+ """Response returned by `onNftPoolEventsCreated`."""
52
53
  type AddNftPoolEventsOutput {
53
54
  collectionAddress: String!
54
55
  exchangeAddress: String!
@@ -58,11 +59,24 @@ type AddNftPoolEventsOutput {
58
59
  events: [NftPoolEvent]!
59
60
  }
60
61
 
62
+ enum AddressType {
63
+ EVM
64
+ SOL
65
+ TRON
66
+ }
67
+
68
+ """Response returned by `onTokenEventsCreated`."""
61
69
  type AddTokenEventsOutput {
70
+ """
71
+ The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`.
72
+ """
62
73
  id: String!
74
+
75
+ """A list of transactions for the token."""
63
76
  events: [Event!]!
64
77
  }
65
78
 
79
+ """Response returned by `onTokenLifecycleEventsCreated`."""
66
80
  type AddTokenLifecycleEventsOutput {
67
81
  id: String!
68
82
  events: [TokenLifecycleEvent!]!
@@ -217,7 +231,7 @@ type BarsResponse {
217
231
  """The sell volume in USD"""
218
232
  sellVolume: [String]!
219
233
 
220
- """Liqudity in USD"""
234
+ """Liquidity in USD"""
221
235
  liquidity: [String]!
222
236
 
223
237
  """The number of traders"""
@@ -225,6 +239,9 @@ type BarsResponse {
225
239
 
226
240
  """The number of transactions"""
227
241
  transactions: [Int]!
242
+
243
+ """The pair that is being returned"""
244
+ pair: Pair!
228
245
  }
229
246
 
230
247
  """
@@ -1146,6 +1163,9 @@ type EnhancedToken {
1146
1163
 
1147
1164
  """Whether or not the token is freezable"""
1148
1165
  freezable: String
1166
+
1167
+ """Launchpad data for the token"""
1168
+ launchpad: LaunchpadData
1149
1169
  }
1150
1170
 
1151
1171
  """A token transaction."""
@@ -1199,6 +1219,12 @@ type Event {
1199
1219
  """The unix timestamp for when the transaction occurred."""
1200
1220
  timestamp: Int!
1201
1221
 
1222
+ """The address of the event's token0."""
1223
+ token0Address: String
1224
+
1225
+ """The address of the event's token1."""
1226
+ token1Address: String
1227
+
1202
1228
  """The price of `token0` paid/received in USD, including any fees."""
1203
1229
  token0SwapValueUsd: String
1204
1230
 
@@ -1689,14 +1715,31 @@ input GetGasEstimateInput {
1689
1715
 
1690
1716
  """Response returned by `getNetworkStats`."""
1691
1717
  type GetNetworkStatsResponse {
1718
+ """The network trade volume in USD over the past 24 hours."""
1692
1719
  volume24: Float!
1720
+
1721
+ """The network trade volume in USD over the past 12 hours."""
1693
1722
  volume12: Float!
1723
+
1724
+ """The network trade volume in USD over the past 4 hours."""
1694
1725
  volume4: Float!
1726
+
1727
+ """The network trade volume in USD over the past hour."""
1695
1728
  volume1: Float!
1729
+
1730
+ """The network liquidity in USD."""
1696
1731
  liquidity: Float!
1732
+
1733
+ """The unique number of transactions in the past 24 hours."""
1697
1734
  transactions24: Int!
1735
+
1736
+ """The unique number of transactions in the past 12 hours."""
1698
1737
  transactions12: Int!
1738
+
1739
+ """The unique number of transactions in the past 4 hours."""
1699
1740
  transactions4: Int!
1741
+
1742
+ """The unique number of transactions in the past hour."""
1700
1743
  transactions1: Int!
1701
1744
  }
1702
1745
 
@@ -1800,11 +1843,12 @@ input HoldersInputSort {
1800
1843
  direction: RankingDirection
1801
1844
  }
1802
1845
 
1846
+ """Response returned by `holders`."""
1803
1847
  type HoldersResponse {
1804
- """The list wallets for a token."""
1848
+ """The list of wallets holding the token."""
1805
1849
  items: [Balance!]!
1806
1850
 
1807
- """the unique count of holders for the token."""
1851
+ """The unique count of holders for the token."""
1808
1852
  count: Int!
1809
1853
 
1810
1854
  """A cursor for use in pagination."""
@@ -1814,6 +1858,9 @@ type HoldersResponse {
1814
1858
  Status of holder. Disabled if on unsupported network or there is insufficient holder data.
1815
1859
  """
1816
1860
  status: HoldersStatus!
1861
+
1862
+ """What percentage of the total supply do the top 10 holders hold."""
1863
+ top10HoldersPercent: Float
1817
1864
  }
1818
1865
 
1819
1866
  enum HoldersSortAttribute {
@@ -1826,6 +1873,24 @@ enum HoldersStatus {
1826
1873
  DISABLED
1827
1874
  }
1828
1875
 
1876
+ """Response returned by `onHoldersUpdated`."""
1877
+ type HoldersUpdate {
1878
+ """The number of different wallets holding the token."""
1879
+ holders: Int!
1880
+
1881
+ """The ID of the token (`tokenAddress:networkId`)."""
1882
+ tokenId: String!
1883
+
1884
+ """The token's contract address."""
1885
+ tokenAddress: String!
1886
+
1887
+ """The network ID that the token is deployed on."""
1888
+ networkId: Int!
1889
+
1890
+ """The list of wallets holding the token."""
1891
+ balances: [Balance!]!
1892
+ }
1893
+
1829
1894
  """Bar chart data."""
1830
1895
  type IndividualBarData {
1831
1896
  """The opening price."""
@@ -1870,7 +1935,7 @@ type IndividualBarData {
1870
1935
  """The sell volume in USD"""
1871
1936
  sellVolume: String!
1872
1937
 
1873
- """Liqudity in USD"""
1938
+ """Liquidity in USD"""
1874
1939
  liquidity: String!
1875
1940
 
1876
1941
  """The number of traders"""
@@ -2125,6 +2190,36 @@ type LatestTokenSimResults {
2125
2190
  openTradingCall: String
2126
2191
  }
2127
2192
 
2193
+ """Launchpad data for the token"""
2194
+ type LaunchpadData {
2195
+ """The percentage of the pool that was sold to the public."""
2196
+ graduationPercent: Float
2197
+
2198
+ """The address of the pool."""
2199
+ poolAddress: String
2200
+
2201
+ """The unix timestamp when the launchpad was completed."""
2202
+ completedAt: Int
2203
+
2204
+ """Indicates if the launchpad is completed."""
2205
+ completed: Boolean
2206
+
2207
+ """The slot number when the launchpad was completed."""
2208
+ completedSlot: Int
2209
+
2210
+ """The slot number when the launchpad was migrated."""
2211
+ migratedSlot: Int
2212
+
2213
+ """The unix timestamp when the launchpad was migrated."""
2214
+ migratedAt: Int
2215
+
2216
+ """Indicates if the launchpad was migrated."""
2217
+ migrated: Boolean
2218
+
2219
+ """The pool address after the launchpad was migrated."""
2220
+ migratedPoolAddress: String
2221
+ }
2222
+
2128
2223
  scalar link__Import
2129
2224
 
2130
2225
  enum link__Purpose {
@@ -2297,11 +2392,25 @@ input MakerEventsQueryInput {
2297
2392
  """The specific wallet address to filter by."""
2298
2393
  maker: String!
2299
2394
 
2395
+ """The time range to filter by."""
2396
+ timestamp: EventQueryTimestampInput
2397
+
2300
2398
  """The network ID to filter by."""
2301
- networkId: Int!
2399
+ networkId: Int
2302
2400
 
2303
- """The token of interest. Can be `token0` or `token1`."""
2304
- quoteToken: QuoteToken
2401
+ """docs: hide"""
2402
+ quoteToken: QuoteToken @deprecated(reason: "Not used")
2403
+
2404
+ """
2405
+ The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
2406
+ """
2407
+ priceUsdTotal: NumberFilter
2408
+
2409
+ """The specific event type to filter by."""
2410
+ eventType: EventType
2411
+
2412
+ """The token involved in the event."""
2413
+ tokenAddress: String
2305
2414
  }
2306
2415
 
2307
2416
  """The status for a network supported on Defined."""
@@ -5964,6 +6073,11 @@ input OneOfNumberConditionInput {
5964
6073
  oneOf: [Int!]!
5965
6074
  }
5966
6075
 
6076
+ input OnLaunchpadTokenUpdatedInput {
6077
+ address: String
6078
+ networkId: Int
6079
+ }
6080
+
5967
6081
  input OnPricesUpdatedInput {
5968
6082
  address: String!
5969
6083
  networkId: Int!
@@ -6052,6 +6166,7 @@ enum OrderState {
6052
6166
  enum OrderType {
6053
6167
  MANUAL
6054
6168
  LIMIT
6169
+ LIMIT_STRATEGY
6055
6170
  }
6056
6171
 
6057
6172
  """Metadata for a token pair."""
@@ -6084,7 +6199,11 @@ type Pair {
6084
6199
 
6085
6200
  """The unix timestamp for the creation of the pair."""
6086
6201
  createdAt: Int
6202
+
6203
+ """Metadata for the first token in the pair."""
6087
6204
  token0Data: EnhancedToken
6205
+
6206
+ """Metadata for the second token in the pair."""
6088
6207
  token1Data: EnhancedToken
6089
6208
 
6090
6209
  """The pooled amounts of each token in the pair."""
@@ -6493,41 +6612,134 @@ input PairFilters {
6493
6612
  }
6494
6613
 
6495
6614
  type PairMetadata {
6615
+ """The exchange contract ID."""
6496
6616
  exchangeId: String
6617
+
6618
+ """The exchange fee for swaps."""
6497
6619
  fee: Int
6620
+
6621
+ """The ID for the pair (`address:networkId`)."""
6498
6622
  id: String!
6623
+
6624
+ """The token of interest within the pair. Can be `token0` or `token1`."""
6499
6625
  quoteToken: QuoteToken
6626
+
6627
+ """The network ID the pair is deployed on."""
6500
6628
  networkId: Int
6629
+
6630
+ """The total liquidity in the pair."""
6501
6631
  liquidity: String!
6632
+
6633
+ """
6634
+ The token with higher liquidity within the pair. Can be `token0` or `token1`.
6635
+ """
6502
6636
  liquidityToken: String
6637
+
6638
+ """
6639
+ The token with lower liquidity within the pair. Can be `token0` or `token1`.
6640
+ """
6503
6641
  nonLiquidityToken: String
6642
+
6643
+ """The contract address of the pair."""
6504
6644
  pairAddress: String!
6645
+
6646
+ """The type of statistics returned. Can be `FILTERED` or `UNFILTERED`"""
6505
6647
  statsType: TokenPairStatisticsType!
6648
+
6649
+ """The quote token price in USD."""
6506
6650
  price: String!
6651
+
6652
+ """The percent price change in the past 5 minutes. Decimal format."""
6507
6653
  priceChange5m: Float
6654
+
6655
+ """The percent price change in the past hour. Decimal format."""
6508
6656
  priceChange1: Float
6657
+
6658
+ """The percent price change in the past 4 hours. Decimal format."""
6509
6659
  priceChange4: Float
6660
+
6661
+ """The percent price change in the past 12 hours. Decimal format."""
6510
6662
  priceChange12: Float
6663
+
6664
+ """The percent price change in the past 24 hours. Decimal format."""
6511
6665
  priceChange24: Float
6666
+
6667
+ """The percent price change in the past week. Decimal format."""
6512
6668
  priceChange1w: Float
6669
+
6670
+ """
6671
+ The amount of required tick separation. Only applicable for pairs on UniswapV3.
6672
+ """
6513
6673
  tickSpacing: Int
6674
+
6675
+ """Pair metadata for the first token in the pair."""
6514
6676
  token0: PairMetadataToken!
6677
+
6678
+ """Pair metadata for the second token in the pair."""
6515
6679
  token1: PairMetadataToken!
6680
+
6681
+ """The trade volume in USD in the past hour."""
6516
6682
  volume1: String
6683
+
6684
+ """The trade volume in USD in the past 4 hours."""
6517
6685
  volume4: String
6686
+
6687
+ """The trade volume in USD in the past 12 hours."""
6518
6688
  volume12: String
6689
+
6690
+ """The trade volume in USD in the past 24 hours."""
6519
6691
  volume24: String
6692
+
6693
+ """The trade trade volume in USD in the past week."""
6520
6694
  volume1w: String
6695
+
6696
+ """The trade volume in USD in the past 5 minutes."""
6697
+ volume5m: String
6698
+
6699
+ """The highest price in USD in the past 5 minutes."""
6700
+ highPrice5m: String
6701
+
6702
+ """The highest price in USD in the past hour."""
6521
6703
  highPrice1: String
6704
+
6705
+ """The highest price in USD in the past 4 hours."""
6522
6706
  highPrice4: String
6707
+
6708
+ """The highest price in USD in the past 12 hours."""
6523
6709
  highPrice12: String
6710
+
6711
+ """The highest price in USD in the past 24 hours."""
6524
6712
  highPrice24: String
6713
+
6714
+ """The highest price in USD in the past week."""
6525
6715
  highPrice1w: String
6716
+
6717
+ """The lowest price in USD in the past 5 minutes."""
6718
+ lowPrice5m: String
6719
+
6720
+ """The lowest price in USD in the past hour."""
6526
6721
  lowPrice1: String
6722
+
6723
+ """The lowest price in USD in the past 12 hours."""
6527
6724
  lowPrice12: String
6725
+
6726
+ """The lowest price in USD in the past 24 hours."""
6528
6727
  lowPrice24: String
6728
+
6729
+ """The lowest price in USD in the past 4 hours."""
6529
6730
  lowPrice4: String
6731
+
6732
+ """The lowest price in USD in the past week."""
6530
6733
  lowPrice1w: String
6734
+
6735
+ """Token metadata for the first token in the pair."""
6736
+ enhancedToken0: EnhancedToken
6737
+
6738
+ """Token metadata for the second token in the pair."""
6739
+ enhancedToken1: EnhancedToken
6740
+
6741
+ """The unix timestamp for the creation of the pair."""
6742
+ createdAt: Int
6531
6743
  }
6532
6744
 
6533
6745
  type PairMetadataToken {
@@ -6609,47 +6821,6 @@ enum PairRankingAttribute {
6609
6821
  volumeUSD24
6610
6822
  }
6611
6823
 
6612
- """A Parallel asset."""
6613
- type ParallelAsset {
6614
- """The ID of the NFT asset (`address`:`tokenId`)."""
6615
- id: String!
6616
-
6617
- """The contract address of the NFT collection."""
6618
- address: String!
6619
-
6620
- """The token ID of the NFT asset."""
6621
- tokenId: String!
6622
-
6623
- """The network ID the NFT collection is deployed on."""
6624
- networkId: Int!
6625
-
6626
- """The NFT asset media."""
6627
- media: NftAssetMedia
6628
-
6629
- """The name of the NFT asset."""
6630
- name: String
6631
-
6632
- """The description of the NFT asset."""
6633
- description: String
6634
-
6635
- """The source image URI linked by smart contract metadata."""
6636
- originalImage: String
6637
-
6638
- """
6639
- The URI provided by the smart contract. Typically JSON that contains metadata.
6640
- """
6641
- uri: String
6642
-
6643
- """The attributes for the NFT asset."""
6644
- attributes: [NftAssetAttribute!]
6645
-
6646
- """The game data for the NFT asset."""
6647
- gameData: ParallelAssetGameData
6648
-
6649
- """Metadata for the NFT asset."""
6650
- metadata: ParallelAssetMetadata
6651
- }
6652
-
6653
6824
  """Response returned by `filterNftParallelAssets`."""
6654
6825
  type ParallelAssetFilterConnection {
6655
6826
  """The list of Parallel assets matching the filter parameters."""
@@ -6894,15 +7065,6 @@ enum ParallelAssetRankingAttribute {
6894
7065
  lastPriceNetworkBaseToken
6895
7066
  }
6896
7067
 
6897
- """Response returned by `getParallelAssets`."""
6898
- type ParallelAssetsConnection {
6899
- """A list of Parallel assets."""
6900
- items: [ParallelAsset]
6901
-
6902
- """A cursor for use in pagination."""
6903
- cursor: String
6904
- }
6905
-
6906
7068
  """Tracked changes made to a Parallel card."""
6907
7069
  type ParallelCardChange {
6908
7070
  """The token ID of the Parallel asset."""
@@ -7078,7 +7240,7 @@ type Price {
7078
7240
  priceUsd: Float!
7079
7241
 
7080
7242
  """The unix timestamp for the price."""
7081
- timestamp: Int!
7243
+ timestamp: Int
7082
7244
 
7083
7245
  """The pool that emitted the swap generating this price"""
7084
7246
  poolAddress: String!
@@ -8146,18 +8308,6 @@ type Query {
8146
8308
  contracts: [NftContractInput]
8147
8309
  ): [EnhancedNftContract]
8148
8310
 
8149
- """Returns transactions for an NFT collection across any marketplace(s)."""
8150
- getParallelAssets(
8151
- """An optional list of token IDs to filter by."""
8152
- tokenIds: [String]
8153
-
8154
- """The cursor to use for pagination."""
8155
- cursor: String
8156
-
8157
- """The maximum number of Parallel assets to return."""
8158
- limit: Int
8159
- ): ParallelAssetsConnection
8160
-
8161
8311
  """Returns a list of Parallel assets based on a variety of filters."""
8162
8312
  filterNftParallelAssets(
8163
8313
  """A set of filters to apply."""
@@ -8366,45 +8516,6 @@ type Query {
8366
8516
  offset: Int
8367
8517
  ): ExchangeFilterConnection
8368
8518
 
8369
- """Returns metadata for a given token."""
8370
- getTokenInfo(
8371
- """The contract address of the token."""
8372
- address: String!
8373
-
8374
- """The network ID the token is deployed on."""
8375
- networkId: Int!
8376
- ): TokenInfo
8377
-
8378
- """
8379
- Returns the total count of tokens on Defined. This value is updated approximately every 6 hours.
8380
- """
8381
- getTokenCount: String!
8382
-
8383
- """Returns tick data for a given Uniswap V3-style pool."""
8384
- getUniV3Ticks(
8385
- """The contract address of the pool."""
8386
- poolAddress: String!
8387
-
8388
- """
8389
- The network ID the pool is deployed on. Currently `getUniV3Ticks` is only supported on Ethereum mainnet (1).
8390
- """
8391
- networkId: Int!
8392
-
8393
- """The maximum number of ticks to return. Max is `1000`."""
8394
- limit: Int
8395
-
8396
- """Offset for pagination of ticks."""
8397
- offset: Int
8398
- ): UniV3TickConnection
8399
-
8400
- """Returns metadata for a list of given tokens."""
8401
- getTokensInfo(
8402
- """
8403
- A list of `GetTokensInfoInput`s. Accepts a maximum of 25 inputs (anything over will be truncated).
8404
- """
8405
- input: [GetTokensInfoInput!]!
8406
- ): [TokenInfo]
8407
-
8408
8519
  """Returns bucketed stats for a given token within a pair."""
8409
8520
  getDetailedStats(
8410
8521
  """The ID of the pair (`address:networkId`)."""
@@ -8511,7 +8622,23 @@ type Query {
8511
8622
  """
8512
8623
  direction: RankingDirection
8513
8624
  ): EventConnection
8514
- getTokenEventsForMaker(limit: Int, query: MakerEventsQueryInput!, cursor: String, direction: RankingDirection): MakerEventConnection
8625
+
8626
+ """Returns a list of token events for a given maker."""
8627
+ getTokenEventsForMaker(
8628
+ """The maximum number of events to return."""
8629
+ limit: Int
8630
+
8631
+ """The query filters to apply to the results."""
8632
+ query: MakerEventsQueryInput!
8633
+
8634
+ """The cursor to use for pagination."""
8635
+ cursor: String
8636
+
8637
+ """
8638
+ The order to receive the token events. Can be `DESC` (default) or `ASC`.
8639
+ """
8640
+ direction: RankingDirection
8641
+ ): MakerEventConnection
8515
8642
 
8516
8643
  """
8517
8644
  Returns real-time or historical prices for a list of tokens, fetched in batches.
@@ -8537,7 +8664,7 @@ type Query {
8537
8664
  to: Int!
8538
8665
 
8539
8666
  """
8540
- The time frame for each candle. Available options are `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D` and `7D`.
8667
+ The time frame for each candle. Available options are `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`.
8541
8668
  """
8542
8669
  resolution: String!
8543
8670
 
@@ -8564,6 +8691,9 @@ type Query {
8564
8691
 
8565
8692
  """guarantees number of bars returned is at most this number"""
8566
8693
  countback: Int
8694
+
8695
+ """specify the type of symbol you want to fetch values for (TOKEN | POOL)"""
8696
+ symbolType: SymbolType
8567
8697
  ): BarsResponse
8568
8698
 
8569
8699
  """Returns a list of tokens matching a given query string."""
@@ -8590,6 +8720,11 @@ type Query {
8590
8720
  search: String!
8591
8721
  ): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
8592
8722
 
8723
+ """
8724
+ Returns the percentage of a token’s total supply held collectively by its top 10 holders.
8725
+ """
8726
+ top10HoldersPercent(tokenId: String!): Float
8727
+
8593
8728
  """Returns a list of decentralized exchange metadata."""
8594
8729
  getExchanges(
8595
8730
  """Get exchanges with missing fields. Default is `false`."""
@@ -8631,14 +8766,14 @@ type Query {
8631
8766
  cursor: String
8632
8767
  ): TokenLifecycleEventConnection
8633
8768
 
8634
- """Find a single token by its address & network id."""
8769
+ """Returns a single token by its address & network id."""
8635
8770
  token(
8636
8771
  """Input for a token ID."""
8637
8772
  input: TokenInput!
8638
8773
  ): EnhancedToken!
8639
8774
 
8640
8775
  """
8641
- Find a list of tokens by their addresses & network id, with pagination.
8776
+ Returns a list of tokens by their addresses & network id, with pagination.
8642
8777
  """
8643
8778
  tokens(
8644
8779
  """A list of token ID input."""
@@ -8673,7 +8808,7 @@ type Query {
8673
8808
 
8674
8809
  """The cursor to use for pagination."""
8675
8810
  cursor: String
8676
- ): LatestPairConnection
8811
+ ): LatestPairConnection @deprecated(reason: "This query is longer supported. Instead use filterPairs with sort order on createdAt DESC")
8677
8812
 
8678
8813
  """Returns a list of pairs containing a given token."""
8679
8814
  listPairsForToken(
@@ -8687,20 +8822,6 @@ type Query {
8687
8822
  tokenAddress: String!
8688
8823
  ): [Pair]!
8689
8824
 
8690
- """Returns a list of token metadata."""
8691
- listFavoriteTokens(
8692
- """The list of token IDs to filter by (`address:networkId`)."""
8693
- keys: [String!]!
8694
-
8695
- """The list of network IDs to filter by."""
8696
- networkFilter: [Int!]
8697
-
8698
- """
8699
- The time frame for trending results. Can be `1`, `5`, `15`, `30`, `60`, `240`, `720`, or `1D`.
8700
- """
8701
- resolution: String
8702
- ): [TokenWithMetadata!]
8703
-
8704
8825
  """Returns a list of pair metadata for a token."""
8705
8826
  listPairsWithMetadataForToken(
8706
8827
  """The maximum number of pairs to return."""
@@ -8734,9 +8855,6 @@ type Query {
8734
8855
  """
8735
8856
  cursor: String
8736
8857
  ): PrimeHolders!
8737
-
8738
- """Fetch the balance of a wallet holding PRIME on ethereum"""
8739
- primeBalance(walletAddress: String!): BalancesResponse!
8740
8858
  getLatestTokens(
8741
8859
  """
8742
8860
  The maximum number of tokens to return. Maximum number of tokens is 50.
@@ -9438,9 +9556,21 @@ type Subscription {
9438
9556
  ): NftAsset
9439
9557
 
9440
9558
  """
9441
- Live streamed nft pool events for a given pool address or collection address
9559
+ Live streamed NFT pool events for a given pool address or collection address.
9442
9560
  """
9443
- onNftPoolEventsCreated(poolAddress: String, networkId: Int, collectionAddress: String, exchangeAddress: String): AddNftPoolEventsOutput
9561
+ onNftPoolEventsCreated(
9562
+ """The NFT pool address to filter by."""
9563
+ poolAddress: String
9564
+
9565
+ """The network ID to filter by."""
9566
+ networkId: Int
9567
+
9568
+ """The contract address of the NFT collection to filter by."""
9569
+ collectionAddress: String
9570
+
9571
+ """The contract address of the NFT AMM marketplace to filter by."""
9572
+ exchangeAddress: String
9573
+ ): AddNftPoolEventsOutput
9444
9574
 
9445
9575
  """Live-streamed bar chart data to track price changes over time."""
9446
9576
  onBarsUpdated(
@@ -9565,10 +9695,15 @@ type Subscription {
9565
9695
  ): EventLabel
9566
9696
  onSimulateTokenContract(contractAddress: String, networkId: Int!, simulationId: String): SimulateTokenContractResult!
9567
9697
 
9568
- """Live streamed events for a given token across all it's pools"""
9698
+ """Live-streamed events for a given token across all it's pools"""
9569
9699
  onTokenEventsCreated(input: OnTokenEventsCreatedInput!): AddTokenEventsOutput!
9570
9700
 
9571
- """Live-streamed token lifecycle events (mints and burns)"""
9701
+ """
9702
+ Live-streamed list of wallets that hold a given token. Also has the unique count of holders for that token.
9703
+ """
9704
+ onHoldersUpdated(tokenId: String!): HoldersUpdate
9705
+
9706
+ """Live-streamed token lifecycle events (mints and burns)."""
9572
9707
  onTokenLifecycleEventsCreated(
9573
9708
  """The token contract address."""
9574
9709
  address: String
@@ -9578,6 +9713,25 @@ type Subscription {
9578
9713
  ): AddTokenLifecycleEventsOutput!
9579
9714
  }
9580
9715
 
9716
+ type SuiNetworkConfig {
9717
+ id: ID!
9718
+ networkId: Int!
9719
+ baseTokenAddress: String!
9720
+ baseTokenSymbol: String!
9721
+ color: String
9722
+ defaultPairAddress: String!
9723
+ defaultPairQuoteToken: QuoteToken!
9724
+ enabled: Boolean!
9725
+ newTokensEnabled: Boolean
9726
+ mainnet: Boolean!
9727
+ name: String!
9728
+ networkIconUrl: String!
9729
+ networkName: String!
9730
+ networkShortName: String!
9731
+ stableCoinAddresses: [String!]
9732
+ wrappedBaseTokenSymbol: String!
9733
+ }
9734
+
9581
9735
  """Event data for a token swap event."""
9582
9736
  type SwapEventData {
9583
9737
  """
@@ -9890,6 +10044,11 @@ type SymbolResponse {
9890
10044
  supported_resolutions: [String!]!
9891
10045
  }
9892
10046
 
10047
+ enum SymbolType {
10048
+ TOKEN
10049
+ POOL
10050
+ }
10051
+
9893
10052
  """Token burn event data."""
9894
10053
  type TokenBurnEventData {
9895
10054
  """The amount of tokens burned."""
@@ -9923,6 +10082,9 @@ type TokenFilterResult {
9923
10082
  lastTransaction: Int
9924
10083
  age: Int @deprecated(reason: "Age isn't supported - use createdAt instead")
9925
10084
 
10085
+ """The number of buys in the past 5 minutes."""
10086
+ buyCount5m: Int
10087
+
9926
10088
  """The number of buys in the past hour."""
9927
10089
  buyCount1: Int
9928
10090
 
@@ -9935,6 +10097,9 @@ type TokenFilterResult {
9935
10097
  """The number of buys in the past 4 hours."""
9936
10098
  buyCount4: Int
9937
10099
 
10100
+ """The percent price change in the past 5 minutes. Decimal format."""
10101
+ change5m: String
10102
+
9938
10103
  """The percent price change in the past hour. Decimal format."""
9939
10104
  change1: String
9940
10105
 
@@ -9947,6 +10112,9 @@ type TokenFilterResult {
9947
10112
  """The percent price change in the past 4 hours. Decimal format."""
9948
10113
  change4: String
9949
10114
 
10115
+ """The percent volume change in the past 5 minutes. Decimal format."""
10116
+ volumeChange5m: String
10117
+
9950
10118
  """The percent volume change in the past hour. Decimal format."""
9951
10119
  volumeChange1: String
9952
10120
 
@@ -9963,6 +10131,9 @@ type TokenFilterResult {
9963
10131
  exchanges: [Exchange]
9964
10132
  fdv: String @deprecated(reason: "FDV isn't supported - use marketCap instead")
9965
10133
 
10134
+ """The highest price in USD in the past 5 minutes."""
10135
+ high5m: String
10136
+
9966
10137
  """The highest price in USD in the past hour."""
9967
10138
  high1: String
9968
10139
 
@@ -9981,6 +10152,9 @@ type TokenFilterResult {
9981
10152
  """The token of interest. Can be `token0` or `token1`."""
9982
10153
  quoteToken: String
9983
10154
 
10155
+ """The lowest price in USD in the past 5 minutes."""
10156
+ low5m: String
10157
+
9984
10158
  """The lowest price in USD in the past hour."""
9985
10159
  low1: String
9986
10160
 
@@ -10004,6 +10178,9 @@ type TokenFilterResult {
10004
10178
  """The token price in USD."""
10005
10179
  priceUSD: String
10006
10180
 
10181
+ """The number of sells in the past 5 minutes."""
10182
+ sellCount5m: Int
10183
+
10007
10184
  """The number of sells in the past hour."""
10008
10185
  sellCount1: Int
10009
10186
 
@@ -10019,6 +10196,9 @@ type TokenFilterResult {
10019
10196
  """Metadata for the token."""
10020
10197
  token: EnhancedToken
10021
10198
 
10199
+ """The number of transactions in the past 5 minutes."""
10200
+ txnCount5m: Int
10201
+
10022
10202
  """The number of transactions in the past hour."""
10023
10203
  txnCount1: Int
10024
10204
 
@@ -10031,6 +10211,9 @@ type TokenFilterResult {
10031
10211
  """The number of transactions in the past 4 hours."""
10032
10212
  txnCount4: Int
10033
10213
 
10214
+ """The unique number of buys in the past 5 minutes."""
10215
+ uniqueBuys5m: Int
10216
+
10034
10217
  """The unique number of buys in the past hour."""
10035
10218
  uniqueBuys1: Int
10036
10219
 
@@ -10043,6 +10226,9 @@ type TokenFilterResult {
10043
10226
  """The unique number of buys in the past 4 hours."""
10044
10227
  uniqueBuys4: Int
10045
10228
 
10229
+ """The unique number of sells in the past 5 minutes."""
10230
+ uniqueSells5m: Int
10231
+
10046
10232
  """The unique number of sells in the past hour."""
10047
10233
  uniqueSells1: Int
10048
10234
 
@@ -10055,6 +10241,9 @@ type TokenFilterResult {
10055
10241
  """The unique number of sells in the past 4 hours."""
10056
10242
  uniqueSells4: Int
10057
10243
 
10244
+ """The unique number of transactions in the past 5 minutes."""
10245
+ uniqueTransactions5m: Int
10246
+
10058
10247
  """The unique number of transactions in the past hour."""
10059
10248
  uniqueTransactions1: Int
10060
10249
 
@@ -10070,6 +10259,9 @@ type TokenFilterResult {
10070
10259
  """The trade volume in USD in the past hour."""
10071
10260
  volume1: String
10072
10261
 
10262
+ """The trade volume in USD in the past 5 minutes."""
10263
+ volume5m: String
10264
+
10073
10265
  """The trade volume in USD in the past 12 hours."""
10074
10266
  volume12: String
10075
10267
 
@@ -10095,6 +10287,9 @@ input TokenFilters {
10095
10287
  lastTransaction: NumberFilter
10096
10288
  age: NumberFilter @deprecated(reason: "Age isn't supported - use createdAt instead")
10097
10289
 
10290
+ """The number of buys in the past 5 minutes."""
10291
+ buyCount5m: NumberFilter
10292
+
10098
10293
  """The number of buys in the past hour."""
10099
10294
  buyCount1: NumberFilter
10100
10295
 
@@ -10107,6 +10302,9 @@ input TokenFilters {
10107
10302
  """The number of buys in the past 4 hours."""
10108
10303
  buyCount4: NumberFilter
10109
10304
 
10305
+ """The percent price change in the past 5 minutes. Decimal format."""
10306
+ change5m: NumberFilter
10307
+
10110
10308
  """The percent price change in the past hour. Decimal format."""
10111
10309
  change1: NumberFilter
10112
10310
 
@@ -10119,6 +10317,9 @@ input TokenFilters {
10119
10317
  """The percent price change in the past 4 hours. Decimal format."""
10120
10318
  change4: NumberFilter
10121
10319
 
10320
+ """The percent volume change in the past 5 minutes. Decimal format."""
10321
+ volumeChange5m: NumberFilter
10322
+
10122
10323
  """The percent volume change in the past hour. Decimal format."""
10123
10324
  volumeChange1: NumberFilter
10124
10325
 
@@ -10140,6 +10341,9 @@ input TokenFilters {
10140
10341
  exchangeAddress: [String]
10141
10342
  fdv: NumberFilter @deprecated(reason: "FDV isn't supported - use marketCap instead")
10142
10343
 
10344
+ """The highest price in USD in the past 5 minutes."""
10345
+ high5m: NumberFilter
10346
+
10143
10347
  """The highest price in USD in the past hour."""
10144
10348
  high1: NumberFilter
10145
10349
 
@@ -10158,6 +10362,9 @@ input TokenFilters {
10158
10362
  """The lowest price in USD in the past hour."""
10159
10363
  low1: NumberFilter
10160
10364
 
10365
+ """The lowest price in USD in the past 5 minutes."""
10366
+ low5m: NumberFilter
10367
+
10161
10368
  """The lowest price in USD in the past 12 hours."""
10162
10369
  low12: NumberFilter
10163
10370
 
@@ -10178,12 +10385,18 @@ input TokenFilters {
10178
10385
  """The number of different wallets holding the token."""
10179
10386
  holders: NumberFilter
10180
10387
 
10388
+ """docs: hide"""
10389
+ notableHolderCount: NumberFilter
10390
+
10181
10391
  """The token price in USD."""
10182
10392
  priceUSD: NumberFilter
10183
10393
 
10184
10394
  """The number of sells in the past hour."""
10185
10395
  sellCount1: NumberFilter
10186
10396
 
10397
+ """The number of sells in the past 5 minutes."""
10398
+ sellCount5m: NumberFilter
10399
+
10187
10400
  """The number of sells in the past 12 hours."""
10188
10401
  sellCount12: NumberFilter
10189
10402
 
@@ -10193,6 +10406,9 @@ input TokenFilters {
10193
10406
  """The number of sells in the past 4 hours."""
10194
10407
  sellCount4: NumberFilter
10195
10408
 
10409
+ """The number of transactions in the past 5 minutes."""
10410
+ txnCount5m: NumberFilter
10411
+
10196
10412
  """The number of transactions in the past hour."""
10197
10413
  txnCount1: NumberFilter
10198
10414
 
@@ -10208,6 +10424,9 @@ input TokenFilters {
10208
10424
  """The unique number of buys in the past hour."""
10209
10425
  uniqueBuys1: NumberFilter
10210
10426
 
10427
+ """The unique number of buys in the past 5 minutes."""
10428
+ uniqueBuys5m: NumberFilter
10429
+
10211
10430
  """The unique number of buys in the past 12 hours."""
10212
10431
  uniqueBuys12: NumberFilter
10213
10432
 
@@ -10217,6 +10436,9 @@ input TokenFilters {
10217
10436
  """The unique number of buys in the past 4 hours."""
10218
10437
  uniqueBuys4: NumberFilter
10219
10438
 
10439
+ """The unique number of sells in the past 5 minutes."""
10440
+ uniqueSells5m: NumberFilter
10441
+
10220
10442
  """The unique number of sells in the past hour."""
10221
10443
  uniqueSells1: NumberFilter
10222
10444
 
@@ -10232,6 +10454,9 @@ input TokenFilters {
10232
10454
  """The unique number of transactions in the past hour."""
10233
10455
  uniqueTransactions1: NumberFilter
10234
10456
 
10457
+ """The unique number of transactions in the past 5 minutes."""
10458
+ uniqueTransactions5m: NumberFilter
10459
+
10235
10460
  """The unique number of transactions in the past 12 hours."""
10236
10461
  uniqueTransactions12: NumberFilter
10237
10462
 
@@ -10253,6 +10478,9 @@ input TokenFilters {
10253
10478
  """The trade volume in USD in the past 4 hours."""
10254
10479
  volume4: NumberFilter
10255
10480
 
10481
+ """The trade volume in USD in the past 5 minutes."""
10482
+ volume5m: NumberFilter
10483
+
10256
10484
  """
10257
10485
  Whether to include tokens that have been flagged as scams. Default: false
10258
10486
  """
@@ -10368,16 +10596,19 @@ type TokenLifecycleEvent {
10368
10596
  data: TokenLifecycleEventData!
10369
10597
  }
10370
10598
 
10371
- """Response returned by `TokenLifecycleEvents`."""
10599
+ """Response returned by `tokenLifecycleEvents`."""
10372
10600
  type TokenLifecycleEventConnection {
10601
+ """A list of transactions for a token's top pair."""
10373
10602
  items: [TokenLifecycleEvent]!
10603
+
10604
+ """A cursor for use in pagination."""
10374
10605
  cursor: String
10375
10606
  }
10376
10607
 
10377
10608
  """Event data for a token's lifecycle."""
10378
10609
  union TokenLifecycleEventData = TokenBurnEventData | TokenMintEventData
10379
10610
 
10380
- """Input type of `TokenLifecycleEvents` query."""
10611
+ """Input type of `tokenLifecycleEvents` query."""
10381
10612
  input TokenLifecycleEventsQueryInput {
10382
10613
  """The token contract address to filter by."""
10383
10614
  address: String!
@@ -10502,30 +10733,37 @@ enum TokenRankingAttribute {
10502
10733
  createdAt
10503
10734
  lastTransaction
10504
10735
  age @deprecated(reason: "Use createdAt instead")
10736
+ buyCount5m
10505
10737
  buyCount1
10506
10738
  buyCount4
10507
10739
  buyCount12
10508
10740
  buyCount24
10741
+ change5m
10509
10742
  change1
10510
10743
  change4
10511
10744
  change12
10512
10745
  change24
10746
+ volumeChange5m
10513
10747
  volumeChange1
10514
10748
  volumeChange4
10515
10749
  volumeChange12
10516
10750
  volumeChange24
10751
+ high5m
10517
10752
  high1
10518
10753
  high4
10519
10754
  high12
10520
10755
  high24
10521
10756
  holders
10757
+ notableHolderCount
10522
10758
  liquidity
10759
+ low5m
10523
10760
  low1
10524
10761
  low4
10525
10762
  low12
10526
10763
  low24
10527
10764
  marketCap
10528
10765
  priceUSD
10766
+ sellCount5m
10529
10767
  sellCount1
10530
10768
  sellCount4
10531
10769
  sellCount12
@@ -10535,22 +10773,27 @@ enum TokenRankingAttribute {
10535
10773
  trendingScore4
10536
10774
  trendingScore12
10537
10775
  trendingScore24
10776
+ txnCount5m
10538
10777
  txnCount1
10539
10778
  txnCount4
10540
10779
  txnCount12
10541
10780
  txnCount24
10781
+ uniqueBuys5m
10542
10782
  uniqueBuys1
10543
10783
  uniqueBuys4
10544
10784
  uniqueBuys12
10545
10785
  uniqueBuys24
10786
+ uniqueSells5m
10546
10787
  uniqueSells1
10547
10788
  uniqueSells4
10548
10789
  uniqueSells12
10549
10790
  uniqueSells24
10791
+ uniqueTransactions5m
10550
10792
  uniqueTransactions1
10551
10793
  uniqueTransactions4
10552
10794
  uniqueTransactions12
10553
10795
  uniqueTransactions24
10796
+ volume5m
10554
10797
  volume1
10555
10798
  volume4
10556
10799
  volume12
@@ -10866,29 +11109,18 @@ type UnconfirmedSwapEventData {
10866
11109
 
10867
11110
  """The type of token event, `Swap`."""
10868
11111
  type: EventType!
10869
- }
10870
11112
 
10871
- type UniV3Tick {
10872
- tick: Int
10873
- liquidityNet: String
10874
- price0: String
10875
- price1: String
11113
+ """The amount of `baseToken` involved in the swap"""
11114
+ amountBaseToken: String
10876
11115
  }
10877
11116
 
10878
- """Response returned by `getUniV3Ticks`."""
10879
- type UniV3TickConnection {
10880
- """The list of Uni V3 ticks matching the filter parameters."""
10881
- results: [UniV3Tick]
10882
-
10883
- """The number of ticks returned."""
10884
- count: Int
11117
+ scalar Void
10885
11118
 
10886
- """Where in the list the server started when returning items."""
10887
- offset: Int
11119
+ type WalletChartRange {
11120
+ start: Int!
11121
+ end: Int!
10888
11122
  }
10889
11123
 
10890
- scalar Void
10891
-
10892
11124
  type WalletNftCollection {
10893
11125
  """The address of the wallet."""
10894
11126
  walletAddress: String!