@codex-data/sdk 1.0.26 → 1.0.30

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.
@@ -287,6 +287,17 @@ export type BarsResponse = {
287
287
  /** The volume in the native token for the network */
288
288
  volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
289
289
  };
290
+ export type Block = {
291
+ __typename?: 'Block';
292
+ blockNumber: Scalars['Int']['output'];
293
+ hash: Scalars['String']['output'];
294
+ timestamp: Scalars['Int']['output'];
295
+ };
296
+ export type BlocksInput = {
297
+ blockNumbers?: InputMaybe<Array<Scalars['Int']['input']>>;
298
+ networkId: Scalars['Int']['input'];
299
+ timestamps?: InputMaybe<Array<Scalars['Int']['input']>>;
300
+ };
290
301
  /** The mathematical formula that defines how the prices of NFTs change after each buy or sell within a pool. */
291
302
  export declare enum BondingCurveType {
292
303
  Exponential = "EXPONENTIAL",
@@ -473,7 +484,7 @@ export declare enum ContractType {
473
484
  export type CreateApiTokensInput = {
474
485
  /** Number of tokens to create, default is 1 */
475
486
  count?: InputMaybe<Scalars['Int']['input']>;
476
- /** Number of seconds until the token expires, defaults to 1 hour (3600) */
487
+ /** Number of milliseconds until the token expires, defaults to 1 hour (3600000) */
477
488
  expiresIn?: InputMaybe<Scalars['Int']['input']>;
478
489
  /** Number of requests allowed per token, represented as a string, default is 5000 */
479
490
  requestLimit?: InputMaybe<Scalars['String']['input']>;
@@ -1920,6 +1931,8 @@ export declare enum LaunchpadTokenProtocol {
1920
1931
  BoopFun = "BoopFun",
1921
1932
  /** Protocol name for Clanker. */
1922
1933
  Clanker = "Clanker",
1934
+ /** Protocol name for Clanker V4. */
1935
+ ClankerV4 = "ClankerV4",
1923
1936
  /** Protocol name for EgoTech. */
1924
1937
  EgoTech = "EgoTech",
1925
1938
  /** Protocol name for Four.meme. */
@@ -1936,6 +1949,8 @@ export declare enum LaunchpadTokenProtocol {
1936
1949
  Rainbow = "Rainbow",
1937
1950
  /** Protocol name for LaunchLab and Bonk. */
1938
1951
  RaydiumLaunchpad = "RaydiumLaunchpad",
1952
+ /** Protocol name for TokenMill V2. */
1953
+ TokenMillV2 = "TokenMillV2",
1939
1954
  /** Protocol name for Vertigo. */
1940
1955
  Vertigo = "Vertigo",
1941
1956
  /** Protocol name for Virtuals. */
@@ -4929,9 +4944,9 @@ export type OnEventsCreatedByMakerInput = {
4929
4944
  export type OnLaunchpadTokenEventBatchInput = {
4930
4945
  /** The type of event. */
4931
4946
  eventType?: InputMaybe<LaunchpadTokenEventType>;
4932
- /** 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. */
4947
+ /** 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. */
4933
4948
  launchpadName?: InputMaybe<Scalars['String']['input']>;
4934
- /** 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. */
4949
+ /** 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. */
4935
4950
  launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
4936
4951
  /** The network ID that the token is deployed on. */
4937
4952
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -4946,9 +4961,9 @@ export type OnLaunchpadTokenEventInput = {
4946
4961
  address?: InputMaybe<Scalars['String']['input']>;
4947
4962
  /** The type of event. */
4948
4963
  eventType?: InputMaybe<LaunchpadTokenEventType>;
4949
- /** 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. */
4964
+ /** 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. */
4950
4965
  launchpadName?: InputMaybe<Scalars['String']['input']>;
4951
- /** 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. */
4966
+ /** 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. */
4952
4967
  launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
4953
4968
  /** The network ID that the token is deployed on. */
4954
4969
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -4971,11 +4986,20 @@ export type OnTokenBarsUpdatedResponse = {
4971
4986
  eventSortKey: Scalars['String']['output'];
4972
4987
  /** The network ID the pair is deployed on. */
4973
4988
  networkId: Scalars['Int']['output'];
4974
- /** The contract address for the pair. */
4975
- pairAddress: Scalars['String']['output'];
4976
- /** The ID for the pair (`pairAddress`:`networkId`). */
4977
- pairId: Scalars['String']['output'];
4978
- /** The quote token within the pair. */
4989
+ /**
4990
+ * The contract address for the pair.
4991
+ * @deprecated pairs are no longer used for pricing
4992
+ */
4993
+ pairAddress?: Maybe<Scalars['String']['output']>;
4994
+ /**
4995
+ * The ID for the pair (`pairAddress`:`networkId`).
4996
+ * @deprecated pairs are no longer used for pricing
4997
+ */
4998
+ pairId?: Maybe<Scalars['String']['output']>;
4999
+ /**
5000
+ * The quote token within the pair.
5001
+ * @deprecated pairs are no longer used for pricing
5002
+ */
4979
5003
  quoteToken?: Maybe<QuoteToken>;
4980
5004
  /** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
4981
5005
  statsType: TokenPairStatisticsType;
@@ -5447,6 +5471,8 @@ export type PairMetadata = {
5447
5471
  priceChange12?: Maybe<Scalars['Float']['output']>;
5448
5472
  /** The percent price change in the past 24 hours. Decimal format. */
5449
5473
  priceChange24?: Maybe<Scalars['Float']['output']>;
5474
+ /** The non-quote token price in USD. */
5475
+ priceNonQuoteToken: Scalars['String']['output'];
5450
5476
  /** The token of interest within the pair. Can be `token0` or `token1`. */
5451
5477
  quoteToken?: Maybe<QuoteToken>;
5452
5478
  /** The type of statistics returned. Can be `FILTERED` or `UNFILTERED` */
@@ -5855,6 +5881,8 @@ export type Price = {
5855
5881
  address: Scalars['String']['output'];
5856
5882
  /** Ratio of how confident we are in the price */
5857
5883
  confidence?: Maybe<Scalars['Float']['output']>;
5884
+ /** The internal pool address for the price */
5885
+ internalPoolAddress?: Maybe<Scalars['String']['output']>;
5858
5886
  /** The network ID the token is deployed on. */
5859
5887
  networkId: Scalars['Int']['output'];
5860
5888
  /** The pool that emitted the swap generating this price */
@@ -6371,6 +6399,8 @@ export type Query = {
6371
6399
  apiTokens: Array<ApiToken>;
6372
6400
  /** Returns list of token balances that a wallet has. */
6373
6401
  balances: BalancesResponse;
6402
+ /** Returns block data for the input blockNumbers or timestamps, maximum 25 inputs. */
6403
+ blocks: Array<Block>;
6374
6404
  /** Returns a URL for a pair chart. */
6375
6405
  chartUrls?: Maybe<ChartUrlsResponse>;
6376
6406
  /** Returns detailed stats for a wallet. */
@@ -6466,6 +6496,8 @@ export type Query = {
6466
6496
  getPrimePools?: Maybe<PrimePoolConnection>;
6467
6497
  /** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
6468
6498
  getSymbol?: Maybe<SymbolResponse>;
6499
+ /** Returns bar chart data to track price changes over time. */
6500
+ getTokenBars?: Maybe<TokenBarsResponse>;
6469
6501
  /** Returns transactions for a pair. */
6470
6502
  getTokenEvents?: Maybe<EventConnection>;
6471
6503
  /** Returns a list of token events for a given maker across all pairs. */
@@ -6531,6 +6563,9 @@ export type QueryApiTokenArgs = {
6531
6563
  export type QueryBalancesArgs = {
6532
6564
  input: BalancesInput;
6533
6565
  };
6566
+ export type QueryBlocksArgs = {
6567
+ input: BlocksInput;
6568
+ };
6534
6569
  export type QueryChartUrlsArgs = {
6535
6570
  input: ChartInput;
6536
6571
  };
@@ -6786,6 +6821,17 @@ export type QueryGetSymbolArgs = {
6786
6821
  currencyCode?: InputMaybe<Scalars['String']['input']>;
6787
6822
  symbol: Scalars['String']['input'];
6788
6823
  };
6824
+ export type QueryGetTokenBarsArgs = {
6825
+ countback?: InputMaybe<Scalars['Int']['input']>;
6826
+ currencyCode?: InputMaybe<QuoteCurrency>;
6827
+ from: Scalars['Int']['input'];
6828
+ removeEmptyBars?: InputMaybe<Scalars['Boolean']['input']>;
6829
+ removeLeadingNullValues?: InputMaybe<Scalars['Boolean']['input']>;
6830
+ resolution: Scalars['String']['input'];
6831
+ statsType?: InputMaybe<TokenPairStatisticsType>;
6832
+ symbol: Scalars['String']['input'];
6833
+ to: Scalars['Int']['input'];
6834
+ };
6789
6835
  export type QueryGetTokenEventsArgs = {
6790
6836
  cursor?: InputMaybe<Scalars['String']['input']>;
6791
6837
  direction?: InputMaybe<RankingDirection>;
@@ -7173,7 +7219,7 @@ export type Subscription = {
7173
7219
  onDetailedStatsUpdated?: Maybe<DetailedStats>;
7174
7220
  /** Live-streamed event labels for a token. */
7175
7221
  onEventLabelCreated?: Maybe<EventLabel>;
7176
- /** Live-streamed transactions for a token. */
7222
+ /** Live-streamed transactions for a pair. */
7177
7223
  onEventsCreated?: Maybe<AddEventsOutput>;
7178
7224
  /** Live-streamed transactions for a maker. */
7179
7225
  onEventsCreatedByMaker?: Maybe<AddEventsByMakerOutput>;
@@ -7510,6 +7556,46 @@ export declare enum SymbolType {
7510
7556
  Pool = "POOL",
7511
7557
  Token = "TOKEN"
7512
7558
  }
7559
+ /** Bar chart data to track price changes over time. */
7560
+ export type TokenBarsResponse = {
7561
+ __typename?: 'TokenBarsResponse';
7562
+ /** The buy volume in USD */
7563
+ buyVolume: Array<Maybe<Scalars['String']['output']>>;
7564
+ /** The number of unique buyers */
7565
+ buyers: Array<Maybe<Scalars['Int']['output']>>;
7566
+ /** The number of buys */
7567
+ buys: Array<Maybe<Scalars['Int']['output']>>;
7568
+ /** The closing price. */
7569
+ c: Array<Maybe<Scalars['Float']['output']>>;
7570
+ /** The high price. */
7571
+ h: Array<Maybe<Scalars['Float']['output']>>;
7572
+ /** The low price. */
7573
+ l: Array<Maybe<Scalars['Float']['output']>>;
7574
+ /** Liquidity in USD */
7575
+ liquidity: Array<Maybe<Scalars['String']['output']>>;
7576
+ /** The opening price. */
7577
+ o: Array<Maybe<Scalars['Float']['output']>>;
7578
+ /** The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data. */
7579
+ s: Scalars['String']['output'];
7580
+ /** The sell volume in USD */
7581
+ sellVolume: Array<Maybe<Scalars['String']['output']>>;
7582
+ /** The number of unique sellers */
7583
+ sellers: Array<Maybe<Scalars['Int']['output']>>;
7584
+ /** The number of sells */
7585
+ sells: Array<Maybe<Scalars['Int']['output']>>;
7586
+ /** The timestamp for the bar. */
7587
+ t: Array<Scalars['Int']['output']>;
7588
+ /** The token that is being returned */
7589
+ token: EnhancedToken;
7590
+ /** The number of traders */
7591
+ traders: Array<Maybe<Scalars['Int']['output']>>;
7592
+ /** The number of transactions */
7593
+ transactions: Array<Maybe<Scalars['Int']['output']>>;
7594
+ /** The volume with higher precision. */
7595
+ volume?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
7596
+ /** The volume in the native token for the network */
7597
+ volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
7598
+ };
7513
7599
  /** Token burn event data. */
7514
7600
  export type TokenBurnEventData = {
7515
7601
  __typename?: 'TokenBurnEventData';
@@ -7774,17 +7860,17 @@ export type TokenFilters = {
7774
7860
  isVerified?: InputMaybe<Scalars['Boolean']['input']>;
7775
7861
  /** The unix timestamp for the token's last transaction. */
7776
7862
  lastTransaction?: InputMaybe<NumberFilter>;
7777
- /** Indicates if the launchpad is completed */
7863
+ /** Indicates if the launchpad is completed. */
7778
7864
  launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
7779
- /** The timestamp when the launchpad was completed */
7865
+ /** The timestamp when the launchpad was completed. */
7780
7866
  launchpadCompletedAt?: InputMaybe<NumberFilter>;
7781
- /** The graduation percentage */
7867
+ /** The graduation percentage. */
7782
7868
  launchpadGraduationPercent?: InputMaybe<NumberFilter>;
7783
- /** Indicates if the launchpad has migrated */
7869
+ /** Indicates if the launchpad has migrated. */
7784
7870
  launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
7785
7871
  /** The timestamp when the launchpad was migrated */
7786
7872
  launchpadMigratedAt?: InputMaybe<NumberFilter>;
7787
- /** 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. */
7873
+ /** 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. */
7788
7874
  launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
7789
7875
  /** A list of launchpad protocols. */
7790
7876
  launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -8390,8 +8476,12 @@ export type TokenWalletFilterResult = {
8390
8476
  tokenAmountSoldAll1y: Scalars['String']['output'];
8391
8477
  /** Token amount sold all in the past 30 days */
8392
8478
  tokenAmountSoldAll30d: Scalars['String']['output'];
8393
- /** The current token balance */
8479
+ /** The token balance in the wallet. This value does not update with every transfer and can be slightly stale. Use tokenBalanceLive for live data. */
8394
8480
  tokenBalance: Scalars['String']['output'];
8481
+ /** The current token balance in the wallet. */
8482
+ tokenBalanceLive?: Maybe<Scalars['String']['output']>;
8483
+ /** The current USD value of the token balance. */
8484
+ tokenBalanceLiveUsd?: Maybe<Scalars['String']['output']>;
8395
8485
  };
8396
8486
  /** A token with metadata. */
8397
8487
  export type TokenWithMetadata = {
@@ -8593,6 +8683,8 @@ export type UnconfirmedSwapEventData = {
8593
8683
  };
8594
8684
  export type UniswapV4Data = {
8595
8685
  __typename?: 'UniswapV4Data';
8686
+ /** Whether the token is the network token for the Uniswap V4 pool. */
8687
+ isToken0NetworkToken?: Maybe<Scalars['Boolean']['output']>;
8596
8688
  type: Scalars['String']['output'];
8597
8689
  /** The address of the hook contract for Uniswap V4 pools. */
8598
8690
  uniswapV4HookAddress?: Maybe<Scalars['String']['output']>;