@codex-data/sdk 1.0.24 → 1.0.26
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 +151 -5
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +12 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/scripts/generateNetworkConfigs.d.ts +2 -0
- package/dist/scripts/generateNetworkConfigs.d.ts.map +1 -0
- package/dist/scripts/generateNetworkConfigs.js +235 -0
- package/dist/scripts/generateNetworkConfigs.js.map +1 -0
- package/dist/sdk/generated/gql.d.ts +3 -1
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +151 -5
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +14 -4
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +4 -1
- package/src/resources/graphql.schema.json +1998 -5
- package/src/resources/graphql.ts +162 -5
- package/src/resources/networkConfigs.json +3662 -0
- package/src/resources/schema.graphql +153 -5
- package/src/scripts/generateNetworkConfigs.ts +243 -0
- package/src/sdk/generated/graphql.ts +162 -5
|
@@ -128,6 +128,28 @@ export type ApiToken = {
|
|
|
128
128
|
token: Scalars['String']['output'];
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
+
export type AptosNetworkConfig = {
|
|
132
|
+
__typename?: 'AptosNetworkConfig';
|
|
133
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
134
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
135
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
136
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
137
|
+
defaultPairQuoteToken: QuoteToken;
|
|
138
|
+
enabled: Scalars['Boolean']['output'];
|
|
139
|
+
explorer: ExplorerConfig;
|
|
140
|
+
id: Scalars['ID']['output'];
|
|
141
|
+
mainnet: Scalars['Boolean']['output'];
|
|
142
|
+
name: Scalars['String']['output'];
|
|
143
|
+
networkIconUrl: Scalars['String']['output'];
|
|
144
|
+
networkId: Scalars['Int']['output'];
|
|
145
|
+
networkName: Scalars['String']['output'];
|
|
146
|
+
networkShortName: Scalars['String']['output'];
|
|
147
|
+
networkType: NetworkConfigType;
|
|
148
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
149
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
150
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
151
|
+
};
|
|
152
|
+
|
|
131
153
|
export type ArenaTradeData = {
|
|
132
154
|
__typename?: 'ArenaTradeData';
|
|
133
155
|
/** Protocol specific token ID */
|
|
@@ -1222,6 +1244,28 @@ export type EventsQueryInput = {
|
|
|
1222
1244
|
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1223
1245
|
};
|
|
1224
1246
|
|
|
1247
|
+
export type EvmNetworkConfig = {
|
|
1248
|
+
__typename?: 'EvmNetworkConfig';
|
|
1249
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
1250
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
1251
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
1252
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
1253
|
+
defaultPairQuoteToken: QuoteToken;
|
|
1254
|
+
enabled: Scalars['Boolean']['output'];
|
|
1255
|
+
explorer: ExplorerConfig;
|
|
1256
|
+
id: Scalars['ID']['output'];
|
|
1257
|
+
mainnet: Scalars['Boolean']['output'];
|
|
1258
|
+
name: Scalars['String']['output'];
|
|
1259
|
+
networkIconUrl: Scalars['String']['output'];
|
|
1260
|
+
networkId: Scalars['Int']['output'];
|
|
1261
|
+
networkName: Scalars['String']['output'];
|
|
1262
|
+
networkShortName: Scalars['String']['output'];
|
|
1263
|
+
networkType: NetworkConfigType;
|
|
1264
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
1265
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
1266
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1225
1269
|
/** Metadata for a decentralized exchange. */
|
|
1226
1270
|
export type Exchange = {
|
|
1227
1271
|
__typename?: 'Exchange';
|
|
@@ -1353,6 +1397,14 @@ export enum ExchangeRankingAttribute {
|
|
|
1353
1397
|
VolumeUsd24 = 'volumeUSD24'
|
|
1354
1398
|
}
|
|
1355
1399
|
|
|
1400
|
+
export type ExplorerConfig = {
|
|
1401
|
+
__typename?: 'ExplorerConfig';
|
|
1402
|
+
checksummed: Scalars['Boolean']['output'];
|
|
1403
|
+
icon: Scalars['String']['output'];
|
|
1404
|
+
name: Scalars['String']['output'];
|
|
1405
|
+
url: Scalars['String']['output'];
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1356
1408
|
/** Third party token data sourced from off chain. */
|
|
1357
1409
|
export type ExplorerTokenData = {
|
|
1358
1410
|
__typename?: 'ExplorerTokenData';
|
|
@@ -1958,6 +2010,8 @@ export enum LaunchpadTokenProtocol {
|
|
|
1958
2010
|
EgoTech = 'EgoTech',
|
|
1959
2011
|
/** Protocol name for Four.meme. */
|
|
1960
2012
|
FourMeme = 'FourMeme',
|
|
2013
|
+
/** Protocol name for Heaven. */
|
|
2014
|
+
HeavenAmm = 'HeavenAMM',
|
|
1961
2015
|
/** Protocol name for MeteoraDBC. */
|
|
1962
2016
|
MeteoraDbc = 'MeteoraDBC',
|
|
1963
2017
|
/** Protocol name for Moonit (formerly Moonshot). */
|
|
@@ -2311,6 +2365,37 @@ export type NetworkBreakdown = {
|
|
|
2311
2365
|
statsYear1?: Maybe<WindowedWalletStats>;
|
|
2312
2366
|
};
|
|
2313
2367
|
|
|
2368
|
+
export type NetworkConfig = AptosNetworkConfig | EvmNetworkConfig | SolanaNetworkConfig | StarknetNetworkConfig | SuiNetworkConfig;
|
|
2369
|
+
|
|
2370
|
+
export type NetworkConfigBase = {
|
|
2371
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
2372
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
2373
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
2374
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
2375
|
+
defaultPairQuoteToken: QuoteToken;
|
|
2376
|
+
enabled: Scalars['Boolean']['output'];
|
|
2377
|
+
explorer: ExplorerConfig;
|
|
2378
|
+
id: Scalars['ID']['output'];
|
|
2379
|
+
mainnet: Scalars['Boolean']['output'];
|
|
2380
|
+
name: Scalars['String']['output'];
|
|
2381
|
+
networkIconUrl: Scalars['String']['output'];
|
|
2382
|
+
networkId: Scalars['Int']['output'];
|
|
2383
|
+
networkName: Scalars['String']['output'];
|
|
2384
|
+
networkShortName: Scalars['String']['output'];
|
|
2385
|
+
networkType: NetworkConfigType;
|
|
2386
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
2387
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
2388
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
export enum NetworkConfigType {
|
|
2392
|
+
Aptos = 'APTOS',
|
|
2393
|
+
Evm = 'EVM',
|
|
2394
|
+
Solana = 'SOLANA',
|
|
2395
|
+
Starknet = 'STARKNET',
|
|
2396
|
+
Sui = 'SUI'
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2314
2399
|
/** A connection of wallets matching a filter on a specific network. */
|
|
2315
2400
|
export type NetworkWalletFilterConnection = {
|
|
2316
2401
|
__typename?: 'NetworkWalletFilterConnection';
|
|
@@ -5063,9 +5148,9 @@ export type OnEventsCreatedByMakerInput = {
|
|
|
5063
5148
|
export type OnLaunchpadTokenEventBatchInput = {
|
|
5064
5149
|
/** The type of event. */
|
|
5065
5150
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
5066
|
-
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5151
|
+
/** 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. */
|
|
5067
5152
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
5068
|
-
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5153
|
+
/** 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. */
|
|
5069
5154
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5070
5155
|
/** The network ID that the token is deployed on. */
|
|
5071
5156
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5081,9 +5166,9 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
5081
5166
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
5082
5167
|
/** The type of event. */
|
|
5083
5168
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
5084
|
-
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5169
|
+
/** 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. */
|
|
5085
5170
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
5086
|
-
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5171
|
+
/** 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. */
|
|
5087
5172
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5088
5173
|
/** The network ID that the token is deployed on. */
|
|
5089
5174
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -6639,6 +6724,7 @@ export type Query = {
|
|
|
6639
6724
|
* @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
|
|
6640
6725
|
*/
|
|
6641
6726
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6727
|
+
getNetworkConfigs: Array<NetworkConfig>;
|
|
6642
6728
|
/** Returns metadata for a given network supported on Codex. */
|
|
6643
6729
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
6644
6730
|
/** Returns the status of a list of networks supported on Codex. */
|
|
@@ -6929,6 +7015,11 @@ export type QueryGetLatestTokensArgs = {
|
|
|
6929
7015
|
};
|
|
6930
7016
|
|
|
6931
7017
|
|
|
7018
|
+
export type QueryGetNetworkConfigsArgs = {
|
|
7019
|
+
networkIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
7020
|
+
};
|
|
7021
|
+
|
|
7022
|
+
|
|
6932
7023
|
export type QueryGetNetworkStatsArgs = {
|
|
6933
7024
|
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6934
7025
|
networkId: Scalars['Int']['input'];
|
|
@@ -7425,6 +7516,28 @@ export type SocialLinks = {
|
|
|
7425
7516
|
youtube?: Maybe<Scalars['String']['output']>;
|
|
7426
7517
|
};
|
|
7427
7518
|
|
|
7519
|
+
export type SolanaNetworkConfig = {
|
|
7520
|
+
__typename?: 'SolanaNetworkConfig';
|
|
7521
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7522
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7523
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7524
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7525
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7526
|
+
enabled: Scalars['Boolean']['output'];
|
|
7527
|
+
explorer: ExplorerConfig;
|
|
7528
|
+
id: Scalars['ID']['output'];
|
|
7529
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7530
|
+
name: Scalars['String']['output'];
|
|
7531
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7532
|
+
networkId: Scalars['Int']['output'];
|
|
7533
|
+
networkName: Scalars['String']['output'];
|
|
7534
|
+
networkShortName: Scalars['String']['output'];
|
|
7535
|
+
networkType: NetworkConfigType;
|
|
7536
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7537
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7538
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7539
|
+
};
|
|
7540
|
+
|
|
7428
7541
|
export enum SparklineAttribute {
|
|
7429
7542
|
Price = 'PRICE'
|
|
7430
7543
|
}
|
|
@@ -7436,6 +7549,28 @@ export type SparklineValue = {
|
|
|
7436
7549
|
value: Scalars['Float']['output'];
|
|
7437
7550
|
};
|
|
7438
7551
|
|
|
7552
|
+
export type StarknetNetworkConfig = {
|
|
7553
|
+
__typename?: 'StarknetNetworkConfig';
|
|
7554
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7555
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7556
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7557
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7558
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7559
|
+
enabled: Scalars['Boolean']['output'];
|
|
7560
|
+
explorer: ExplorerConfig;
|
|
7561
|
+
id: Scalars['ID']['output'];
|
|
7562
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7563
|
+
name: Scalars['String']['output'];
|
|
7564
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7565
|
+
networkId: Scalars['Int']['output'];
|
|
7566
|
+
networkName: Scalars['String']['output'];
|
|
7567
|
+
networkShortName: Scalars['String']['output'];
|
|
7568
|
+
networkType: NetworkConfigType;
|
|
7569
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7570
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7571
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7572
|
+
};
|
|
7573
|
+
|
|
7439
7574
|
/** Filter for NFT stats. */
|
|
7440
7575
|
export type StatsFilter = {
|
|
7441
7576
|
/** The percent change between the `current` and `previous`. */
|
|
@@ -7681,6 +7816,28 @@ export type SubscriptionOnUnconfirmedEventsCreatedByMakerArgs = {
|
|
|
7681
7816
|
input: OnUnconfirmedEventsCreatedByMakerInput;
|
|
7682
7817
|
};
|
|
7683
7818
|
|
|
7819
|
+
export type SuiNetworkConfig = {
|
|
7820
|
+
__typename?: 'SuiNetworkConfig';
|
|
7821
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7822
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7823
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7824
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7825
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7826
|
+
enabled: Scalars['Boolean']['output'];
|
|
7827
|
+
explorer: ExplorerConfig;
|
|
7828
|
+
id: Scalars['ID']['output'];
|
|
7829
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7830
|
+
name: Scalars['String']['output'];
|
|
7831
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7832
|
+
networkId: Scalars['Int']['output'];
|
|
7833
|
+
networkName: Scalars['String']['output'];
|
|
7834
|
+
networkShortName: Scalars['String']['output'];
|
|
7835
|
+
networkType: NetworkConfigType;
|
|
7836
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7837
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7838
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7839
|
+
};
|
|
7840
|
+
|
|
7684
7841
|
/** Event data for a token swap event. */
|
|
7685
7842
|
export type SwapEventData = {
|
|
7686
7843
|
__typename?: 'SwapEventData';
|
|
@@ -8145,7 +8302,7 @@ export type TokenFilters = {
|
|
|
8145
8302
|
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8146
8303
|
/** The timestamp when the launchpad was migrated */
|
|
8147
8304
|
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
8148
|
-
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
8305
|
+
/** 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. */
|
|
8149
8306
|
launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
8150
8307
|
/** A list of launchpad protocols. */
|
|
8151
8308
|
launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
|