@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
|
@@ -157,6 +157,27 @@ export type ApiToken = {
|
|
|
157
157
|
/** JWT to be passed into the Authorization header for API requests */
|
|
158
158
|
token: Scalars['String']['output'];
|
|
159
159
|
};
|
|
160
|
+
export type AptosNetworkConfig = {
|
|
161
|
+
__typename?: 'AptosNetworkConfig';
|
|
162
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
163
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
164
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
165
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
166
|
+
defaultPairQuoteToken: QuoteToken;
|
|
167
|
+
enabled: Scalars['Boolean']['output'];
|
|
168
|
+
explorer: ExplorerConfig;
|
|
169
|
+
id: Scalars['ID']['output'];
|
|
170
|
+
mainnet: Scalars['Boolean']['output'];
|
|
171
|
+
name: Scalars['String']['output'];
|
|
172
|
+
networkIconUrl: Scalars['String']['output'];
|
|
173
|
+
networkId: Scalars['Int']['output'];
|
|
174
|
+
networkName: Scalars['String']['output'];
|
|
175
|
+
networkShortName: Scalars['String']['output'];
|
|
176
|
+
networkType: NetworkConfigType;
|
|
177
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
178
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
179
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
180
|
+
};
|
|
160
181
|
export type ArenaTradeData = {
|
|
161
182
|
__typename?: 'ArenaTradeData';
|
|
162
183
|
/** Protocol specific token ID */
|
|
@@ -1180,6 +1201,27 @@ export type EventsQueryInput = {
|
|
|
1180
1201
|
/** The time range to filter by. */
|
|
1181
1202
|
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1182
1203
|
};
|
|
1204
|
+
export type EvmNetworkConfig = {
|
|
1205
|
+
__typename?: 'EvmNetworkConfig';
|
|
1206
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
1207
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
1208
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
1209
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
1210
|
+
defaultPairQuoteToken: QuoteToken;
|
|
1211
|
+
enabled: Scalars['Boolean']['output'];
|
|
1212
|
+
explorer: ExplorerConfig;
|
|
1213
|
+
id: Scalars['ID']['output'];
|
|
1214
|
+
mainnet: Scalars['Boolean']['output'];
|
|
1215
|
+
name: Scalars['String']['output'];
|
|
1216
|
+
networkIconUrl: Scalars['String']['output'];
|
|
1217
|
+
networkId: Scalars['Int']['output'];
|
|
1218
|
+
networkName: Scalars['String']['output'];
|
|
1219
|
+
networkShortName: Scalars['String']['output'];
|
|
1220
|
+
networkType: NetworkConfigType;
|
|
1221
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
1222
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
1223
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
1224
|
+
};
|
|
1183
1225
|
/** Metadata for a decentralized exchange. */
|
|
1184
1226
|
export type Exchange = {
|
|
1185
1227
|
__typename?: 'Exchange';
|
|
@@ -1305,6 +1347,13 @@ export declare enum ExchangeRankingAttribute {
|
|
|
1305
1347
|
VolumeUsd12 = "volumeUSD12",
|
|
1306
1348
|
VolumeUsd24 = "volumeUSD24"
|
|
1307
1349
|
}
|
|
1350
|
+
export type ExplorerConfig = {
|
|
1351
|
+
__typename?: 'ExplorerConfig';
|
|
1352
|
+
checksummed: Scalars['Boolean']['output'];
|
|
1353
|
+
icon: Scalars['String']['output'];
|
|
1354
|
+
name: Scalars['String']['output'];
|
|
1355
|
+
url: Scalars['String']['output'];
|
|
1356
|
+
};
|
|
1308
1357
|
/** Third party token data sourced from off chain. */
|
|
1309
1358
|
export type ExplorerTokenData = {
|
|
1310
1359
|
__typename?: 'ExplorerTokenData';
|
|
@@ -2198,6 +2247,34 @@ export type NetworkBreakdown = {
|
|
|
2198
2247
|
/** The stats for the last year */
|
|
2199
2248
|
statsYear1?: Maybe<WindowedWalletStats>;
|
|
2200
2249
|
};
|
|
2250
|
+
export type NetworkConfig = AptosNetworkConfig | EvmNetworkConfig | SolanaNetworkConfig | StarknetNetworkConfig | SuiNetworkConfig;
|
|
2251
|
+
export type NetworkConfigBase = {
|
|
2252
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
2253
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
2254
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
2255
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
2256
|
+
defaultPairQuoteToken: QuoteToken;
|
|
2257
|
+
enabled: Scalars['Boolean']['output'];
|
|
2258
|
+
explorer: ExplorerConfig;
|
|
2259
|
+
id: Scalars['ID']['output'];
|
|
2260
|
+
mainnet: Scalars['Boolean']['output'];
|
|
2261
|
+
name: Scalars['String']['output'];
|
|
2262
|
+
networkIconUrl: Scalars['String']['output'];
|
|
2263
|
+
networkId: Scalars['Int']['output'];
|
|
2264
|
+
networkName: Scalars['String']['output'];
|
|
2265
|
+
networkShortName: Scalars['String']['output'];
|
|
2266
|
+
networkType: NetworkConfigType;
|
|
2267
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
2268
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
2269
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
2270
|
+
};
|
|
2271
|
+
export declare enum NetworkConfigType {
|
|
2272
|
+
Aptos = "APTOS",
|
|
2273
|
+
Evm = "EVM",
|
|
2274
|
+
Solana = "SOLANA",
|
|
2275
|
+
Starknet = "STARKNET",
|
|
2276
|
+
Sui = "SUI"
|
|
2277
|
+
}
|
|
2201
2278
|
/** A connection of wallets matching a filter on a specific network. */
|
|
2202
2279
|
export type NetworkWalletFilterConnection = {
|
|
2203
2280
|
__typename?: 'NetworkWalletFilterConnection';
|
|
@@ -6351,6 +6428,7 @@ export type Query = {
|
|
|
6351
6428
|
* @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
|
|
6352
6429
|
*/
|
|
6353
6430
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6431
|
+
getNetworkConfigs: Array<NetworkConfig>;
|
|
6354
6432
|
/** Returns metadata for a given network supported on Codex. */
|
|
6355
6433
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
6356
6434
|
/** Returns the status of a list of networks supported on Codex. */
|
|
@@ -6591,6 +6669,9 @@ export type QueryGetLatestTokensArgs = {
|
|
|
6591
6669
|
networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6592
6670
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
6593
6671
|
};
|
|
6672
|
+
export type QueryGetNetworkConfigsArgs = {
|
|
6673
|
+
networkIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6674
|
+
};
|
|
6594
6675
|
export type QueryGetNetworkStatsArgs = {
|
|
6595
6676
|
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6596
6677
|
networkId: Scalars['Int']['input'];
|
|
@@ -6986,6 +7067,27 @@ export type SocialLinks = {
|
|
|
6986
7067
|
whitepaper?: Maybe<Scalars['String']['output']>;
|
|
6987
7068
|
youtube?: Maybe<Scalars['String']['output']>;
|
|
6988
7069
|
};
|
|
7070
|
+
export type SolanaNetworkConfig = {
|
|
7071
|
+
__typename?: 'SolanaNetworkConfig';
|
|
7072
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7073
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7074
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7075
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7076
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7077
|
+
enabled: Scalars['Boolean']['output'];
|
|
7078
|
+
explorer: ExplorerConfig;
|
|
7079
|
+
id: Scalars['ID']['output'];
|
|
7080
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7081
|
+
name: Scalars['String']['output'];
|
|
7082
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7083
|
+
networkId: Scalars['Int']['output'];
|
|
7084
|
+
networkName: Scalars['String']['output'];
|
|
7085
|
+
networkShortName: Scalars['String']['output'];
|
|
7086
|
+
networkType: NetworkConfigType;
|
|
7087
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7088
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7089
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7090
|
+
};
|
|
6989
7091
|
export declare enum SparklineAttribute {
|
|
6990
7092
|
Price = "PRICE"
|
|
6991
7093
|
}
|
|
@@ -6995,6 +7097,27 @@ export type SparklineValue = {
|
|
|
6995
7097
|
timestamp: Scalars['Int']['output'];
|
|
6996
7098
|
value: Scalars['Float']['output'];
|
|
6997
7099
|
};
|
|
7100
|
+
export type StarknetNetworkConfig = {
|
|
7101
|
+
__typename?: 'StarknetNetworkConfig';
|
|
7102
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7103
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7104
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7105
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7106
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7107
|
+
enabled: Scalars['Boolean']['output'];
|
|
7108
|
+
explorer: ExplorerConfig;
|
|
7109
|
+
id: Scalars['ID']['output'];
|
|
7110
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7111
|
+
name: Scalars['String']['output'];
|
|
7112
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7113
|
+
networkId: Scalars['Int']['output'];
|
|
7114
|
+
networkName: Scalars['String']['output'];
|
|
7115
|
+
networkShortName: Scalars['String']['output'];
|
|
7116
|
+
networkType: NetworkConfigType;
|
|
7117
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7118
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7119
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7120
|
+
};
|
|
6998
7121
|
/** Filter for NFT stats. */
|
|
6999
7122
|
export type StatsFilter = {
|
|
7000
7123
|
/** The percent change between the `current` and `previous`. */
|
|
@@ -7187,6 +7310,27 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
|
7187
7310
|
export type SubscriptionOnUnconfirmedEventsCreatedByMakerArgs = {
|
|
7188
7311
|
input: OnUnconfirmedEventsCreatedByMakerInput;
|
|
7189
7312
|
};
|
|
7313
|
+
export type SuiNetworkConfig = {
|
|
7314
|
+
__typename?: 'SuiNetworkConfig';
|
|
7315
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7316
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7317
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7318
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7319
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7320
|
+
enabled: Scalars['Boolean']['output'];
|
|
7321
|
+
explorer: ExplorerConfig;
|
|
7322
|
+
id: Scalars['ID']['output'];
|
|
7323
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7324
|
+
name: Scalars['String']['output'];
|
|
7325
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7326
|
+
networkId: Scalars['Int']['output'];
|
|
7327
|
+
networkName: Scalars['String']['output'];
|
|
7328
|
+
networkShortName: Scalars['String']['output'];
|
|
7329
|
+
networkType: NetworkConfigType;
|
|
7330
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7331
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7332
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7333
|
+
};
|
|
7190
7334
|
/** Event data for a token swap event. */
|
|
7191
7335
|
export type SwapEventData = {
|
|
7192
7336
|
__typename?: 'SwapEventData';
|