@codex-data/sdk 1.0.26 → 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.
@@ -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",
@@ -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;
@@ -5856,6 +5880,8 @@ export type Price = {
5856
5880
  address: Scalars['String']['output'];
5857
5881
  /** Ratio of how confident we are in the price */
5858
5882
  confidence?: Maybe<Scalars['Float']['output']>;
5883
+ /** The internal pool address for the price */
5884
+ internalPoolAddress?: Maybe<Scalars['String']['output']>;
5859
5885
  /** The network ID the token is deployed on. */
5860
5886
  networkId: Scalars['Int']['output'];
5861
5887
  /** The pool that emitted the swap generating this price */
@@ -6372,6 +6398,8 @@ export type Query = {
6372
6398
  apiTokens: Array<ApiToken>;
6373
6399
  /** Returns list of token balances that a wallet has. */
6374
6400
  balances: BalancesResponse;
6401
+ /** Returns block data for the input blockNumbers or timestamps, maximum 25 inputs. */
6402
+ blocks: Array<Block>;
6375
6403
  /** Returns a URL for a pair chart. */
6376
6404
  chartUrls?: Maybe<ChartUrlsResponse>;
6377
6405
  /** Returns detailed stats for a wallet. */
@@ -6467,6 +6495,8 @@ export type Query = {
6467
6495
  getPrimePools?: Maybe<PrimePoolConnection>;
6468
6496
  /** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
6469
6497
  getSymbol?: Maybe<SymbolResponse>;
6498
+ /** Returns bar chart data to track price changes over time. */
6499
+ getTokenBars?: Maybe<TokenBarsResponse>;
6470
6500
  /** Returns transactions for a pair. */
6471
6501
  getTokenEvents?: Maybe<EventConnection>;
6472
6502
  /** Returns a list of token events for a given maker across all pairs. */
@@ -6532,6 +6562,9 @@ export type QueryApiTokenArgs = {
6532
6562
  export type QueryBalancesArgs = {
6533
6563
  input: BalancesInput;
6534
6564
  };
6565
+ export type QueryBlocksArgs = {
6566
+ input: BlocksInput;
6567
+ };
6535
6568
  export type QueryChartUrlsArgs = {
6536
6569
  input: ChartInput;
6537
6570
  };
@@ -6787,6 +6820,17 @@ export type QueryGetSymbolArgs = {
6787
6820
  currencyCode?: InputMaybe<Scalars['String']['input']>;
6788
6821
  symbol: Scalars['String']['input'];
6789
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
+ };
6790
6834
  export type QueryGetTokenEventsArgs = {
6791
6835
  cursor?: InputMaybe<Scalars['String']['input']>;
6792
6836
  direction?: InputMaybe<RankingDirection>;
@@ -7511,6 +7555,46 @@ export declare enum SymbolType {
7511
7555
  Pool = "POOL",
7512
7556
  Token = "TOKEN"
7513
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
+ };
7514
7598
  /** Token burn event data. */
7515
7599
  export type TokenBurnEventData = {
7516
7600
  __typename?: 'TokenBurnEventData';
@@ -7775,17 +7859,17 @@ export type TokenFilters = {
7775
7859
  isVerified?: InputMaybe<Scalars['Boolean']['input']>;
7776
7860
  /** The unix timestamp for the token's last transaction. */
7777
7861
  lastTransaction?: InputMaybe<NumberFilter>;
7778
- /** Indicates if the launchpad is completed */
7862
+ /** Indicates if the launchpad is completed. */
7779
7863
  launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
7780
- /** The timestamp when the launchpad was completed */
7864
+ /** The timestamp when the launchpad was completed. */
7781
7865
  launchpadCompletedAt?: InputMaybe<NumberFilter>;
7782
- /** The graduation percentage */
7866
+ /** The graduation percentage. */
7783
7867
  launchpadGraduationPercent?: InputMaybe<NumberFilter>;
7784
- /** Indicates if the launchpad has migrated */
7868
+ /** Indicates if the launchpad has migrated. */
7785
7869
  launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
7786
7870
  /** The timestamp when the launchpad was migrated */
7787
7871
  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. */
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. */
7789
7873
  launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
7790
7874
  /** A list of launchpad protocols. */
7791
7875
  launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -22552,8 +22636,8 @@ export type OnTokenBarsUpdatedSubscription = {
22552
22636
  __typename?: 'OnTokenBarsUpdatedResponse';
22553
22637
  eventSortKey: string;
22554
22638
  networkId: number;
22555
- pairAddress: string;
22556
- pairId: string;
22639
+ pairAddress?: string | null;
22640
+ pairId?: string | null;
22557
22641
  quoteToken?: QuoteToken | null;
22558
22642
  statsType: TokenPairStatisticsType;
22559
22643
  timestamp: number;