@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
|
@@ -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';
|
|
@@ -2197,6 +2246,34 @@ export type NetworkBreakdown = {
|
|
|
2197
2246
|
/** The stats for the last year */
|
|
2198
2247
|
statsYear1?: Maybe<WindowedWalletStats>;
|
|
2199
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
|
+
}
|
|
2200
2277
|
/** A connection of wallets matching a filter on a specific network. */
|
|
2201
2278
|
export type NetworkWalletFilterConnection = {
|
|
2202
2279
|
__typename?: 'NetworkWalletFilterConnection';
|
|
@@ -6350,6 +6427,7 @@ export type Query = {
|
|
|
6350
6427
|
* @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
|
|
6351
6428
|
*/
|
|
6352
6429
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6430
|
+
getNetworkConfigs: Array<NetworkConfig>;
|
|
6353
6431
|
/** Returns metadata for a given network supported on Codex. */
|
|
6354
6432
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
6355
6433
|
/** Returns the status of a list of networks supported on Codex. */
|
|
@@ -6590,6 +6668,9 @@ export type QueryGetLatestTokensArgs = {
|
|
|
6590
6668
|
networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6591
6669
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
6592
6670
|
};
|
|
6671
|
+
export type QueryGetNetworkConfigsArgs = {
|
|
6672
|
+
networkIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6673
|
+
};
|
|
6593
6674
|
export type QueryGetNetworkStatsArgs = {
|
|
6594
6675
|
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6595
6676
|
networkId: Scalars['Int']['input'];
|
|
@@ -6985,6 +7066,27 @@ export type SocialLinks = {
|
|
|
6985
7066
|
whitepaper?: Maybe<Scalars['String']['output']>;
|
|
6986
7067
|
youtube?: Maybe<Scalars['String']['output']>;
|
|
6987
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
|
+
};
|
|
6988
7090
|
export declare enum SparklineAttribute {
|
|
6989
7091
|
Price = "PRICE"
|
|
6990
7092
|
}
|
|
@@ -6994,6 +7096,27 @@ export type SparklineValue = {
|
|
|
6994
7096
|
timestamp: Scalars['Int']['output'];
|
|
6995
7097
|
value: Scalars['Float']['output'];
|
|
6996
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
|
+
};
|
|
6997
7120
|
/** Filter for NFT stats. */
|
|
6998
7121
|
export type StatsFilter = {
|
|
6999
7122
|
/** The percent change between the `current` and `previous`. */
|
|
@@ -7186,6 +7309,27 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
|
7186
7309
|
export type SubscriptionOnUnconfirmedEventsCreatedByMakerArgs = {
|
|
7187
7310
|
input: OnUnconfirmedEventsCreatedByMakerInput;
|
|
7188
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
|
+
};
|
|
7189
7333
|
/** Event data for a token swap event. */
|
|
7190
7334
|
export type SwapEventData = {
|
|
7191
7335
|
__typename?: 'SwapEventData';
|