@codex-data/sdk 1.0.25 → 1.0.28

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 (34) hide show
  1. package/dist/resources/graphql.d.ts +242 -14
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +14 -2
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/scripts/generateNetworkConfigs.d.ts +2 -0
  6. package/dist/scripts/generateNetworkConfigs.d.ts.map +1 -0
  7. package/dist/scripts/generateNetworkConfigs.js +235 -0
  8. package/dist/scripts/generateNetworkConfigs.js.map +1 -0
  9. package/dist/sdk/Mutation.d.ts +3 -3
  10. package/dist/sdk/Mutation.d.ts.map +1 -1
  11. package/dist/sdk/Mutation.js +3 -3
  12. package/dist/sdk/Mutation.js.map +1 -1
  13. package/dist/sdk/Query.d.ts +51 -51
  14. package/dist/sdk/Query.d.ts.map +1 -1
  15. package/dist/sdk/Query.js +51 -51
  16. package/dist/sdk/Query.js.map +1 -1
  17. package/dist/sdk/Subscribe.d.ts +14 -14
  18. package/dist/sdk/Subscribe.d.ts.map +1 -1
  19. package/dist/sdk/Subscribe.js +65 -65
  20. package/dist/sdk/Subscribe.js.map +1 -1
  21. package/dist/sdk/generated/graphql.d.ts +244 -16
  22. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  23. package/dist/sdk/generated/graphql.js +16 -4
  24. package/dist/sdk/generated/graphql.js.map +1 -1
  25. package/package.json +3 -1
  26. package/src/resources/graphql.schema.json +2698 -29
  27. package/src/resources/graphql.ts +260 -14
  28. package/src/resources/networkConfigs.json +3695 -0
  29. package/src/resources/schema.graphql +241 -12
  30. package/src/scripts/generateNetworkConfigs.ts +243 -0
  31. package/src/sdk/Mutation.ts +7 -7
  32. package/src/sdk/Query.ts +107 -107
  33. package/src/sdk/Subscribe.ts +156 -156
  34. package/src/sdk/generated/graphql.ts +261 -15
@@ -157,6 +157,27 @@ export type ApiToken = {
157
157
  /** JWT to be passed into the Authorization header for API requests */
158
158
  token: Scalars['String']['output'];
159
159
  };
160
+ export type AptosNetworkConfig = {
161
+ __typename?: 'AptosNetworkConfig';
162
+ baseTokenAddress: Scalars['String']['output'];
163
+ baseTokenSymbol: Scalars['String']['output'];
164
+ color?: Maybe<Scalars['String']['output']>;
165
+ defaultPairAddress: Scalars['String']['output'];
166
+ defaultPairQuoteToken: QuoteToken;
167
+ enabled: Scalars['Boolean']['output'];
168
+ explorer: ExplorerConfig;
169
+ id: Scalars['ID']['output'];
170
+ mainnet: Scalars['Boolean']['output'];
171
+ name: Scalars['String']['output'];
172
+ networkIconUrl: Scalars['String']['output'];
173
+ networkId: Scalars['Int']['output'];
174
+ networkName: Scalars['String']['output'];
175
+ networkShortName: Scalars['String']['output'];
176
+ networkType: NetworkConfigType;
177
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
178
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
179
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
180
+ };
160
181
  export type ArenaTradeData = {
161
182
  __typename?: 'ArenaTradeData';
162
183
  /** Protocol specific token ID */
@@ -267,6 +288,17 @@ export type BarsResponse = {
267
288
  /** The volume in the native token for the network */
268
289
  volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
269
290
  };
291
+ export type Block = {
292
+ __typename?: 'Block';
293
+ blockNumber: Scalars['Int']['output'];
294
+ hash: Scalars['String']['output'];
295
+ timestamp: Scalars['Int']['output'];
296
+ };
297
+ export type BlocksInput = {
298
+ blockNumbers?: InputMaybe<Array<Scalars['Int']['input']>>;
299
+ networkId: Scalars['Int']['input'];
300
+ timestamps?: InputMaybe<Array<Scalars['Int']['input']>>;
301
+ };
270
302
  /** The mathematical formula that defines how the prices of NFTs change after each buy or sell within a pool. */
271
303
  export declare enum BondingCurveType {
272
304
  Exponential = "EXPONENTIAL",
@@ -1180,6 +1212,27 @@ export type EventsQueryInput = {
1180
1212
  /** The time range to filter by. */
1181
1213
  timestamp?: InputMaybe<EventQueryTimestampInput>;
1182
1214
  };
1215
+ export type EvmNetworkConfig = {
1216
+ __typename?: 'EvmNetworkConfig';
1217
+ baseTokenAddress: Scalars['String']['output'];
1218
+ baseTokenSymbol: Scalars['String']['output'];
1219
+ color?: Maybe<Scalars['String']['output']>;
1220
+ defaultPairAddress: Scalars['String']['output'];
1221
+ defaultPairQuoteToken: QuoteToken;
1222
+ enabled: Scalars['Boolean']['output'];
1223
+ explorer: ExplorerConfig;
1224
+ id: Scalars['ID']['output'];
1225
+ mainnet: Scalars['Boolean']['output'];
1226
+ name: Scalars['String']['output'];
1227
+ networkIconUrl: Scalars['String']['output'];
1228
+ networkId: Scalars['Int']['output'];
1229
+ networkName: Scalars['String']['output'];
1230
+ networkShortName: Scalars['String']['output'];
1231
+ networkType: NetworkConfigType;
1232
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
1233
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
1234
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
1235
+ };
1183
1236
  /** Metadata for a decentralized exchange. */
1184
1237
  export type Exchange = {
1185
1238
  __typename?: 'Exchange';
@@ -1305,6 +1358,13 @@ export declare enum ExchangeRankingAttribute {
1305
1358
  VolumeUsd12 = "volumeUSD12",
1306
1359
  VolumeUsd24 = "volumeUSD24"
1307
1360
  }
1361
+ export type ExplorerConfig = {
1362
+ __typename?: 'ExplorerConfig';
1363
+ checksummed: Scalars['Boolean']['output'];
1364
+ icon: Scalars['String']['output'];
1365
+ name: Scalars['String']['output'];
1366
+ url: Scalars['String']['output'];
1367
+ };
1308
1368
  /** Third party token data sourced from off chain. */
1309
1369
  export type ExplorerTokenData = {
1310
1370
  __typename?: 'ExplorerTokenData';
@@ -1872,6 +1932,8 @@ export declare enum LaunchpadTokenProtocol {
1872
1932
  BoopFun = "BoopFun",
1873
1933
  /** Protocol name for Clanker. */
1874
1934
  Clanker = "Clanker",
1935
+ /** Protocol name for Clanker V4. */
1936
+ ClankerV4 = "ClankerV4",
1875
1937
  /** Protocol name for EgoTech. */
1876
1938
  EgoTech = "EgoTech",
1877
1939
  /** Protocol name for Four.meme. */
@@ -1888,6 +1950,8 @@ export declare enum LaunchpadTokenProtocol {
1888
1950
  Rainbow = "Rainbow",
1889
1951
  /** Protocol name for LaunchLab and Bonk. */
1890
1952
  RaydiumLaunchpad = "RaydiumLaunchpad",
1953
+ /** Protocol name for TokenMill V2. */
1954
+ TokenMillV2 = "TokenMillV2",
1891
1955
  /** Protocol name for Vertigo. */
1892
1956
  Vertigo = "Vertigo",
1893
1957
  /** Protocol name for Virtuals. */
@@ -2198,6 +2262,34 @@ export type NetworkBreakdown = {
2198
2262
  /** The stats for the last year */
2199
2263
  statsYear1?: Maybe<WindowedWalletStats>;
2200
2264
  };
2265
+ export type NetworkConfig = AptosNetworkConfig | EvmNetworkConfig | SolanaNetworkConfig | StarknetNetworkConfig | SuiNetworkConfig;
2266
+ export type NetworkConfigBase = {
2267
+ baseTokenAddress: Scalars['String']['output'];
2268
+ baseTokenSymbol: Scalars['String']['output'];
2269
+ color?: Maybe<Scalars['String']['output']>;
2270
+ defaultPairAddress: Scalars['String']['output'];
2271
+ defaultPairQuoteToken: QuoteToken;
2272
+ enabled: Scalars['Boolean']['output'];
2273
+ explorer: ExplorerConfig;
2274
+ id: Scalars['ID']['output'];
2275
+ mainnet: Scalars['Boolean']['output'];
2276
+ name: Scalars['String']['output'];
2277
+ networkIconUrl: Scalars['String']['output'];
2278
+ networkId: Scalars['Int']['output'];
2279
+ networkName: Scalars['String']['output'];
2280
+ networkShortName: Scalars['String']['output'];
2281
+ networkType: NetworkConfigType;
2282
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
2283
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
2284
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
2285
+ };
2286
+ export declare enum NetworkConfigType {
2287
+ Aptos = "APTOS",
2288
+ Evm = "EVM",
2289
+ Solana = "SOLANA",
2290
+ Starknet = "STARKNET",
2291
+ Sui = "SUI"
2292
+ }
2201
2293
  /** A connection of wallets matching a filter on a specific network. */
2202
2294
  export type NetworkWalletFilterConnection = {
2203
2295
  __typename?: 'NetworkWalletFilterConnection';
@@ -4853,9 +4945,9 @@ export type OnEventsCreatedByMakerInput = {
4853
4945
  export type OnLaunchpadTokenEventBatchInput = {
4854
4946
  /** The type of event. */
4855
4947
  eventType?: InputMaybe<LaunchpadTokenEventType>;
4856
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4948
+ /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4857
4949
  launchpadName?: InputMaybe<Scalars['String']['input']>;
4858
- /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4950
+ /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4859
4951
  launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
4860
4952
  /** The network ID that the token is deployed on. */
4861
4953
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -4870,9 +4962,9 @@ export type OnLaunchpadTokenEventInput = {
4870
4962
  address?: InputMaybe<Scalars['String']['input']>;
4871
4963
  /** The type of event. */
4872
4964
  eventType?: InputMaybe<LaunchpadTokenEventType>;
4873
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4965
+ /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4874
4966
  launchpadName?: InputMaybe<Scalars['String']['input']>;
4875
- /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4967
+ /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4876
4968
  launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
4877
4969
  /** The network ID that the token is deployed on. */
4878
4970
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -4895,11 +4987,20 @@ export type OnTokenBarsUpdatedResponse = {
4895
4987
  eventSortKey: Scalars['String']['output'];
4896
4988
  /** The network ID the pair is deployed on. */
4897
4989
  networkId: Scalars['Int']['output'];
4898
- /** The contract address for the pair. */
4899
- pairAddress: Scalars['String']['output'];
4900
- /** The ID for the pair (`pairAddress`:`networkId`). */
4901
- pairId: Scalars['String']['output'];
4902
- /** The quote token within the pair. */
4990
+ /**
4991
+ * The contract address for the pair.
4992
+ * @deprecated pairs are no longer used for pricing
4993
+ */
4994
+ pairAddress?: Maybe<Scalars['String']['output']>;
4995
+ /**
4996
+ * The ID for the pair (`pairAddress`:`networkId`).
4997
+ * @deprecated pairs are no longer used for pricing
4998
+ */
4999
+ pairId?: Maybe<Scalars['String']['output']>;
5000
+ /**
5001
+ * The quote token within the pair.
5002
+ * @deprecated pairs are no longer used for pricing
5003
+ */
4903
5004
  quoteToken?: Maybe<QuoteToken>;
4904
5005
  /** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
4905
5006
  statsType: TokenPairStatisticsType;
@@ -5779,6 +5880,8 @@ export type Price = {
5779
5880
  address: Scalars['String']['output'];
5780
5881
  /** Ratio of how confident we are in the price */
5781
5882
  confidence?: Maybe<Scalars['Float']['output']>;
5883
+ /** The internal pool address for the price */
5884
+ internalPoolAddress?: Maybe<Scalars['String']['output']>;
5782
5885
  /** The network ID the token is deployed on. */
5783
5886
  networkId: Scalars['Int']['output'];
5784
5887
  /** The pool that emitted the swap generating this price */
@@ -6295,6 +6398,8 @@ export type Query = {
6295
6398
  apiTokens: Array<ApiToken>;
6296
6399
  /** Returns list of token balances that a wallet has. */
6297
6400
  balances: BalancesResponse;
6401
+ /** Returns block data for the input blockNumbers or timestamps, maximum 25 inputs. */
6402
+ blocks: Array<Block>;
6298
6403
  /** Returns a URL for a pair chart. */
6299
6404
  chartUrls?: Maybe<ChartUrlsResponse>;
6300
6405
  /** Returns detailed stats for a wallet. */
@@ -6351,6 +6456,7 @@ export type Query = {
6351
6456
  * @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
6352
6457
  */
6353
6458
  getLatestTokens?: Maybe<LatestTokenConnection>;
6459
+ getNetworkConfigs: Array<NetworkConfig>;
6354
6460
  /** Returns metadata for a given network supported on Codex. */
6355
6461
  getNetworkStats?: Maybe<GetNetworkStatsResponse>;
6356
6462
  /** Returns the status of a list of networks supported on Codex. */
@@ -6389,6 +6495,8 @@ export type Query = {
6389
6495
  getPrimePools?: Maybe<PrimePoolConnection>;
6390
6496
  /** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
6391
6497
  getSymbol?: Maybe<SymbolResponse>;
6498
+ /** Returns bar chart data to track price changes over time. */
6499
+ getTokenBars?: Maybe<TokenBarsResponse>;
6392
6500
  /** Returns transactions for a pair. */
6393
6501
  getTokenEvents?: Maybe<EventConnection>;
6394
6502
  /** Returns a list of token events for a given maker across all pairs. */
@@ -6454,6 +6562,9 @@ export type QueryApiTokenArgs = {
6454
6562
  export type QueryBalancesArgs = {
6455
6563
  input: BalancesInput;
6456
6564
  };
6565
+ export type QueryBlocksArgs = {
6566
+ input: BlocksInput;
6567
+ };
6457
6568
  export type QueryChartUrlsArgs = {
6458
6569
  input: ChartInput;
6459
6570
  };
@@ -6591,6 +6702,9 @@ export type QueryGetLatestTokensArgs = {
6591
6702
  networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
6592
6703
  offset?: InputMaybe<Scalars['Int']['input']>;
6593
6704
  };
6705
+ export type QueryGetNetworkConfigsArgs = {
6706
+ networkIds?: InputMaybe<Array<Scalars['Int']['input']>>;
6707
+ };
6594
6708
  export type QueryGetNetworkStatsArgs = {
6595
6709
  exchangeAddress?: InputMaybe<Scalars['String']['input']>;
6596
6710
  networkId: Scalars['Int']['input'];
@@ -6706,6 +6820,17 @@ export type QueryGetSymbolArgs = {
6706
6820
  currencyCode?: InputMaybe<Scalars['String']['input']>;
6707
6821
  symbol: Scalars['String']['input'];
6708
6822
  };
6823
+ export type QueryGetTokenBarsArgs = {
6824
+ countback?: InputMaybe<Scalars['Int']['input']>;
6825
+ currencyCode?: InputMaybe<QuoteCurrency>;
6826
+ from: Scalars['Int']['input'];
6827
+ removeEmptyBars?: InputMaybe<Scalars['Boolean']['input']>;
6828
+ removeLeadingNullValues?: InputMaybe<Scalars['Boolean']['input']>;
6829
+ resolution: Scalars['String']['input'];
6830
+ statsType?: InputMaybe<TokenPairStatisticsType>;
6831
+ symbol: Scalars['String']['input'];
6832
+ to: Scalars['Int']['input'];
6833
+ };
6709
6834
  export type QueryGetTokenEventsArgs = {
6710
6835
  cursor?: InputMaybe<Scalars['String']['input']>;
6711
6836
  direction?: InputMaybe<RankingDirection>;
@@ -6986,6 +7111,27 @@ export type SocialLinks = {
6986
7111
  whitepaper?: Maybe<Scalars['String']['output']>;
6987
7112
  youtube?: Maybe<Scalars['String']['output']>;
6988
7113
  };
7114
+ export type SolanaNetworkConfig = {
7115
+ __typename?: 'SolanaNetworkConfig';
7116
+ baseTokenAddress: Scalars['String']['output'];
7117
+ baseTokenSymbol: Scalars['String']['output'];
7118
+ color?: Maybe<Scalars['String']['output']>;
7119
+ defaultPairAddress: Scalars['String']['output'];
7120
+ defaultPairQuoteToken: QuoteToken;
7121
+ enabled: Scalars['Boolean']['output'];
7122
+ explorer: ExplorerConfig;
7123
+ id: Scalars['ID']['output'];
7124
+ mainnet: Scalars['Boolean']['output'];
7125
+ name: Scalars['String']['output'];
7126
+ networkIconUrl: Scalars['String']['output'];
7127
+ networkId: Scalars['Int']['output'];
7128
+ networkName: Scalars['String']['output'];
7129
+ networkShortName: Scalars['String']['output'];
7130
+ networkType: NetworkConfigType;
7131
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
7132
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
7133
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
7134
+ };
6989
7135
  export declare enum SparklineAttribute {
6990
7136
  Price = "PRICE"
6991
7137
  }
@@ -6995,6 +7141,27 @@ export type SparklineValue = {
6995
7141
  timestamp: Scalars['Int']['output'];
6996
7142
  value: Scalars['Float']['output'];
6997
7143
  };
7144
+ export type StarknetNetworkConfig = {
7145
+ __typename?: 'StarknetNetworkConfig';
7146
+ baseTokenAddress: Scalars['String']['output'];
7147
+ baseTokenSymbol: Scalars['String']['output'];
7148
+ color?: Maybe<Scalars['String']['output']>;
7149
+ defaultPairAddress: Scalars['String']['output'];
7150
+ defaultPairQuoteToken: QuoteToken;
7151
+ enabled: Scalars['Boolean']['output'];
7152
+ explorer: ExplorerConfig;
7153
+ id: Scalars['ID']['output'];
7154
+ mainnet: Scalars['Boolean']['output'];
7155
+ name: Scalars['String']['output'];
7156
+ networkIconUrl: Scalars['String']['output'];
7157
+ networkId: Scalars['Int']['output'];
7158
+ networkName: Scalars['String']['output'];
7159
+ networkShortName: Scalars['String']['output'];
7160
+ networkType: NetworkConfigType;
7161
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
7162
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
7163
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
7164
+ };
6998
7165
  /** Filter for NFT stats. */
6999
7166
  export type StatsFilter = {
7000
7167
  /** The percent change between the `current` and `previous`. */
@@ -7187,6 +7354,27 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
7187
7354
  export type SubscriptionOnUnconfirmedEventsCreatedByMakerArgs = {
7188
7355
  input: OnUnconfirmedEventsCreatedByMakerInput;
7189
7356
  };
7357
+ export type SuiNetworkConfig = {
7358
+ __typename?: 'SuiNetworkConfig';
7359
+ baseTokenAddress: Scalars['String']['output'];
7360
+ baseTokenSymbol: Scalars['String']['output'];
7361
+ color?: Maybe<Scalars['String']['output']>;
7362
+ defaultPairAddress: Scalars['String']['output'];
7363
+ defaultPairQuoteToken: QuoteToken;
7364
+ enabled: Scalars['Boolean']['output'];
7365
+ explorer: ExplorerConfig;
7366
+ id: Scalars['ID']['output'];
7367
+ mainnet: Scalars['Boolean']['output'];
7368
+ name: Scalars['String']['output'];
7369
+ networkIconUrl: Scalars['String']['output'];
7370
+ networkId: Scalars['Int']['output'];
7371
+ networkName: Scalars['String']['output'];
7372
+ networkShortName: Scalars['String']['output'];
7373
+ networkType: NetworkConfigType;
7374
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
7375
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
7376
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
7377
+ };
7190
7378
  /** Event data for a token swap event. */
7191
7379
  export type SwapEventData = {
7192
7380
  __typename?: 'SwapEventData';
@@ -7367,6 +7555,46 @@ export declare enum SymbolType {
7367
7555
  Pool = "POOL",
7368
7556
  Token = "TOKEN"
7369
7557
  }
7558
+ /** Bar chart data to track price changes over time. */
7559
+ export type TokenBarsResponse = {
7560
+ __typename?: 'TokenBarsResponse';
7561
+ /** The buy volume in USD */
7562
+ buyVolume: Array<Maybe<Scalars['String']['output']>>;
7563
+ /** The number of unique buyers */
7564
+ buyers: Array<Maybe<Scalars['Int']['output']>>;
7565
+ /** The number of buys */
7566
+ buys: Array<Maybe<Scalars['Int']['output']>>;
7567
+ /** The closing price. */
7568
+ c: Array<Maybe<Scalars['Float']['output']>>;
7569
+ /** The high price. */
7570
+ h: Array<Maybe<Scalars['Float']['output']>>;
7571
+ /** The low price. */
7572
+ l: Array<Maybe<Scalars['Float']['output']>>;
7573
+ /** Liquidity in USD */
7574
+ liquidity: Array<Maybe<Scalars['String']['output']>>;
7575
+ /** The opening price. */
7576
+ o: Array<Maybe<Scalars['Float']['output']>>;
7577
+ /** The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data. */
7578
+ s: Scalars['String']['output'];
7579
+ /** The sell volume in USD */
7580
+ sellVolume: Array<Maybe<Scalars['String']['output']>>;
7581
+ /** The number of unique sellers */
7582
+ sellers: Array<Maybe<Scalars['Int']['output']>>;
7583
+ /** The number of sells */
7584
+ sells: Array<Maybe<Scalars['Int']['output']>>;
7585
+ /** The timestamp for the bar. */
7586
+ t: Array<Scalars['Int']['output']>;
7587
+ /** The token that is being returned */
7588
+ token: EnhancedToken;
7589
+ /** The number of traders */
7590
+ traders: Array<Maybe<Scalars['Int']['output']>>;
7591
+ /** The number of transactions */
7592
+ transactions: Array<Maybe<Scalars['Int']['output']>>;
7593
+ /** The volume with higher precision. */
7594
+ volume?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
7595
+ /** The volume in the native token for the network */
7596
+ volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
7597
+ };
7370
7598
  /** Token burn event data. */
7371
7599
  export type TokenBurnEventData = {
7372
7600
  __typename?: 'TokenBurnEventData';
@@ -7631,17 +7859,17 @@ export type TokenFilters = {
7631
7859
  isVerified?: InputMaybe<Scalars['Boolean']['input']>;
7632
7860
  /** The unix timestamp for the token's last transaction. */
7633
7861
  lastTransaction?: InputMaybe<NumberFilter>;
7634
- /** Indicates if the launchpad is completed */
7862
+ /** Indicates if the launchpad is completed. */
7635
7863
  launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
7636
- /** The timestamp when the launchpad was completed */
7864
+ /** The timestamp when the launchpad was completed. */
7637
7865
  launchpadCompletedAt?: InputMaybe<NumberFilter>;
7638
- /** The graduation percentage */
7866
+ /** The graduation percentage. */
7639
7867
  launchpadGraduationPercent?: InputMaybe<NumberFilter>;
7640
- /** Indicates if the launchpad has migrated */
7868
+ /** Indicates if the launchpad has migrated. */
7641
7869
  launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
7642
7870
  /** The timestamp when the launchpad was migrated */
7643
7871
  launchpadMigratedAt?: InputMaybe<NumberFilter>;
7644
- /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
7872
+ /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
7645
7873
  launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
7646
7874
  /** A list of launchpad protocols. */
7647
7875
  launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -22408,8 +22636,8 @@ export type OnTokenBarsUpdatedSubscription = {
22408
22636
  __typename?: 'OnTokenBarsUpdatedResponse';
22409
22637
  eventSortKey: string;
22410
22638
  networkId: number;
22411
- pairAddress: string;
22412
- pairId: string;
22639
+ pairAddress?: string | null;
22640
+ pairId?: string | null;
22413
22641
  quoteToken?: QuoteToken | null;
22414
22642
  statsType: TokenPairStatisticsType;
22415
22643
  timestamp: number;