@codex-data/sdk 1.0.11 → 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 (71) hide show
  1. package/dist/resources/graphql.d.ts +227 -62
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +9 -6
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/sdk/Mutation.d.ts +1 -1
  6. package/dist/sdk/Mutation.d.ts.map +1 -1
  7. package/dist/sdk/Mutation.js +1 -1
  8. package/dist/sdk/Mutation.js.map +1 -1
  9. package/dist/sdk/Query.d.ts +50 -56
  10. package/dist/sdk/Query.d.ts.map +1 -1
  11. package/dist/sdk/Query.js +49 -55
  12. package/dist/sdk/Query.js.map +1 -1
  13. package/dist/sdk/Subscribe.d.ts +18 -18
  14. package/dist/sdk/Subscribe.d.ts.map +1 -1
  15. package/dist/sdk/Subscribe.js +91 -91
  16. package/dist/sdk/Subscribe.js.map +1 -1
  17. package/dist/sdk/generated/gql.d.ts +64 -123
  18. package/dist/sdk/generated/gql.d.ts.map +1 -1
  19. package/dist/sdk/generated/gql.js +32 -38
  20. package/dist/sdk/generated/gql.js.map +1 -1
  21. package/dist/sdk/generated/graphql.d.ts +238 -1384
  22. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  23. package/dist/sdk/generated/graphql.js +44 -47
  24. package/dist/sdk/generated/graphql.js.map +1 -1
  25. package/package.json +2 -2
  26. package/src/resources/generated_queries/Balances.graphql +0 -15
  27. package/src/resources/generated_queries/DetailedWalletStats.graphql +0 -4
  28. package/src/resources/generated_queries/FilterNftPoolCollections.graphql +0 -8
  29. package/src/resources/generated_queries/FilterNftPools.graphql +0 -7
  30. package/src/resources/generated_queries/FilterPairs.graphql +0 -60
  31. package/src/resources/generated_queries/FilterTokenWallets.graphql +0 -15
  32. package/src/resources/generated_queries/FilterTokens.graphql +0 -47
  33. package/src/resources/generated_queries/GetBars.graphql +0 -31
  34. package/src/resources/generated_queries/GetCommunityNotes.graphql +0 -15
  35. package/src/resources/generated_queries/GetDetailedPairStats.graphql +0 -30
  36. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +0 -30
  37. package/src/resources/generated_queries/GetNftEvents.graphql +0 -9
  38. package/src/resources/generated_queries/GetNftPool.graphql +0 -2
  39. package/src/resources/generated_queries/GetNftPoolCollection.graphql +0 -8
  40. package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +0 -8
  41. package/src/resources/generated_queries/GetNftPoolEvents.graphql +0 -2
  42. package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +0 -2
  43. package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +0 -2
  44. package/src/resources/generated_queries/Holders.graphql +0 -15
  45. package/src/resources/generated_queries/LiquidityLocks.graphql +0 -1
  46. package/src/resources/generated_queries/ListPairsForToken.graphql +0 -30
  47. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +0 -60
  48. package/src/resources/generated_queries/PairMetadata.graphql +0 -30
  49. package/src/resources/generated_queries/PrimeHolders.graphql +0 -15
  50. package/src/resources/generated_queries/Token.graphql +0 -15
  51. package/src/resources/generated_queries/Tokens.graphql +0 -15
  52. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -15
  53. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -15
  54. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +0 -15
  55. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +0 -9
  56. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +0 -2
  57. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +0 -30
  58. package/src/resources/graphql.schema.json +229 -147
  59. package/src/resources/graphql.ts +227 -62
  60. package/src/resources/schema.graphql +101 -85
  61. package/src/sdk/Mutation.ts +2 -2
  62. package/src/sdk/Query.ts +102 -126
  63. package/src/sdk/Subscribe.ts +149 -149
  64. package/src/sdk/generated/gql.ts +64 -94
  65. package/src/sdk/generated/graphql.ts +291 -191
  66. package/src/resources/generated_queries/FilterNetworkWallets.graphql +0 -57
  67. package/src/resources/generated_queries/GetDetailedStats.graphql +0 -338
  68. package/src/resources/generated_queries/GetLatestPairs.graphql +0 -57
  69. package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
  70. package/src/resources/generated_queries/ListTopTokens.graphql +0 -55
  71. 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`."""
@@ -2113,9 +2115,9 @@ input FilterNetworkWalletsInput {
2113
2115
  filters: WalletNetworkFilters
2114
2116
  """A list of wallet addresses to filter by."""
2115
2117
  wallets: [String]
2116
- """Exclude wallets with these labels. See `WalletLabel` for possible values."""
2118
+ """Exclude wallets with these labels. See [`WalletLabel`](/api-reference/enums/index#walletlabel) for possible values."""
2117
2119
  excludeLabels: [String]
2118
- """Include wallets with these labels. See `WalletLabel` for possible values."""
2120
+ """Include wallets with these labels. See [`WalletLabel`](/api-reference/enums/index#walletlabel) for possible values."""
2119
2121
  includeLabels: [String]
2120
2122
  """A list of ranking attributes to apply."""
2121
2123
  rankings: [WalletNetworkRanking]
@@ -2130,22 +2132,22 @@ 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"""
2143
2145
  phrase: String
2144
2146
  """A list of ranking attributes to apply"""
2145
2147
  rankings: [WalletTokenRanking]
2146
- """Exclude wallets with these labels. See `WalletLabel` for possible values."""
2148
+ """Exclude wallets with these labels. See [`WalletLabel`](/api-reference/enums/index#walletlabel) for possible values."""
2147
2149
  excludeLabels: [String]
2148
- """Include wallets with these labels. See `WalletLabel` for possible values."""
2150
+ """Include wallets with these labels. See [`WalletLabel`](/api-reference/enums/index#walletlabel) for possible values."""
2149
2151
  includeLabels: [String]
2150
2152
  """The maximum number of wallets to return"""
2151
2153
  limit: Int
@@ -2159,9 +2161,9 @@ input FilterWalletsInput {
2159
2161
  filters: WalletFilters
2160
2162
  """A list of wallet addresses to filter by."""
2161
2163
  wallets: [String]
2162
- """Exclude wallets with these labels. See `WalletLabel` for possible values."""
2164
+ """Exclude wallets with these labels. See [`WalletLabel`](/api-reference/enums/index#walletlabel) for possible values."""
2163
2165
  excludeLabels: [String]
2164
- """Include wallets with these labels. See `WalletLabel` for possible values."""
2166
+ """Include wallets with these labels. See [`WalletLabel`](/api-reference/enums/index#walletlabel) for possible values."""
2165
2167
  includeLabels: [String]
2166
2168
  """A list of ranking attributes to apply."""
2167
2169
  rankings: [WalletRanking]
@@ -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,8 +2554,8 @@ type LatestTokenSimResults {
2550
2554
 
2551
2555
  type LaunchpadData {
2552
2556
  """The name of the launchpad."""
2553
- name: String
2554
- """The name of the launchpad."""
2557
+ name: String @deprecated(reason: "Use launchpadName instead")
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."""
2557
2561
  graduationPercent: Float
@@ -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."""
@@ -2617,6 +2623,8 @@ enum LaunchpadTokenEventType {
2617
2623
  Migrated
2618
2624
  """The token has been discovered (not finalized)"""
2619
2625
  UnconfirmedDeployed
2626
+ """The token's metadata has been processed (not finalized)"""
2627
+ UnconfirmedMetadata
2620
2628
  }
2621
2629
 
2622
2630
  """The protocol of the token."""
@@ -2677,7 +2685,7 @@ type LiquidityLock {
2677
2685
  """The protocol with which the liquidity is locked."""
2678
2686
  lockProtocol: LiquidityLockProtocol!
2679
2687
  """The protocol that created the pair"""
2680
- liquidityProtocol: LiquidityProtocol!
2688
+ liquidityProtocol: LiquidityProtocol! @deprecated(reason: "Use liquidityProtocolV2 instead")
2681
2689
  """The protocol that created the pair"""
2682
2690
  liquidityProtocolV2: String!
2683
2691
  """The amount of liquidity locked."""
@@ -4072,27 +4080,27 @@ type NftEvent {
4072
4080
  maker: String!
4073
4081
  """The wallet address of the seller."""
4074
4082
  taker: String!
4075
- tokenPrice: String!
4076
- 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.")
4077
4085
  """The total trade price for the transaction in the purchasing token. (The transaction can include more than 1 token)."""
4078
4086
  totalTradePrice: String
4079
- individualTokenPrice: String
4080
- 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.")
4081
4089
  """The price of each individual NFT in the purchasing token."""
4082
4090
  individualTradePrice: String
4083
- baseTokenAddress: String!
4091
+ baseTokenAddress: String! @deprecated(reason: "No longer supported")
4084
4092
  """The contract address of the purchasing token."""
4085
4093
  paymentTokenAddress: String!
4086
- baseTokenPrice: String
4094
+ baseTokenPrice: String @deprecated(reason: "No longer supported")
4087
4095
  """The total trade price for the transaction in USD. (The transaction can include more than 1 token)."""
4088
4096
  totalPriceUsd: String
4089
- individualBaseTokenPrice: String
4097
+ individualBaseTokenPrice: String @deprecated(reason: "No longer supported")
4090
4098
  """The price of each individual NFT in USD."""
4091
4099
  individualPriceUsd: String
4092
- networkBaseTokenPrice: String
4100
+ networkBaseTokenPrice: String @deprecated(reason: "No longer supported")
4093
4101
  """The total trade price for the transaction in the network's base token. (The transaction can include more than 1 token)."""
4094
4102
  totalPriceNetworkBaseToken: String
4095
- individualNetworkBaseTokenPrice: String
4103
+ individualNetworkBaseTokenPrice: String @deprecated(reason: "No longer supported")
4096
4104
  """The price of each individual NFT in the network's base token."""
4097
4105
  individualPriceNetworkBaseToken: String
4098
4106
  """The event type of the transaction."""
@@ -4385,7 +4393,7 @@ type NftPoolCollectionFilterResult {
4385
4393
  """The image URL for the collection or one of the assets within the collection."""
4386
4394
  imageUrl: String
4387
4395
  """The number of NFTs in all of the collection's pools."""
4388
- nftBalance: Int
4396
+ nftBalance: Int @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
4389
4397
  """The number of NFTs in all of the collection's pools."""
4390
4398
  nftBalanceV2: String
4391
4399
  """The total liquidity of the collection in the network's base token."""
@@ -4401,18 +4409,18 @@ type NftPoolCollectionFilterResult {
4401
4409
  """The highest price at which any of the collection's pools are willing to buy an NFT in USD."""
4402
4410
  offerUSD: String
4403
4411
  """The total supply of the collection."""
4404
- totalSupply: Int
4412
+ totalSupply: Int @deprecated(reason: "totalSupply is changing from Int to String - use totalSupplyV2 instead.")
4405
4413
  totalSupplyV2: String
4406
4414
  """The number of NFTs sold in any of the collection's pools over the collection's lifetime."""
4407
- nftsSoldAll: Int
4415
+ nftsSoldAll: Int @deprecated(reason: "nftsSoldAll is changing from Int to String - use nftsSoldAllV2 instead.")
4408
4416
  """The number of NFTs sold in any of the collection's pools over the collection's lifetime."""
4409
4417
  nftsSoldAllV2: String
4410
4418
  """The number of NFTs bought in any of the collection's pools over the collection's lifetime."""
4411
- nftsBoughtAll: Int
4419
+ nftsBoughtAll: Int @deprecated(reason: "nftsBoughtAll is changing from Int to String - use nftsBoughtAllV2 instead.")
4412
4420
  """The number of NFTs bought in any of the collection's pools over the collection's lifetime."""
4413
4421
  nftsBoughtAllV2: String
4414
4422
  """The number of NFTs bought or sold in any of the collection's pools over the collection's lifetime."""
4415
- nftVolumeAll: Int
4423
+ nftVolumeAll: Int @deprecated(reason: "nftVolumeAll is changing from Int to String - use nftVolumeAllV2 instead.")
4416
4424
  """The number of NFTs bought or sold in any of the collection's pools over the collection's lifetime."""
4417
4425
  nftVolumeAllV2: String
4418
4426
  """The total volume of the collection in the network's base token over the collection's lifetime."""
@@ -4444,15 +4452,15 @@ type NftPoolCollectionFilterResult {
4444
4452
  """The sum of protocol fees generated by the collection in USD over the collection's lifetime."""
4445
4453
  protocolFeesUSDAll: String
4446
4454
  """The number of NFTs sold in any of the collection's pools over the past 24 hours."""
4447
- nftsSold24: Int
4455
+ nftsSold24: Int @deprecated(reason: "nftsSold24 is changing from Int to String - use nftsSold24V2 instead.")
4448
4456
  """The number of NFTs sold in any of the collection's pools over the past 24 hours."""
4449
4457
  nftsSold24V2: String
4450
4458
  """The number of NFTs bought in any of the collection's pools over the past 24 hours."""
4451
- nftsBought24: Int
4459
+ nftsBought24: Int @deprecated(reason: "nftsBought24 is changing from Int to String - use nftsBought24V2 instead.")
4452
4460
  """The number of NFTs bought in any of the collection's pools over the past 24 hours."""
4453
4461
  nftsBought24V2: String
4454
4462
  """The number of NFTs bought and sold in any of the collection's pools over the past 24 hours."""
4455
- nftVolume24: Int
4463
+ nftVolume24: Int @deprecated(reason: "nftVolume24 is changing from Int to String - use nftVolume24V2 instead.")
4456
4464
  """The number of NFTs bought and sold in any of the collection's pools over the past 24 hours."""
4457
4465
  nftVolume24V2: String
4458
4466
  """The total volume of the collection in the network's base token over the past 24 hours."""
@@ -4658,7 +4666,7 @@ type NftPoolCollectionResponse {
4658
4666
  """The total liquidity of the collection in the network's base token."""
4659
4667
  balanceNBT: String!
4660
4668
  """The current number of NFTs in all the NFT collection's pools."""
4661
- nftBalance: Int!
4669
+ nftBalance: Int! @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
4662
4670
  """The current number of NFTs in all the NFT collection's pools."""
4663
4671
  nftBalanceV2: String!
4664
4672
  """The total volume of the collection in the network's base token over the collection's lifetime."""
@@ -4666,11 +4674,11 @@ type NftPoolCollectionResponse {
4666
4674
  """The total volume of the collection in USD over the collection's lifetime."""
4667
4675
  volumeAllTimeUSD: String
4668
4676
  """The total number of NFTs bought and sold over the collection's lifetime."""
4669
- nftVolumeAllTime: Int
4677
+ nftVolumeAllTime: Int @deprecated(reason: "nftVolumeAllTime is changing from Int to String - use nftVolumeAllTimeV2 instead.")
4670
4678
  """The total number of NFTs bought and sold over the collection's lifetime."""
4671
4679
  nftVolumeAllTimeV2: String
4672
4680
  """The media for one of the assets within the NFT collection."""
4673
- media: NftAssetMedia
4681
+ media: NftAssetMedia @deprecated(reason: "Use `image` from `NftContract` instead.")
4674
4682
  """The sum of protocol fees generated by the collection in the network's base token over the collection's lifetime."""
4675
4683
  protocolFeesNBTAll: String
4676
4684
  """The sum of protocol fees generated by the collection in USD over the collection's lifetime."""
@@ -4755,7 +4763,7 @@ type NftPoolEventNftTransferV2 {
4755
4763
  """The number of tokens involved in the transfer."""
4756
4764
  nftQuantity: String!
4757
4765
  """The number of tokens involved in the transfer."""
4758
- nftTokenQuantity: String!
4766
+ nftTokenQuantity: String! @deprecated(reason: "nftTokenQuantity is no longer supported - use nftQuantity instead.")
4759
4767
  """The value of the token at the time of transfer."""
4760
4768
  amountT: String!
4761
4769
  }
@@ -4859,7 +4867,7 @@ type NftPoolFilterResult {
4859
4867
  """For ERC1155 pools, the list of NFT token IDs that are accepted by the pool."""
4860
4868
  acceptedNftTokenIds: [String]
4861
4869
  """The current number of NFTs in the pool."""
4862
- nftBalance: Int
4870
+ nftBalance: Int @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
4863
4871
  """The current number of NFTs in the pool."""
4864
4872
  nftBalanceV2: String
4865
4873
  """The current pool liquidity in the network's base token."""
@@ -4885,15 +4893,15 @@ type NftPoolFilterResult {
4885
4893
  """The current price at which the pool is willing to buy an NFT in USD."""
4886
4894
  offerUSD: String
4887
4895
  """The total number of NFTs sold over the pool's lifetime."""
4888
- nftsSoldAll: Int
4896
+ nftsSoldAll: Int @deprecated(reason: "nftsSoldAll is changing from Int to String - use nftsSoldAllV2 instead.")
4889
4897
  """The total number of NFTs sold over the pool's lifetime."""
4890
4898
  nftsSoldAllV2: String
4891
4899
  """The total number of NFTs bought over the pool's lifetime."""
4892
- nftsBoughtAll: Int
4900
+ nftsBoughtAll: Int @deprecated(reason: "nftsBoughtAll is changing from Int to String - use nftsBoughtAllV2 instead.")
4893
4901
  """The total number of NFTs bought over the pool's lifetime."""
4894
4902
  nftsBoughtAllV2: String
4895
4903
  """The total number of NFTs bought and sold over the pool's lifetime."""
4896
- nftVolumeAll: Int
4904
+ nftVolumeAll: Int @deprecated(reason: "nftVolumeAll is changing from Int to String - use nftVolumeAllV2 instead.")
4897
4905
  """The total number of NFTs bought and sold over the pool's lifetime."""
4898
4906
  nftVolumeAllV2: String
4899
4907
  """The total volume of the pool in the network's base token over the pool's lifetime."""
@@ -4927,15 +4935,15 @@ type NftPoolFilterResult {
4927
4935
  """The sum of protocol fees generated by the pool in USD over the pool's lifetime."""
4928
4936
  protocolFeesUSDAll: String
4929
4937
  """The total number of NFTs sold by the pool over the past 24 hours."""
4930
- nftsSold24: Int
4938
+ nftsSold24: Int @deprecated(reason: "nftsSold24 is changing from Int to String - use nftsSold24V2 instead.")
4931
4939
  """The total number of NFTs sold by the pool over the past 24 hours."""
4932
4940
  nftsSold24V2: String
4933
4941
  """The total number of NFTs bought by the pool over the past 24 hours."""
4934
- nftsBought24: Int
4942
+ nftsBought24: Int @deprecated(reason: "nftsBought24 is changing from Int to String - use nftsBought24V2 instead.")
4935
4943
  """The total number of NFTs bought by the pool over the past 24 hours."""
4936
4944
  nftsBought24V2: String
4937
4945
  """The total number of NFTs bought and sold over the past 24 hours."""
4938
- nftVolume24: Int
4946
+ nftVolume24: Int @deprecated(reason: "nftVolume24 is changing from Int to String - use nftVolume24V2 instead.")
4939
4947
  """The total number of NFTs bought and sold over the past 24 hours."""
4940
4948
  nftVolume24V2: String
4941
4949
  """The total volume of the pool in the network's base token over the past 24 hours."""
@@ -5214,7 +5222,7 @@ type NftPoolResponse {
5214
5222
  """The current pool liquidity in the network's base token."""
5215
5223
  balanceNBT: String!
5216
5224
  """The current number of NFTs in the pool."""
5217
- nftBalance: Int
5225
+ nftBalance: Int @deprecated(reason: "nftBalance is changing from Int to String - use nftBalanceV2 instead.")
5218
5226
  """The current number of NFTs in the pool."""
5219
5227
  nftBalanceV2: String!
5220
5228
  """The total volume of the pool in the network's base token over the pool's lifetime."""
@@ -5230,7 +5238,7 @@ type NftPoolResponse {
5230
5238
  """The total volume of the pool in the pool's liquidity token over the pool's lifetime."""
5231
5239
  volumeAllTimeT: String!
5232
5240
  """The total number of NFTs bought and sold over the pool's lifetime."""
5233
- nftVolumeAllTime: Int!
5241
+ nftVolumeAllTime: Int! @deprecated(reason: "nftVolumeAllTime is changing from Int to String - use nftVolumeAllTimeV2 instead.")
5234
5242
  """The total number of NFTs bought and sold over the pool's lifetime."""
5235
5243
  nftVolumeAllTimeV2: String!
5236
5244
  """The list of NFT assets in the pool."""
@@ -5545,19 +5553,27 @@ input OnEventsCreatedByMakerInput {
5545
5553
  }
5546
5554
 
5547
5555
  input OnLaunchpadTokenEventBatchInput {
5556
+ """The protocol of the token."""
5548
5557
  protocol: LaunchpadTokenProtocol
5558
+ """The network ID that the token is deployed on."""
5549
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
5550
5564
  }
5551
5565
 
5552
5566
  """Input for `onLaunchpadTokenEvent`."""
5553
5567
  input OnLaunchpadTokenEventInput {
5554
5568
  """The protocol of the token."""
5555
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
5556
5572
  """The type of event."""
5557
5573
  eventType: LaunchpadTokenEventType
5558
- """The contract address of the token. Required when `networkId` is provided."""
5574
+ """The contract address of the token. Requires `networkId`."""
5559
5575
  address: String
5560
- """The network ID that the token is deployed on. Required when `address` is provided."""
5576
+ """The network ID that the token is deployed on."""
5561
5577
  networkId: Int
5562
5578
  }
5563
5579
 
@@ -7442,7 +7458,7 @@ type TokenFilterResult {
7442
7458
  createdAt: Int
7443
7459
  """The unix timestamp for the token's last transaction."""
7444
7460
  lastTransaction: Int
7445
- age: Int
7461
+ age: Int @deprecated(reason: "Age isn't supported - use createdAt instead")
7446
7462
  """The number of buys in the past 5 minutes."""
7447
7463
  buyCount5m: Int
7448
7464
  """The number of buys in the past hour."""
@@ -7475,7 +7491,7 @@ type TokenFilterResult {
7475
7491
  volumeChange24: String
7476
7492
  """The exchanges the token is listed on."""
7477
7493
  exchanges: [Exchange]
7478
- fdv: String
7494
+ fdv: String @deprecated(reason: "FDV isn't supported - use marketCap instead")
7479
7495
  """The highest price in USD in the past 5 minutes."""
7480
7496
  high5m: String
7481
7497
  """The highest price in USD in the past hour."""
@@ -7610,7 +7626,7 @@ input TokenFilters {
7610
7626
  createdAt: NumberFilter
7611
7627
  """The unix timestamp for the token's last transaction."""
7612
7628
  lastTransaction: NumberFilter
7613
- age: NumberFilter
7629
+ age: NumberFilter @deprecated(reason: "Age isn't supported - use createdAt instead")
7614
7630
  """The number of buys in the past 5 minutes."""
7615
7631
  buyCount5m: NumberFilter
7616
7632
  """The number of buys in the past hour."""
@@ -7645,7 +7661,7 @@ input TokenFilters {
7645
7661
  exchangeId: [String]
7646
7662
  """The list of exchange contract addresses to filter by."""
7647
7663
  exchangeAddress: [String]
7648
- fdv: NumberFilter
7664
+ fdv: NumberFilter @deprecated(reason: "FDV isn't supported - use marketCap instead")
7649
7665
  """The highest price in USD in the past 5 minutes."""
7650
7666
  high5m: NumberFilter
7651
7667
  """The highest price in USD in the past hour."""
@@ -7766,13 +7782,13 @@ input TokenFilters {
7766
7782
  isVerified: Boolean
7767
7783
  """Filter potential Scams"""
7768
7784
  potentialScam: Boolean
7769
- """Whether to ignore pairs/tokens not relevant to trending"""
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`."""
7770
7786
  trendingIgnored: Boolean
7771
7787
  """The address of the creator of the token"""
7772
7788
  creatorAddress: String
7773
7789
  """The launchpad protocol"""
7774
7790
  launchpadProtocol: String
7775
- """The name of the launchpad"""
7791
+ """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."""
7776
7792
  launchpadName: String
7777
7793
  """Indicates if the launchpad is completed"""
7778
7794
  launchpadCompleted: Boolean
@@ -7985,7 +8001,7 @@ input TokenRanking {
7985
8001
  enum TokenRankingAttribute {
7986
8002
  createdAt
7987
8003
  lastTransaction
7988
- age
8004
+ age @deprecated(reason: "Use createdAt instead")
7989
8005
  buyCount5m
7990
8006
  buyCount1
7991
8007
  buyCount4
@@ -8760,17 +8776,17 @@ input WalletFilters {
8760
8776
  enum WalletLabel {
8761
8777
  """Wallet is interesting (based on a number of factors)."""
8762
8778
  INTERESTING
8763
- """Wallet holds $5M+ in assets"""
8779
+ """Wallet holds $5M+ in assets."""
8764
8780
  MEDIUM_WEALTHY
8765
- """Wallet holds $10M+ in assets"""
8781
+ """Wallet holds $10M+ in assets."""
8766
8782
  MEGA_WEALTHY
8767
- """Wallet has made over $7.5K profit in the last 90 days trading tokens that are older than 2 days"""
8783
+ """Wallet has made over $7.5K profit in the last 90 days trading tokens that are older than 2 days."""
8768
8784
  SMART_TRADER_TOKENS_OVER_TWO_DAYS_OLD
8769
- """Wallet has made over $5K profit in the last 90 days trading tokens that are between 1 hour and 2 days old"""
8785
+ """Wallet has made over $5K profit in the last 90 days trading tokens that are between 1 hour and 2 days old."""
8770
8786
  SMART_TRADER_TOKENS_UNDER_TWO_DAYS_OLD
8771
- """Wallet has made over $3K profit in the last 90 days trading tokens that were launched within their first hour"""
8787
+ """Wallet has made over $3K profit in the last 90 days trading tokens that were launched within their first hour."""
8772
8788
  SNIPER
8773
- """Wallet holds $1M+ in assets"""
8789
+ """Wallet holds $1M+ in assets."""
8774
8790
  WEALTHY
8775
8791
  }
8776
8792
 
@@ -13,12 +13,12 @@ import { Codex } from "./index";
13
13
 
14
14
  export class Mutation {
15
15
  constructor(private sdk: Codex) {}
16
- createWebhooks = async (vars: CreateWebhooksMutationVariables) =>
17
- this.sdk.mutation(CreateWebhooksDocument, vars);
18
16
  deleteApiToken = async (vars: DeleteApiTokenMutationVariables) =>
19
17
  this.sdk.mutation(DeleteApiTokenDocument, vars);
20
18
  createApiTokens = async (vars: CreateApiTokensMutationVariables) =>
21
19
  this.sdk.mutation(CreateApiTokensDocument, vars);
22
20
  deleteWebhooks = async (vars: DeleteWebhooksMutationVariables) =>
23
21
  this.sdk.mutation(DeleteWebhooksDocument, vars);
22
+ createWebhooks = async (vars: CreateWebhooksMutationVariables) =>
23
+ this.sdk.mutation(CreateWebhooksDocument, vars);
24
24
  }