@codex-data/sdk 1.0.12 → 1.0.13

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 (63) hide show
  1. package/dist/resources/graphql.d.ts +211 -48
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +1 -0
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/sdk/Query.d.ts +1 -7
  6. package/dist/sdk/Query.d.ts.map +1 -1
  7. package/dist/sdk/Query.js +0 -6
  8. package/dist/sdk/Query.js.map +1 -1
  9. package/dist/sdk/Subscribe.js +6 -6
  10. package/dist/sdk/generated/gql.d.ts +64 -123
  11. package/dist/sdk/generated/gql.d.ts.map +1 -1
  12. package/dist/sdk/generated/gql.js +32 -38
  13. package/dist/sdk/generated/gql.js.map +1 -1
  14. package/dist/sdk/generated/graphql.d.ts +216 -1364
  15. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  16. package/dist/sdk/generated/graphql.js +36 -41
  17. package/dist/sdk/generated/graphql.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/resources/generated_queries/Balances.graphql +0 -15
  20. package/src/resources/generated_queries/DetailedWalletStats.graphql +0 -4
  21. package/src/resources/generated_queries/FilterNftPoolCollections.graphql +0 -8
  22. package/src/resources/generated_queries/FilterNftPools.graphql +0 -7
  23. package/src/resources/generated_queries/FilterPairs.graphql +0 -60
  24. package/src/resources/generated_queries/FilterTokenWallets.graphql +0 -15
  25. package/src/resources/generated_queries/FilterTokens.graphql +0 -47
  26. package/src/resources/generated_queries/GetBars.graphql +0 -31
  27. package/src/resources/generated_queries/GetCommunityNotes.graphql +0 -15
  28. package/src/resources/generated_queries/GetDetailedPairStats.graphql +0 -30
  29. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +0 -30
  30. package/src/resources/generated_queries/GetNftEvents.graphql +0 -9
  31. package/src/resources/generated_queries/GetNftPool.graphql +0 -2
  32. package/src/resources/generated_queries/GetNftPoolCollection.graphql +0 -8
  33. package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +0 -8
  34. package/src/resources/generated_queries/GetNftPoolEvents.graphql +0 -2
  35. package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +0 -2
  36. package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +0 -2
  37. package/src/resources/generated_queries/Holders.graphql +0 -15
  38. package/src/resources/generated_queries/LiquidityLocks.graphql +0 -1
  39. package/src/resources/generated_queries/ListPairsForToken.graphql +0 -30
  40. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +0 -60
  41. package/src/resources/generated_queries/PairMetadata.graphql +0 -30
  42. package/src/resources/generated_queries/PrimeHolders.graphql +0 -15
  43. package/src/resources/generated_queries/Token.graphql +0 -15
  44. package/src/resources/generated_queries/Tokens.graphql +0 -15
  45. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -15
  46. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -15
  47. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +0 -15
  48. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +0 -9
  49. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +0 -2
  50. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +0 -30
  51. package/src/resources/graphql.schema.json +209 -133
  52. package/src/resources/graphql.ts +211 -48
  53. package/src/resources/schema.graphql +85 -71
  54. package/src/sdk/Query.ts +0 -24
  55. package/src/sdk/Subscribe.ts +6 -6
  56. package/src/sdk/generated/gql.ts +64 -94
  57. package/src/sdk/generated/graphql.ts +275 -177
  58. package/src/resources/generated_queries/FilterNetworkWallets.graphql +0 -57
  59. package/src/resources/generated_queries/GetDetailedStats.graphql +0 -338
  60. package/src/resources/generated_queries/GetLatestPairs.graphql +0 -57
  61. package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
  62. package/src/resources/generated_queries/ListTopTokens.graphql +0 -55
  63. package/src/resources/generated_queries/SearchTokens.graphql +0 -67
@@ -170,7 +170,7 @@ type Query {
170
170
  """Returns stats for an NFT collection across different time frames."""
171
171
  getNftCollectionMetadata(
172
172
  """The ID of the NFT collection (`address`:`networkId`). For example, `0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d:1`."""
173
- collectionId: String
173
+ collectionId: String @deprecated(reason: "Use address & networkId instead.")
174
174
  """The contract address of the NFT collection."""
175
175
  address: String
176
176
  """The network ID the NFT collection is deployed on."""
@@ -379,7 +379,7 @@ type Query {
379
379
  bucketCount: Int
380
380
  """The type of statistics returned. Can be `FILTERED` or `UNFILTERED`"""
381
381
  statsType: TokenPairStatisticsType
382
- ): DetailedStats
382
+ ): DetailedStats @deprecated(reason: "Use `getDetailedPairStats` instead, it has more resolutions and better support")
383
383
  """Returns bucketed stats for a given token within a pair."""
384
384
  getDetailedPairStats(
385
385
  """The contract address of the pair."""
@@ -409,7 +409,7 @@ type Query {
409
409
  networkFilter: [Int!]
410
410
  """The time frame for trending results. Can be `1`, `5`, `15`, `30`, `60`, `240`, `720`, or `1D`."""
411
411
  resolution: String
412
- ): [TokenWithMetadata!]
412
+ ): [TokenWithMetadata!] @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
413
413
  """Returns charting metadata for a given pair. Used for implementing a Trading View datafeed."""
414
414
  getSymbol(
415
415
  """The ID of the pair (`address:networkId`)."""
@@ -459,21 +459,21 @@ type Query {
459
459
  from: Int!
460
460
  """The unix timestamp for the end of the requested range."""
461
461
  to: Int!
462
- """The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`."""
462
+ """The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Resolutions lower than 1 minute are only updated for the last 24 hours due to the volume of data produced."""
463
463
  resolution: String!
464
- """The currency to use for the response. Can be `USD` (default) or `TOKEN`."""
464
+ """The currency to use for the response. Can be `USD` or `TOKEN`. Default is `USD`. Use `currencyCode: TOKEN` for native token pricing."""
465
465
  currencyCode: String
466
- """Whether to remove leading null values from the response. To fetch a token's entire history, set resolution to `1D`, `from` value to `0` and `removeLeadingNullValues` to `true`. Default is `false`."""
466
+ """Whether to remove leading null values from the response. Default is `false`. To fetch a token's entire history, set resolution to `1D`, `from` value to `0` and `removeLeadingNullValues` to `true`."""
467
467
  removeLeadingNullValues: Boolean
468
- """Whether to remove empty bars from the response. Default is `false`."""
468
+ """Whether to remove empty bars from the response. This is useful for eliminating gaps in low-activity tokens. Default is `false`."""
469
469
  removeEmptyBars: Boolean
470
- """The token of interest within the token's top pair. Can be `token0` or `token1`."""
470
+ """The token of interest within the token's top pair. Can be `token0` or `token1`. If omitted, the base token is inferred automatically. You can invert the pair by quoting the other token."""
471
471
  quoteToken: QuoteToken
472
- """The type of statistics returned. Can be `FILTERED` or `UNFILTERED`"""
472
+ """The type of statistics returned. Can be `FILTERED` or `UNFILTERED`."""
473
473
  statsType: TokenPairStatisticsType
474
- """guarantees number of bars returned is at most this number"""
474
+ """Guarantees number of bars returned is at most this number. Use `countback: 1500` with `from: 0` for maximum results."""
475
475
  countback: Int
476
- """specify the type of symbol you want to fetch values for (TOKEN | POOL)"""
476
+ """Specify the type of symbol you want to fetch values for. Can be `TOKEN` or `POOL`."""
477
477
  symbolType: SymbolType
478
478
  ): BarsResponse
479
479
  """Returns a list of tokens matching a given query string."""
@@ -488,7 +488,7 @@ type Query {
488
488
  resolution: String
489
489
  """The query string to search for. Can match a token or pair contract address or partially match a token's name or symbol. Automatically filters out tokens marked as scams."""
490
490
  search: String!
491
- ): TokenSearchResponse
491
+ ): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
492
492
  """Returns the percentage of a token's total supply held collectively by its top 10 holders."""
493
493
  top10HoldersPercent(
494
494
  tokenId: String!
@@ -554,7 +554,7 @@ type Query {
554
554
  minLiquidityFilter: Int
555
555
  """The cursor to use for pagination."""
556
556
  cursor: String
557
- ): LatestPairConnection
557
+ ): LatestPairConnection @deprecated(reason: "This query is longer supported. Instead use filterPairs with sort order on createdAt DESC")
558
558
  """Returns a list of pairs containing a given token."""
559
559
  listPairsForToken(
560
560
  """The maximum number of pairs to return."""
@@ -598,7 +598,7 @@ type Query {
598
598
  networkFilter: [Int!]
599
599
  """The offset to use for pagination."""
600
600
  offset: Int
601
- ): LatestTokenConnection
601
+ ): LatestTokenConnection @deprecated(reason: "This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.")
602
602
  """Returns liquidity locks for a given pair."""
603
603
  liquidityLocks(
604
604
  """The address of the pair."""
@@ -635,7 +635,7 @@ type Query {
635
635
  """Returns a list of wallets with stats narrowed down to a specific network."""
636
636
  filterNetworkWallets(
637
637
  input: FilterNetworkWalletsInput!
638
- ): NetworkWalletFilterConnection!
638
+ ): NetworkWalletFilterConnection! @deprecated(reason: "Use filterWallets instead")
639
639
  """Returns a list of wallets with stats narrowed down to a specific token."""
640
640
  filterTokenWallets(
641
641
  input: FilterTokenWalletsInput!
@@ -785,7 +785,7 @@ type Subscription {
785
785
  id: String
786
786
  """The network ID the pair is deployed on."""
787
787
  networkId: Int
788
- ): LatestPair
788
+ ): LatestPair @deprecated(reason: "No longer supported")
789
789
  """Live-streamed updates for newly listed tokens."""
790
790
  onLatestTokens(
791
791
  """The ID of the token (`tokenAddress`:`networkId`)."""
@@ -794,7 +794,7 @@ type Subscription {
794
794
  networkId: Int
795
795
  """The address of the token contract."""
796
796
  tokenAddress: String
797
- ): LatestToken
797
+ ): LatestToken @deprecated(reason: "No longer supported")
798
798
  """Live-streamed event labels for a token."""
799
799
  onEventLabelCreated(
800
800
  """The ID of the pair (`address`:`networkId`)."""
@@ -970,9 +970,9 @@ input BalancesInput {
970
970
  """Whether to remove scam tokens from the response."""
971
971
  removeScams: Boolean
972
972
  """The ID of the wallet (`walletAddress:networkId`)."""
973
- walletId: String
973
+ walletId: String @deprecated(reason: "Use walletAddress and networkId instead")
974
974
  """Optional token specifically request the balance for. Only works with `walletId`."""
975
- filterToken: String
975
+ filterToken: String @deprecated(reason: "Use tokens list instead")
976
976
  }
977
977
 
978
978
  type BalancesResponse {
@@ -993,7 +993,7 @@ type BarsResponse {
993
993
  """The closing price."""
994
994
  c: [Float]!
995
995
  """The volume."""
996
- v: [Int]!
996
+ v: [Int]! @deprecated(reason: "Use volume field instead")
997
997
  """The timestamp for the bar."""
998
998
  t: [Int!]!
999
999
  """The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data."""
@@ -1653,7 +1653,7 @@ type DetailedWalletStats {
1653
1653
  """The last transaction timestamp"""
1654
1654
  lastTransactionAt: Int!
1655
1655
  """The network specific stats"""
1656
- networkSpecificStats: [NetworkWalletStats!]
1656
+ networkSpecificStats: [NetworkWalletStats!] @deprecated(reason: "Use networkBreakdown instead")
1657
1657
  """The network breakdown"""
1658
1658
  networkBreakdown: [NetworkBreakdown!]
1659
1659
  """The labels associated with the wallet"""
@@ -1732,25 +1732,25 @@ type EnhancedToken {
1732
1732
  """The token symbol. For example, `APE`."""
1733
1733
  symbol: String
1734
1734
  """The total supply of the token."""
1735
- totalSupply: String
1735
+ totalSupply: String @deprecated(reason: "Use the TokenInfo type")
1736
1736
  """Community gathered links for the socials of this token."""
1737
1737
  socialLinks: SocialLinks
1738
1738
  """More metadata about the token."""
1739
1739
  info: TokenInfo
1740
1740
  """Information about the token from 3rd party sources."""
1741
- explorerData: ExplorerTokenData
1741
+ explorerData: ExplorerTokenData @deprecated(reason: "Use the TokenInfo type")
1742
1742
  """A list of exchanges where the token has been traded."""
1743
1743
  exchanges: [Exchange!]
1744
1744
  """The thumbnail token logo URL."""
1745
- imageThumbUrl: String
1745
+ imageThumbUrl: String @deprecated(reason: "Use the TokenInfo type")
1746
1746
  """The small token logo URL."""
1747
- imageSmallUrl: String
1747
+ imageSmallUrl: String @deprecated(reason: "Use the TokenInfo type")
1748
1748
  """The large token logo URL."""
1749
- imageLargeUrl: String
1749
+ imageLargeUrl: String @deprecated(reason: "Use the TokenInfo type")
1750
1750
  """The circulating supply of the token."""
1751
- circulatingSupply: String
1751
+ circulatingSupply: String @deprecated(reason: "Use the TokenInfo type")
1752
1752
  """The amount of this token in the pair."""
1753
- pooled: String
1753
+ pooled: String @deprecated(reason: "Pooled can be found on the pair instead")
1754
1754
  """The token creator's wallet address."""
1755
1755
  creatorAddress: String
1756
1756
  """The block height the token was created at."""
@@ -2031,6 +2031,8 @@ input ExchangeFilters {
2031
2031
  address: [String]
2032
2032
  """The list of network IDs to filter by."""
2033
2033
  network: [Int]
2034
+ """Scope to only verified exchanges"""
2035
+ verified: Boolean
2034
2036
  }
2035
2037
 
2036
2038
  """Input type of `ExchangeRanking`."""
@@ -2130,13 +2132,13 @@ input FilterTokenWalletsInput {
2130
2132
  """The ID of the token to filter wallets for"""
2131
2133
  tokenId: String
2132
2134
  """The wallet address to filter wallets for"""
2133
- walletAddress: String
2135
+ walletAddress: String @deprecated(reason: "Use wallets instead")
2134
2136
  """A list of wallet addresses to filter wallets for"""
2135
2137
  wallets: [String]
2136
2138
  """The network ID to filter wallets for"""
2137
2139
  networkId: Int
2138
2140
  """A set of filters to apply"""
2139
- filters: WalletTokenFilters
2141
+ filters: WalletTokenFilters @deprecated(reason: "Use filtersV2 instead")
2140
2142
  """A set of filters to apply"""
2141
2143
  filtersV2: WalletTokenFiltersV2
2142
2144
  """A phrase to search for in token symbol and name"""
@@ -2262,7 +2264,7 @@ input GetPriceInput {
2262
2264
  """The address of the pool, when omitted the top pool is used."""
2263
2265
  poolAddress: String
2264
2266
  """The maximum number of deviations from the token's Liquidity-Weighted Mean Price. This is used to mitigate low liquidity pairs producing prices that are not representative of reality. Default is `1`."""
2265
- maxDeviations: Float
2267
+ maxDeviations: Float @deprecated(reason: "This isn't taken into account anymore.")
2266
2268
  }
2267
2269
 
2268
2270
  """Input type of `getTokensInfo`."""
@@ -2290,6 +2292,8 @@ enum GraphQlNftPoolVariant {
2290
2292
  input HoldersInput {
2291
2293
  """The ID of the token (`tokenAddress:networkId`)."""
2292
2294
  tokenId: String!
2295
+ """The maximum number of holders to return. Default is 50, maximum is 200."""
2296
+ limit: Int
2293
2297
  """A cursor for use in pagination."""
2294
2298
  cursor: String
2295
2299
  """The attribute to sort the list on"""
@@ -2550,7 +2554,7 @@ type LatestTokenSimResults {
2550
2554
 
2551
2555
  type LaunchpadData {
2552
2556
  """The name of the launchpad."""
2553
- name: String
2557
+ name: String @deprecated(reason: "Use launchpadName instead")
2554
2558
  """The name of the launchpad. One of the following: Four.meme, Pump.fun, Rainbow, LaunchLab, Moonit, boop, MeteoraDBC, Vertigo, EgoTech, TokenMill V2, ArenaTrade, Bonk, Jupiter Studio, Believe, or Cooking.City."""
2555
2559
  launchpadName: String
2556
2560
  """The percentage of the pool that was sold to the public."""
@@ -2583,6 +2587,8 @@ type LaunchpadTokenEventOutput {
2583
2587
  networkId: Int!
2584
2588
  """The protocol of the token."""
2585
2589
  protocol: String!
2590
+ """The name of the launchpad. One of the following: Four.meme, Pump.fun, Rainbow, LaunchLab, Moonit, boop, MeteoraDBC, Vertigo, EgoTech, TokenMill V2, ArenaTrade, Bonk, Jupiter Studio, Believe, or Cooking.City."""
2591
+ launchpadName: String!
2586
2592
  """Metadata for the token."""
2587
2593
  token: EnhancedToken!
2588
2594
  """The number of buys in the last 24 hours."""
@@ -2679,7 +2685,7 @@ type LiquidityLock {
2679
2685
  """The protocol with which the liquidity is locked."""
2680
2686
  lockProtocol: LiquidityLockProtocol!
2681
2687
  """The protocol that created the pair"""
2682
- liquidityProtocol: LiquidityProtocol!
2688
+ liquidityProtocol: LiquidityProtocol! @deprecated(reason: "Use liquidityProtocolV2 instead")
2683
2689
  """The protocol that created the pair"""
2684
2690
  liquidityProtocolV2: String!
2685
2691
  """The amount of liquidity locked."""
@@ -4074,27 +4080,27 @@ type NftEvent {
4074
4080
  maker: String!
4075
4081
  """The wallet address of the seller."""
4076
4082
  taker: String!
4077
- tokenPrice: String!
4078
- totalPrice: String!
4083
+ tokenPrice: String! @deprecated(reason: "Some events may lack this value - use the nullable totalTradePrice. tokenPrice will return null values as an empty string.")
4084
+ totalPrice: String! @deprecated(reason: "Some events may lack this value - use the nullable totalTradePrice. totalPrice will return null values as an empty string.")
4079
4085
  """The total trade price for the transaction in the purchasing token. (The transaction can include more than 1 token)."""
4080
4086
  totalTradePrice: String
4081
- individualTokenPrice: String
4082
- individualPrice: String
4087
+ individualTokenPrice: String @deprecated(reason: "Some events may lack this value - use the nullable individualTradePrice. individualTokenPrice will return null values as an empty string.")
4088
+ individualPrice: String @deprecated(reason: "Some events may lack this value - use the nullable individualTradePrice. individualPrice will return null values as an empty string.")
4083
4089
  """The price of each individual NFT in the purchasing token."""
4084
4090
  individualTradePrice: String
4085
- baseTokenAddress: String!
4091
+ baseTokenAddress: String! @deprecated(reason: "No longer supported")
4086
4092
  """The contract address of the purchasing token."""
4087
4093
  paymentTokenAddress: String!
4088
- baseTokenPrice: String
4094
+ baseTokenPrice: String @deprecated(reason: "No longer supported")
4089
4095
  """The total trade price for the transaction in USD. (The transaction can include more than 1 token)."""
4090
4096
  totalPriceUsd: String
4091
- individualBaseTokenPrice: String
4097
+ individualBaseTokenPrice: String @deprecated(reason: "No longer supported")
4092
4098
  """The price of each individual NFT in USD."""
4093
4099
  individualPriceUsd: String
4094
- networkBaseTokenPrice: String
4100
+ networkBaseTokenPrice: String @deprecated(reason: "No longer supported")
4095
4101
  """The total trade price for the transaction in the network's base token. (The transaction can include more than 1 token)."""
4096
4102
  totalPriceNetworkBaseToken: String
4097
- individualNetworkBaseTokenPrice: String
4103
+ individualNetworkBaseTokenPrice: String @deprecated(reason: "No longer supported")
4098
4104
  """The price of each individual NFT in the network's base token."""
4099
4105
  individualPriceNetworkBaseToken: String
4100
4106
  """The event type of the transaction."""
@@ -4387,7 +4393,7 @@ type NftPoolCollectionFilterResult {
4387
4393
  """The image URL for the collection or one of the assets within the collection."""
4388
4394
  imageUrl: String
4389
4395
  """The number of NFTs in all of the collection's pools."""
4390
- nftBalance: Int
4396
+ nftBalance: Int @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
4391
4397
  """The number of NFTs in all of the collection's pools."""
4392
4398
  nftBalanceV2: String
4393
4399
  """The total liquidity of the collection in the network's base token."""
@@ -4403,18 +4409,18 @@ type NftPoolCollectionFilterResult {
4403
4409
  """The highest price at which any of the collection's pools are willing to buy an NFT in USD."""
4404
4410
  offerUSD: String
4405
4411
  """The total supply of the collection."""
4406
- totalSupply: Int
4412
+ totalSupply: Int @deprecated(reason: "totalSupply is changing from Int to String - use totalSupplyV2 instead.")
4407
4413
  totalSupplyV2: String
4408
4414
  """The number of NFTs sold in any of the collection's pools over the collection's lifetime."""
4409
- nftsSoldAll: Int
4415
+ nftsSoldAll: Int @deprecated(reason: "nftsSoldAll is changing from Int to String - use nftsSoldAllV2 instead.")
4410
4416
  """The number of NFTs sold in any of the collection's pools over the collection's lifetime."""
4411
4417
  nftsSoldAllV2: String
4412
4418
  """The number of NFTs bought in any of the collection's pools over the collection's lifetime."""
4413
- nftsBoughtAll: Int
4419
+ nftsBoughtAll: Int @deprecated(reason: "nftsBoughtAll is changing from Int to String - use nftsBoughtAllV2 instead.")
4414
4420
  """The number of NFTs bought in any of the collection's pools over the collection's lifetime."""
4415
4421
  nftsBoughtAllV2: String
4416
4422
  """The number of NFTs bought or sold in any of the collection's pools over the collection's lifetime."""
4417
- nftVolumeAll: Int
4423
+ nftVolumeAll: Int @deprecated(reason: "nftVolumeAll is changing from Int to String - use nftVolumeAllV2 instead.")
4418
4424
  """The number of NFTs bought or sold in any of the collection's pools over the collection's lifetime."""
4419
4425
  nftVolumeAllV2: String
4420
4426
  """The total volume of the collection in the network's base token over the collection's lifetime."""
@@ -4446,15 +4452,15 @@ type NftPoolCollectionFilterResult {
4446
4452
  """The sum of protocol fees generated by the collection in USD over the collection's lifetime."""
4447
4453
  protocolFeesUSDAll: String
4448
4454
  """The number of NFTs sold in any of the collection's pools over the past 24 hours."""
4449
- nftsSold24: Int
4455
+ nftsSold24: Int @deprecated(reason: "nftsSold24 is changing from Int to String - use nftsSold24V2 instead.")
4450
4456
  """The number of NFTs sold in any of the collection's pools over the past 24 hours."""
4451
4457
  nftsSold24V2: String
4452
4458
  """The number of NFTs bought in any of the collection's pools over the past 24 hours."""
4453
- nftsBought24: Int
4459
+ nftsBought24: Int @deprecated(reason: "nftsBought24 is changing from Int to String - use nftsBought24V2 instead.")
4454
4460
  """The number of NFTs bought in any of the collection's pools over the past 24 hours."""
4455
4461
  nftsBought24V2: String
4456
4462
  """The number of NFTs bought and sold in any of the collection's pools over the past 24 hours."""
4457
- nftVolume24: Int
4463
+ nftVolume24: Int @deprecated(reason: "nftVolume24 is changing from Int to String - use nftVolume24V2 instead.")
4458
4464
  """The number of NFTs bought and sold in any of the collection's pools over the past 24 hours."""
4459
4465
  nftVolume24V2: String
4460
4466
  """The total volume of the collection in the network's base token over the past 24 hours."""
@@ -4660,7 +4666,7 @@ type NftPoolCollectionResponse {
4660
4666
  """The total liquidity of the collection in the network's base token."""
4661
4667
  balanceNBT: String!
4662
4668
  """The current number of NFTs in all the NFT collection's pools."""
4663
- nftBalance: Int!
4669
+ nftBalance: Int! @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
4664
4670
  """The current number of NFTs in all the NFT collection's pools."""
4665
4671
  nftBalanceV2: String!
4666
4672
  """The total volume of the collection in the network's base token over the collection's lifetime."""
@@ -4668,11 +4674,11 @@ type NftPoolCollectionResponse {
4668
4674
  """The total volume of the collection in USD over the collection's lifetime."""
4669
4675
  volumeAllTimeUSD: String
4670
4676
  """The total number of NFTs bought and sold over the collection's lifetime."""
4671
- nftVolumeAllTime: Int
4677
+ nftVolumeAllTime: Int @deprecated(reason: "nftVolumeAllTime is changing from Int to String - use nftVolumeAllTimeV2 instead.")
4672
4678
  """The total number of NFTs bought and sold over the collection's lifetime."""
4673
4679
  nftVolumeAllTimeV2: String
4674
4680
  """The media for one of the assets within the NFT collection."""
4675
- media: NftAssetMedia
4681
+ media: NftAssetMedia @deprecated(reason: "Use `image` from `NftContract` instead.")
4676
4682
  """The sum of protocol fees generated by the collection in the network's base token over the collection's lifetime."""
4677
4683
  protocolFeesNBTAll: String
4678
4684
  """The sum of protocol fees generated by the collection in USD over the collection's lifetime."""
@@ -4757,7 +4763,7 @@ type NftPoolEventNftTransferV2 {
4757
4763
  """The number of tokens involved in the transfer."""
4758
4764
  nftQuantity: String!
4759
4765
  """The number of tokens involved in the transfer."""
4760
- nftTokenQuantity: String!
4766
+ nftTokenQuantity: String! @deprecated(reason: "nftTokenQuantity is no longer supported - use nftQuantity instead.")
4761
4767
  """The value of the token at the time of transfer."""
4762
4768
  amountT: String!
4763
4769
  }
@@ -4861,7 +4867,7 @@ type NftPoolFilterResult {
4861
4867
  """For ERC1155 pools, the list of NFT token IDs that are accepted by the pool."""
4862
4868
  acceptedNftTokenIds: [String]
4863
4869
  """The current number of NFTs in the pool."""
4864
- nftBalance: Int
4870
+ nftBalance: Int @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
4865
4871
  """The current number of NFTs in the pool."""
4866
4872
  nftBalanceV2: String
4867
4873
  """The current pool liquidity in the network's base token."""
@@ -4887,15 +4893,15 @@ type NftPoolFilterResult {
4887
4893
  """The current price at which the pool is willing to buy an NFT in USD."""
4888
4894
  offerUSD: String
4889
4895
  """The total number of NFTs sold over the pool's lifetime."""
4890
- nftsSoldAll: Int
4896
+ nftsSoldAll: Int @deprecated(reason: "nftsSoldAll is changing from Int to String - use nftsSoldAllV2 instead.")
4891
4897
  """The total number of NFTs sold over the pool's lifetime."""
4892
4898
  nftsSoldAllV2: String
4893
4899
  """The total number of NFTs bought over the pool's lifetime."""
4894
- nftsBoughtAll: Int
4900
+ nftsBoughtAll: Int @deprecated(reason: "nftsBoughtAll is changing from Int to String - use nftsBoughtAllV2 instead.")
4895
4901
  """The total number of NFTs bought over the pool's lifetime."""
4896
4902
  nftsBoughtAllV2: String
4897
4903
  """The total number of NFTs bought and sold over the pool's lifetime."""
4898
- nftVolumeAll: Int
4904
+ nftVolumeAll: Int @deprecated(reason: "nftVolumeAll is changing from Int to String - use nftVolumeAllV2 instead.")
4899
4905
  """The total number of NFTs bought and sold over the pool's lifetime."""
4900
4906
  nftVolumeAllV2: String
4901
4907
  """The total volume of the pool in the network's base token over the pool's lifetime."""
@@ -4929,15 +4935,15 @@ type NftPoolFilterResult {
4929
4935
  """The sum of protocol fees generated by the pool in USD over the pool's lifetime."""
4930
4936
  protocolFeesUSDAll: String
4931
4937
  """The total number of NFTs sold by the pool over the past 24 hours."""
4932
- nftsSold24: Int
4938
+ nftsSold24: Int @deprecated(reason: "nftsSold24 is changing from Int to String - use nftsSold24V2 instead.")
4933
4939
  """The total number of NFTs sold by the pool over the past 24 hours."""
4934
4940
  nftsSold24V2: String
4935
4941
  """The total number of NFTs bought by the pool over the past 24 hours."""
4936
- nftsBought24: Int
4942
+ nftsBought24: Int @deprecated(reason: "nftsBought24 is changing from Int to String - use nftsBought24V2 instead.")
4937
4943
  """The total number of NFTs bought by the pool over the past 24 hours."""
4938
4944
  nftsBought24V2: String
4939
4945
  """The total number of NFTs bought and sold over the past 24 hours."""
4940
- nftVolume24: Int
4946
+ nftVolume24: Int @deprecated(reason: "nftVolume24 is changing from Int to String - use nftVolume24V2 instead.")
4941
4947
  """The total number of NFTs bought and sold over the past 24 hours."""
4942
4948
  nftVolume24V2: String
4943
4949
  """The total volume of the pool in the network's base token over the past 24 hours."""
@@ -5216,7 +5222,7 @@ type NftPoolResponse {
5216
5222
  """The current pool liquidity in the network's base token."""
5217
5223
  balanceNBT: String!
5218
5224
  """The current number of NFTs in the pool."""
5219
- nftBalance: Int
5225
+ nftBalance: Int @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
5220
5226
  """The current number of NFTs in the pool."""
5221
5227
  nftBalanceV2: String!
5222
5228
  """The total volume of the pool in the network's base token over the pool's lifetime."""
@@ -5232,7 +5238,7 @@ type NftPoolResponse {
5232
5238
  """The total volume of the pool in the pool's liquidity token over the pool's lifetime."""
5233
5239
  volumeAllTimeT: String!
5234
5240
  """The total number of NFTs bought and sold over the pool's lifetime."""
5235
- nftVolumeAllTime: Int!
5241
+ nftVolumeAllTime: Int! @deprecated(reason: "nftVolumeAllTime is changing from Int to String - use nftVolumeAllTimeV2 instead.")
5236
5242
  """The total number of NFTs bought and sold over the pool's lifetime."""
5237
5243
  nftVolumeAllTimeV2: String!
5238
5244
  """The list of NFT assets in the pool."""
@@ -5547,19 +5553,27 @@ input OnEventsCreatedByMakerInput {
5547
5553
  }
5548
5554
 
5549
5555
  input OnLaunchpadTokenEventBatchInput {
5556
+ """The protocol of the token."""
5550
5557
  protocol: LaunchpadTokenProtocol
5558
+ """The network ID that the token is deployed on."""
5551
5559
  networkId: Int
5560
+ """The name of the launchpad. One of the following: Four.meme, Pump.fun, Rainbow, LaunchLab, Moonit, boop, MeteoraDBC, Vertigo, EgoTech, TokenMill V2, ArenaTrade, Bonk, Jupiter Studio, Believe, or Cooking.City."""
5561
+ launchpadName: String
5562
+ """The type of event."""
5563
+ eventType: LaunchpadTokenEventType
5552
5564
  }
5553
5565
 
5554
5566
  """Input for `onLaunchpadTokenEvent`."""
5555
5567
  input OnLaunchpadTokenEventInput {
5556
5568
  """The protocol of the token."""
5557
5569
  protocol: LaunchpadTokenProtocol
5570
+ """The name of the launchpad. One of the following: Four.meme, Pump.fun, Rainbow, LaunchLab, Moonit, boop, MeteoraDBC, Vertigo, EgoTech, TokenMill V2, ArenaTrade, Bonk, Jupiter Studio, Believe, or Cooking.City."""
5571
+ launchpadName: String
5558
5572
  """The type of event."""
5559
5573
  eventType: LaunchpadTokenEventType
5560
- """The contract address of the token. Required when `networkId` is provided."""
5574
+ """The contract address of the token. Requires `networkId`."""
5561
5575
  address: String
5562
- """The network ID that the token is deployed on. Required when `address` is provided."""
5576
+ """The network ID that the token is deployed on."""
5563
5577
  networkId: Int
5564
5578
  }
5565
5579
 
@@ -7444,7 +7458,7 @@ type TokenFilterResult {
7444
7458
  createdAt: Int
7445
7459
  """The unix timestamp for the token's last transaction."""
7446
7460
  lastTransaction: Int
7447
- age: Int
7461
+ age: Int @deprecated(reason: "Age isn't supported - use createdAt instead")
7448
7462
  """The number of buys in the past 5 minutes."""
7449
7463
  buyCount5m: Int
7450
7464
  """The number of buys in the past hour."""
@@ -7477,7 +7491,7 @@ type TokenFilterResult {
7477
7491
  volumeChange24: String
7478
7492
  """The exchanges the token is listed on."""
7479
7493
  exchanges: [Exchange]
7480
- fdv: String
7494
+ fdv: String @deprecated(reason: "FDV isn't supported - use marketCap instead")
7481
7495
  """The highest price in USD in the past 5 minutes."""
7482
7496
  high5m: String
7483
7497
  """The highest price in USD in the past hour."""
@@ -7612,7 +7626,7 @@ input TokenFilters {
7612
7626
  createdAt: NumberFilter
7613
7627
  """The unix timestamp for the token's last transaction."""
7614
7628
  lastTransaction: NumberFilter
7615
- age: NumberFilter
7629
+ age: NumberFilter @deprecated(reason: "Age isn't supported - use createdAt instead")
7616
7630
  """The number of buys in the past 5 minutes."""
7617
7631
  buyCount5m: NumberFilter
7618
7632
  """The number of buys in the past hour."""
@@ -7647,7 +7661,7 @@ input TokenFilters {
7647
7661
  exchangeId: [String]
7648
7662
  """The list of exchange contract addresses to filter by."""
7649
7663
  exchangeAddress: [String]
7650
- fdv: NumberFilter
7664
+ fdv: NumberFilter @deprecated(reason: "FDV isn't supported - use marketCap instead")
7651
7665
  """The highest price in USD in the past 5 minutes."""
7652
7666
  high5m: NumberFilter
7653
7667
  """The highest price in USD in the past hour."""
@@ -7768,7 +7782,7 @@ input TokenFilters {
7768
7782
  isVerified: Boolean
7769
7783
  """Filter potential Scams"""
7770
7784
  potentialScam: Boolean
7771
- """Whether to ignore pairs/tokens not relevant to trending. This is done checking against a few factors and ignoring uninteresting tokens like stables / network tokens. If you want all tokens regardless of these checks, then don't include this field. (default) If you want only tokens that fail the trending ignore checks, then set it to `false`. (i.e. stablecoins, rugs, network base tokens) If you want only tokens that pass the trending ignore checks, then set it to `true`."""
7785
+ """Whether to ignore pairs/tokens not relevant to trending. This is done checking against a few factors and ignoring uninteresting tokens like stables / network tokens. If you want all tokens regardless of these checks, then don't include this field. (default) If you want only tokens that fail the trending ignore checks, then set it to `true`. (i.e. stablecoins, rugs, network base tokens) If you want only tokens that pass the trending ignore checks, then set it to `false`."""
7772
7786
  trendingIgnored: Boolean
7773
7787
  """The address of the creator of the token"""
7774
7788
  creatorAddress: String
@@ -7987,7 +8001,7 @@ input TokenRanking {
7987
8001
  enum TokenRankingAttribute {
7988
8002
  createdAt
7989
8003
  lastTransaction
7990
- age
8004
+ age @deprecated(reason: "Use createdAt instead")
7991
8005
  buyCount5m
7992
8006
  buyCount1
7993
8007
  buyCount4
package/src/sdk/Query.ts CHANGED
@@ -12,8 +12,6 @@ import {
12
12
  DetailedWalletStatsQueryVariables,
13
13
  FilterExchangesDocument,
14
14
  FilterExchangesQueryVariables,
15
- FilterNetworkWalletsDocument,
16
- FilterNetworkWalletsQueryVariables,
17
15
  FilterNftCollectionsDocument,
18
16
  FilterNftCollectionsQueryVariables,
19
17
  FilterNftParallelAssetsDocument,
@@ -40,16 +38,10 @@ import {
40
38
  GetDetailedPairsStatsQueryVariables,
41
39
  GetDetailedPairStatsDocument,
42
40
  GetDetailedPairStatsQueryVariables,
43
- GetDetailedStatsDocument,
44
- GetDetailedStatsQueryVariables,
45
41
  GetEventLabelsDocument,
46
42
  GetEventLabelsQueryVariables,
47
43
  GetExchangesDocument,
48
44
  GetExchangesQueryVariables,
49
- GetLatestPairsDocument,
50
- GetLatestPairsQueryVariables,
51
- GetLatestTokensDocument,
52
- GetLatestTokensQueryVariables,
53
45
  GetNetworksDocument,
54
46
  GetNetworksQueryVariables,
55
47
  GetNetworkStatsDocument,
@@ -108,8 +100,6 @@ import {
108
100
  ListPairsForTokenQueryVariables,
109
101
  ListPairsWithMetadataForTokenDocument,
110
102
  ListPairsWithMetadataForTokenQueryVariables,
111
- ListTopTokensDocument,
112
- ListTopTokensQueryVariables,
113
103
  NftHoldersDocument,
114
104
  NftHoldersQueryVariables,
115
105
  PairMetadataDocument,
@@ -118,8 +108,6 @@ import {
118
108
  PrimeHoldersQueryVariables,
119
109
  SearchNftsDocument,
120
110
  SearchNftsQueryVariables,
121
- SearchTokensDocument,
122
- SearchTokensQueryVariables,
123
111
  TokenDocument,
124
112
  TokenLifecycleEventsDocument,
125
113
  TokenLifecycleEventsQueryVariables,
@@ -143,8 +131,6 @@ import { Codex } from "./index";
143
131
 
144
132
  export class Query {
145
133
  constructor(private sdk: Codex) {}
146
- searchTokens = async (vars: SearchTokensQueryVariables) =>
147
- this.sdk.query(SearchTokensDocument, vars);
148
134
  pairMetadata = async (vars: PairMetadataQueryVariables) =>
149
135
  this.sdk.query(PairMetadataDocument, vars);
150
136
  listPairsWithMetadataForToken = async (
@@ -174,8 +160,6 @@ export class Query {
174
160
  this.sdk.query(FilterExchangesDocument, vars);
175
161
  walletNftCollections = async (vars: WalletNftCollectionsQueryVariables) =>
176
162
  this.sdk.query(WalletNftCollectionsDocument, vars);
177
- getLatestTokens = async (vars: GetLatestTokensQueryVariables) =>
178
- this.sdk.query(GetLatestTokensDocument, vars);
179
163
  getNftPoolStats = async (vars: GetNftPoolStatsQueryVariables) =>
180
164
  this.sdk.query(GetNftPoolStatsDocument, vars);
181
165
  filterTokens = async (vars: FilterTokensQueryVariables) =>
@@ -186,8 +170,6 @@ export class Query {
186
170
  this.sdk.query(GetSymbolDocument, vars);
187
171
  token = async (vars: TokenQueryVariables) =>
188
172
  this.sdk.query(TokenDocument, vars);
189
- getLatestPairs = async (vars: GetLatestPairsQueryVariables) =>
190
- this.sdk.query(GetLatestPairsDocument, vars);
191
173
  walletChart = async (vars: WalletChartQueryVariables) =>
192
174
  this.sdk.query(WalletChartDocument, vars);
193
175
  liquidityMetadata = async (vars: LiquidityMetadataQueryVariables) =>
@@ -222,8 +204,6 @@ export class Query {
222
204
  this.sdk.query(GetBarsDocument, vars);
223
205
  getDetailedPairsStats = async (vars: GetDetailedPairsStatsQueryVariables) =>
224
206
  this.sdk.query(GetDetailedPairsStatsDocument, vars);
225
- listTopTokens = async (vars: ListTopTokensQueryVariables) =>
226
- this.sdk.query(ListTopTokensDocument, vars);
227
207
  apiTokens = async (vars: ApiTokensQueryVariables) =>
228
208
  this.sdk.query(ApiTokensDocument, vars);
229
209
  getWebhooks = async (vars: GetWebhooksQueryVariables) =>
@@ -259,16 +239,12 @@ export class Query {
259
239
  this.sdk.query(GetPrimePoolAssetsDocument, vars);
260
240
  tokens = async (vars: TokensQueryVariables) =>
261
241
  this.sdk.query(TokensDocument, vars);
262
- filterNetworkWallets = async (vars: FilterNetworkWalletsQueryVariables) =>
263
- this.sdk.query(FilterNetworkWalletsDocument, vars);
264
242
  tokenSparklines = async (vars: TokenSparklinesQueryVariables) =>
265
243
  this.sdk.query(TokenSparklinesDocument, vars);
266
244
  getExchanges = async (vars: GetExchangesQueryVariables) =>
267
245
  this.sdk.query(GetExchangesDocument, vars);
268
246
  filterNftCollections = async (vars: FilterNftCollectionsQueryVariables) =>
269
247
  this.sdk.query(FilterNftCollectionsDocument, vars);
270
- getDetailedStats = async (vars: GetDetailedStatsQueryVariables) =>
271
- this.sdk.query(GetDetailedStatsDocument, vars);
272
248
  holders = async (vars: HoldersQueryVariables) =>
273
249
  this.sdk.query(HoldersDocument, vars);
274
250
  nftHolders = async (vars: NftHoldersQueryVariables) =>