@codex-data/sdk 1.0.4 → 1.0.6

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 (60) hide show
  1. package/dist/resources/generated_queries/Balances.graphql +3 -0
  2. package/dist/resources/generated_queries/GetNetworkStats.graphql +7 -0
  3. package/dist/resources/generated_queries/Holders.graphql +3 -0
  4. package/dist/resources/generated_queries/LiquidityLocks.graphql +1 -1
  5. package/dist/resources/generated_queries/PrimeHolders.graphql +3 -0
  6. package/dist/resources/generated_queries/TokenTopTraders.graphql +26 -0
  7. package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  8. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  9. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  10. package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  11. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  12. package/dist/resources/graphql.d.ts +245 -12
  13. package/dist/resources/graphql.d.ts.map +1 -1
  14. package/dist/resources/graphql.js +38 -2
  15. package/dist/resources/graphql.js.map +1 -1
  16. package/dist/resources/graphql.schema.json +1800 -27
  17. package/dist/resources/graphql.ts +261 -12
  18. package/dist/resources/schema.graphql +311 -12
  19. package/dist/sdk/Mutation.d.ts +2 -2
  20. package/dist/sdk/Mutation.d.ts.map +1 -1
  21. package/dist/sdk/Mutation.js +2 -2
  22. package/dist/sdk/Mutation.js.map +1 -1
  23. package/dist/sdk/Query.d.ts +48 -48
  24. package/dist/sdk/Query.d.ts.map +1 -1
  25. package/dist/sdk/Query.js +47 -47
  26. package/dist/sdk/Query.js.map +1 -1
  27. package/dist/sdk/Subscribe.d.ts +16 -14
  28. package/dist/sdk/Subscribe.d.ts.map +1 -1
  29. package/dist/sdk/Subscribe.js +93 -79
  30. package/dist/sdk/Subscribe.js.map +1 -1
  31. package/dist/sdk/generated/gql.d.ts +39 -25
  32. package/dist/sdk/generated/gql.d.ts.map +1 -1
  33. package/dist/sdk/generated/gql.js +11 -9
  34. package/dist/sdk/generated/gql.js.map +1 -1
  35. package/dist/sdk/generated/graphql.d.ts +426 -62
  36. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  37. package/dist/sdk/generated/graphql.js +51 -13
  38. package/dist/sdk/generated/graphql.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/resources/generated_queries/Balances.graphql +3 -0
  41. package/src/resources/generated_queries/GetNetworkStats.graphql +7 -0
  42. package/src/resources/generated_queries/Holders.graphql +3 -0
  43. package/src/resources/generated_queries/LiquidityLocks.graphql +1 -1
  44. package/src/resources/generated_queries/PrimeHolders.graphql +3 -0
  45. package/src/resources/generated_queries/TokenTopTraders.graphql +26 -0
  46. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  47. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  48. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  49. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  50. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  51. package/src/resources/graphql.schema.json +1800 -27
  52. package/src/resources/graphql.ts +261 -12
  53. package/src/resources/schema.graphql +311 -12
  54. package/src/sdk/Mutation.ts +4 -4
  55. package/src/sdk/Query.ts +101 -101
  56. package/src/sdk/Subscribe.ts +151 -121
  57. package/src/sdk/generated/gql.ts +31 -21
  58. package/src/sdk/generated/graphql.ts +301 -36
  59. package/dist/resources/generated_queries/GetLatestTokens.graphql +0 -39
  60. package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
@@ -153,15 +153,40 @@ export type ApiToken = {
153
153
  /** JWT to be passed into the Authorization header for API requests */
154
154
  token: Scalars['String']['output'];
155
155
  };
156
+ export type AptosNetworkConfig = {
157
+ __typename?: 'AptosNetworkConfig';
158
+ baseTokenAddress: Scalars['String']['output'];
159
+ baseTokenSymbol: Scalars['String']['output'];
160
+ color?: Maybe<Scalars['String']['output']>;
161
+ defaultPairAddress: Scalars['String']['output'];
162
+ defaultPairQuoteToken: QuoteToken;
163
+ enabled: Scalars['Boolean']['output'];
164
+ id: Scalars['ID']['output'];
165
+ mainnet: Scalars['Boolean']['output'];
166
+ name: Scalars['String']['output'];
167
+ networkIconUrl: Scalars['String']['output'];
168
+ networkId: Scalars['Int']['output'];
169
+ networkName: Scalars['String']['output'];
170
+ networkShortName: Scalars['String']['output'];
171
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
172
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
173
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
174
+ };
156
175
  /** Wallet balance of a token. */
157
176
  export type Balance = {
158
177
  __typename?: 'Balance';
178
+ /** The wallet address. */
179
+ address: Scalars['String']['output'];
159
180
  /** The balance held by the wallet. */
160
181
  balance: Scalars['String']['output'];
161
- /** The time that this address first held a token */
182
+ /** The time that this address first held a token. */
162
183
  firstHeldTimestamp?: Maybe<Scalars['Int']['output']>;
184
+ /** The wallet network. */
185
+ networkId: Scalars['Int']['output'];
163
186
  /** The balance held by the wallet, adjusted by the number of decimals in the token. */
164
187
  shiftedBalance: Scalars['Float']['output'];
188
+ /** The contract address of the token. */
189
+ tokenAddress: Scalars['String']['output'];
165
190
  /** The ID of the token (`tokenAddress:networkId`). */
166
191
  tokenId: Scalars['String']['output'];
167
192
  /** The ID of the wallet (`walletAddress:networkId`). */
@@ -174,8 +199,12 @@ export type BalancesInput = {
174
199
  filterToken?: InputMaybe<Scalars['String']['input']>;
175
200
  /** If set to true, native tokens in the response, they will have the id: native:<networkId> */
176
201
  includeNative?: InputMaybe<Scalars['Boolean']['input']>;
202
+ /** The maximum number of holdings to return. */
203
+ limit?: InputMaybe<Scalars['Int']['input']>;
204
+ /** The wallet address to filter by. */
205
+ walletAddress?: InputMaybe<Scalars['String']['input']>;
177
206
  /** The ID of the wallet (`walletAddress:networkId`). */
178
- walletId: Scalars['String']['input'];
207
+ walletId?: InputMaybe<Scalars['String']['input']>;
179
208
  };
180
209
  export type BalancesResponse = {
181
210
  __typename?: 'BalancesResponse';
@@ -865,7 +894,7 @@ export type EnhancedToken = {
865
894
  info?: Maybe<TokenInfo>;
866
895
  /** Whether the token has been flagged as a scam. */
867
896
  isScam?: Maybe<Scalars['Boolean']['output']>;
868
- /** Launchpad data for the token */
897
+ /** The launchpad data for the token, if applicable. */
869
898
  launchpad?: Maybe<LaunchpadData>;
870
899
  /** Whether or not the token is mintable */
871
900
  mintable?: Maybe<Scalars['String']['output']>;
@@ -888,6 +917,12 @@ export type EnhancedToken = {
888
917
  */
889
918
  totalSupply?: Maybe<Scalars['String']['output']>;
890
919
  };
920
+ export declare enum Entitlement {
921
+ BalanceFeed = "BalanceFeed",
922
+ PriceFeed = "PriceFeed",
923
+ TopTraders = "TopTraders",
924
+ WalletStats = "WalletStats"
925
+ }
891
926
  /** A token transaction. */
892
927
  export type Event = {
893
928
  __typename?: 'Event';
@@ -1038,6 +1073,8 @@ export type EventsQueryInput = {
1038
1073
  priceUsdTotal?: InputMaybe<NumberFilter>;
1039
1074
  /** The token of interest. Can be `token0` or `token1`. */
1040
1075
  quoteToken?: InputMaybe<QuoteToken>;
1076
+ /** Specify the type of symbol you want to fetch values for (TOKEN | POOL) */
1077
+ symbolType?: InputMaybe<SymbolType>;
1041
1078
  /** The time range to filter by. */
1042
1079
  timestamp?: InputMaybe<EventQueryTimestampInput>;
1043
1080
  };
@@ -1288,6 +1325,8 @@ export type GetNetworkStatsResponse = {
1288
1325
  transactions1: Scalars['Int']['output'];
1289
1326
  /** The unique number of transactions in the past 4 hours. */
1290
1327
  transactions4: Scalars['Int']['output'];
1328
+ /** The unique number of transactions in the past 5 minutes. */
1329
+ transactions5m: Scalars['Int']['output'];
1291
1330
  /** The unique number of transactions in the past 12 hours. */
1292
1331
  transactions12: Scalars['Int']['output'];
1293
1332
  /** The unique number of transactions in the past 24 hours. */
@@ -1296,10 +1335,22 @@ export type GetNetworkStatsResponse = {
1296
1335
  volume1: Scalars['Float']['output'];
1297
1336
  /** The network trade volume in USD over the past 4 hours. */
1298
1337
  volume4: Scalars['Float']['output'];
1338
+ /** The network trade volume in USD over the past 5 minutes. */
1339
+ volume5m: Scalars['Float']['output'];
1299
1340
  /** The network trade volume in USD over the past 12 hours. */
1300
1341
  volume12: Scalars['Float']['output'];
1301
1342
  /** The network trade volume in USD over the past 24 hours. */
1302
1343
  volume24: Scalars['Float']['output'];
1344
+ /** The network trade volume change over the last hour */
1345
+ volumeChange1: Scalars['Float']['output'];
1346
+ /** The network trade volume change over the last 4 hours */
1347
+ volumeChange4: Scalars['Float']['output'];
1348
+ /** The network trade volume change over the last 5 minutes */
1349
+ volumeChange5m: Scalars['Float']['output'];
1350
+ /** The network trade volume change over the last 12 hours */
1351
+ volumeChange12: Scalars['Float']['output'];
1352
+ /** The network trade volume change over the last 24 hours */
1353
+ volumeChange24: Scalars['Float']['output'];
1303
1354
  };
1304
1355
  /** Response returned by `getNftPoolCollectionsByExchange`. */
1305
1356
  export type GetNftPoolCollectionsResponse = {
@@ -1611,7 +1662,6 @@ export type LatestTokenSimResults = {
1611
1662
  /** Tax paid for a sell transaction during simulation. */
1612
1663
  sellTax?: Maybe<Scalars['String']['output']>;
1613
1664
  };
1614
- /** Launchpad data for the token */
1615
1665
  export type LaunchpadData = {
1616
1666
  __typename?: 'LaunchpadData';
1617
1667
  /** Indicates if the launchpad is completed. */
@@ -1633,6 +1683,46 @@ export type LaunchpadData = {
1633
1683
  /** The address of the pool. */
1634
1684
  poolAddress?: Maybe<Scalars['String']['output']>;
1635
1685
  };
1686
+ /** Response returned by `onLaunchpadTokenEvent`. */
1687
+ export type LaunchpadTokenEventOutput = {
1688
+ __typename?: 'LaunchpadTokenEventOutput';
1689
+ /** The contract address of the token. */
1690
+ address: Scalars['String']['output'];
1691
+ /** The number of buys in the last 24 hours. */
1692
+ buyCount1?: Maybe<Scalars['Int']['output']>;
1693
+ /** The type of event. */
1694
+ eventType: LaunchpadTokenEventType;
1695
+ /** The number of holders. */
1696
+ holders?: Maybe<Scalars['Int']['output']>;
1697
+ /** The market cap of the token. */
1698
+ marketCap?: Maybe<Scalars['String']['output']>;
1699
+ /** The network ID that the token is deployed on. */
1700
+ networkId: Scalars['Int']['output'];
1701
+ /** The price of the token. */
1702
+ price?: Maybe<Scalars['Float']['output']>;
1703
+ /** The protocol of the token. */
1704
+ protocol: Scalars['String']['output'];
1705
+ /** The number of sells in the last 24 hours. */
1706
+ sellCount1?: Maybe<Scalars['Int']['output']>;
1707
+ /** Metadata for the token. */
1708
+ token: EnhancedToken;
1709
+ /** The number of transactions in the last 24 hours. */
1710
+ transactions1?: Maybe<Scalars['Int']['output']>;
1711
+ /** The volume of the token in the last 24 hours. */
1712
+ volume1?: Maybe<Scalars['Int']['output']>;
1713
+ };
1714
+ /** The type of event. Note that associated statistics such as `buyCount1`, `price`, etc. are only available for `Updated` events. */
1715
+ export declare enum LaunchpadTokenEventType {
1716
+ Completed = "Completed",
1717
+ Created = "Created",
1718
+ Migrated = "Migrated",
1719
+ Updated = "Updated"
1720
+ }
1721
+ /** The protocol of the token. */
1722
+ export declare enum LaunchpadTokenProtocol {
1723
+ FourMeme = "FourMeme",
1724
+ Pump = "Pump"
1725
+ }
1636
1726
  export type LiquidityData = {
1637
1727
  __typename?: 'LiquidityData';
1638
1728
  /** The active liquidity in the pair. */
@@ -1653,8 +1743,13 @@ export type LiquidityLock = {
1653
1743
  liquidityAmount: Scalars['String']['output'];
1654
1744
  /** If the liquidity position is represented by an NFT, this will contain the NFT data. */
1655
1745
  liquidityNftData?: Maybe<LiquidityNftData>;
1656
- /** The protocol that created the pair */
1746
+ /**
1747
+ * The protocol that created the pair
1748
+ * @deprecated Use liquidityProtocolV2 instead
1749
+ */
1657
1750
  liquidityProtocol: LiquidityProtocol;
1751
+ /** The protocol that created the pair */
1752
+ liquidityProtocolV2: Scalars['String']['output'];
1658
1753
  /** The protocol with which the liquidity is locked. */
1659
1754
  lockProtocol: LiquidityLockProtocol;
1660
1755
  /** The address of the locker contract. */
@@ -1701,9 +1796,11 @@ export type LiquidityNftData = {
1701
1796
  };
1702
1797
  /** Protocols that create trading pairs */
1703
1798
  export declare enum LiquidityProtocol {
1799
+ PumpV1 = "PUMP_V1",
1704
1800
  RaydiumV4 = "RAYDIUM_V4",
1705
1801
  UniswapV2 = "UNISWAP_V2",
1706
- UniswapV3 = "UNISWAP_V3"
1802
+ UniswapV3 = "UNISWAP_V3",
1803
+ UseLiquidityProtocolV2 = "USE_LIQUIDITY_PROTOCOL_V2"
1707
1804
  }
1708
1805
  /** Response returned by `listPairsWithMetadataForToken`. */
1709
1806
  export type ListPairsForTokenResponse = {
@@ -4375,9 +4472,16 @@ export type OnBarsUpdatedResponse = {
4375
4472
  /** The unix timestamp for the new bar. */
4376
4473
  timestamp: Scalars['Int']['output'];
4377
4474
  };
4378
- export type OnLaunchpadTokenUpdatedInput = {
4475
+ /** Input for `onLaunchpadTokenEvent`. */
4476
+ export type OnLaunchpadTokenEventInput = {
4477
+ /** The contract address of the token. */
4379
4478
  address?: InputMaybe<Scalars['String']['input']>;
4479
+ /** The type of event. */
4480
+ eventType?: InputMaybe<LaunchpadTokenEventType>;
4481
+ /** The network ID that the token is deployed on. */
4380
4482
  networkId?: InputMaybe<Scalars['Int']['input']>;
4483
+ /** The protocol of the token. */
4484
+ protocol?: InputMaybe<LaunchpadTokenProtocol>;
4381
4485
  };
4382
4486
  export type OnPricesUpdatedInput = {
4383
4487
  address: Scalars['String']['input'];
@@ -4413,7 +4517,7 @@ export type OnTokenBarsUpdatedResponse = {
4413
4517
  };
4414
4518
  export type OnTokenEventsCreatedInput = {
4415
4519
  networkId: Scalars['Int']['input'];
4416
- tokenAddress: Scalars['String']['input'];
4520
+ tokenAddress?: InputMaybe<Scalars['String']['input']>;
4417
4521
  };
4418
4522
  /** Response returned by `onUnconfirmedBarsUpdated`. */
4419
4523
  export type OnUnconfirmedBarsUpdated = {
@@ -4670,6 +4774,8 @@ export type PairFilters = {
4670
4774
  highPrice12?: InputMaybe<NumberFilter>;
4671
4775
  /** The highest price in USD in the past 24 hours. */
4672
4776
  highPrice24?: InputMaybe<NumberFilter>;
4777
+ /** Whether to filter for pairs on testnet networks. Use `true` for testnet pairs only, `false` for mainnet pairs only and `undefined` (default) for both. */
4778
+ isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
4673
4779
  /** The unix timestamp for the last transaction to happen on the pair. */
4674
4780
  lastTransaction?: InputMaybe<NumberFilter>;
4675
4781
  /** The amount of liquidity in the pair. */
@@ -4893,6 +4999,7 @@ export declare enum PairRankingAttribute {
4893
4999
  TrendingScore = "trendingScore",
4894
5000
  TrendingScore1 = "trendingScore1",
4895
5001
  TrendingScore4 = "trendingScore4",
5002
+ TrendingScore5m = "trendingScore5m",
4896
5003
  TrendingScore12 = "trendingScore12",
4897
5004
  TrendingScore24 = "trendingScore24",
4898
5005
  TxnCount1 = "txnCount1",
@@ -5762,12 +5869,13 @@ export type Query = {
5762
5869
  * @deprecated This query is longer supported. Instead use filterPairs with sort order on createdAt DESC
5763
5870
  */
5764
5871
  getLatestPairs?: Maybe<LatestPairConnection>;
5872
+ /** @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead. */
5765
5873
  getLatestTokens?: Maybe<LatestTokenConnection>;
5766
- /** Returns metadata for a given network. */
5874
+ /** Returns metadata for a given network supported on Codex. */
5767
5875
  getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5768
- /** Returns the status of a list of networks supported on Defined. */
5876
+ /** Returns the status of a list of networks supported on Codex. */
5769
5877
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
5770
- /** Returns a list of all networks supported on Defined. */
5878
+ /** Returns a list of all networks supported on Codex. */
5771
5879
  getNetworks: Array<Network>;
5772
5880
  /** Returns a list of NFT assets in a given collection. */
5773
5881
  getNftAssets?: Maybe<NftAssetsConnection>;
@@ -5800,7 +5908,7 @@ export type Query = {
5800
5908
  /** Returns a list of Prime pools. */
5801
5909
  getPrimePools?: Maybe<PrimePoolConnection>;
5802
5910
  getSimulateTokenContractResults: GetSimulateTokenContractResultsConnection;
5803
- /** Returns metadata for a given pair. */
5911
+ /** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
5804
5912
  getSymbol?: Maybe<SymbolResponse>;
5805
5913
  /** Returns transactions for a pair. */
5806
5914
  getTokenEvents?: Maybe<EventConnection>;
@@ -5841,6 +5949,8 @@ export type Query = {
5841
5949
  tokenLifecycleEvents?: Maybe<TokenLifecycleEventConnection>;
5842
5950
  /** Returns a list of token simple chart data (sparklines) for the given tokens. */
5843
5951
  tokenSparklines: Array<TokenSparkline>;
5952
+ /** Returns a list of top traders for a given token. */
5953
+ tokenTopTraders: TokenTopTradersConnection;
5844
5954
  /** Returns a list of tokens by their addresses & network id, with pagination. */
5845
5955
  tokens: Array<Maybe<EnhancedToken>>;
5846
5956
  /** Returns the percentage of a token’s total supply held collectively by its top 10 holders. */
@@ -6189,6 +6299,9 @@ export type QueryTokenLifecycleEventsArgs = {
6189
6299
  export type QueryTokenSparklinesArgs = {
6190
6300
  input: TokenSparklineInput;
6191
6301
  };
6302
+ export type QueryTokenTopTradersArgs = {
6303
+ input: TokenTopTradersInput;
6304
+ };
6192
6305
  export type QueryTokensArgs = {
6193
6306
  ids?: InputMaybe<Array<TokenInput>>;
6194
6307
  };
@@ -6626,6 +6739,25 @@ export type SparklineValue = {
6626
6739
  timestamp: Scalars['Int']['output'];
6627
6740
  value: Scalars['Float']['output'];
6628
6741
  };
6742
+ export type StarknetNetworkConfig = {
6743
+ __typename?: 'StarknetNetworkConfig';
6744
+ baseTokenAddress: Scalars['String']['output'];
6745
+ baseTokenSymbol: Scalars['String']['output'];
6746
+ color?: Maybe<Scalars['String']['output']>;
6747
+ defaultPairAddress: Scalars['String']['output'];
6748
+ defaultPairQuoteToken: QuoteToken;
6749
+ enabled: Scalars['Boolean']['output'];
6750
+ id: Scalars['ID']['output'];
6751
+ mainnet: Scalars['Boolean']['output'];
6752
+ name: Scalars['String']['output'];
6753
+ networkIconUrl: Scalars['String']['output'];
6754
+ networkId: Scalars['Int']['output'];
6755
+ networkName: Scalars['String']['output'];
6756
+ networkShortName: Scalars['String']['output'];
6757
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
6758
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
6759
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
6760
+ };
6629
6761
  /** Filter for NFT stats. */
6630
6762
  export type StatsFilter = {
6631
6763
  /** The percent change between the `current` and `previous`. */
@@ -6674,6 +6806,8 @@ export type StringFilter = {
6674
6806
  };
6675
6807
  export type Subscription = {
6676
6808
  __typename?: 'Subscription';
6809
+ /** Live-streamed balance updates for a given wallet. */
6810
+ onBalanceUpdated: Balance;
6677
6811
  /** Live-streamed bar chart data to track price changes over time. */
6678
6812
  onBarsUpdated?: Maybe<OnBarsUpdatedResponse>;
6679
6813
  /** Live-streamed bucketed stats for a given token within a pair. */
@@ -6687,6 +6821,7 @@ export type Subscription = {
6687
6821
  /** Live-streamed updates for newly listed pairs. */
6688
6822
  onLatestPairUpdated?: Maybe<LatestPair>;
6689
6823
  onLatestTokens?: Maybe<LatestToken>;
6824
+ onLaunchpadTokenEvent: LaunchpadTokenEventOutput;
6690
6825
  /** Live-streamed transactions for an NFT asset. */
6691
6826
  onNftAssetsCreated?: Maybe<NftAsset>;
6692
6827
  /** Live-streamed transactions for an NFT collection. */
@@ -6711,6 +6846,9 @@ export type Subscription = {
6711
6846
  /** Live-streamed unconfirmed transactions for a token. (Solana only) */
6712
6847
  onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
6713
6848
  };
6849
+ export type SubscriptionOnBalanceUpdatedArgs = {
6850
+ walletAddress: Scalars['String']['input'];
6851
+ };
6714
6852
  export type SubscriptionOnBarsUpdatedArgs = {
6715
6853
  pairId?: InputMaybe<Scalars['String']['input']>;
6716
6854
  quoteToken?: InputMaybe<QuoteToken>;
@@ -6727,6 +6865,7 @@ export type SubscriptionOnEventLabelCreatedArgs = {
6727
6865
  export type SubscriptionOnEventsCreatedArgs = {
6728
6866
  address?: InputMaybe<Scalars['String']['input']>;
6729
6867
  id?: InputMaybe<Scalars['String']['input']>;
6868
+ networkId?: InputMaybe<Scalars['Int']['input']>;
6730
6869
  quoteToken?: InputMaybe<QuoteToken>;
6731
6870
  };
6732
6871
  export type SubscriptionOnHoldersUpdatedArgs = {
@@ -6741,6 +6880,9 @@ export type SubscriptionOnLatestTokensArgs = {
6741
6880
  networkId?: InputMaybe<Scalars['Int']['input']>;
6742
6881
  tokenAddress?: InputMaybe<Scalars['String']['input']>;
6743
6882
  };
6883
+ export type SubscriptionOnLaunchpadTokenEventArgs = {
6884
+ input?: InputMaybe<OnLaunchpadTokenEventInput>;
6885
+ };
6744
6886
  export type SubscriptionOnNftAssetsCreatedArgs = {
6745
6887
  address?: InputMaybe<Scalars['String']['input']>;
6746
6888
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -6775,6 +6917,7 @@ export type SubscriptionOnSimulateTokenContractArgs = {
6775
6917
  simulationId?: InputMaybe<Scalars['String']['input']>;
6776
6918
  };
6777
6919
  export type SubscriptionOnTokenBarsUpdatedArgs = {
6920
+ networkId?: InputMaybe<Scalars['Int']['input']>;
6778
6921
  statsType?: InputMaybe<TokenPairStatisticsType>;
6779
6922
  tokenId?: InputMaybe<Scalars['String']['input']>;
6780
6923
  };
@@ -7187,6 +7330,8 @@ export type TokenFilters = {
7187
7330
  exchangeId?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
7188
7331
  /** @deprecated FDV isn't supported - use marketCap instead */
7189
7332
  fdv?: InputMaybe<NumberFilter>;
7333
+ /** The token in freezable */
7334
+ freezable?: InputMaybe<Scalars['Boolean']['input']>;
7190
7335
  /** The highest price in USD in the past hour. */
7191
7336
  high1?: InputMaybe<NumberFilter>;
7192
7337
  /** The highest price in USD in the past 4 hours. */
@@ -7201,10 +7346,22 @@ export type TokenFilters = {
7201
7346
  holders?: InputMaybe<NumberFilter>;
7202
7347
  /** Whether to include tokens that have been flagged as scams. Default: false */
7203
7348
  includeScams?: InputMaybe<Scalars['Boolean']['input']>;
7349
+ /** Whether to filter for tokens on testnet networks. Use `true` for testnet tokens only, `false` for mainnet tokens only and `undefined` (default) for both. */
7350
+ isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
7204
7351
  /** Only include verified tokens */
7205
7352
  isVerified?: InputMaybe<Scalars['Boolean']['input']>;
7206
7353
  /** The unix timestamp for the token's last transaction. */
7207
7354
  lastTransaction?: InputMaybe<NumberFilter>;
7355
+ /** Indicates if the launchpad is completed */
7356
+ launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
7357
+ /** The timestamp when the launchpad was completed */
7358
+ launchpadCompletedAt?: InputMaybe<NumberFilter>;
7359
+ /** The graduation percentage */
7360
+ launchpadGraduationPercent?: InputMaybe<NumberFilter>;
7361
+ /** Indicates if the launchpad has migrated */
7362
+ launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
7363
+ /** The timestamp when the launchpad was migrated */
7364
+ launchpadMigratedAt?: InputMaybe<NumberFilter>;
7208
7365
  /** The amount of liquidity in the token's top pair. */
7209
7366
  liquidity?: InputMaybe<NumberFilter>;
7210
7367
  /** The lowest price in USD in the past hour. */
@@ -7219,6 +7376,8 @@ export type TokenFilters = {
7219
7376
  low24?: InputMaybe<NumberFilter>;
7220
7377
  /** The market cap of circulating supply. */
7221
7378
  marketCap?: InputMaybe<NumberFilter>;
7379
+ /** The token in mintable */
7380
+ mintable?: InputMaybe<Scalars['Boolean']['input']>;
7222
7381
  /** The list of network IDs to filter by. Applied in conjunction with `exchangeId` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
7223
7382
  network?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
7224
7383
  /** docs: hide */
@@ -7488,6 +7647,7 @@ export declare enum TokenRankingAttribute {
7488
7647
  Change12 = "change12",
7489
7648
  Change24 = "change24",
7490
7649
  CreatedAt = "createdAt",
7650
+ GraduationPercent = "graduationPercent",
7491
7651
  High1 = "high1",
7492
7652
  High4 = "high4",
7493
7653
  High5m = "high5m",
@@ -7495,6 +7655,8 @@ export declare enum TokenRankingAttribute {
7495
7655
  High24 = "high24",
7496
7656
  Holders = "holders",
7497
7657
  LastTransaction = "lastTransaction",
7658
+ LaunchpadCompletedAt = "launchpadCompletedAt",
7659
+ LaunchpadMigratedAt = "launchpadMigratedAt",
7498
7660
  Liquidity = "liquidity",
7499
7661
  Low1 = "low1",
7500
7662
  Low4 = "low4",
@@ -7512,6 +7674,7 @@ export declare enum TokenRankingAttribute {
7512
7674
  TrendingScore = "trendingScore",
7513
7675
  TrendingScore1 = "trendingScore1",
7514
7676
  TrendingScore4 = "trendingScore4",
7677
+ TrendingScore5m = "trendingScore5m",
7515
7678
  TrendingScore12 = "trendingScore12",
7516
7679
  TrendingScore24 = "trendingScore24",
7517
7680
  TxnCount1 = "txnCount1",
@@ -7568,6 +7731,69 @@ export type TokenSparklineInput = {
7568
7731
  /** The contract address & networkId of the token, joined by a colon. ex: 0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6:1 */
7569
7732
  ids: Array<Scalars['String']['input']>;
7570
7733
  };
7734
+ /** A top trader for a token. */
7735
+ export type TokenTopTrader = {
7736
+ __typename?: 'TokenTopTrader';
7737
+ /** The amount of tokens bought in USD. */
7738
+ amountBoughtUsd: Scalars['String']['output'];
7739
+ /** The amount of tokens sold in USD. */
7740
+ amountSoldUsd: Scalars['String']['output'];
7741
+ /** The number of buys. */
7742
+ buys: Scalars['Int']['output'];
7743
+ /** The unix timestamp for the first transaction from this wallet. */
7744
+ firstTransactionAt?: Maybe<Scalars['Int']['output']>;
7745
+ /** The unix timestamp for the last transaction from this wallet. */
7746
+ lastTransactionAt: Scalars['Int']['output'];
7747
+ /** The network ID. */
7748
+ networkId: Scalars['Int']['output'];
7749
+ /** The realized profit percentage. */
7750
+ realizedProfitPercentage: Scalars['Float']['output'];
7751
+ /** The realized profit in USD. */
7752
+ realizedProfitUsd: Scalars['String']['output'];
7753
+ /** The number of sells. */
7754
+ sells: Scalars['Int']['output'];
7755
+ /** The single token acquisition cost in USD. */
7756
+ singleTokenAcquisitionCostUsd: Scalars['String']['output'];
7757
+ /** The token address. */
7758
+ tokenAddress: Scalars['String']['output'];
7759
+ /** The amount of tokens bought. */
7760
+ tokenAmountBought: Scalars['String']['output'];
7761
+ /** The amount of tokens sold. */
7762
+ tokenAmountSold: Scalars['String']['output'];
7763
+ /** The token balance of the trader. */
7764
+ tokenBalance: Scalars['String']['output'];
7765
+ /** The volume of tokens bought and sold in USD. */
7766
+ volumeUsd: Scalars['String']['output'];
7767
+ /** The wallet address of the trader. */
7768
+ walletAddress: Scalars['String']['output'];
7769
+ };
7770
+ /** A paginated list of top traders for a token. */
7771
+ export type TokenTopTradersConnection = {
7772
+ __typename?: 'TokenTopTradersConnection';
7773
+ /** The list of top traders. */
7774
+ items: Array<Maybe<TokenTopTrader>>;
7775
+ /** The network ID. */
7776
+ networkId: Scalars['Int']['output'];
7777
+ /** The offset of the first trader in the connection. */
7778
+ offset?: Maybe<Scalars['Int']['output']>;
7779
+ /** The token address. */
7780
+ tokenAddress: Scalars['String']['output'];
7781
+ /** The trading period. */
7782
+ tradingPeriod: TradingPeriod;
7783
+ };
7784
+ /** Input arguments for the `tokenTopTraders` query. */
7785
+ export type TokenTopTradersInput = {
7786
+ /** The number of traders to return */
7787
+ limit?: InputMaybe<Scalars['Int']['input']>;
7788
+ /** The network ID */
7789
+ networkId: Scalars['Int']['input'];
7790
+ /** Where in the list the server started when returning items */
7791
+ offset?: InputMaybe<Scalars['Int']['input']>;
7792
+ /** The token address */
7793
+ tokenAddress: Scalars['String']['input'];
7794
+ /** The trading period */
7795
+ tradingPeriod: TradingPeriod;
7796
+ };
7571
7797
  /** A token with metadata. */
7572
7798
  export type TokenWithMetadata = {
7573
7799
  __typename?: 'TokenWithMetadata';
@@ -7648,6 +7874,13 @@ export type TokenWithMetadata = {
7648
7874
  /** The volume over the time frame requested in USD. */
7649
7875
  volume: Scalars['String']['output'];
7650
7876
  };
7877
+ /** A time period used when calculating wallet trading data. */
7878
+ export declare enum TradingPeriod {
7879
+ Day = "DAY",
7880
+ Month = "MONTH",
7881
+ Week = "WEEK",
7882
+ Year = "YEAR"
7883
+ }
7651
7884
  /** An unconfirmed token transaction. */
7652
7885
  export type UnconfirmedEvent = {
7653
7886
  __typename?: 'UnconfirmedEvent';