@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.
@@ -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",
@@ -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;
@@ -5855,6 +5879,8 @@ export type Price = {
5855
5879
  address: Scalars['String']['output'];
5856
5880
  /** Ratio of how confident we are in the price */
5857
5881
  confidence?: Maybe<Scalars['Float']['output']>;
5882
+ /** The internal pool address for the price */
5883
+ internalPoolAddress?: Maybe<Scalars['String']['output']>;
5858
5884
  /** The network ID the token is deployed on. */
5859
5885
  networkId: Scalars['Int']['output'];
5860
5886
  /** The pool that emitted the swap generating this price */
@@ -6371,6 +6397,8 @@ export type Query = {
6371
6397
  apiTokens: Array<ApiToken>;
6372
6398
  /** Returns list of token balances that a wallet has. */
6373
6399
  balances: BalancesResponse;
6400
+ /** Returns block data for the input blockNumbers or timestamps, maximum 25 inputs. */
6401
+ blocks: Array<Block>;
6374
6402
  /** Returns a URL for a pair chart. */
6375
6403
  chartUrls?: Maybe<ChartUrlsResponse>;
6376
6404
  /** Returns detailed stats for a wallet. */
@@ -6466,6 +6494,8 @@ export type Query = {
6466
6494
  getPrimePools?: Maybe<PrimePoolConnection>;
6467
6495
  /** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
6468
6496
  getSymbol?: Maybe<SymbolResponse>;
6497
+ /** Returns bar chart data to track price changes over time. */
6498
+ getTokenBars?: Maybe<TokenBarsResponse>;
6469
6499
  /** Returns transactions for a pair. */
6470
6500
  getTokenEvents?: Maybe<EventConnection>;
6471
6501
  /** Returns a list of token events for a given maker across all pairs. */
@@ -6531,6 +6561,9 @@ export type QueryApiTokenArgs = {
6531
6561
  export type QueryBalancesArgs = {
6532
6562
  input: BalancesInput;
6533
6563
  };
6564
+ export type QueryBlocksArgs = {
6565
+ input: BlocksInput;
6566
+ };
6534
6567
  export type QueryChartUrlsArgs = {
6535
6568
  input: ChartInput;
6536
6569
  };
@@ -6786,6 +6819,17 @@ export type QueryGetSymbolArgs = {
6786
6819
  currencyCode?: InputMaybe<Scalars['String']['input']>;
6787
6820
  symbol: Scalars['String']['input'];
6788
6821
  };
6822
+ export type QueryGetTokenBarsArgs = {
6823
+ countback?: InputMaybe<Scalars['Int']['input']>;
6824
+ currencyCode?: InputMaybe<QuoteCurrency>;
6825
+ from: Scalars['Int']['input'];
6826
+ removeEmptyBars?: InputMaybe<Scalars['Boolean']['input']>;
6827
+ removeLeadingNullValues?: InputMaybe<Scalars['Boolean']['input']>;
6828
+ resolution: Scalars['String']['input'];
6829
+ statsType?: InputMaybe<TokenPairStatisticsType>;
6830
+ symbol: Scalars['String']['input'];
6831
+ to: Scalars['Int']['input'];
6832
+ };
6789
6833
  export type QueryGetTokenEventsArgs = {
6790
6834
  cursor?: InputMaybe<Scalars['String']['input']>;
6791
6835
  direction?: InputMaybe<RankingDirection>;
@@ -7510,6 +7554,46 @@ export declare enum SymbolType {
7510
7554
  Pool = "POOL",
7511
7555
  Token = "TOKEN"
7512
7556
  }
7557
+ /** Bar chart data to track price changes over time. */
7558
+ export type TokenBarsResponse = {
7559
+ __typename?: 'TokenBarsResponse';
7560
+ /** The buy volume in USD */
7561
+ buyVolume: Array<Maybe<Scalars['String']['output']>>;
7562
+ /** The number of unique buyers */
7563
+ buyers: Array<Maybe<Scalars['Int']['output']>>;
7564
+ /** The number of buys */
7565
+ buys: Array<Maybe<Scalars['Int']['output']>>;
7566
+ /** The closing price. */
7567
+ c: Array<Maybe<Scalars['Float']['output']>>;
7568
+ /** The high price. */
7569
+ h: Array<Maybe<Scalars['Float']['output']>>;
7570
+ /** The low price. */
7571
+ l: Array<Maybe<Scalars['Float']['output']>>;
7572
+ /** Liquidity in USD */
7573
+ liquidity: Array<Maybe<Scalars['String']['output']>>;
7574
+ /** The opening price. */
7575
+ o: Array<Maybe<Scalars['Float']['output']>>;
7576
+ /** The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data. */
7577
+ s: Scalars['String']['output'];
7578
+ /** The sell volume in USD */
7579
+ sellVolume: Array<Maybe<Scalars['String']['output']>>;
7580
+ /** The number of unique sellers */
7581
+ sellers: Array<Maybe<Scalars['Int']['output']>>;
7582
+ /** The number of sells */
7583
+ sells: Array<Maybe<Scalars['Int']['output']>>;
7584
+ /** The timestamp for the bar. */
7585
+ t: Array<Scalars['Int']['output']>;
7586
+ /** The token that is being returned */
7587
+ token: EnhancedToken;
7588
+ /** The number of traders */
7589
+ traders: Array<Maybe<Scalars['Int']['output']>>;
7590
+ /** The number of transactions */
7591
+ transactions: Array<Maybe<Scalars['Int']['output']>>;
7592
+ /** The volume with higher precision. */
7593
+ volume?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
7594
+ /** The volume in the native token for the network */
7595
+ volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
7596
+ };
7513
7597
  /** Token burn event data. */
7514
7598
  export type TokenBurnEventData = {
7515
7599
  __typename?: 'TokenBurnEventData';
@@ -7774,17 +7858,17 @@ export type TokenFilters = {
7774
7858
  isVerified?: InputMaybe<Scalars['Boolean']['input']>;
7775
7859
  /** The unix timestamp for the token's last transaction. */
7776
7860
  lastTransaction?: InputMaybe<NumberFilter>;
7777
- /** Indicates if the launchpad is completed */
7861
+ /** Indicates if the launchpad is completed. */
7778
7862
  launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
7779
- /** The timestamp when the launchpad was completed */
7863
+ /** The timestamp when the launchpad was completed. */
7780
7864
  launchpadCompletedAt?: InputMaybe<NumberFilter>;
7781
- /** The graduation percentage */
7865
+ /** The graduation percentage. */
7782
7866
  launchpadGraduationPercent?: InputMaybe<NumberFilter>;
7783
- /** Indicates if the launchpad has migrated */
7867
+ /** Indicates if the launchpad has migrated. */
7784
7868
  launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
7785
7869
  /** The timestamp when the launchpad was migrated */
7786
7870
  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. */
7871
+ /** 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
7872
  launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
7789
7873
  /** A list of launchpad protocols. */
7790
7874
  launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;