@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.
- package/dist/resources/graphql.d.ts +98 -14
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +4 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/Mutation.d.ts +3 -3
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +3 -3
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +51 -51
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +51 -51
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +14 -14
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +65 -65
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +1 -3
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +100 -16
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +4 -0
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -2
- package/src/resources/graphql.schema.json +729 -47
- package/src/resources/graphql.ts +105 -14
- package/src/resources/networkConfigs.json +34 -1
- package/src/resources/schema.graphql +95 -12
- package/src/sdk/Mutation.ts +7 -7
- package/src/sdk/Query.ts +107 -107
- package/src/sdk/Subscribe.ts +156 -156
- package/src/sdk/generated/graphql.ts +106 -15
package/src/resources/graphql.ts
CHANGED
|
@@ -263,6 +263,19 @@ export type BarsResponse = {
|
|
|
263
263
|
volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
+
export type Block = {
|
|
267
|
+
__typename?: 'Block';
|
|
268
|
+
blockNumber: Scalars['Int']['output'];
|
|
269
|
+
hash: Scalars['String']['output'];
|
|
270
|
+
timestamp: Scalars['Int']['output'];
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export type BlocksInput = {
|
|
274
|
+
blockNumbers?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
275
|
+
networkId: Scalars['Int']['input'];
|
|
276
|
+
timestamps?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
277
|
+
};
|
|
278
|
+
|
|
266
279
|
/** The mathematical formula that defines how the prices of NFTs change after each buy or sell within a pool. */
|
|
267
280
|
export enum BondingCurveType {
|
|
268
281
|
Exponential = 'EXPONENTIAL',
|
|
@@ -2004,6 +2017,8 @@ export enum LaunchpadTokenProtocol {
|
|
|
2004
2017
|
BoopFun = 'BoopFun',
|
|
2005
2018
|
/** Protocol name for Clanker. */
|
|
2006
2019
|
Clanker = 'Clanker',
|
|
2020
|
+
/** Protocol name for Clanker V4. */
|
|
2021
|
+
ClankerV4 = 'ClankerV4',
|
|
2007
2022
|
/** Protocol name for EgoTech. */
|
|
2008
2023
|
EgoTech = 'EgoTech',
|
|
2009
2024
|
/** Protocol name for Four.meme. */
|
|
@@ -2020,6 +2035,8 @@ export enum LaunchpadTokenProtocol {
|
|
|
2020
2035
|
Rainbow = 'Rainbow',
|
|
2021
2036
|
/** Protocol name for LaunchLab and Bonk. */
|
|
2022
2037
|
RaydiumLaunchpad = 'RaydiumLaunchpad',
|
|
2038
|
+
/** Protocol name for TokenMill V2. */
|
|
2039
|
+
TokenMillV2 = 'TokenMillV2',
|
|
2023
2040
|
/** Protocol name for Vertigo. */
|
|
2024
2041
|
Vertigo = 'Vertigo',
|
|
2025
2042
|
/** Protocol name for Virtuals. */
|
|
@@ -5146,9 +5163,9 @@ export type OnEventsCreatedByMakerInput = {
|
|
|
5146
5163
|
export type OnLaunchpadTokenEventBatchInput = {
|
|
5147
5164
|
/** The type of event. */
|
|
5148
5165
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
5149
|
-
/** 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. */
|
|
5166
|
+
/** 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. */
|
|
5150
5167
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
5151
|
-
/** 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. */
|
|
5168
|
+
/** 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. */
|
|
5152
5169
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5153
5170
|
/** The network ID that the token is deployed on. */
|
|
5154
5171
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5164,9 +5181,9 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
5164
5181
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
5165
5182
|
/** The type of event. */
|
|
5166
5183
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
5167
|
-
/** 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. */
|
|
5184
|
+
/** 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. */
|
|
5168
5185
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
5169
|
-
/** 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. */
|
|
5186
|
+
/** 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. */
|
|
5170
5187
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5171
5188
|
/** The network ID that the token is deployed on. */
|
|
5172
5189
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5191,11 +5208,20 @@ export type OnTokenBarsUpdatedResponse = {
|
|
|
5191
5208
|
eventSortKey: Scalars['String']['output'];
|
|
5192
5209
|
/** The network ID the pair is deployed on. */
|
|
5193
5210
|
networkId: Scalars['Int']['output'];
|
|
5194
|
-
/**
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5211
|
+
/**
|
|
5212
|
+
* The contract address for the pair.
|
|
5213
|
+
* @deprecated pairs are no longer used for pricing
|
|
5214
|
+
*/
|
|
5215
|
+
pairAddress?: Maybe<Scalars['String']['output']>;
|
|
5216
|
+
/**
|
|
5217
|
+
* The ID for the pair (`pairAddress`:`networkId`).
|
|
5218
|
+
* @deprecated pairs are no longer used for pricing
|
|
5219
|
+
*/
|
|
5220
|
+
pairId?: Maybe<Scalars['String']['output']>;
|
|
5221
|
+
/**
|
|
5222
|
+
* The quote token within the pair.
|
|
5223
|
+
* @deprecated pairs are no longer used for pricing
|
|
5224
|
+
*/
|
|
5199
5225
|
quoteToken?: Maybe<QuoteToken>;
|
|
5200
5226
|
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
5201
5227
|
statsType: TokenPairStatisticsType;
|
|
@@ -6114,6 +6140,8 @@ export type Price = {
|
|
|
6114
6140
|
address: Scalars['String']['output'];
|
|
6115
6141
|
/** Ratio of how confident we are in the price */
|
|
6116
6142
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
6143
|
+
/** The internal pool address for the price */
|
|
6144
|
+
internalPoolAddress?: Maybe<Scalars['String']['output']>;
|
|
6117
6145
|
/** The network ID the token is deployed on. */
|
|
6118
6146
|
networkId: Scalars['Int']['output'];
|
|
6119
6147
|
/** The pool that emitted the swap generating this price */
|
|
@@ -6666,6 +6694,8 @@ export type Query = {
|
|
|
6666
6694
|
apiTokens: Array<ApiToken>;
|
|
6667
6695
|
/** Returns list of token balances that a wallet has. */
|
|
6668
6696
|
balances: BalancesResponse;
|
|
6697
|
+
/** Returns block data for the input blockNumbers or timestamps, maximum 25 inputs. */
|
|
6698
|
+
blocks: Array<Block>;
|
|
6669
6699
|
/** Returns a URL for a pair chart. */
|
|
6670
6700
|
chartUrls?: Maybe<ChartUrlsResponse>;
|
|
6671
6701
|
/** Returns detailed stats for a wallet. */
|
|
@@ -6761,6 +6791,8 @@ export type Query = {
|
|
|
6761
6791
|
getPrimePools?: Maybe<PrimePoolConnection>;
|
|
6762
6792
|
/** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
|
|
6763
6793
|
getSymbol?: Maybe<SymbolResponse>;
|
|
6794
|
+
/** Returns bar chart data to track price changes over time. */
|
|
6795
|
+
getTokenBars?: Maybe<TokenBarsResponse>;
|
|
6764
6796
|
/** Returns transactions for a pair. */
|
|
6765
6797
|
getTokenEvents?: Maybe<EventConnection>;
|
|
6766
6798
|
/** Returns a list of token events for a given maker across all pairs. */
|
|
@@ -6832,6 +6864,11 @@ export type QueryBalancesArgs = {
|
|
|
6832
6864
|
};
|
|
6833
6865
|
|
|
6834
6866
|
|
|
6867
|
+
export type QueryBlocksArgs = {
|
|
6868
|
+
input: BlocksInput;
|
|
6869
|
+
};
|
|
6870
|
+
|
|
6871
|
+
|
|
6835
6872
|
export type QueryChartUrlsArgs = {
|
|
6836
6873
|
input: ChartInput;
|
|
6837
6874
|
};
|
|
@@ -7169,6 +7206,19 @@ export type QueryGetSymbolArgs = {
|
|
|
7169
7206
|
};
|
|
7170
7207
|
|
|
7171
7208
|
|
|
7209
|
+
export type QueryGetTokenBarsArgs = {
|
|
7210
|
+
countback?: InputMaybe<Scalars['Int']['input']>;
|
|
7211
|
+
currencyCode?: InputMaybe<QuoteCurrency>;
|
|
7212
|
+
from: Scalars['Int']['input'];
|
|
7213
|
+
removeEmptyBars?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7214
|
+
removeLeadingNullValues?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7215
|
+
resolution: Scalars['String']['input'];
|
|
7216
|
+
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
7217
|
+
symbol: Scalars['String']['input'];
|
|
7218
|
+
to: Scalars['Int']['input'];
|
|
7219
|
+
};
|
|
7220
|
+
|
|
7221
|
+
|
|
7172
7222
|
export type QueryGetTokenEventsArgs = {
|
|
7173
7223
|
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
7174
7224
|
direction?: InputMaybe<RankingDirection>;
|
|
@@ -8023,6 +8073,47 @@ export enum SymbolType {
|
|
|
8023
8073
|
Token = 'TOKEN'
|
|
8024
8074
|
}
|
|
8025
8075
|
|
|
8076
|
+
/** Bar chart data to track price changes over time. */
|
|
8077
|
+
export type TokenBarsResponse = {
|
|
8078
|
+
__typename?: 'TokenBarsResponse';
|
|
8079
|
+
/** The buy volume in USD */
|
|
8080
|
+
buyVolume: Array<Maybe<Scalars['String']['output']>>;
|
|
8081
|
+
/** The number of unique buyers */
|
|
8082
|
+
buyers: Array<Maybe<Scalars['Int']['output']>>;
|
|
8083
|
+
/** The number of buys */
|
|
8084
|
+
buys: Array<Maybe<Scalars['Int']['output']>>;
|
|
8085
|
+
/** The closing price. */
|
|
8086
|
+
c: Array<Maybe<Scalars['Float']['output']>>;
|
|
8087
|
+
/** The high price. */
|
|
8088
|
+
h: Array<Maybe<Scalars['Float']['output']>>;
|
|
8089
|
+
/** The low price. */
|
|
8090
|
+
l: Array<Maybe<Scalars['Float']['output']>>;
|
|
8091
|
+
/** Liquidity in USD */
|
|
8092
|
+
liquidity: Array<Maybe<Scalars['String']['output']>>;
|
|
8093
|
+
/** The opening price. */
|
|
8094
|
+
o: Array<Maybe<Scalars['Float']['output']>>;
|
|
8095
|
+
/** The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data. */
|
|
8096
|
+
s: Scalars['String']['output'];
|
|
8097
|
+
/** The sell volume in USD */
|
|
8098
|
+
sellVolume: Array<Maybe<Scalars['String']['output']>>;
|
|
8099
|
+
/** The number of unique sellers */
|
|
8100
|
+
sellers: Array<Maybe<Scalars['Int']['output']>>;
|
|
8101
|
+
/** The number of sells */
|
|
8102
|
+
sells: Array<Maybe<Scalars['Int']['output']>>;
|
|
8103
|
+
/** The timestamp for the bar. */
|
|
8104
|
+
t: Array<Scalars['Int']['output']>;
|
|
8105
|
+
/** The token that is being returned */
|
|
8106
|
+
token: EnhancedToken;
|
|
8107
|
+
/** The number of traders */
|
|
8108
|
+
traders: Array<Maybe<Scalars['Int']['output']>>;
|
|
8109
|
+
/** The number of transactions */
|
|
8110
|
+
transactions: Array<Maybe<Scalars['Int']['output']>>;
|
|
8111
|
+
/** The volume with higher precision. */
|
|
8112
|
+
volume?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
8113
|
+
/** The volume in the native token for the network */
|
|
8114
|
+
volumeNativeToken?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
8115
|
+
};
|
|
8116
|
+
|
|
8026
8117
|
/** Token burn event data. */
|
|
8027
8118
|
export type TokenBurnEventData = {
|
|
8028
8119
|
__typename?: 'TokenBurnEventData';
|
|
@@ -8290,17 +8381,17 @@ export type TokenFilters = {
|
|
|
8290
8381
|
isVerified?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8291
8382
|
/** The unix timestamp for the token's last transaction. */
|
|
8292
8383
|
lastTransaction?: InputMaybe<NumberFilter>;
|
|
8293
|
-
/** Indicates if the launchpad is completed */
|
|
8384
|
+
/** Indicates if the launchpad is completed. */
|
|
8294
8385
|
launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8295
|
-
/** The timestamp when the launchpad was completed */
|
|
8386
|
+
/** The timestamp when the launchpad was completed. */
|
|
8296
8387
|
launchpadCompletedAt?: InputMaybe<NumberFilter>;
|
|
8297
|
-
/** The graduation percentage */
|
|
8388
|
+
/** The graduation percentage. */
|
|
8298
8389
|
launchpadGraduationPercent?: InputMaybe<NumberFilter>;
|
|
8299
|
-
/** Indicates if the launchpad has migrated */
|
|
8390
|
+
/** Indicates if the launchpad has migrated. */
|
|
8300
8391
|
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8301
8392
|
/** The timestamp when the launchpad was migrated */
|
|
8302
8393
|
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
8303
|
-
/** 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. */
|
|
8394
|
+
/** 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. */
|
|
8304
8395
|
launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
8305
8396
|
/** A list of launchpad protocols. */
|
|
8306
8397
|
launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
"networkType": "EVM",
|
|
584
584
|
"networkId": 7700,
|
|
585
585
|
"name": "canto",
|
|
586
|
-
"enabled":
|
|
586
|
+
"enabled": false,
|
|
587
587
|
"newTokensEnabled": null,
|
|
588
588
|
"mainnet": true,
|
|
589
589
|
"wrappedBaseTokenSymbol": "WCANTO",
|
|
@@ -2819,6 +2819,39 @@
|
|
|
2819
2819
|
"baseTokenName": "Wrapped SOL",
|
|
2820
2820
|
"baseTokenDecimals": 9
|
|
2821
2821
|
},
|
|
2822
|
+
{
|
|
2823
|
+
"__typename": "EvmNetworkConfig",
|
|
2824
|
+
"id": "5031",
|
|
2825
|
+
"networkType": "EVM",
|
|
2826
|
+
"networkId": 5031,
|
|
2827
|
+
"name": "Somnia",
|
|
2828
|
+
"enabled": false,
|
|
2829
|
+
"newTokensEnabled": true,
|
|
2830
|
+
"mainnet": true,
|
|
2831
|
+
"wrappedBaseTokenSymbol": "WSOMI",
|
|
2832
|
+
"baseTokenSymbol": "SOMI",
|
|
2833
|
+
"baseTokenAddress": "0x046ede9564a72571df6f5e44d0405360c0f4dcab",
|
|
2834
|
+
"defaultPairAddress": "0xe5467be8b8db6b074904134e8c1a581f5565e2c3",
|
|
2835
|
+
"defaultPairQuoteToken": "token0",
|
|
2836
|
+
"stableCoinAddresses": [
|
|
2837
|
+
"0x28bec7e30e6faee657a03e19bf1128aad7632a00",
|
|
2838
|
+
"0x67b302e35aef5eee8c32d934f5856869ef428330",
|
|
2839
|
+
"0x3243f9acb8c3bc6945131db91c5f678faf9093f1",
|
|
2840
|
+
"0x43cce55ffb83c2bfd2454964a6dfae20bd01adb9",
|
|
2841
|
+
"0x0827c58e2a44e94ab97a6a9fab1b8364328c1a4b"
|
|
2842
|
+
],
|
|
2843
|
+
"networkIconUrl": "https://icons.defined.fi/networks/somnia.png",
|
|
2844
|
+
"color": "#9c3381",
|
|
2845
|
+
"networkShortName": "somnia",
|
|
2846
|
+
"networkName": "Somnia",
|
|
2847
|
+
"explorer": {
|
|
2848
|
+
"name": "Somnia Explorer",
|
|
2849
|
+
"url": "https://explorer.somnia.network/",
|
|
2850
|
+
"checksummed": false,
|
|
2851
|
+
"icon": "https://icons.defined.fi/networks/somnia.png"
|
|
2852
|
+
},
|
|
2853
|
+
"baseTokenName": "SOMI"
|
|
2854
|
+
},
|
|
2822
2855
|
{
|
|
2823
2856
|
"__typename": "EvmNetworkConfig",
|
|
2824
2857
|
"id": "50312",
|
|
@@ -5,6 +5,10 @@ type Query {
|
|
|
5
5
|
apiToken(
|
|
6
6
|
token: String!
|
|
7
7
|
): ApiToken!
|
|
8
|
+
"""Returns block data for the input blockNumbers or timestamps, maximum 25 inputs."""
|
|
9
|
+
blocks(
|
|
10
|
+
input: BlocksInput!
|
|
11
|
+
): [Block!]!
|
|
8
12
|
"""Returns a list of all networks supported on Codex."""
|
|
9
13
|
getNetworks: [Network!]!
|
|
10
14
|
"""Returns the status of a list of networks supported on Codex."""
|
|
@@ -455,6 +459,27 @@ type Query {
|
|
|
455
459
|
inputs: [GetPriceInput]
|
|
456
460
|
): [Price]
|
|
457
461
|
"""Returns bar chart data to track price changes over time."""
|
|
462
|
+
getTokenBars(
|
|
463
|
+
"""The ID of the pair or token (`pairAddress:networkId` or `tokenAddress:networkId`). If a token contract address is provided, the token's top pair is used. For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1` returns WETH's top pair on Ethereum."""
|
|
464
|
+
symbol: String!
|
|
465
|
+
"""The unix timestamp for the start of the requested range."""
|
|
466
|
+
from: Int!
|
|
467
|
+
"""The unix timestamp for the end of the requested range."""
|
|
468
|
+
to: Int!
|
|
469
|
+
"""The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Resolutions lower than 1 minute are only updated for the last 24 hours due to the volume of data produced."""
|
|
470
|
+
resolution: String!
|
|
471
|
+
"""The currency to use for the response. Can be `USD` or `TOKEN`. Default is `USD`. Use `currencyCode: TOKEN` for native token pricing."""
|
|
472
|
+
currencyCode: QuoteCurrency
|
|
473
|
+
"""Whether to remove leading null values from the response. Default is `false`. To fetch a token's entire history, set resolution to `1D`, `from` value to `0` and `removeLeadingNullValues` to `true`."""
|
|
474
|
+
removeLeadingNullValues: Boolean
|
|
475
|
+
"""Whether to remove empty bars from the response. This is useful for eliminating gaps in low-activity tokens. Default is `false`."""
|
|
476
|
+
removeEmptyBars: Boolean
|
|
477
|
+
"""The token of interest within the token's top pair. Can be `token0` or `token1`. If omitted, the base token is inferred automatically. You can invert the pair by quoting the other token."""
|
|
478
|
+
statsType: TokenPairStatisticsType
|
|
479
|
+
"""Guarantees number of bars returned is at most this number. Use `countback: 1500` with `from: 0` for maximum results."""
|
|
480
|
+
countback: Int
|
|
481
|
+
): TokenBarsResponse
|
|
482
|
+
"""Returns bar chart data to track price changes over time."""
|
|
458
483
|
getBars(
|
|
459
484
|
"""The ID of the pair or token (`pairAddress:networkId` or `tokenAddress:networkId`). If a token contract address is provided, the token's top pair is used. For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1` returns WETH's top pair on Ethereum."""
|
|
460
485
|
symbol: String!
|
|
@@ -1062,6 +1087,18 @@ type BarsResponse {
|
|
|
1062
1087
|
pair: Pair!
|
|
1063
1088
|
}
|
|
1064
1089
|
|
|
1090
|
+
type Block {
|
|
1091
|
+
blockNumber: Int!
|
|
1092
|
+
timestamp: Int!
|
|
1093
|
+
hash: String!
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
input BlocksInput {
|
|
1097
|
+
networkId: Int!
|
|
1098
|
+
blockNumbers: [Int!]
|
|
1099
|
+
timestamps: [Int!]
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1065
1102
|
"""The mathematical formula that defines how the prices of NFTs change after each buy or sell within a pool."""
|
|
1066
1103
|
enum BondingCurveType {
|
|
1067
1104
|
EXPONENTIAL
|
|
@@ -2735,6 +2772,10 @@ enum LaunchpadTokenProtocol {
|
|
|
2735
2772
|
Clanker
|
|
2736
2773
|
"""Protocol name for Heaven."""
|
|
2737
2774
|
HeavenAMM
|
|
2775
|
+
"""Protocol name for TokenMill V2."""
|
|
2776
|
+
TokenMillV2
|
|
2777
|
+
"""Protocol name for Clanker V4."""
|
|
2778
|
+
ClankerV4
|
|
2738
2779
|
}
|
|
2739
2780
|
|
|
2740
2781
|
scalar link__Import
|
|
@@ -5684,9 +5725,9 @@ input OnLaunchpadTokenEventBatchInput {
|
|
|
5684
5725
|
protocols: [LaunchpadTokenProtocol!]
|
|
5685
5726
|
"""The network ID that the token is deployed on."""
|
|
5686
5727
|
networkId: Int
|
|
5687
|
-
"""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."""
|
|
5728
|
+
"""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."""
|
|
5688
5729
|
launchpadName: String
|
|
5689
|
-
"""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."""
|
|
5730
|
+
"""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."""
|
|
5690
5731
|
launchpadNames: [String!]
|
|
5691
5732
|
"""The type of event."""
|
|
5692
5733
|
eventType: LaunchpadTokenEventType
|
|
@@ -5698,9 +5739,9 @@ input OnLaunchpadTokenEventInput {
|
|
|
5698
5739
|
protocol: LaunchpadTokenProtocol
|
|
5699
5740
|
"""A list of launchpad protocols."""
|
|
5700
5741
|
protocols: [LaunchpadTokenProtocol!]
|
|
5701
|
-
"""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."""
|
|
5742
|
+
"""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."""
|
|
5702
5743
|
launchpadName: String
|
|
5703
|
-
"""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."""
|
|
5744
|
+
"""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."""
|
|
5704
5745
|
launchpadNames: [String!]
|
|
5705
5746
|
"""The type of event."""
|
|
5706
5747
|
eventType: LaunchpadTokenEventType
|
|
@@ -5719,11 +5760,11 @@ input OnPricesUpdatedInput {
|
|
|
5719
5760
|
"""Response returned by `onBarsUpdated`."""
|
|
5720
5761
|
type OnTokenBarsUpdatedResponse {
|
|
5721
5762
|
"""The contract address for the pair."""
|
|
5722
|
-
pairAddress: String
|
|
5763
|
+
pairAddress: String @deprecated(reason: "pairs are no longer used for pricing")
|
|
5723
5764
|
"""The network ID the pair is deployed on."""
|
|
5724
5765
|
networkId: Int!
|
|
5725
5766
|
"""The ID for the pair (`pairAddress`:`networkId`)."""
|
|
5726
|
-
pairId: String
|
|
5767
|
+
pairId: String @deprecated(reason: "pairs are no longer used for pricing")
|
|
5727
5768
|
"""The unix timestamp for the new bar."""
|
|
5728
5769
|
timestamp: Int!
|
|
5729
5770
|
"""The type of statistics used. Can be `Filtered` or `Unfiltered`."""
|
|
@@ -5733,7 +5774,7 @@ type OnTokenBarsUpdatedResponse {
|
|
|
5733
5774
|
"""Price data broken down by resolution."""
|
|
5734
5775
|
aggregates: ResolutionBarData!
|
|
5735
5776
|
"""The quote token within the pair."""
|
|
5736
|
-
quoteToken: QuoteToken
|
|
5777
|
+
quoteToken: QuoteToken @deprecated(reason: "pairs are no longer used for pricing")
|
|
5737
5778
|
"""The address of the token being quoted"""
|
|
5738
5779
|
tokenAddress: String!
|
|
5739
5780
|
"""The address of the token being quoted"""
|
|
@@ -6621,6 +6662,8 @@ type Price {
|
|
|
6621
6662
|
poolAddress: String!
|
|
6622
6663
|
"""Ratio of how confident we are in the price"""
|
|
6623
6664
|
confidence: Float
|
|
6665
|
+
"""The internal pool address for the price"""
|
|
6666
|
+
internalPoolAddress: String
|
|
6624
6667
|
}
|
|
6625
6668
|
|
|
6626
6669
|
"""Webhook conditions for a price event."""
|
|
@@ -7649,6 +7692,46 @@ enum SymbolType {
|
|
|
7649
7692
|
POOL
|
|
7650
7693
|
}
|
|
7651
7694
|
|
|
7695
|
+
"""Bar chart data to track price changes over time."""
|
|
7696
|
+
type TokenBarsResponse {
|
|
7697
|
+
"""The opening price."""
|
|
7698
|
+
o: [Float]!
|
|
7699
|
+
"""The high price."""
|
|
7700
|
+
h: [Float]!
|
|
7701
|
+
"""The low price."""
|
|
7702
|
+
l: [Float]!
|
|
7703
|
+
"""The closing price."""
|
|
7704
|
+
c: [Float]!
|
|
7705
|
+
"""The timestamp for the bar."""
|
|
7706
|
+
t: [Int!]!
|
|
7707
|
+
"""The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data."""
|
|
7708
|
+
s: String!
|
|
7709
|
+
"""The volume with higher precision."""
|
|
7710
|
+
volume: [String]
|
|
7711
|
+
"""The volume in the native token for the network"""
|
|
7712
|
+
volumeNativeToken: [String]
|
|
7713
|
+
"""The number of unique buyers"""
|
|
7714
|
+
buyers: [Int]!
|
|
7715
|
+
"""The number of buys"""
|
|
7716
|
+
buys: [Int]!
|
|
7717
|
+
"""The buy volume in USD"""
|
|
7718
|
+
buyVolume: [String]!
|
|
7719
|
+
"""The number of unique sellers"""
|
|
7720
|
+
sellers: [Int]!
|
|
7721
|
+
"""The number of sells"""
|
|
7722
|
+
sells: [Int]!
|
|
7723
|
+
"""The sell volume in USD"""
|
|
7724
|
+
sellVolume: [String]!
|
|
7725
|
+
"""Liquidity in USD"""
|
|
7726
|
+
liquidity: [String]!
|
|
7727
|
+
"""The number of traders"""
|
|
7728
|
+
traders: [Int]!
|
|
7729
|
+
"""The number of transactions"""
|
|
7730
|
+
transactions: [Int]!
|
|
7731
|
+
"""The token that is being returned"""
|
|
7732
|
+
token: EnhancedToken!
|
|
7733
|
+
}
|
|
7734
|
+
|
|
7652
7735
|
"""Token burn event data."""
|
|
7653
7736
|
type TokenBurnEventData {
|
|
7654
7737
|
"""The amount of tokens burned."""
|
|
@@ -8011,15 +8094,15 @@ input TokenFilters {
|
|
|
8011
8094
|
creatorAddress: String
|
|
8012
8095
|
"""A list of launchpad protocols."""
|
|
8013
8096
|
launchpadProtocol: [String!]
|
|
8014
|
-
"""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."""
|
|
8097
|
+
"""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."""
|
|
8015
8098
|
launchpadName: [String!]
|
|
8016
|
-
"""Indicates if the launchpad is completed"""
|
|
8099
|
+
"""Indicates if the launchpad is completed."""
|
|
8017
8100
|
launchpadCompleted: Boolean
|
|
8018
|
-
"""Indicates if the launchpad has migrated"""
|
|
8101
|
+
"""Indicates if the launchpad has migrated."""
|
|
8019
8102
|
launchpadMigrated: Boolean
|
|
8020
|
-
"""The graduation percentage"""
|
|
8103
|
+
"""The graduation percentage."""
|
|
8021
8104
|
launchpadGraduationPercent: NumberFilter
|
|
8022
|
-
"""The timestamp when the launchpad was completed"""
|
|
8105
|
+
"""The timestamp when the launchpad was completed."""
|
|
8023
8106
|
launchpadCompletedAt: NumberFilter
|
|
8024
8107
|
"""The timestamp when the launchpad was migrated"""
|
|
8025
8108
|
launchpadMigratedAt: NumberFilter
|
package/src/sdk/Mutation.ts
CHANGED
|
@@ -15,15 +15,15 @@ import { Codex } from "./index";
|
|
|
15
15
|
|
|
16
16
|
export class Mutation {
|
|
17
17
|
constructor(private sdk: Codex) {}
|
|
18
|
-
backfillWalletAggregates = async (
|
|
19
|
-
vars: BackfillWalletAggregatesMutationVariables,
|
|
20
|
-
) => this.sdk.mutation(BackfillWalletAggregatesDocument, vars);
|
|
21
18
|
createWebhooks = async (vars: CreateWebhooksMutationVariables) =>
|
|
22
19
|
this.sdk.mutation(CreateWebhooksDocument, vars);
|
|
23
|
-
deleteApiToken = async (vars: DeleteApiTokenMutationVariables) =>
|
|
24
|
-
this.sdk.mutation(DeleteApiTokenDocument, vars);
|
|
25
|
-
createApiTokens = async (vars: CreateApiTokensMutationVariables) =>
|
|
26
|
-
this.sdk.mutation(CreateApiTokensDocument, vars);
|
|
27
20
|
deleteWebhooks = async (vars: DeleteWebhooksMutationVariables) =>
|
|
28
21
|
this.sdk.mutation(DeleteWebhooksDocument, vars);
|
|
22
|
+
createApiTokens = async (vars: CreateApiTokensMutationVariables) =>
|
|
23
|
+
this.sdk.mutation(CreateApiTokensDocument, vars);
|
|
24
|
+
deleteApiToken = async (vars: DeleteApiTokenMutationVariables) =>
|
|
25
|
+
this.sdk.mutation(DeleteApiTokenDocument, vars);
|
|
26
|
+
backfillWalletAggregates = async (
|
|
27
|
+
vars: BackfillWalletAggregatesMutationVariables,
|
|
28
|
+
) => this.sdk.mutation(BackfillWalletAggregatesDocument, vars);
|
|
29
29
|
}
|