@codex-data/sdk 1.0.25 → 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 +144 -0
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +10 -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 +144 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +12 -4
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +4 -1
- package/src/resources/graphql.schema.json +1987 -0
- package/src/resources/graphql.ts +155 -0
- package/src/resources/networkConfigs.json +3662 -0
- package/src/resources/schema.graphql +146 -0
- package/src/scripts/generateNetworkConfigs.ts +243 -0
- package/src/sdk/generated/graphql.ts +155 -0
package/src/resources/graphql.ts
CHANGED
|
@@ -126,6 +126,28 @@ export type ApiToken = {
|
|
|
126
126
|
token: Scalars['String']['output'];
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
export type AptosNetworkConfig = {
|
|
130
|
+
__typename?: 'AptosNetworkConfig';
|
|
131
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
132
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
133
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
134
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
135
|
+
defaultPairQuoteToken: QuoteToken;
|
|
136
|
+
enabled: Scalars['Boolean']['output'];
|
|
137
|
+
explorer: ExplorerConfig;
|
|
138
|
+
id: Scalars['ID']['output'];
|
|
139
|
+
mainnet: Scalars['Boolean']['output'];
|
|
140
|
+
name: Scalars['String']['output'];
|
|
141
|
+
networkIconUrl: Scalars['String']['output'];
|
|
142
|
+
networkId: Scalars['Int']['output'];
|
|
143
|
+
networkName: Scalars['String']['output'];
|
|
144
|
+
networkShortName: Scalars['String']['output'];
|
|
145
|
+
networkType: NetworkConfigType;
|
|
146
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
147
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
148
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
149
|
+
};
|
|
150
|
+
|
|
129
151
|
export type ArenaTradeData = {
|
|
130
152
|
__typename?: 'ArenaTradeData';
|
|
131
153
|
/** Protocol specific token ID */
|
|
@@ -1220,6 +1242,28 @@ export type EventsQueryInput = {
|
|
|
1220
1242
|
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1221
1243
|
};
|
|
1222
1244
|
|
|
1245
|
+
export type EvmNetworkConfig = {
|
|
1246
|
+
__typename?: 'EvmNetworkConfig';
|
|
1247
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
1248
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
1249
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
1250
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
1251
|
+
defaultPairQuoteToken: QuoteToken;
|
|
1252
|
+
enabled: Scalars['Boolean']['output'];
|
|
1253
|
+
explorer: ExplorerConfig;
|
|
1254
|
+
id: Scalars['ID']['output'];
|
|
1255
|
+
mainnet: Scalars['Boolean']['output'];
|
|
1256
|
+
name: Scalars['String']['output'];
|
|
1257
|
+
networkIconUrl: Scalars['String']['output'];
|
|
1258
|
+
networkId: Scalars['Int']['output'];
|
|
1259
|
+
networkName: Scalars['String']['output'];
|
|
1260
|
+
networkShortName: Scalars['String']['output'];
|
|
1261
|
+
networkType: NetworkConfigType;
|
|
1262
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
1263
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
1264
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1223
1267
|
/** Metadata for a decentralized exchange. */
|
|
1224
1268
|
export type Exchange = {
|
|
1225
1269
|
__typename?: 'Exchange';
|
|
@@ -1351,6 +1395,14 @@ export enum ExchangeRankingAttribute {
|
|
|
1351
1395
|
VolumeUsd24 = 'volumeUSD24'
|
|
1352
1396
|
}
|
|
1353
1397
|
|
|
1398
|
+
export type ExplorerConfig = {
|
|
1399
|
+
__typename?: 'ExplorerConfig';
|
|
1400
|
+
checksummed: Scalars['Boolean']['output'];
|
|
1401
|
+
icon: Scalars['String']['output'];
|
|
1402
|
+
name: Scalars['String']['output'];
|
|
1403
|
+
url: Scalars['String']['output'];
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1354
1406
|
/** Third party token data sourced from off chain. */
|
|
1355
1407
|
export type ExplorerTokenData = {
|
|
1356
1408
|
__typename?: 'ExplorerTokenData';
|
|
@@ -2311,6 +2363,37 @@ export type NetworkBreakdown = {
|
|
|
2311
2363
|
statsYear1?: Maybe<WindowedWalletStats>;
|
|
2312
2364
|
};
|
|
2313
2365
|
|
|
2366
|
+
export type NetworkConfig = AptosNetworkConfig | EvmNetworkConfig | SolanaNetworkConfig | StarknetNetworkConfig | SuiNetworkConfig;
|
|
2367
|
+
|
|
2368
|
+
export type NetworkConfigBase = {
|
|
2369
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
2370
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
2371
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
2372
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
2373
|
+
defaultPairQuoteToken: QuoteToken;
|
|
2374
|
+
enabled: Scalars['Boolean']['output'];
|
|
2375
|
+
explorer: ExplorerConfig;
|
|
2376
|
+
id: Scalars['ID']['output'];
|
|
2377
|
+
mainnet: Scalars['Boolean']['output'];
|
|
2378
|
+
name: Scalars['String']['output'];
|
|
2379
|
+
networkIconUrl: Scalars['String']['output'];
|
|
2380
|
+
networkId: Scalars['Int']['output'];
|
|
2381
|
+
networkName: Scalars['String']['output'];
|
|
2382
|
+
networkShortName: Scalars['String']['output'];
|
|
2383
|
+
networkType: NetworkConfigType;
|
|
2384
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
2385
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
2386
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
export enum NetworkConfigType {
|
|
2390
|
+
Aptos = 'APTOS',
|
|
2391
|
+
Evm = 'EVM',
|
|
2392
|
+
Solana = 'SOLANA',
|
|
2393
|
+
Starknet = 'STARKNET',
|
|
2394
|
+
Sui = 'SUI'
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2314
2397
|
/** A connection of wallets matching a filter on a specific network. */
|
|
2315
2398
|
export type NetworkWalletFilterConnection = {
|
|
2316
2399
|
__typename?: 'NetworkWalletFilterConnection';
|
|
@@ -6639,6 +6722,7 @@ export type Query = {
|
|
|
6639
6722
|
* @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
|
|
6640
6723
|
*/
|
|
6641
6724
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6725
|
+
getNetworkConfigs: Array<NetworkConfig>;
|
|
6642
6726
|
/** Returns metadata for a given network supported on Codex. */
|
|
6643
6727
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
6644
6728
|
/** Returns the status of a list of networks supported on Codex. */
|
|
@@ -6929,6 +7013,11 @@ export type QueryGetLatestTokensArgs = {
|
|
|
6929
7013
|
};
|
|
6930
7014
|
|
|
6931
7015
|
|
|
7016
|
+
export type QueryGetNetworkConfigsArgs = {
|
|
7017
|
+
networkIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
7018
|
+
};
|
|
7019
|
+
|
|
7020
|
+
|
|
6932
7021
|
export type QueryGetNetworkStatsArgs = {
|
|
6933
7022
|
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6934
7023
|
networkId: Scalars['Int']['input'];
|
|
@@ -7425,6 +7514,28 @@ export type SocialLinks = {
|
|
|
7425
7514
|
youtube?: Maybe<Scalars['String']['output']>;
|
|
7426
7515
|
};
|
|
7427
7516
|
|
|
7517
|
+
export type SolanaNetworkConfig = {
|
|
7518
|
+
__typename?: 'SolanaNetworkConfig';
|
|
7519
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7520
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7521
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7522
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7523
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7524
|
+
enabled: Scalars['Boolean']['output'];
|
|
7525
|
+
explorer: ExplorerConfig;
|
|
7526
|
+
id: Scalars['ID']['output'];
|
|
7527
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7528
|
+
name: Scalars['String']['output'];
|
|
7529
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7530
|
+
networkId: Scalars['Int']['output'];
|
|
7531
|
+
networkName: Scalars['String']['output'];
|
|
7532
|
+
networkShortName: Scalars['String']['output'];
|
|
7533
|
+
networkType: NetworkConfigType;
|
|
7534
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7535
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7536
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7537
|
+
};
|
|
7538
|
+
|
|
7428
7539
|
export enum SparklineAttribute {
|
|
7429
7540
|
Price = 'PRICE'
|
|
7430
7541
|
}
|
|
@@ -7436,6 +7547,28 @@ export type SparklineValue = {
|
|
|
7436
7547
|
value: Scalars['Float']['output'];
|
|
7437
7548
|
};
|
|
7438
7549
|
|
|
7550
|
+
export type StarknetNetworkConfig = {
|
|
7551
|
+
__typename?: 'StarknetNetworkConfig';
|
|
7552
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7553
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7554
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7555
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7556
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7557
|
+
enabled: Scalars['Boolean']['output'];
|
|
7558
|
+
explorer: ExplorerConfig;
|
|
7559
|
+
id: Scalars['ID']['output'];
|
|
7560
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7561
|
+
name: Scalars['String']['output'];
|
|
7562
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7563
|
+
networkId: Scalars['Int']['output'];
|
|
7564
|
+
networkName: Scalars['String']['output'];
|
|
7565
|
+
networkShortName: Scalars['String']['output'];
|
|
7566
|
+
networkType: NetworkConfigType;
|
|
7567
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7568
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7569
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7570
|
+
};
|
|
7571
|
+
|
|
7439
7572
|
/** Filter for NFT stats. */
|
|
7440
7573
|
export type StatsFilter = {
|
|
7441
7574
|
/** The percent change between the `current` and `previous`. */
|
|
@@ -7681,6 +7814,28 @@ export type SubscriptionOnUnconfirmedEventsCreatedByMakerArgs = {
|
|
|
7681
7814
|
input: OnUnconfirmedEventsCreatedByMakerInput;
|
|
7682
7815
|
};
|
|
7683
7816
|
|
|
7817
|
+
export type SuiNetworkConfig = {
|
|
7818
|
+
__typename?: 'SuiNetworkConfig';
|
|
7819
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7820
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7821
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7822
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7823
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7824
|
+
enabled: Scalars['Boolean']['output'];
|
|
7825
|
+
explorer: ExplorerConfig;
|
|
7826
|
+
id: Scalars['ID']['output'];
|
|
7827
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7828
|
+
name: Scalars['String']['output'];
|
|
7829
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7830
|
+
networkId: Scalars['Int']['output'];
|
|
7831
|
+
networkName: Scalars['String']['output'];
|
|
7832
|
+
networkShortName: Scalars['String']['output'];
|
|
7833
|
+
networkType: NetworkConfigType;
|
|
7834
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7835
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7836
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7837
|
+
};
|
|
7838
|
+
|
|
7684
7839
|
/** Event data for a token swap event. */
|
|
7685
7840
|
export type SwapEventData = {
|
|
7686
7841
|
__typename?: 'SwapEventData';
|