@codex-data/sdk 1.0.4 → 1.0.6
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/generated_queries/Balances.graphql +3 -0
- package/dist/resources/generated_queries/GetNetworkStats.graphql +7 -0
- package/dist/resources/generated_queries/Holders.graphql +3 -0
- package/dist/resources/generated_queries/LiquidityLocks.graphql +1 -1
- package/dist/resources/generated_queries/PrimeHolders.graphql +3 -0
- package/dist/resources/generated_queries/TokenTopTraders.graphql +26 -0
- package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
- package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
- package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
- package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
- package/dist/resources/graphql.d.ts +245 -12
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +38 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +1800 -27
- package/dist/resources/graphql.ts +261 -12
- package/dist/resources/schema.graphql +311 -12
- package/dist/sdk/Mutation.d.ts +2 -2
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +2 -2
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +48 -48
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +47 -47
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +16 -14
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +93 -79
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +39 -25
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +11 -9
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +426 -62
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +51 -13
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +2 -2
- package/src/resources/generated_queries/Balances.graphql +3 -0
- package/src/resources/generated_queries/GetNetworkStats.graphql +7 -0
- package/src/resources/generated_queries/Holders.graphql +3 -0
- package/src/resources/generated_queries/LiquidityLocks.graphql +1 -1
- package/src/resources/generated_queries/PrimeHolders.graphql +3 -0
- package/src/resources/generated_queries/TokenTopTraders.graphql +26 -0
- package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
- package/src/resources/graphql.schema.json +1800 -27
- package/src/resources/graphql.ts +261 -12
- package/src/resources/schema.graphql +311 -12
- package/src/sdk/Mutation.ts +4 -4
- package/src/sdk/Query.ts +101 -101
- package/src/sdk/Subscribe.ts +151 -121
- package/src/sdk/generated/gql.ts +31 -21
- package/src/sdk/generated/graphql.ts +301 -36
- package/dist/resources/generated_queries/GetLatestTokens.graphql +0 -39
- package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
|
@@ -124,15 +124,41 @@ export type ApiToken = {
|
|
|
124
124
|
token: Scalars['String']['output'];
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
+
export type AptosNetworkConfig = {
|
|
128
|
+
__typename?: 'AptosNetworkConfig';
|
|
129
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
130
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
131
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
132
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
133
|
+
defaultPairQuoteToken: QuoteToken;
|
|
134
|
+
enabled: Scalars['Boolean']['output'];
|
|
135
|
+
id: Scalars['ID']['output'];
|
|
136
|
+
mainnet: Scalars['Boolean']['output'];
|
|
137
|
+
name: Scalars['String']['output'];
|
|
138
|
+
networkIconUrl: Scalars['String']['output'];
|
|
139
|
+
networkId: Scalars['Int']['output'];
|
|
140
|
+
networkName: Scalars['String']['output'];
|
|
141
|
+
networkShortName: Scalars['String']['output'];
|
|
142
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
143
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
144
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
145
|
+
};
|
|
146
|
+
|
|
127
147
|
/** Wallet balance of a token. */
|
|
128
148
|
export type Balance = {
|
|
129
149
|
__typename?: 'Balance';
|
|
150
|
+
/** The wallet address. */
|
|
151
|
+
address: Scalars['String']['output'];
|
|
130
152
|
/** The balance held by the wallet. */
|
|
131
153
|
balance: Scalars['String']['output'];
|
|
132
|
-
/** The time that this address first held a token */
|
|
154
|
+
/** The time that this address first held a token. */
|
|
133
155
|
firstHeldTimestamp?: Maybe<Scalars['Int']['output']>;
|
|
156
|
+
/** The wallet network. */
|
|
157
|
+
networkId: Scalars['Int']['output'];
|
|
134
158
|
/** The balance held by the wallet, adjusted by the number of decimals in the token. */
|
|
135
159
|
shiftedBalance: Scalars['Float']['output'];
|
|
160
|
+
/** The contract address of the token. */
|
|
161
|
+
tokenAddress: Scalars['String']['output'];
|
|
136
162
|
/** The ID of the token (`tokenAddress:networkId`). */
|
|
137
163
|
tokenId: Scalars['String']['output'];
|
|
138
164
|
/** The ID of the wallet (`walletAddress:networkId`). */
|
|
@@ -146,8 +172,12 @@ export type BalancesInput = {
|
|
|
146
172
|
filterToken?: InputMaybe<Scalars['String']['input']>;
|
|
147
173
|
/** If set to true, native tokens in the response, they will have the id: native:<networkId> */
|
|
148
174
|
includeNative?: InputMaybe<Scalars['Boolean']['input']>;
|
|
175
|
+
/** The maximum number of holdings to return. */
|
|
176
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
177
|
+
/** The wallet address to filter by. */
|
|
178
|
+
walletAddress?: InputMaybe<Scalars['String']['input']>;
|
|
149
179
|
/** The ID of the wallet (`walletAddress:networkId`). */
|
|
150
|
-
walletId
|
|
180
|
+
walletId?: InputMaybe<Scalars['String']['input']>;
|
|
151
181
|
};
|
|
152
182
|
|
|
153
183
|
export type BalancesResponse = {
|
|
@@ -891,7 +921,7 @@ export type EnhancedToken = {
|
|
|
891
921
|
info?: Maybe<TokenInfo>;
|
|
892
922
|
/** Whether the token has been flagged as a scam. */
|
|
893
923
|
isScam?: Maybe<Scalars['Boolean']['output']>;
|
|
894
|
-
/**
|
|
924
|
+
/** The launchpad data for the token, if applicable. */
|
|
895
925
|
launchpad?: Maybe<LaunchpadData>;
|
|
896
926
|
/** Whether or not the token is mintable */
|
|
897
927
|
mintable?: Maybe<Scalars['String']['output']>;
|
|
@@ -915,6 +945,13 @@ export type EnhancedToken = {
|
|
|
915
945
|
totalSupply?: Maybe<Scalars['String']['output']>;
|
|
916
946
|
};
|
|
917
947
|
|
|
948
|
+
export enum Entitlement {
|
|
949
|
+
BalanceFeed = 'BalanceFeed',
|
|
950
|
+
PriceFeed = 'PriceFeed',
|
|
951
|
+
TopTraders = 'TopTraders',
|
|
952
|
+
WalletStats = 'WalletStats'
|
|
953
|
+
}
|
|
954
|
+
|
|
918
955
|
/** A token transaction. */
|
|
919
956
|
export type Event = {
|
|
920
957
|
__typename?: 'Event';
|
|
@@ -1075,6 +1112,8 @@ export type EventsQueryInput = {
|
|
|
1075
1112
|
priceUsdTotal?: InputMaybe<NumberFilter>;
|
|
1076
1113
|
/** The token of interest. Can be `token0` or `token1`. */
|
|
1077
1114
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
1115
|
+
/** Specify the type of symbol you want to fetch values for (TOKEN | POOL) */
|
|
1116
|
+
symbolType?: InputMaybe<SymbolType>;
|
|
1078
1117
|
/** The time range to filter by. */
|
|
1079
1118
|
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1080
1119
|
};
|
|
@@ -1343,6 +1382,8 @@ export type GetNetworkStatsResponse = {
|
|
|
1343
1382
|
transactions1: Scalars['Int']['output'];
|
|
1344
1383
|
/** The unique number of transactions in the past 4 hours. */
|
|
1345
1384
|
transactions4: Scalars['Int']['output'];
|
|
1385
|
+
/** The unique number of transactions in the past 5 minutes. */
|
|
1386
|
+
transactions5m: Scalars['Int']['output'];
|
|
1346
1387
|
/** The unique number of transactions in the past 12 hours. */
|
|
1347
1388
|
transactions12: Scalars['Int']['output'];
|
|
1348
1389
|
/** The unique number of transactions in the past 24 hours. */
|
|
@@ -1351,10 +1392,22 @@ export type GetNetworkStatsResponse = {
|
|
|
1351
1392
|
volume1: Scalars['Float']['output'];
|
|
1352
1393
|
/** The network trade volume in USD over the past 4 hours. */
|
|
1353
1394
|
volume4: Scalars['Float']['output'];
|
|
1395
|
+
/** The network trade volume in USD over the past 5 minutes. */
|
|
1396
|
+
volume5m: Scalars['Float']['output'];
|
|
1354
1397
|
/** The network trade volume in USD over the past 12 hours. */
|
|
1355
1398
|
volume12: Scalars['Float']['output'];
|
|
1356
1399
|
/** The network trade volume in USD over the past 24 hours. */
|
|
1357
1400
|
volume24: Scalars['Float']['output'];
|
|
1401
|
+
/** The network trade volume change over the last hour */
|
|
1402
|
+
volumeChange1: Scalars['Float']['output'];
|
|
1403
|
+
/** The network trade volume change over the last 4 hours */
|
|
1404
|
+
volumeChange4: Scalars['Float']['output'];
|
|
1405
|
+
/** The network trade volume change over the last 5 minutes */
|
|
1406
|
+
volumeChange5m: Scalars['Float']['output'];
|
|
1407
|
+
/** The network trade volume change over the last 12 hours */
|
|
1408
|
+
volumeChange12: Scalars['Float']['output'];
|
|
1409
|
+
/** The network trade volume change over the last 24 hours */
|
|
1410
|
+
volumeChange24: Scalars['Float']['output'];
|
|
1358
1411
|
};
|
|
1359
1412
|
|
|
1360
1413
|
/** Response returned by `getNftPoolCollectionsByExchange`. */
|
|
@@ -1691,7 +1744,6 @@ export type LatestTokenSimResults = {
|
|
|
1691
1744
|
sellTax?: Maybe<Scalars['String']['output']>;
|
|
1692
1745
|
};
|
|
1693
1746
|
|
|
1694
|
-
/** Launchpad data for the token */
|
|
1695
1747
|
export type LaunchpadData = {
|
|
1696
1748
|
__typename?: 'LaunchpadData';
|
|
1697
1749
|
/** Indicates if the launchpad is completed. */
|
|
@@ -1714,6 +1766,49 @@ export type LaunchpadData = {
|
|
|
1714
1766
|
poolAddress?: Maybe<Scalars['String']['output']>;
|
|
1715
1767
|
};
|
|
1716
1768
|
|
|
1769
|
+
/** Response returned by `onLaunchpadTokenEvent`. */
|
|
1770
|
+
export type LaunchpadTokenEventOutput = {
|
|
1771
|
+
__typename?: 'LaunchpadTokenEventOutput';
|
|
1772
|
+
/** The contract address of the token. */
|
|
1773
|
+
address: Scalars['String']['output'];
|
|
1774
|
+
/** The number of buys in the last 24 hours. */
|
|
1775
|
+
buyCount1?: Maybe<Scalars['Int']['output']>;
|
|
1776
|
+
/** The type of event. */
|
|
1777
|
+
eventType: LaunchpadTokenEventType;
|
|
1778
|
+
/** The number of holders. */
|
|
1779
|
+
holders?: Maybe<Scalars['Int']['output']>;
|
|
1780
|
+
/** The market cap of the token. */
|
|
1781
|
+
marketCap?: Maybe<Scalars['String']['output']>;
|
|
1782
|
+
/** The network ID that the token is deployed on. */
|
|
1783
|
+
networkId: Scalars['Int']['output'];
|
|
1784
|
+
/** The price of the token. */
|
|
1785
|
+
price?: Maybe<Scalars['Float']['output']>;
|
|
1786
|
+
/** The protocol of the token. */
|
|
1787
|
+
protocol: Scalars['String']['output'];
|
|
1788
|
+
/** The number of sells in the last 24 hours. */
|
|
1789
|
+
sellCount1?: Maybe<Scalars['Int']['output']>;
|
|
1790
|
+
/** Metadata for the token. */
|
|
1791
|
+
token: EnhancedToken;
|
|
1792
|
+
/** The number of transactions in the last 24 hours. */
|
|
1793
|
+
transactions1?: Maybe<Scalars['Int']['output']>;
|
|
1794
|
+
/** The volume of the token in the last 24 hours. */
|
|
1795
|
+
volume1?: Maybe<Scalars['Int']['output']>;
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
/** The type of event. Note that associated statistics such as `buyCount1`, `price`, etc. are only available for `Updated` events. */
|
|
1799
|
+
export enum LaunchpadTokenEventType {
|
|
1800
|
+
Completed = 'Completed',
|
|
1801
|
+
Created = 'Created',
|
|
1802
|
+
Migrated = 'Migrated',
|
|
1803
|
+
Updated = 'Updated'
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
/** The protocol of the token. */
|
|
1807
|
+
export enum LaunchpadTokenProtocol {
|
|
1808
|
+
FourMeme = 'FourMeme',
|
|
1809
|
+
Pump = 'Pump'
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1717
1812
|
export type LiquidityData = {
|
|
1718
1813
|
__typename?: 'LiquidityData';
|
|
1719
1814
|
/** The active liquidity in the pair. */
|
|
@@ -1735,8 +1830,13 @@ export type LiquidityLock = {
|
|
|
1735
1830
|
liquidityAmount: Scalars['String']['output'];
|
|
1736
1831
|
/** If the liquidity position is represented by an NFT, this will contain the NFT data. */
|
|
1737
1832
|
liquidityNftData?: Maybe<LiquidityNftData>;
|
|
1738
|
-
/**
|
|
1833
|
+
/**
|
|
1834
|
+
* The protocol that created the pair
|
|
1835
|
+
* @deprecated Use liquidityProtocolV2 instead
|
|
1836
|
+
*/
|
|
1739
1837
|
liquidityProtocol: LiquidityProtocol;
|
|
1838
|
+
/** The protocol that created the pair */
|
|
1839
|
+
liquidityProtocolV2: Scalars['String']['output'];
|
|
1740
1840
|
/** The protocol with which the liquidity is locked. */
|
|
1741
1841
|
lockProtocol: LiquidityLockProtocol;
|
|
1742
1842
|
/** The address of the locker contract. */
|
|
@@ -1788,9 +1888,11 @@ export type LiquidityNftData = {
|
|
|
1788
1888
|
|
|
1789
1889
|
/** Protocols that create trading pairs */
|
|
1790
1890
|
export enum LiquidityProtocol {
|
|
1891
|
+
PumpV1 = 'PUMP_V1',
|
|
1791
1892
|
RaydiumV4 = 'RAYDIUM_V4',
|
|
1792
1893
|
UniswapV2 = 'UNISWAP_V2',
|
|
1793
|
-
UniswapV3 = 'UNISWAP_V3'
|
|
1894
|
+
UniswapV3 = 'UNISWAP_V3',
|
|
1895
|
+
UseLiquidityProtocolV2 = 'USE_LIQUIDITY_PROTOCOL_V2'
|
|
1794
1896
|
}
|
|
1795
1897
|
|
|
1796
1898
|
/** Response returned by `listPairsWithMetadataForToken`. */
|
|
@@ -4576,9 +4678,16 @@ export type OnBarsUpdatedResponse = {
|
|
|
4576
4678
|
timestamp: Scalars['Int']['output'];
|
|
4577
4679
|
};
|
|
4578
4680
|
|
|
4579
|
-
|
|
4681
|
+
/** Input for `onLaunchpadTokenEvent`. */
|
|
4682
|
+
export type OnLaunchpadTokenEventInput = {
|
|
4683
|
+
/** The contract address of the token. */
|
|
4580
4684
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
4685
|
+
/** The type of event. */
|
|
4686
|
+
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4687
|
+
/** The network ID that the token is deployed on. */
|
|
4581
4688
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
4689
|
+
/** The protocol of the token. */
|
|
4690
|
+
protocol?: InputMaybe<LaunchpadTokenProtocol>;
|
|
4582
4691
|
};
|
|
4583
4692
|
|
|
4584
4693
|
export type OnPricesUpdatedInput = {
|
|
@@ -4617,7 +4726,7 @@ export type OnTokenBarsUpdatedResponse = {
|
|
|
4617
4726
|
|
|
4618
4727
|
export type OnTokenEventsCreatedInput = {
|
|
4619
4728
|
networkId: Scalars['Int']['input'];
|
|
4620
|
-
tokenAddress
|
|
4729
|
+
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
4621
4730
|
};
|
|
4622
4731
|
|
|
4623
4732
|
/** Response returned by `onUnconfirmedBarsUpdated`. */
|
|
@@ -4886,6 +4995,8 @@ export type PairFilters = {
|
|
|
4886
4995
|
highPrice12?: InputMaybe<NumberFilter>;
|
|
4887
4996
|
/** The highest price in USD in the past 24 hours. */
|
|
4888
4997
|
highPrice24?: InputMaybe<NumberFilter>;
|
|
4998
|
+
/** Whether to filter for pairs on testnet networks. Use `true` for testnet pairs only, `false` for mainnet pairs only and `undefined` (default) for both. */
|
|
4999
|
+
isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4889
5000
|
/** The unix timestamp for the last transaction to happen on the pair. */
|
|
4890
5001
|
lastTransaction?: InputMaybe<NumberFilter>;
|
|
4891
5002
|
/** The amount of liquidity in the pair. */
|
|
@@ -5113,6 +5224,7 @@ export enum PairRankingAttribute {
|
|
|
5113
5224
|
TrendingScore = 'trendingScore',
|
|
5114
5225
|
TrendingScore1 = 'trendingScore1',
|
|
5115
5226
|
TrendingScore4 = 'trendingScore4',
|
|
5227
|
+
TrendingScore5m = 'trendingScore5m',
|
|
5116
5228
|
TrendingScore12 = 'trendingScore12',
|
|
5117
5229
|
TrendingScore24 = 'trendingScore24',
|
|
5118
5230
|
TxnCount1 = 'txnCount1',
|
|
@@ -6040,12 +6152,13 @@ export type Query = {
|
|
|
6040
6152
|
* @deprecated This query is longer supported. Instead use filterPairs with sort order on createdAt DESC
|
|
6041
6153
|
*/
|
|
6042
6154
|
getLatestPairs?: Maybe<LatestPairConnection>;
|
|
6155
|
+
/** @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead. */
|
|
6043
6156
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6044
|
-
/** Returns metadata for a given network. */
|
|
6157
|
+
/** Returns metadata for a given network supported on Codex. */
|
|
6045
6158
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
6046
|
-
/** Returns the status of a list of networks supported on
|
|
6159
|
+
/** Returns the status of a list of networks supported on Codex. */
|
|
6047
6160
|
getNetworkStatus?: Maybe<Array<MetadataResponse>>;
|
|
6048
|
-
/** Returns a list of all networks supported on
|
|
6161
|
+
/** Returns a list of all networks supported on Codex. */
|
|
6049
6162
|
getNetworks: Array<Network>;
|
|
6050
6163
|
/** Returns a list of NFT assets in a given collection. */
|
|
6051
6164
|
getNftAssets?: Maybe<NftAssetsConnection>;
|
|
@@ -6078,7 +6191,7 @@ export type Query = {
|
|
|
6078
6191
|
/** Returns a list of Prime pools. */
|
|
6079
6192
|
getPrimePools?: Maybe<PrimePoolConnection>;
|
|
6080
6193
|
getSimulateTokenContractResults: GetSimulateTokenContractResultsConnection;
|
|
6081
|
-
/** Returns metadata for a given pair. */
|
|
6194
|
+
/** Returns charting metadata for a given pair. Used for implementing a Trading View datafeed. */
|
|
6082
6195
|
getSymbol?: Maybe<SymbolResponse>;
|
|
6083
6196
|
/** Returns transactions for a pair. */
|
|
6084
6197
|
getTokenEvents?: Maybe<EventConnection>;
|
|
@@ -6119,6 +6232,8 @@ export type Query = {
|
|
|
6119
6232
|
tokenLifecycleEvents?: Maybe<TokenLifecycleEventConnection>;
|
|
6120
6233
|
/** Returns a list of token simple chart data (sparklines) for the given tokens. */
|
|
6121
6234
|
tokenSparklines: Array<TokenSparkline>;
|
|
6235
|
+
/** Returns a list of top traders for a given token. */
|
|
6236
|
+
tokenTopTraders: TokenTopTradersConnection;
|
|
6122
6237
|
/** Returns a list of tokens by their addresses & network id, with pagination. */
|
|
6123
6238
|
tokens: Array<Maybe<EnhancedToken>>;
|
|
6124
6239
|
/** Returns the percentage of a token’s total supply held collectively by its top 10 holders. */
|
|
@@ -6583,6 +6698,11 @@ export type QueryTokenSparklinesArgs = {
|
|
|
6583
6698
|
};
|
|
6584
6699
|
|
|
6585
6700
|
|
|
6701
|
+
export type QueryTokenTopTradersArgs = {
|
|
6702
|
+
input: TokenTopTradersInput;
|
|
6703
|
+
};
|
|
6704
|
+
|
|
6705
|
+
|
|
6586
6706
|
export type QueryTokensArgs = {
|
|
6587
6707
|
ids?: InputMaybe<Array<TokenInput>>;
|
|
6588
6708
|
};
|
|
@@ -7076,6 +7196,26 @@ export type SparklineValue = {
|
|
|
7076
7196
|
value: Scalars['Float']['output'];
|
|
7077
7197
|
};
|
|
7078
7198
|
|
|
7199
|
+
export type StarknetNetworkConfig = {
|
|
7200
|
+
__typename?: 'StarknetNetworkConfig';
|
|
7201
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7202
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7203
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7204
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7205
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7206
|
+
enabled: Scalars['Boolean']['output'];
|
|
7207
|
+
id: Scalars['ID']['output'];
|
|
7208
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7209
|
+
name: Scalars['String']['output'];
|
|
7210
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7211
|
+
networkId: Scalars['Int']['output'];
|
|
7212
|
+
networkName: Scalars['String']['output'];
|
|
7213
|
+
networkShortName: Scalars['String']['output'];
|
|
7214
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7215
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7216
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7217
|
+
};
|
|
7218
|
+
|
|
7079
7219
|
/** Filter for NFT stats. */
|
|
7080
7220
|
export type StatsFilter = {
|
|
7081
7221
|
/** The percent change between the `current` and `previous`. */
|
|
@@ -7130,6 +7270,8 @@ export type StringFilter = {
|
|
|
7130
7270
|
|
|
7131
7271
|
export type Subscription = {
|
|
7132
7272
|
__typename?: 'Subscription';
|
|
7273
|
+
/** Live-streamed balance updates for a given wallet. */
|
|
7274
|
+
onBalanceUpdated: Balance;
|
|
7133
7275
|
/** Live-streamed bar chart data to track price changes over time. */
|
|
7134
7276
|
onBarsUpdated?: Maybe<OnBarsUpdatedResponse>;
|
|
7135
7277
|
/** Live-streamed bucketed stats for a given token within a pair. */
|
|
@@ -7143,6 +7285,7 @@ export type Subscription = {
|
|
|
7143
7285
|
/** Live-streamed updates for newly listed pairs. */
|
|
7144
7286
|
onLatestPairUpdated?: Maybe<LatestPair>;
|
|
7145
7287
|
onLatestTokens?: Maybe<LatestToken>;
|
|
7288
|
+
onLaunchpadTokenEvent: LaunchpadTokenEventOutput;
|
|
7146
7289
|
/** Live-streamed transactions for an NFT asset. */
|
|
7147
7290
|
onNftAssetsCreated?: Maybe<NftAsset>;
|
|
7148
7291
|
/** Live-streamed transactions for an NFT collection. */
|
|
@@ -7169,6 +7312,11 @@ export type Subscription = {
|
|
|
7169
7312
|
};
|
|
7170
7313
|
|
|
7171
7314
|
|
|
7315
|
+
export type SubscriptionOnBalanceUpdatedArgs = {
|
|
7316
|
+
walletAddress: Scalars['String']['input'];
|
|
7317
|
+
};
|
|
7318
|
+
|
|
7319
|
+
|
|
7172
7320
|
export type SubscriptionOnBarsUpdatedArgs = {
|
|
7173
7321
|
pairId?: InputMaybe<Scalars['String']['input']>;
|
|
7174
7322
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
@@ -7191,6 +7339,7 @@ export type SubscriptionOnEventLabelCreatedArgs = {
|
|
|
7191
7339
|
export type SubscriptionOnEventsCreatedArgs = {
|
|
7192
7340
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
7193
7341
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
7342
|
+
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
7194
7343
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
7195
7344
|
};
|
|
7196
7345
|
|
|
@@ -7213,6 +7362,11 @@ export type SubscriptionOnLatestTokensArgs = {
|
|
|
7213
7362
|
};
|
|
7214
7363
|
|
|
7215
7364
|
|
|
7365
|
+
export type SubscriptionOnLaunchpadTokenEventArgs = {
|
|
7366
|
+
input?: InputMaybe<OnLaunchpadTokenEventInput>;
|
|
7367
|
+
};
|
|
7368
|
+
|
|
7369
|
+
|
|
7216
7370
|
export type SubscriptionOnNftAssetsCreatedArgs = {
|
|
7217
7371
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
7218
7372
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -7261,6 +7415,7 @@ export type SubscriptionOnSimulateTokenContractArgs = {
|
|
|
7261
7415
|
|
|
7262
7416
|
|
|
7263
7417
|
export type SubscriptionOnTokenBarsUpdatedArgs = {
|
|
7418
|
+
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
7264
7419
|
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
7265
7420
|
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
7266
7421
|
};
|
|
@@ -7693,6 +7848,8 @@ export type TokenFilters = {
|
|
|
7693
7848
|
exchangeId?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
7694
7849
|
/** @deprecated FDV isn't supported - use marketCap instead */
|
|
7695
7850
|
fdv?: InputMaybe<NumberFilter>;
|
|
7851
|
+
/** The token in freezable */
|
|
7852
|
+
freezable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7696
7853
|
/** The highest price in USD in the past hour. */
|
|
7697
7854
|
high1?: InputMaybe<NumberFilter>;
|
|
7698
7855
|
/** The highest price in USD in the past 4 hours. */
|
|
@@ -7707,10 +7864,22 @@ export type TokenFilters = {
|
|
|
7707
7864
|
holders?: InputMaybe<NumberFilter>;
|
|
7708
7865
|
/** Whether to include tokens that have been flagged as scams. Default: false */
|
|
7709
7866
|
includeScams?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7867
|
+
/** Whether to filter for tokens on testnet networks. Use `true` for testnet tokens only, `false` for mainnet tokens only and `undefined` (default) for both. */
|
|
7868
|
+
isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7710
7869
|
/** Only include verified tokens */
|
|
7711
7870
|
isVerified?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7712
7871
|
/** The unix timestamp for the token's last transaction. */
|
|
7713
7872
|
lastTransaction?: InputMaybe<NumberFilter>;
|
|
7873
|
+
/** Indicates if the launchpad is completed */
|
|
7874
|
+
launchpadCompleted?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7875
|
+
/** The timestamp when the launchpad was completed */
|
|
7876
|
+
launchpadCompletedAt?: InputMaybe<NumberFilter>;
|
|
7877
|
+
/** The graduation percentage */
|
|
7878
|
+
launchpadGraduationPercent?: InputMaybe<NumberFilter>;
|
|
7879
|
+
/** Indicates if the launchpad has migrated */
|
|
7880
|
+
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7881
|
+
/** The timestamp when the launchpad was migrated */
|
|
7882
|
+
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
7714
7883
|
/** The amount of liquidity in the token's top pair. */
|
|
7715
7884
|
liquidity?: InputMaybe<NumberFilter>;
|
|
7716
7885
|
/** The lowest price in USD in the past hour. */
|
|
@@ -7725,6 +7894,8 @@ export type TokenFilters = {
|
|
|
7725
7894
|
low24?: InputMaybe<NumberFilter>;
|
|
7726
7895
|
/** The market cap of circulating supply. */
|
|
7727
7896
|
marketCap?: InputMaybe<NumberFilter>;
|
|
7897
|
+
/** The token in mintable */
|
|
7898
|
+
mintable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7728
7899
|
/** The list of network IDs to filter by. Applied in conjunction with `exchangeId` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
|
|
7729
7900
|
network?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
|
|
7730
7901
|
/** docs: hide */
|
|
@@ -8011,6 +8182,7 @@ export enum TokenRankingAttribute {
|
|
|
8011
8182
|
Change12 = 'change12',
|
|
8012
8183
|
Change24 = 'change24',
|
|
8013
8184
|
CreatedAt = 'createdAt',
|
|
8185
|
+
GraduationPercent = 'graduationPercent',
|
|
8014
8186
|
High1 = 'high1',
|
|
8015
8187
|
High4 = 'high4',
|
|
8016
8188
|
High5m = 'high5m',
|
|
@@ -8018,6 +8190,8 @@ export enum TokenRankingAttribute {
|
|
|
8018
8190
|
High24 = 'high24',
|
|
8019
8191
|
Holders = 'holders',
|
|
8020
8192
|
LastTransaction = 'lastTransaction',
|
|
8193
|
+
LaunchpadCompletedAt = 'launchpadCompletedAt',
|
|
8194
|
+
LaunchpadMigratedAt = 'launchpadMigratedAt',
|
|
8021
8195
|
Liquidity = 'liquidity',
|
|
8022
8196
|
Low1 = 'low1',
|
|
8023
8197
|
Low4 = 'low4',
|
|
@@ -8035,6 +8209,7 @@ export enum TokenRankingAttribute {
|
|
|
8035
8209
|
TrendingScore = 'trendingScore',
|
|
8036
8210
|
TrendingScore1 = 'trendingScore1',
|
|
8037
8211
|
TrendingScore4 = 'trendingScore4',
|
|
8212
|
+
TrendingScore5m = 'trendingScore5m',
|
|
8038
8213
|
TrendingScore12 = 'trendingScore12',
|
|
8039
8214
|
TrendingScore24 = 'trendingScore24',
|
|
8040
8215
|
TxnCount1 = 'txnCount1',
|
|
@@ -8095,6 +8270,72 @@ export type TokenSparklineInput = {
|
|
|
8095
8270
|
ids: Array<Scalars['String']['input']>;
|
|
8096
8271
|
};
|
|
8097
8272
|
|
|
8273
|
+
/** A top trader for a token. */
|
|
8274
|
+
export type TokenTopTrader = {
|
|
8275
|
+
__typename?: 'TokenTopTrader';
|
|
8276
|
+
/** The amount of tokens bought in USD. */
|
|
8277
|
+
amountBoughtUsd: Scalars['String']['output'];
|
|
8278
|
+
/** The amount of tokens sold in USD. */
|
|
8279
|
+
amountSoldUsd: Scalars['String']['output'];
|
|
8280
|
+
/** The number of buys. */
|
|
8281
|
+
buys: Scalars['Int']['output'];
|
|
8282
|
+
/** The unix timestamp for the first transaction from this wallet. */
|
|
8283
|
+
firstTransactionAt?: Maybe<Scalars['Int']['output']>;
|
|
8284
|
+
/** The unix timestamp for the last transaction from this wallet. */
|
|
8285
|
+
lastTransactionAt: Scalars['Int']['output'];
|
|
8286
|
+
/** The network ID. */
|
|
8287
|
+
networkId: Scalars['Int']['output'];
|
|
8288
|
+
/** The realized profit percentage. */
|
|
8289
|
+
realizedProfitPercentage: Scalars['Float']['output'];
|
|
8290
|
+
/** The realized profit in USD. */
|
|
8291
|
+
realizedProfitUsd: Scalars['String']['output'];
|
|
8292
|
+
/** The number of sells. */
|
|
8293
|
+
sells: Scalars['Int']['output'];
|
|
8294
|
+
/** The single token acquisition cost in USD. */
|
|
8295
|
+
singleTokenAcquisitionCostUsd: Scalars['String']['output'];
|
|
8296
|
+
/** The token address. */
|
|
8297
|
+
tokenAddress: Scalars['String']['output'];
|
|
8298
|
+
/** The amount of tokens bought. */
|
|
8299
|
+
tokenAmountBought: Scalars['String']['output'];
|
|
8300
|
+
/** The amount of tokens sold. */
|
|
8301
|
+
tokenAmountSold: Scalars['String']['output'];
|
|
8302
|
+
/** The token balance of the trader. */
|
|
8303
|
+
tokenBalance: Scalars['String']['output'];
|
|
8304
|
+
/** The volume of tokens bought and sold in USD. */
|
|
8305
|
+
volumeUsd: Scalars['String']['output'];
|
|
8306
|
+
/** The wallet address of the trader. */
|
|
8307
|
+
walletAddress: Scalars['String']['output'];
|
|
8308
|
+
};
|
|
8309
|
+
|
|
8310
|
+
/** A paginated list of top traders for a token. */
|
|
8311
|
+
export type TokenTopTradersConnection = {
|
|
8312
|
+
__typename?: 'TokenTopTradersConnection';
|
|
8313
|
+
/** The list of top traders. */
|
|
8314
|
+
items: Array<Maybe<TokenTopTrader>>;
|
|
8315
|
+
/** The network ID. */
|
|
8316
|
+
networkId: Scalars['Int']['output'];
|
|
8317
|
+
/** The offset of the first trader in the connection. */
|
|
8318
|
+
offset?: Maybe<Scalars['Int']['output']>;
|
|
8319
|
+
/** The token address. */
|
|
8320
|
+
tokenAddress: Scalars['String']['output'];
|
|
8321
|
+
/** The trading period. */
|
|
8322
|
+
tradingPeriod: TradingPeriod;
|
|
8323
|
+
};
|
|
8324
|
+
|
|
8325
|
+
/** Input arguments for the `tokenTopTraders` query. */
|
|
8326
|
+
export type TokenTopTradersInput = {
|
|
8327
|
+
/** The number of traders to return */
|
|
8328
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
8329
|
+
/** The network ID */
|
|
8330
|
+
networkId: Scalars['Int']['input'];
|
|
8331
|
+
/** Where in the list the server started when returning items */
|
|
8332
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
8333
|
+
/** The token address */
|
|
8334
|
+
tokenAddress: Scalars['String']['input'];
|
|
8335
|
+
/** The trading period */
|
|
8336
|
+
tradingPeriod: TradingPeriod;
|
|
8337
|
+
};
|
|
8338
|
+
|
|
8098
8339
|
/** A token with metadata. */
|
|
8099
8340
|
export type TokenWithMetadata = {
|
|
8100
8341
|
__typename?: 'TokenWithMetadata';
|
|
@@ -8176,6 +8417,14 @@ export type TokenWithMetadata = {
|
|
|
8176
8417
|
volume: Scalars['String']['output'];
|
|
8177
8418
|
};
|
|
8178
8419
|
|
|
8420
|
+
/** A time period used when calculating wallet trading data. */
|
|
8421
|
+
export enum TradingPeriod {
|
|
8422
|
+
Day = 'DAY',
|
|
8423
|
+
Month = 'MONTH',
|
|
8424
|
+
Week = 'WEEK',
|
|
8425
|
+
Year = 'YEAR'
|
|
8426
|
+
}
|
|
8427
|
+
|
|
8179
8428
|
/** An unconfirmed token transaction. */
|
|
8180
8429
|
export type UnconfirmedEvent = {
|
|
8181
8430
|
__typename?: 'UnconfirmedEvent';
|