@codex-data/sdk 1.0.36 → 1.0.37
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 +69 -14
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +5 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/scripts/generateNetworkConfigs.js +6 -1
- package/dist/scripts/generateNetworkConfigs.js.map +1 -1
- package/dist/sdk/Subscribe.js +5 -5
- package/dist/sdk/generated/gql.d.ts +24 -24
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +12 -12
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +95 -14
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +17 -14
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/FilterPairs.graphql +1 -0
- package/src/resources/generated_queries/FilterTokens.graphql +9 -0
- package/src/resources/generated_queries/GetBars.graphql +1 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +1 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +1 -0
- package/src/resources/generated_queries/GetTokenPrices.graphql +1 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +1 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +1 -0
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +7 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +10 -2
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
- package/src/resources/graphql.schema.json +340 -16
- package/src/resources/graphql.ts +69 -14
- package/src/resources/networkConfigs.json +33 -2
- package/src/resources/schema.graphql +72 -16
- package/src/scripts/generateNetworkConfigs.ts +10 -1
- package/src/sdk/Subscribe.ts +5 -5
- package/src/sdk/generated/gql.ts +36 -36
- package/src/sdk/generated/graphql.ts +93 -37
package/src/resources/graphql.ts
CHANGED
|
@@ -1627,6 +1627,8 @@ export type GetNftPoolsResponse = {
|
|
|
1627
1627
|
export type GetPriceInput = {
|
|
1628
1628
|
/** The contract address of the token. */
|
|
1629
1629
|
address: Scalars['String']['input'];
|
|
1630
|
+
/** The block number for the price. It must be provided in addition to the timestamp to get a per block breakdown at a specific timestamp. */
|
|
1631
|
+
blockNumber?: InputMaybe<Scalars['Int']['input']>;
|
|
1630
1632
|
/**
|
|
1631
1633
|
* The maximum number of deviations from the token's Liquidity-Weighted Mean Price. This is used to mitigate low liquidity pairs producing prices that are not representative of reality. Default is `1`.
|
|
1632
1634
|
* @deprecated This isn't taken into account anymore.
|
|
@@ -1962,12 +1964,22 @@ export type LaunchpadTokenEventOutput = {
|
|
|
1962
1964
|
__typename?: 'LaunchpadTokenEventOutput';
|
|
1963
1965
|
/** The contract address of the token. */
|
|
1964
1966
|
address: Scalars['String']['output'];
|
|
1965
|
-
/** The number of
|
|
1967
|
+
/** The number of bundlers that bought the token */
|
|
1968
|
+
bundlerCount?: Maybe<Scalars['Float']['output']>;
|
|
1969
|
+
/** The percentage of the token that is held by bundlers */
|
|
1970
|
+
bundlerHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
1971
|
+
/** The number of buys in the last hour. */
|
|
1966
1972
|
buyCount1?: Maybe<Scalars['Int']['output']>;
|
|
1973
|
+
/** The percentage of the token that is held by developers */
|
|
1974
|
+
devHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
1967
1975
|
/** The type of event. */
|
|
1968
1976
|
eventType: LaunchpadTokenEventType;
|
|
1969
1977
|
/** The number of holders. */
|
|
1970
1978
|
holders?: Maybe<Scalars['Int']['output']>;
|
|
1979
|
+
/** The number of insiders that bought the token */
|
|
1980
|
+
insiderCount?: Maybe<Scalars['Float']['output']>;
|
|
1981
|
+
/** The percentage of the token that is held by insiders */
|
|
1982
|
+
insiderHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
1971
1983
|
/** The name of the launchpad. */
|
|
1972
1984
|
launchpadName: Scalars['String']['output'];
|
|
1973
1985
|
/** The liquidity of the token's top pair. */
|
|
@@ -1980,13 +1992,17 @@ export type LaunchpadTokenEventOutput = {
|
|
|
1980
1992
|
price?: Maybe<Scalars['Float']['output']>;
|
|
1981
1993
|
/** The protocol of the token. */
|
|
1982
1994
|
protocol: Scalars['String']['output'];
|
|
1983
|
-
/** The number of sells in the last
|
|
1995
|
+
/** The number of sells in the last hour. */
|
|
1984
1996
|
sellCount1?: Maybe<Scalars['Int']['output']>;
|
|
1997
|
+
/** The number of snipers that bought the token */
|
|
1998
|
+
sniperCount?: Maybe<Scalars['Float']['output']>;
|
|
1999
|
+
/** The percentage of the token that is held by snipers */
|
|
2000
|
+
sniperHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
1985
2001
|
/** Metadata for the token. */
|
|
1986
2002
|
token: EnhancedToken;
|
|
1987
|
-
/** The number of transactions in the last
|
|
2003
|
+
/** The number of transactions in the last hour. */
|
|
1988
2004
|
transactions1?: Maybe<Scalars['Int']['output']>;
|
|
1989
|
-
/** The volume of the token in the last
|
|
2005
|
+
/** The volume of the token in the last hour. */
|
|
1990
2006
|
volume1?: Maybe<Scalars['Int']['output']>;
|
|
1991
2007
|
};
|
|
1992
2008
|
|
|
@@ -2030,6 +2046,8 @@ export enum LaunchpadTokenProtocol {
|
|
|
2030
2046
|
MeteoraDbc = 'MeteoraDBC',
|
|
2031
2047
|
/** Protocol name for Moonit (formerly Moonshot). */
|
|
2032
2048
|
Moonit = 'Moonit',
|
|
2049
|
+
/** Protocol name for Printr (EVM only - Printr tokens on Solana should be queried with launchpadName as Printr uses MeteoraDBC on Solana). */
|
|
2050
|
+
Printr = 'Printr',
|
|
2033
2051
|
/** Protocol name for Pump.fun. */
|
|
2034
2052
|
Pump = 'Pump',
|
|
2035
2053
|
/** Protocol name for Rainbow. */
|
|
@@ -5164,9 +5182,9 @@ export type OnEventsCreatedByMakerInput = {
|
|
|
5164
5182
|
export type OnLaunchpadTokenEventBatchInput = {
|
|
5165
5183
|
/** The type of event. */
|
|
5166
5184
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
5167
|
-
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5185
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
|
|
5168
5186
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
5169
|
-
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5187
|
+
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
|
|
5170
5188
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5171
5189
|
/** The network ID that the token is deployed on. */
|
|
5172
5190
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5182,9 +5200,9 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
5182
5200
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
5183
5201
|
/** The type of event. */
|
|
5184
5202
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
5185
|
-
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5203
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
|
|
5186
5204
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
5187
|
-
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
5205
|
+
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
|
|
5188
5206
|
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5189
5207
|
/** The network ID that the token is deployed on. */
|
|
5190
5208
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -6158,6 +6176,8 @@ export type Price = {
|
|
|
6158
6176
|
__typename?: 'Price';
|
|
6159
6177
|
/** The contract address of the token. */
|
|
6160
6178
|
address: Scalars['String']['output'];
|
|
6179
|
+
/** The pool that emitted the swap generating this price */
|
|
6180
|
+
blockNumber?: Maybe<Scalars['Int']['output']>;
|
|
6161
6181
|
/**
|
|
6162
6182
|
* Ratio of how confident we are in the price
|
|
6163
6183
|
* @deprecated Pricing no longer based on specific pools
|
|
@@ -6776,6 +6796,7 @@ export type Query = {
|
|
|
6776
6796
|
* @deprecated This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.
|
|
6777
6797
|
*/
|
|
6778
6798
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
6799
|
+
/** Returns a list of network configurations. */
|
|
6779
6800
|
getNetworkConfigs: Array<NetworkConfig>;
|
|
6780
6801
|
/** Returns metadata for a given network supported on Codex. */
|
|
6781
6802
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
@@ -7825,6 +7846,7 @@ export type SubscriptionOnNftPoolEventsCreatedArgs = {
|
|
|
7825
7846
|
export type SubscriptionOnPairMetadataUpdatedArgs = {
|
|
7826
7847
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
7827
7848
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
7849
|
+
useNonLiquidityTokenAsQuoteToken?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7828
7850
|
};
|
|
7829
7851
|
|
|
7830
7852
|
|
|
@@ -8151,6 +8173,10 @@ export type TokenFilterResult = {
|
|
|
8151
8173
|
__typename?: 'TokenFilterResult';
|
|
8152
8174
|
/** @deprecated Age isn't supported - use createdAt instead */
|
|
8153
8175
|
age?: Maybe<Scalars['Int']['output']>;
|
|
8176
|
+
/** The number of wallets that have bundled the token */
|
|
8177
|
+
bundlerCount?: Maybe<Scalars['Int']['output']>;
|
|
8178
|
+
/** The percentage of tokens held by bundlers */
|
|
8179
|
+
bundlerHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
8154
8180
|
/** The number of buys in the past hour. */
|
|
8155
8181
|
buyCount1?: Maybe<Scalars['Int']['output']>;
|
|
8156
8182
|
/** The number of buys in the past 4 hours. */
|
|
@@ -8185,6 +8211,8 @@ export type TokenFilterResult = {
|
|
|
8185
8211
|
circulatingMarketCap?: Maybe<Scalars['String']['output']>;
|
|
8186
8212
|
/** The unix timestamp for the creation of the token's first pair. */
|
|
8187
8213
|
createdAt?: Maybe<Scalars['Int']['output']>;
|
|
8214
|
+
/** The percentage of tokens held by the dev */
|
|
8215
|
+
devHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
8188
8216
|
/** The exchanges the token is listed on. */
|
|
8189
8217
|
exchanges?: Maybe<Array<Maybe<Exchange>>>;
|
|
8190
8218
|
/** @deprecated FDV isn't supported - use marketCap instead */
|
|
@@ -8201,6 +8229,10 @@ export type TokenFilterResult = {
|
|
|
8201
8229
|
high24?: Maybe<Scalars['String']['output']>;
|
|
8202
8230
|
/** The number of different wallets holding the token. */
|
|
8203
8231
|
holders?: Maybe<Scalars['Int']['output']>;
|
|
8232
|
+
/** The number of wallets that have been an insider of the token */
|
|
8233
|
+
insiderCount?: Maybe<Scalars['Int']['output']>;
|
|
8234
|
+
/** The percentage of tokens held by insiders */
|
|
8235
|
+
insiderHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
8204
8236
|
/** Whether the token has been flagged as a scam. */
|
|
8205
8237
|
isScam?: Maybe<Scalars['Boolean']['output']>;
|
|
8206
8238
|
/** The unix timestamp for the token's last transaction. */
|
|
@@ -8251,6 +8283,10 @@ export type TokenFilterResult = {
|
|
|
8251
8283
|
sellVolume12?: Maybe<Scalars['String']['output']>;
|
|
8252
8284
|
/** The sell volume in USD in the past 24 hours. */
|
|
8253
8285
|
sellVolume24?: Maybe<Scalars['String']['output']>;
|
|
8286
|
+
/** The number of wallets that have sniped the token */
|
|
8287
|
+
sniperCount?: Maybe<Scalars['Int']['output']>;
|
|
8288
|
+
/** The percentage of tokens held by snipers */
|
|
8289
|
+
sniperHeldPercentage?: Maybe<Scalars['Float']['output']>;
|
|
8254
8290
|
/** The percentage of wallets that are less than 1d old that have traded in the last 24h */
|
|
8255
8291
|
swapPct1dOldWallet?: Maybe<Scalars['String']['output']>;
|
|
8256
8292
|
/** The percentage of wallets that are less than 7d old that have traded in the last 24h */
|
|
@@ -8327,6 +8363,10 @@ export type TokenFilterResult = {
|
|
|
8327
8363
|
export type TokenFilters = {
|
|
8328
8364
|
/** @deprecated Age isn't supported - use createdAt instead */
|
|
8329
8365
|
age?: InputMaybe<NumberFilter>;
|
|
8366
|
+
/** Filter by number of wallets that have bundled the token */
|
|
8367
|
+
bundlerCount?: InputMaybe<NumberFilter>;
|
|
8368
|
+
/** Filter by percentage of tokens held by bundlers */
|
|
8369
|
+
bundlerHeldPercentage?: InputMaybe<NumberFilter>;
|
|
8330
8370
|
/** The number of buys in the past hour. */
|
|
8331
8371
|
buyCount1?: InputMaybe<NumberFilter>;
|
|
8332
8372
|
/** The number of buys in the past 4 hours. */
|
|
@@ -8363,6 +8403,8 @@ export type TokenFilters = {
|
|
|
8363
8403
|
createdAt?: InputMaybe<NumberFilter>;
|
|
8364
8404
|
/** The address of the creator of the token. */
|
|
8365
8405
|
creatorAddress?: InputMaybe<Scalars['String']['input']>;
|
|
8406
|
+
/** Filter by percentage of tokens held by the dev */
|
|
8407
|
+
devHeldPercentage?: InputMaybe<NumberFilter>;
|
|
8366
8408
|
/** The list of exchange contract addresses to filter by. */
|
|
8367
8409
|
exchangeAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
8368
8410
|
/** The list of exchange contract IDs to filter by. Applied in conjunction with `network` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
|
|
@@ -8385,6 +8427,10 @@ export type TokenFilters = {
|
|
|
8385
8427
|
holders?: InputMaybe<NumberFilter>;
|
|
8386
8428
|
/** Whether to include tokens that have been flagged as scams. Default: false */
|
|
8387
8429
|
includeScams?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8430
|
+
/** Filter by number of wallets that have been an insider of the token */
|
|
8431
|
+
insiderCount?: InputMaybe<NumberFilter>;
|
|
8432
|
+
/** Filter by percentage of tokens held by insiders */
|
|
8433
|
+
insiderHeldPercentage?: InputMaybe<NumberFilter>;
|
|
8388
8434
|
/** Whether to filter for tokens on testnet networks. Use `true` for testnet tokens only, `false` for mainnet tokens only and `undefined` (default) for both. */
|
|
8389
8435
|
isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8390
8436
|
/** Only include verified tokens */
|
|
@@ -8401,7 +8447,7 @@ export type TokenFilters = {
|
|
|
8401
8447
|
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8402
8448
|
/** The timestamp when the launchpad was migrated */
|
|
8403
8449
|
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
8404
|
-
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
8450
|
+
/** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
|
|
8405
8451
|
launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
8406
8452
|
/** A list of launchpad protocols. */
|
|
8407
8453
|
launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -8447,10 +8493,16 @@ export type TokenFilters = {
|
|
|
8447
8493
|
sellVolume12?: InputMaybe<NumberFilter>;
|
|
8448
8494
|
/** The sell volume in USD in the past 24 hours. */
|
|
8449
8495
|
sellVolume24?: InputMaybe<NumberFilter>;
|
|
8496
|
+
/** Filter by number of wallets that have sniped the token */
|
|
8497
|
+
sniperCount?: InputMaybe<NumberFilter>;
|
|
8498
|
+
/** Filter by percentage of tokens held by snipers */
|
|
8499
|
+
sniperHeldPercentage?: InputMaybe<NumberFilter>;
|
|
8450
8500
|
/** The percentage of wallets that are less than 1d old that have traded in the last 24h */
|
|
8451
8501
|
swapPct1dOldWallet?: InputMaybe<NumberFilter>;
|
|
8452
8502
|
/** The percentage of wallets that are less than 7d old that have traded in the last 24h */
|
|
8453
8503
|
swapPct7dOldWallet?: InputMaybe<NumberFilter>;
|
|
8504
|
+
/** The unix timestamp for the creation of the token. */
|
|
8505
|
+
tokenCreatedAt?: InputMaybe<NumberFilter>;
|
|
8454
8506
|
/** Whether to ignore pairs/tokens not relevant to trending. This is done checking against a few factors and ignoring uninteresting tokens like stables / network tokens. If you want all tokens regardless of these checks, then don't include this field. (default) If you want only tokens that fail the trending ignore checks, then set it to `true`. (i.e. stablecoins, rugs, network base tokens) If you want only tokens that pass the trending ignore checks, then set it to `false`. */
|
|
8455
8507
|
trendingIgnored?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8456
8508
|
/** The number of transactions in the past hour. */
|
|
@@ -8762,6 +8814,7 @@ export enum TokenRankingAttribute {
|
|
|
8762
8814
|
SellVolume24 = 'sellVolume24',
|
|
8763
8815
|
SwapPct1dOldWallet = 'swapPct1dOldWallet',
|
|
8764
8816
|
SwapPct7dOldWallet = 'swapPct7dOldWallet',
|
|
8817
|
+
TokenCreatedAt = 'tokenCreatedAt',
|
|
8765
8818
|
TrendingScore = 'trendingScore',
|
|
8766
8819
|
TrendingScore1 = 'trendingScore1',
|
|
8767
8820
|
TrendingScore4 = 'trendingScore4',
|
|
@@ -8955,7 +9008,7 @@ export type TokenWalletFilterResult = {
|
|
|
8955
9008
|
lastTransactionAt: Scalars['Int']['output'];
|
|
8956
9009
|
/** The network ID */
|
|
8957
9010
|
networkId: Scalars['Int']['output'];
|
|
8958
|
-
/** The
|
|
9011
|
+
/** The total balance of tokens that the user has bought or sold. This value does not include tokens acquired through external transfers or unsupported methods. */
|
|
8959
9012
|
purchasedTokenBalance: Scalars['String']['output'];
|
|
8960
9013
|
/** Realized profit percentage in the past day */
|
|
8961
9014
|
realizedProfitPercentage1d: Scalars['Float']['output'];
|
|
@@ -9021,9 +9074,9 @@ export type TokenWalletFilterResult = {
|
|
|
9021
9074
|
tokenAmountSoldAll1y: Scalars['String']['output'];
|
|
9022
9075
|
/** Token amount sold all in the past 30 days */
|
|
9023
9076
|
tokenAmountSoldAll30d: Scalars['String']['output'];
|
|
9024
|
-
/** The
|
|
9077
|
+
/** The total balance of tokens held by the user, reflecting the most recent update to the record. This balance includes all tokens, even those transferred in through unsupported methods or DEXs that are not tracked by our system. This value does not update with every transfer and can be slightly stale. Use tokenBalanceLive for live data. */
|
|
9025
9078
|
tokenBalance: Scalars['String']['output'];
|
|
9026
|
-
/** The current token balance in the wallet. */
|
|
9079
|
+
/** The current token balance in the wallet. This value is updated with every transfer and is therefore more accurate than tokenBalance. */
|
|
9027
9080
|
tokenBalanceLive?: Maybe<Scalars['String']['output']>;
|
|
9028
9081
|
/** The current USD value of the token balance. */
|
|
9029
9082
|
tokenBalanceLiveUsd?: Maybe<Scalars['String']['output']>;
|
|
@@ -9237,6 +9290,8 @@ export type UnconfirmedSwapEventData = {
|
|
|
9237
9290
|
|
|
9238
9291
|
export type UniswapV4Data = {
|
|
9239
9292
|
__typename?: 'UniswapV4Data';
|
|
9293
|
+
/** Whether the pool uses a dynamic fee. A fee of 0x80000 is used by Uniswap V4 to indicate a dynamic pool -- in such cases, the fee percentage on the pair should be disregarded. */
|
|
9294
|
+
isDynamicFee?: Maybe<Scalars['Boolean']['output']>;
|
|
9240
9295
|
/** Whether the token is the network token for the Uniswap V4 pool. */
|
|
9241
9296
|
isToken0NetworkToken?: Maybe<Scalars['Boolean']['output']>;
|
|
9242
9297
|
type: Scalars['String']['output'];
|
|
@@ -10040,7 +10095,7 @@ export enum WalletTokenRankingAttribute {
|
|
|
10040
10095
|
FirstTransactionAt = 'firstTransactionAt',
|
|
10041
10096
|
/** The last transaction timestamp */
|
|
10042
10097
|
LastTransactionAt = 'lastTransactionAt',
|
|
10043
|
-
/**
|
|
10098
|
+
/** The total balance of tokens that the user has bought or sold. This value does not include tokens acquired through external transfers or unsupported methods. */
|
|
10044
10099
|
PurchasedTokenBalance = 'purchasedTokenBalance',
|
|
10045
10100
|
/** Realized profit percentage in the past day */
|
|
10046
10101
|
RealizedProfitPercentage1d = 'realizedProfitPercentage1d',
|
|
@@ -10086,7 +10141,7 @@ export enum WalletTokenRankingAttribute {
|
|
|
10086
10141
|
TokenAmountSold1y = 'tokenAmountSold1y',
|
|
10087
10142
|
/** Token amount sold in the past 30 days */
|
|
10088
10143
|
TokenAmountSold30d = 'tokenAmountSold30d',
|
|
10089
|
-
/**
|
|
10144
|
+
/** The total balance of tokens held by the user, reflecting the most recent update to the record. This balance includes all tokens, even those transferred in through unsupported methods or DEXs that are not tracked by our system. */
|
|
10090
10145
|
TokenBalance = 'tokenBalance'
|
|
10091
10146
|
}
|
|
10092
10147
|
|
|
@@ -1581,6 +1581,37 @@
|
|
|
1581
1581
|
"baseTokenName": "Wrapped KAI",
|
|
1582
1582
|
"baseTokenDecimals": 18
|
|
1583
1583
|
},
|
|
1584
|
+
{
|
|
1585
|
+
"__typename": "EvmNetworkConfig",
|
|
1586
|
+
"id": "747474",
|
|
1587
|
+
"networkType": "EVM",
|
|
1588
|
+
"networkId": 747474,
|
|
1589
|
+
"name": "katana",
|
|
1590
|
+
"enabled": true,
|
|
1591
|
+
"newTokensEnabled": false,
|
|
1592
|
+
"mainnet": true,
|
|
1593
|
+
"wrappedBaseTokenSymbol": "vbETH",
|
|
1594
|
+
"baseTokenSymbol": "ETH",
|
|
1595
|
+
"baseTokenAddress": "0xee7d8bcfb72bc1880d0cf19822eb0a2e6577ab62",
|
|
1596
|
+
"defaultPairAddress": "0xdfc0ba24be7f93bf1a9401635815ece4cc579282",
|
|
1597
|
+
"defaultPairQuoteToken": "token0",
|
|
1598
|
+
"stableCoinAddresses": [
|
|
1599
|
+
"0x203a662b0bd271a6ed5a60edfbd04bfce608fd36",
|
|
1600
|
+
"0x2dca96907fde857dd3d816880a0df407eeb2d2f2"
|
|
1601
|
+
],
|
|
1602
|
+
"networkIconUrl": "https://icons.defined.fi/networks/katana.png",
|
|
1603
|
+
"color": "#0550DB",
|
|
1604
|
+
"networkShortName": "katana",
|
|
1605
|
+
"networkName": "Katana",
|
|
1606
|
+
"explorer": {
|
|
1607
|
+
"name": "KatanaScan",
|
|
1608
|
+
"url": "https://katanascan.com/${type}/${input}",
|
|
1609
|
+
"checksummed": true,
|
|
1610
|
+
"icon": "https://icons.defined.fi/networks/katana.png"
|
|
1611
|
+
},
|
|
1612
|
+
"baseTokenName": "Vault Bridge ETH",
|
|
1613
|
+
"baseTokenDecimals": 18
|
|
1614
|
+
},
|
|
1584
1615
|
{
|
|
1585
1616
|
"__typename": "EvmNetworkConfig",
|
|
1586
1617
|
"id": "321",
|
|
@@ -1945,7 +1976,7 @@
|
|
|
1945
1976
|
"stableCoinAddresses": [
|
|
1946
1977
|
"0xf817257fed379853cde0fa4f97ab987181b1e5ea"
|
|
1947
1978
|
],
|
|
1948
|
-
"networkIconUrl": "https://icons.defined.fi/networks/monad.png",
|
|
1979
|
+
"networkIconUrl": "https://icons.defined.fi/networks/monad-testnet.png",
|
|
1949
1980
|
"color": "#836ef9",
|
|
1950
1981
|
"networkShortName": "mon-test",
|
|
1951
1982
|
"networkName": "Monad Testnet",
|
|
@@ -1953,7 +1984,7 @@
|
|
|
1953
1984
|
"name": "Monad Explorer",
|
|
1954
1985
|
"url": "https://testnet.monadexplorer.com/${type}/${input}",
|
|
1955
1986
|
"checksummed": true,
|
|
1956
|
-
"icon": "https://icons.defined.fi/networks/monad.png"
|
|
1987
|
+
"icon": "https://icons.defined.fi/networks/monad-testnet.png"
|
|
1957
1988
|
},
|
|
1958
1989
|
"baseTokenName": "Wrapped Monad",
|
|
1959
1990
|
"baseTokenDecimals": 18
|
|
@@ -29,6 +29,7 @@ type Query {
|
|
|
29
29
|
"""limit: The maximum number of webhooks to return."""
|
|
30
30
|
limit: Int
|
|
31
31
|
): GetWebhooksResponse
|
|
32
|
+
"""Returns a list of network configurations."""
|
|
32
33
|
getNetworkConfigs(
|
|
33
34
|
networkIds: [Int!]
|
|
34
35
|
): [NetworkConfig!]!
|
|
@@ -792,8 +793,10 @@ type Subscription {
|
|
|
792
793
|
onPairMetadataUpdated(
|
|
793
794
|
"""The ID of the pair (`address`:`networkId`)."""
|
|
794
795
|
id: String
|
|
795
|
-
"""The token of interest within the pair. Can be `token0` or `token1`."""
|
|
796
|
+
"""The token of interest within the pair. Can be `token0` or `token1`. If not specified, returns data for both tokens."""
|
|
796
797
|
quoteToken: QuoteToken
|
|
798
|
+
"""If true, automatically selects the non-liquidity token as the quoteToken. Ignored if quoteToken is explicitly specified."""
|
|
799
|
+
useNonLiquidityTokenAsQuoteToken: Boolean
|
|
797
800
|
): PairMetadata
|
|
798
801
|
"""Live-streamed bucketed stats for a given token within a pair."""
|
|
799
802
|
onDetailedStatsUpdated(
|
|
@@ -2355,6 +2358,8 @@ input GetPriceInput {
|
|
|
2355
2358
|
timestamp: Int
|
|
2356
2359
|
"""The address of the pool, when omitted the top pool is used."""
|
|
2357
2360
|
poolAddress: String
|
|
2361
|
+
"""The block number for the price. It must be provided in addition to the timestamp to get a per block breakdown at a specific timestamp."""
|
|
2362
|
+
blockNumber: Int
|
|
2358
2363
|
"""The maximum number of deviations from the token's Liquidity-Weighted Mean Price. This is used to mitigate low liquidity pairs producing prices that are not representative of reality. Default is `1`."""
|
|
2359
2364
|
maxDeviations: Float @deprecated(reason: "This isn't taken into account anymore.")
|
|
2360
2365
|
}
|
|
@@ -2685,7 +2690,7 @@ type LaunchpadTokenEventOutput {
|
|
|
2685
2690
|
launchpadName: String!
|
|
2686
2691
|
"""Metadata for the token."""
|
|
2687
2692
|
token: EnhancedToken!
|
|
2688
|
-
"""The number of buys in the last
|
|
2693
|
+
"""The number of buys in the last hour."""
|
|
2689
2694
|
buyCount1: Int
|
|
2690
2695
|
"""The type of event."""
|
|
2691
2696
|
eventType: LaunchpadTokenEventType!
|
|
@@ -2695,14 +2700,28 @@ type LaunchpadTokenEventOutput {
|
|
|
2695
2700
|
marketCap: String
|
|
2696
2701
|
"""The price of the token."""
|
|
2697
2702
|
price: Float
|
|
2698
|
-
"""The number of sells in the last
|
|
2703
|
+
"""The number of sells in the last hour."""
|
|
2699
2704
|
sellCount1: Int
|
|
2700
|
-
"""The volume of the token in the last
|
|
2705
|
+
"""The volume of the token in the last hour."""
|
|
2701
2706
|
volume1: Int
|
|
2702
|
-
"""The number of transactions in the last
|
|
2707
|
+
"""The number of transactions in the last hour."""
|
|
2703
2708
|
transactions1: Int
|
|
2704
2709
|
"""The liquidity of the token's top pair."""
|
|
2705
2710
|
liquidity: String
|
|
2711
|
+
"""The number of snipers that bought the token"""
|
|
2712
|
+
sniperCount: Float
|
|
2713
|
+
"""The percentage of the token that is held by snipers"""
|
|
2714
|
+
sniperHeldPercentage: Float
|
|
2715
|
+
"""The number of bundlers that bought the token"""
|
|
2716
|
+
bundlerCount: Float
|
|
2717
|
+
"""The percentage of the token that is held by bundlers"""
|
|
2718
|
+
bundlerHeldPercentage: Float
|
|
2719
|
+
"""The number of insiders that bought the token"""
|
|
2720
|
+
insiderCount: Float
|
|
2721
|
+
"""The percentage of the token that is held by insiders"""
|
|
2722
|
+
insiderHeldPercentage: Float
|
|
2723
|
+
"""The percentage of the token that is held by developers"""
|
|
2724
|
+
devHeldPercentage: Float
|
|
2706
2725
|
}
|
|
2707
2726
|
|
|
2708
2727
|
"""The type of event. Note that associated statistics such as `buyCount1`, `price`, etc. are only available for `Updated` events."""
|
|
@@ -2761,6 +2780,8 @@ enum LaunchpadTokenProtocol {
|
|
|
2761
2780
|
TokenMillV2
|
|
2762
2781
|
"""Protocol name for Clanker V4."""
|
|
2763
2782
|
ClankerV4
|
|
2783
|
+
"""Protocol name for Printr (EVM only - Printr tokens on Solana should be queried with launchpadName as Printr uses MeteoraDBC on Solana)."""
|
|
2784
|
+
Printr
|
|
2764
2785
|
}
|
|
2765
2786
|
|
|
2766
2787
|
scalar link__Import
|
|
@@ -5710,9 +5731,9 @@ input OnLaunchpadTokenEventBatchInput {
|
|
|
5710
5731
|
protocols: [LaunchpadTokenProtocol!]
|
|
5711
5732
|
"""The network ID that the token is deployed on."""
|
|
5712
5733
|
networkId: Int
|
|
5713
|
-
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
|
|
5734
|
+
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr."""
|
|
5714
5735
|
launchpadName: String
|
|
5715
|
-
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
|
|
5736
|
+
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr."""
|
|
5716
5737
|
launchpadNames: [String!]
|
|
5717
5738
|
"""The type of event."""
|
|
5718
5739
|
eventType: LaunchpadTokenEventType
|
|
@@ -5724,9 +5745,9 @@ input OnLaunchpadTokenEventInput {
|
|
|
5724
5745
|
protocol: LaunchpadTokenProtocol
|
|
5725
5746
|
"""A list of launchpad protocols."""
|
|
5726
5747
|
protocols: [LaunchpadTokenProtocol!]
|
|
5727
|
-
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
|
|
5748
|
+
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr."""
|
|
5728
5749
|
launchpadName: String
|
|
5729
|
-
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
|
|
5750
|
+
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr."""
|
|
5730
5751
|
launchpadNames: [String!]
|
|
5731
5752
|
"""The type of event."""
|
|
5732
5753
|
eventType: LaunchpadTokenEventType
|
|
@@ -6651,6 +6672,8 @@ type Price {
|
|
|
6651
6672
|
"""The unix timestamp for the price."""
|
|
6652
6673
|
timestamp: Int
|
|
6653
6674
|
"""The pool that emitted the swap generating this price"""
|
|
6675
|
+
blockNumber: Int
|
|
6676
|
+
"""The pool that emitted the swap generating this price"""
|
|
6654
6677
|
poolAddress: String @deprecated(reason: "Pricing no longer based on specific pools")
|
|
6655
6678
|
"""Ratio of how confident we are in the price"""
|
|
6656
6679
|
confidence: Float @deprecated(reason: "Pricing no longer based on specific pools")
|
|
@@ -7914,12 +7937,28 @@ type TokenFilterResult {
|
|
|
7914
7937
|
swapPct1dOldWallet: String
|
|
7915
7938
|
"""The percentage of wallets that are less than 7d old that have traded in the last 24h"""
|
|
7916
7939
|
swapPct7dOldWallet: String
|
|
7940
|
+
"""The number of wallets that have sniped the token"""
|
|
7941
|
+
sniperCount: Int
|
|
7942
|
+
"""The percentage of tokens held by snipers"""
|
|
7943
|
+
sniperHeldPercentage: Float
|
|
7944
|
+
"""The number of wallets that have bundled the token"""
|
|
7945
|
+
bundlerCount: Int
|
|
7946
|
+
"""The percentage of tokens held by bundlers"""
|
|
7947
|
+
bundlerHeldPercentage: Float
|
|
7948
|
+
"""The number of wallets that have been an insider of the token"""
|
|
7949
|
+
insiderCount: Int
|
|
7950
|
+
"""The percentage of tokens held by insiders"""
|
|
7951
|
+
insiderHeldPercentage: Float
|
|
7952
|
+
"""The percentage of tokens held by the dev"""
|
|
7953
|
+
devHeldPercentage: Float
|
|
7917
7954
|
}
|
|
7918
7955
|
|
|
7919
7956
|
"""Input type of `TokenFilters`."""
|
|
7920
7957
|
input TokenFilters {
|
|
7921
7958
|
"""The unix timestamp for the creation of the token's first pair."""
|
|
7922
7959
|
createdAt: NumberFilter
|
|
7960
|
+
"""The unix timestamp for the creation of the token."""
|
|
7961
|
+
tokenCreatedAt: NumberFilter
|
|
7923
7962
|
"""The unix timestamp for the token's last transaction."""
|
|
7924
7963
|
lastTransaction: NumberFilter
|
|
7925
7964
|
age: NumberFilter @deprecated(reason: "Age isn't supported - use createdAt instead")
|
|
@@ -8084,7 +8123,7 @@ input TokenFilters {
|
|
|
8084
8123
|
creatorAddress: String
|
|
8085
8124
|
"""A list of launchpad protocols."""
|
|
8086
8125
|
launchpadProtocol: [String!]
|
|
8087
|
-
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
|
|
8126
|
+
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr."""
|
|
8088
8127
|
launchpadName: [String!]
|
|
8089
8128
|
"""Indicates if the launchpad is completed."""
|
|
8090
8129
|
launchpadCompleted: Boolean
|
|
@@ -8108,6 +8147,20 @@ input TokenFilters {
|
|
|
8108
8147
|
swapPct1dOldWallet: NumberFilter
|
|
8109
8148
|
"""The percentage of wallets that are less than 7d old that have traded in the last 24h"""
|
|
8110
8149
|
swapPct7dOldWallet: NumberFilter
|
|
8150
|
+
"""Filter by number of wallets that have sniped the token"""
|
|
8151
|
+
sniperCount: NumberFilter
|
|
8152
|
+
"""Filter by percentage of tokens held by snipers"""
|
|
8153
|
+
sniperHeldPercentage: NumberFilter
|
|
8154
|
+
"""Filter by number of wallets that have bundled the token"""
|
|
8155
|
+
bundlerCount: NumberFilter
|
|
8156
|
+
"""Filter by percentage of tokens held by bundlers"""
|
|
8157
|
+
bundlerHeldPercentage: NumberFilter
|
|
8158
|
+
"""Filter by number of wallets that have been an insider of the token"""
|
|
8159
|
+
insiderCount: NumberFilter
|
|
8160
|
+
"""Filter by percentage of tokens held by insiders"""
|
|
8161
|
+
insiderHeldPercentage: NumberFilter
|
|
8162
|
+
"""Filter by percentage of tokens held by the dev"""
|
|
8163
|
+
devHeldPercentage: NumberFilter
|
|
8111
8164
|
}
|
|
8112
8165
|
|
|
8113
8166
|
"""Metadata for a token."""
|
|
@@ -8298,6 +8351,7 @@ input TokenRanking {
|
|
|
8298
8351
|
"""The attribute used to rank tokens."""
|
|
8299
8352
|
enum TokenRankingAttribute {
|
|
8300
8353
|
createdAt
|
|
8354
|
+
tokenCreatedAt
|
|
8301
8355
|
lastTransaction
|
|
8302
8356
|
age @deprecated(reason: "Use createdAt instead")
|
|
8303
8357
|
buyCount5m
|
|
@@ -8588,13 +8642,13 @@ type TokenWalletFilterResult {
|
|
|
8588
8642
|
sells1y: Int!
|
|
8589
8643
|
"""Number of sells all in the past year"""
|
|
8590
8644
|
sellsAll1y: Int!
|
|
8591
|
-
"""The purchased token balance"""
|
|
8592
|
-
purchasedTokenBalance: String!
|
|
8593
8645
|
"""The token acquisition cost in USD"""
|
|
8594
8646
|
tokenAcquisitionCostUsd: String!
|
|
8595
|
-
"""The
|
|
8647
|
+
"""The total balance of tokens that the user has bought or sold. This value does not include tokens acquired through external transfers or unsupported methods."""
|
|
8648
|
+
purchasedTokenBalance: String!
|
|
8649
|
+
"""The total balance of tokens held by the user, reflecting the most recent update to the record. This balance includes all tokens, even those transferred in through unsupported methods or DEXs that are not tracked by our system. This value does not update with every transfer and can be slightly stale. Use tokenBalanceLive for live data."""
|
|
8596
8650
|
tokenBalance: String!
|
|
8597
|
-
"""The current token balance in the wallet."""
|
|
8651
|
+
"""The current token balance in the wallet. This value is updated with every transfer and is therefore more accurate than tokenBalance."""
|
|
8598
8652
|
tokenBalanceLive: String
|
|
8599
8653
|
"""The current USD value of the token balance."""
|
|
8600
8654
|
tokenBalanceLiveUsd: String
|
|
@@ -8813,6 +8867,8 @@ type UniswapV4Data {
|
|
|
8813
8867
|
uniswapV4HookAddress: String
|
|
8814
8868
|
"""Whether the token is the network token for the Uniswap V4 pool."""
|
|
8815
8869
|
isToken0NetworkToken: Boolean
|
|
8870
|
+
"""Whether the pool uses a dynamic fee. A fee of 0x80000 is used by Uniswap V4 to indicate a dynamic pool -- in such cases, the fee percentage on the pair should be disregarded."""
|
|
8871
|
+
isDynamicFee: Boolean
|
|
8816
8872
|
type: String!
|
|
8817
8873
|
}
|
|
8818
8874
|
|
|
@@ -9642,9 +9698,9 @@ enum WalletTokenRankingAttribute {
|
|
|
9642
9698
|
buys1y
|
|
9643
9699
|
"""Number of sells in the past year"""
|
|
9644
9700
|
sells1y
|
|
9645
|
-
"""
|
|
9701
|
+
"""The total balance of tokens held by the user, reflecting the most recent update to the record. This balance includes all tokens, even those transferred in through unsupported methods or DEXs that are not tracked by our system."""
|
|
9646
9702
|
tokenBalance
|
|
9647
|
-
"""
|
|
9703
|
+
"""The total balance of tokens that the user has bought or sold. This value does not include tokens acquired through external transfers or unsupported methods."""
|
|
9648
9704
|
purchasedTokenBalance
|
|
9649
9705
|
"""Token acquisition cost in USD"""
|
|
9650
9706
|
tokenAcquisitionCostUsd
|
|
@@ -167,12 +167,21 @@ const getTokensQuery = gql`
|
|
|
167
167
|
}
|
|
168
168
|
`;
|
|
169
169
|
|
|
170
|
+
const EXCLUDED_NETWORK_IDS = [
|
|
171
|
+
150607357, // FOGO
|
|
172
|
+
6343, // megaeth
|
|
173
|
+
143, // monad
|
|
174
|
+
];
|
|
175
|
+
|
|
170
176
|
async function main() {
|
|
171
177
|
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
|
|
172
178
|
const data = await sdk.query<{ getNetworkConfigs: any }, {}>(
|
|
173
179
|
getNetworkConfigsQuery,
|
|
174
180
|
);
|
|
175
|
-
const networkConfigs = data.getNetworkConfigs
|
|
181
|
+
const networkConfigs = data.getNetworkConfigs.filter(
|
|
182
|
+
(config: { networkId: number }) =>
|
|
183
|
+
!EXCLUDED_NETWORK_IDS.includes(config.networkId),
|
|
184
|
+
);
|
|
176
185
|
|
|
177
186
|
// Get all base token addresses with their network IDs
|
|
178
187
|
const tokenIds: string[] = networkConfigs.map(
|
package/src/sdk/Subscribe.ts
CHANGED
|
@@ -334,7 +334,7 @@ export class Subscribe {
|
|
|
334
334
|
this.sdk.subscribe(
|
|
335
335
|
`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
336
336
|
onLaunchpadTokenEvent (input: $input) {
|
|
337
|
-
address, buyCount1, eventType, holders, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, transactions1, volume1
|
|
337
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, transactions1, volume1
|
|
338
338
|
}
|
|
339
339
|
}`,
|
|
340
340
|
vars,
|
|
@@ -345,8 +345,8 @@ export class Subscribe {
|
|
|
345
345
|
sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription>>,
|
|
346
346
|
) =>
|
|
347
347
|
this.sdk.subscribe(
|
|
348
|
-
`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
349
|
-
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken) {
|
|
348
|
+
`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
|
|
349
|
+
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
350
350
|
createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, exchangeId, fee, highPrice1, highPrice4, highPrice5m, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice4, lowPrice5m, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange4, priceChange5m, priceChange12, priceChange24, priceNonQuoteToken, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume4, volume5m, volume12, volume24
|
|
351
351
|
}
|
|
352
352
|
}`,
|
|
@@ -360,7 +360,7 @@ export class Subscribe {
|
|
|
360
360
|
this.sdk.subscribe(
|
|
361
361
|
`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
|
|
362
362
|
onPricesUpdated (input: $input) {
|
|
363
|
-
address, networkId, priceUsd, timestamp
|
|
363
|
+
address, blockNumber, networkId, priceUsd, timestamp
|
|
364
364
|
}
|
|
365
365
|
}`,
|
|
366
366
|
vars,
|
|
@@ -386,7 +386,7 @@ export class Subscribe {
|
|
|
386
386
|
this.sdk.subscribe(
|
|
387
387
|
`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
388
388
|
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|
|
389
|
-
address, networkId, priceUsd, timestamp
|
|
389
|
+
address, blockNumber, networkId, priceUsd, timestamp
|
|
390
390
|
}
|
|
391
391
|
}`,
|
|
392
392
|
vars,
|