@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
|
@@ -156,6 +156,27 @@ export type ApiToken = {
|
|
|
156
156
|
/** JWT to be passed into the Authorization header for API requests */
|
|
157
157
|
token: Scalars['String']['output'];
|
|
158
158
|
};
|
|
159
|
+
export type AptosNetworkConfig = {
|
|
160
|
+
__typename?: 'AptosNetworkConfig';
|
|
161
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
162
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
163
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
164
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
165
|
+
defaultPairQuoteToken: QuoteToken;
|
|
166
|
+
enabled: Scalars['Boolean']['output'];
|
|
167
|
+
explorer: ExplorerConfig;
|
|
168
|
+
id: Scalars['ID']['output'];
|
|
169
|
+
mainnet: Scalars['Boolean']['output'];
|
|
170
|
+
name: Scalars['String']['output'];
|
|
171
|
+
networkIconUrl: Scalars['String']['output'];
|
|
172
|
+
networkId: Scalars['Int']['output'];
|
|
173
|
+
networkName: Scalars['String']['output'];
|
|
174
|
+
networkShortName: Scalars['String']['output'];
|
|
175
|
+
networkType: NetworkConfigType;
|
|
176
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
177
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
178
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
179
|
+
};
|
|
159
180
|
export type ArenaTradeData = {
|
|
160
181
|
__typename?: 'ArenaTradeData';
|
|
161
182
|
/** Protocol specific token ID */
|
|
@@ -1179,6 +1200,27 @@ export type EventsQueryInput = {
|
|
|
1179
1200
|
/** The time range to filter by. */
|
|
1180
1201
|
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1181
1202
|
};
|
|
1203
|
+
export type EvmNetworkConfig = {
|
|
1204
|
+
__typename?: 'EvmNetworkConfig';
|
|
1205
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
1206
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
1207
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
1208
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
1209
|
+
defaultPairQuoteToken: QuoteToken;
|
|
1210
|
+
enabled: Scalars['Boolean']['output'];
|
|
1211
|
+
explorer: ExplorerConfig;
|
|
1212
|
+
id: Scalars['ID']['output'];
|
|
1213
|
+
mainnet: Scalars['Boolean']['output'];
|
|
1214
|
+
name: Scalars['String']['output'];
|
|
1215
|
+
networkIconUrl: Scalars['String']['output'];
|
|
1216
|
+
networkId: Scalars['Int']['output'];
|
|
1217
|
+
networkName: Scalars['String']['output'];
|
|
1218
|
+
networkShortName: Scalars['String']['output'];
|
|
1219
|
+
networkType: NetworkConfigType;
|
|
1220
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
1221
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
1222
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
1223
|
+
};
|
|
1182
1224
|
/** Metadata for a decentralized exchange. */
|
|
1183
1225
|
export type Exchange = {
|
|
1184
1226
|
__typename?: 'Exchange';
|
|
@@ -1304,6 +1346,13 @@ export declare enum ExchangeRankingAttribute {
|
|
|
1304
1346
|
VolumeUsd12 = "volumeUSD12",
|
|
1305
1347
|
VolumeUsd24 = "volumeUSD24"
|
|
1306
1348
|
}
|
|
1349
|
+
export type ExplorerConfig = {
|
|
1350
|
+
__typename?: 'ExplorerConfig';
|
|
1351
|
+
checksummed: Scalars['Boolean']['output'];
|
|
1352
|
+
icon: Scalars['String']['output'];
|
|
1353
|
+
name: Scalars['String']['output'];
|
|
1354
|
+
url: Scalars['String']['output'];
|
|
1355
|
+
};
|
|
1307
1356
|
/** Third party token data sourced from off chain. */
|
|
1308
1357
|
export type ExplorerTokenData = {
|
|
1309
1358
|
__typename?: 'ExplorerTokenData';
|
|
@@ -1875,6 +1924,8 @@ export declare enum LaunchpadTokenProtocol {
|
|
|
1875
1924
|
EgoTech = "EgoTech",
|
|
1876
1925
|
/** Protocol name for Four.meme. */
|
|
1877
1926
|
FourMeme = "FourMeme",
|
|
1927
|
+
/** Protocol name for Heaven. */
|
|
1928
|
+
HeavenAmm = "HeavenAMM",
|
|
1878
1929
|
/** Protocol name for MeteoraDBC. */
|
|
1879
1930
|
MeteoraDbc = "MeteoraDBC",
|
|
1880
1931
|
/** Protocol name for Moonit (formerly Moonshot). */
|
|
@@ -2195,6 +2246,34 @@ export type NetworkBreakdown = {
|
|
|
2195
2246
|
/** The stats for the last year */
|
|
2196
2247
|
statsYear1?: Maybe<WindowedWalletStats>;
|
|
2197
2248
|
};
|
|
2249
|
+
export type NetworkConfig = AptosNetworkConfig | EvmNetworkConfig | SolanaNetworkConfig | StarknetNetworkConfig | SuiNetworkConfig;
|
|
2250
|
+
export type NetworkConfigBase = {
|
|
2251
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
2252
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
2253
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
2254
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
2255
|
+
defaultPairQuoteToken: QuoteToken;
|
|
2256
|
+
enabled: Scalars['Boolean']['output'];
|
|
2257
|
+
explorer: ExplorerConfig;
|
|
2258
|
+
id: Scalars['ID']['output'];
|
|
2259
|
+
mainnet: Scalars['Boolean']['output'];
|
|
2260
|
+
name: Scalars['String']['output'];
|
|
2261
|
+
networkIconUrl: Scalars['String']['output'];
|
|
2262
|
+
networkId: Scalars['Int']['output'];
|
|
2263
|
+
networkName: Scalars['String']['output'];
|
|
2264
|
+
networkShortName: Scalars['String']['output'];
|
|
2265
|
+
networkType: NetworkConfigType;
|
|
2266
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
2267
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
2268
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
2269
|
+
};
|
|
2270
|
+
export declare enum NetworkConfigType {
|
|
2271
|
+
Aptos = "APTOS",
|
|
2272
|
+
Evm = "EVM",
|
|
2273
|
+
Solana = "SOLANA",
|
|
2274
|
+
Starknet = "STARKNET",
|
|
2275
|
+
Sui = "SUI"
|
|
2276
|
+
}
|
|
2198
2277
|
/** A connection of wallets matching a filter on a specific network. */
|
|
2199
2278
|
export type NetworkWalletFilterConnection = {
|
|
2200
2279
|
__typename?: 'NetworkWalletFilterConnection';
|
|
@@ -4850,9 +4929,9 @@ export type OnEventsCreatedByMakerInput = {
|
|
|
4850
4929
|
export type OnLaunchpadTokenEventBatchInput = {
|
|
4851
4930
|
/** The type of event. */
|
|
4852
4931
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4853
|
-
/** 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. */
|
|
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. */
|
|
4854
4933
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
4855
|
-
/** 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. */
|
|
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. */
|
|
4856
4935
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4857
4936
|
/** The network ID that the token is deployed on. */
|
|
4858
4937
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4867,9 +4946,9 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
4867
4946
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
4868
4947
|
/** The type of event. */
|
|
4869
4948
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4870
|
-
/** 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. */
|
|
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. */
|
|
4871
4950
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
4872
|
-
/** 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. */
|
|
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. */
|
|
4873
4952
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4874
4953
|
/** The network ID that the token is deployed on. */
|
|
4875
4954
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -6348,6 +6427,7 @@ export type Query = {
|
|
|
6348
6427
|
* @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
|
|
6349
6428
|
*/
|
|
6350
6429
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6430
|
+
getNetworkConfigs: Array<NetworkConfig>;
|
|
6351
6431
|
/** Returns metadata for a given network supported on Codex. */
|
|
6352
6432
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
6353
6433
|
/** Returns the status of a list of networks supported on Codex. */
|
|
@@ -6588,6 +6668,9 @@ export type QueryGetLatestTokensArgs = {
|
|
|
6588
6668
|
networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6589
6669
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
6590
6670
|
};
|
|
6671
|
+
export type QueryGetNetworkConfigsArgs = {
|
|
6672
|
+
networkIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6673
|
+
};
|
|
6591
6674
|
export type QueryGetNetworkStatsArgs = {
|
|
6592
6675
|
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6593
6676
|
networkId: Scalars['Int']['input'];
|
|
@@ -6983,6 +7066,27 @@ export type SocialLinks = {
|
|
|
6983
7066
|
whitepaper?: Maybe<Scalars['String']['output']>;
|
|
6984
7067
|
youtube?: Maybe<Scalars['String']['output']>;
|
|
6985
7068
|
};
|
|
7069
|
+
export type SolanaNetworkConfig = {
|
|
7070
|
+
__typename?: 'SolanaNetworkConfig';
|
|
7071
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7072
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7073
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7074
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7075
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7076
|
+
enabled: Scalars['Boolean']['output'];
|
|
7077
|
+
explorer: ExplorerConfig;
|
|
7078
|
+
id: Scalars['ID']['output'];
|
|
7079
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7080
|
+
name: Scalars['String']['output'];
|
|
7081
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7082
|
+
networkId: Scalars['Int']['output'];
|
|
7083
|
+
networkName: Scalars['String']['output'];
|
|
7084
|
+
networkShortName: Scalars['String']['output'];
|
|
7085
|
+
networkType: NetworkConfigType;
|
|
7086
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7087
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7088
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7089
|
+
};
|
|
6986
7090
|
export declare enum SparklineAttribute {
|
|
6987
7091
|
Price = "PRICE"
|
|
6988
7092
|
}
|
|
@@ -6992,6 +7096,27 @@ export type SparklineValue = {
|
|
|
6992
7096
|
timestamp: Scalars['Int']['output'];
|
|
6993
7097
|
value: Scalars['Float']['output'];
|
|
6994
7098
|
};
|
|
7099
|
+
export type StarknetNetworkConfig = {
|
|
7100
|
+
__typename?: 'StarknetNetworkConfig';
|
|
7101
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7102
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7103
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7104
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7105
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7106
|
+
enabled: Scalars['Boolean']['output'];
|
|
7107
|
+
explorer: ExplorerConfig;
|
|
7108
|
+
id: Scalars['ID']['output'];
|
|
7109
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7110
|
+
name: Scalars['String']['output'];
|
|
7111
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7112
|
+
networkId: Scalars['Int']['output'];
|
|
7113
|
+
networkName: Scalars['String']['output'];
|
|
7114
|
+
networkShortName: Scalars['String']['output'];
|
|
7115
|
+
networkType: NetworkConfigType;
|
|
7116
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7117
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7118
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7119
|
+
};
|
|
6995
7120
|
/** Filter for NFT stats. */
|
|
6996
7121
|
export type StatsFilter = {
|
|
6997
7122
|
/** The percent change between the `current` and `previous`. */
|
|
@@ -7184,6 +7309,27 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
|
7184
7309
|
export type SubscriptionOnUnconfirmedEventsCreatedByMakerArgs = {
|
|
7185
7310
|
input: OnUnconfirmedEventsCreatedByMakerInput;
|
|
7186
7311
|
};
|
|
7312
|
+
export type SuiNetworkConfig = {
|
|
7313
|
+
__typename?: 'SuiNetworkConfig';
|
|
7314
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7315
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7316
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7317
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7318
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7319
|
+
enabled: Scalars['Boolean']['output'];
|
|
7320
|
+
explorer: ExplorerConfig;
|
|
7321
|
+
id: Scalars['ID']['output'];
|
|
7322
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7323
|
+
name: Scalars['String']['output'];
|
|
7324
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7325
|
+
networkId: Scalars['Int']['output'];
|
|
7326
|
+
networkName: Scalars['String']['output'];
|
|
7327
|
+
networkShortName: Scalars['String']['output'];
|
|
7328
|
+
networkType: NetworkConfigType;
|
|
7329
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7330
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7331
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7332
|
+
};
|
|
7187
7333
|
/** Event data for a token swap event. */
|
|
7188
7334
|
export type SwapEventData = {
|
|
7189
7335
|
__typename?: 'SwapEventData';
|
|
@@ -7638,7 +7784,7 @@ export type TokenFilters = {
|
|
|
7638
7784
|
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7639
7785
|
/** The timestamp when the launchpad was migrated */
|
|
7640
7786
|
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
7641
|
-
/** 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. */
|
|
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. */
|
|
7642
7788
|
launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
7643
7789
|
/** A list of launchpad protocols. */
|
|
7644
7790
|
launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
|