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