@codex-data/sdk 1.0.31 → 1.0.34
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 +50 -40
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/Mutation.d.ts +3 -3
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +3 -3
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +50 -50
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +50 -50
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +16 -16
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +83 -83
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +2 -2
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +1 -1
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +55 -43
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +1 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/FilterTokenWallets.graphql +2 -0
- package/src/resources/graphql.schema.json +94 -187
- package/src/resources/graphql.ts +50 -43
- package/src/resources/networkConfigs.json +34 -3
- package/src/resources/queries_override/FilterTokenWallets.graphql +144 -0
- package/src/resources/schema.graphql +41 -53
- package/src/sdk/Mutation.ts +7 -7
- package/src/sdk/Query.ts +108 -108
- package/src/sdk/Subscribe.ts +153 -153
- package/src/sdk/generated/gql.ts +3 -3
- package/src/sdk/generated/graphql.ts +55 -48
|
@@ -779,7 +779,7 @@ export type DetailedPairStats = {
|
|
|
779
779
|
pairAddress: Scalars['String']['output'];
|
|
780
780
|
/** The timestamp specified as input to the query */
|
|
781
781
|
queryTimestamp?: Maybe<Scalars['Int']['output']>;
|
|
782
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
782
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
783
783
|
statsType: TokenPairStatisticsType;
|
|
784
784
|
/** The breakdown of stats over a 24 hour window. */
|
|
785
785
|
stats_day1?: Maybe<WindowedDetailedPairStats>;
|
|
@@ -852,7 +852,7 @@ export type DetailedStats = {
|
|
|
852
852
|
pairId: Scalars['String']['output'];
|
|
853
853
|
/** The timestamp specified as input to the query */
|
|
854
854
|
queryTimestamp?: Maybe<Scalars['Int']['output']>;
|
|
855
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
855
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
856
856
|
statsType: TokenPairStatisticsType;
|
|
857
857
|
/** The breakdown of stats over a 24 hour window. */
|
|
858
858
|
stats_day1?: Maybe<WindowedDetailedStats>;
|
|
@@ -1025,6 +1025,10 @@ export type EnhancedToken = {
|
|
|
1025
1025
|
imageThumbUrl?: Maybe<Scalars['String']['output']>;
|
|
1026
1026
|
/** More metadata about the token. */
|
|
1027
1027
|
info?: Maybe<TokenInfo>;
|
|
1028
|
+
/** Determines if freezable is a valid address or null value for the authority, or if the freezable state has not yet been determined. */
|
|
1029
|
+
isFreezableValid?: Maybe<Scalars['Boolean']['output']>;
|
|
1030
|
+
/** Determines if mintable is a valid address or null value for the authority, or if the mintable state has not yet been determined. */
|
|
1031
|
+
isMintableValid?: Maybe<Scalars['Boolean']['output']>;
|
|
1028
1032
|
/** Whether the token has been flagged as a scam. */
|
|
1029
1033
|
isScam?: Maybe<Scalars['Boolean']['output']>;
|
|
1030
1034
|
/** The launchpad data for the token, if applicable. */
|
|
@@ -1113,7 +1117,7 @@ export type Event = {
|
|
|
1113
1117
|
/** Response returned by `getTokenEvents`. */
|
|
1114
1118
|
export type EventConnection = {
|
|
1115
1119
|
__typename?: 'EventConnection';
|
|
1116
|
-
/** A cursor for use in pagination. */
|
|
1120
|
+
/** A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering. */
|
|
1117
1121
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
1118
1122
|
/** A list of transactions for a token's top pair. */
|
|
1119
1123
|
items?: Maybe<Array<Maybe<Event>>>;
|
|
@@ -1451,8 +1455,13 @@ export type FilterTokenWalletsInput = {
|
|
|
1451
1455
|
phrase?: InputMaybe<Scalars['String']['input']>;
|
|
1452
1456
|
/** A list of ranking attributes to apply */
|
|
1453
1457
|
rankings?: InputMaybe<Array<InputMaybe<WalletTokenRanking>>>;
|
|
1454
|
-
/**
|
|
1458
|
+
/**
|
|
1459
|
+
* The ID of the token to filter wallets for
|
|
1460
|
+
* @deprecated Use tokenIds instead
|
|
1461
|
+
*/
|
|
1455
1462
|
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
1463
|
+
/** The IDs of the tokens to filter wallets for. Maximum 50 tokenIds. If you provide more than one tokenId, you must also provide at least one walletAddress in the wallets list. */
|
|
1464
|
+
tokenIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1456
1465
|
/**
|
|
1457
1466
|
* The wallet address to filter wallets for
|
|
1458
1467
|
* @deprecated Use wallets instead
|
|
@@ -1498,7 +1507,7 @@ export type GetDetailedPairsStatsInput = {
|
|
|
1498
1507
|
networkId: Scalars['Int']['input'];
|
|
1499
1508
|
/** The contract address of the pair. */
|
|
1500
1509
|
pairAddress: Scalars['String']['input'];
|
|
1501
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
1510
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
1502
1511
|
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
1503
1512
|
/** The unix timestamp for the stats. Defaults to current. */
|
|
1504
1513
|
timestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2124,7 +2133,7 @@ export type LockedLiquidityData = {
|
|
|
2124
2133
|
/** Response returned by `getTokenEventsForMaker`. */
|
|
2125
2134
|
export type MakerEventConnection = {
|
|
2126
2135
|
__typename?: 'MakerEventConnection';
|
|
2127
|
-
/** A cursor for use in pagination. */
|
|
2136
|
+
/** A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering. */
|
|
2128
2137
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
2129
2138
|
/** A list of transactions for a token's top pair. */
|
|
2130
2139
|
items?: Maybe<Array<Maybe<Event>>>;
|
|
@@ -4931,7 +4940,7 @@ export type OnBarsUpdatedResponse = {
|
|
|
4931
4940
|
quoteToken?: Maybe<QuoteToken>;
|
|
4932
4941
|
/** The address of the token being quoted */
|
|
4933
4942
|
quoteTokenAddress: Scalars['String']['output'];
|
|
4934
|
-
/** The type of statistics used. Can be `
|
|
4943
|
+
/** The type of statistics used. Can be `FILTERED` or `UNFILTERED`. */
|
|
4935
4944
|
statsType: TokenPairStatisticsType;
|
|
4936
4945
|
/** The unix timestamp for the new bar. */
|
|
4937
4946
|
timestamp: Scalars['Int']['output'];
|
|
@@ -4973,8 +4982,11 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
4973
4982
|
protocols?: InputMaybe<Array<LaunchpadTokenProtocol>>;
|
|
4974
4983
|
};
|
|
4975
4984
|
export type OnPricesUpdatedInput = {
|
|
4985
|
+
/** The token contract address. */
|
|
4976
4986
|
address: Scalars['String']['input'];
|
|
4987
|
+
/** The network ID the token is deployed on. */
|
|
4977
4988
|
networkId: Scalars['Int']['input'];
|
|
4989
|
+
/** The pair contract address from which to get pricing. Defaults to the top pair for the token. */
|
|
4978
4990
|
sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
|
|
4979
4991
|
};
|
|
4980
4992
|
/** Response returned by `onBarsUpdated`. */
|
|
@@ -5001,7 +5013,7 @@ export type OnTokenBarsUpdatedResponse = {
|
|
|
5001
5013
|
* @deprecated pairs are no longer used for pricing
|
|
5002
5014
|
*/
|
|
5003
5015
|
quoteToken?: Maybe<QuoteToken>;
|
|
5004
|
-
/** The type of statistics used.
|
|
5016
|
+
/** The type of statistics used. Only `FILTERED`. */
|
|
5005
5017
|
statsType: TokenPairStatisticsType;
|
|
5006
5018
|
/** The unix timestamp for the new bar. */
|
|
5007
5019
|
timestamp: Scalars['Int']['output'];
|
|
@@ -5013,7 +5025,7 @@ export type OnTokenBarsUpdatedResponse = {
|
|
|
5013
5025
|
export type OnTokenEventsCreatedInput = {
|
|
5014
5026
|
/** The network ID to filter by. */
|
|
5015
5027
|
networkId: Scalars['Int']['input'];
|
|
5016
|
-
/** The token address to filter by. */
|
|
5028
|
+
/** The token address to filter by. Required unless you are on an enterprise plan including EventFeed features. */
|
|
5017
5029
|
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
5018
5030
|
};
|
|
5019
5031
|
/** Response returned by `onUnconfirmedBarsUpdated`. */
|
|
@@ -5069,6 +5081,8 @@ export type Pair = {
|
|
|
5069
5081
|
networkId: Scalars['Int']['output'];
|
|
5070
5082
|
/** The pooled amounts of each token in the pair. */
|
|
5071
5083
|
pooled?: Maybe<PooledTokenValues>;
|
|
5084
|
+
/** The protocol of the pair. E.g. UniswapV4, RaydiumV4, PumpV1, etc. */
|
|
5085
|
+
protocol?: Maybe<Scalars['String']['output']>;
|
|
5072
5086
|
/**
|
|
5073
5087
|
* The per-protocol data for the pair, if applicable
|
|
5074
5088
|
* @deprecated Use protocolData instead
|
|
@@ -5423,7 +5437,10 @@ export type PairMetadata = {
|
|
|
5423
5437
|
fee?: Maybe<Scalars['Int']['output']>;
|
|
5424
5438
|
/** The highest price in USD in the past hour. */
|
|
5425
5439
|
highPrice1?: Maybe<Scalars['String']['output']>;
|
|
5426
|
-
/**
|
|
5440
|
+
/**
|
|
5441
|
+
* The highest price in USD in the past week.
|
|
5442
|
+
* @deprecated Inaccurate
|
|
5443
|
+
*/
|
|
5427
5444
|
highPrice1w?: Maybe<Scalars['String']['output']>;
|
|
5428
5445
|
/** The highest price in USD in the past 4 hours. */
|
|
5429
5446
|
highPrice4?: Maybe<Scalars['String']['output']>;
|
|
@@ -5441,7 +5458,10 @@ export type PairMetadata = {
|
|
|
5441
5458
|
liquidityToken?: Maybe<Scalars['String']['output']>;
|
|
5442
5459
|
/** The lowest price in USD in the past hour. */
|
|
5443
5460
|
lowPrice1?: Maybe<Scalars['String']['output']>;
|
|
5444
|
-
/**
|
|
5461
|
+
/**
|
|
5462
|
+
* The lowest price in USD in the past week.
|
|
5463
|
+
* @deprecated Inaccurate
|
|
5464
|
+
*/
|
|
5445
5465
|
lowPrice1w?: Maybe<Scalars['String']['output']>;
|
|
5446
5466
|
/** The lowest price in USD in the past 4 hours. */
|
|
5447
5467
|
lowPrice4?: Maybe<Scalars['String']['output']>;
|
|
@@ -5461,7 +5481,10 @@ export type PairMetadata = {
|
|
|
5461
5481
|
price: Scalars['String']['output'];
|
|
5462
5482
|
/** The percent price change in the past hour. Decimal format. */
|
|
5463
5483
|
priceChange1?: Maybe<Scalars['Float']['output']>;
|
|
5464
|
-
/**
|
|
5484
|
+
/**
|
|
5485
|
+
* The percent price change in the past week. Decimal format.
|
|
5486
|
+
* @deprecated Inaccurate
|
|
5487
|
+
*/
|
|
5465
5488
|
priceChange1w?: Maybe<Scalars['Float']['output']>;
|
|
5466
5489
|
/** The percent price change in the past 4 hours. Decimal format. */
|
|
5467
5490
|
priceChange4?: Maybe<Scalars['Float']['output']>;
|
|
@@ -5475,7 +5498,7 @@ export type PairMetadata = {
|
|
|
5475
5498
|
priceNonQuoteToken: Scalars['String']['output'];
|
|
5476
5499
|
/** The token of interest within the pair. Can be `token0` or `token1`. */
|
|
5477
5500
|
quoteToken?: Maybe<QuoteToken>;
|
|
5478
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
5501
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
5479
5502
|
statsType: TokenPairStatisticsType;
|
|
5480
5503
|
/** The amount of required tick separation. Only applicable for pairs on UniswapV3. */
|
|
5481
5504
|
tickSpacing?: Maybe<Scalars['Int']['output']>;
|
|
@@ -5485,7 +5508,10 @@ export type PairMetadata = {
|
|
|
5485
5508
|
token1: PairMetadataToken;
|
|
5486
5509
|
/** The trade volume in USD in the past hour. */
|
|
5487
5510
|
volume1?: Maybe<Scalars['String']['output']>;
|
|
5488
|
-
/**
|
|
5511
|
+
/**
|
|
5512
|
+
* The trade trade volume in USD in the past week.
|
|
5513
|
+
* @deprecated Inaccurate
|
|
5514
|
+
*/
|
|
5489
5515
|
volume1w?: Maybe<Scalars['String']['output']>;
|
|
5490
5516
|
/** The trade volume in USD in the past 4 hours. */
|
|
5491
5517
|
volume4?: Maybe<Scalars['String']['output']>;
|
|
@@ -5879,14 +5905,20 @@ export type Price = {
|
|
|
5879
5905
|
__typename?: 'Price';
|
|
5880
5906
|
/** The contract address of the token. */
|
|
5881
5907
|
address: Scalars['String']['output'];
|
|
5882
|
-
/**
|
|
5908
|
+
/**
|
|
5909
|
+
* Ratio of how confident we are in the price
|
|
5910
|
+
* @deprecated Pricing no longer based on specific pools
|
|
5911
|
+
*/
|
|
5883
5912
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
5884
5913
|
/** The internal pool address for the price */
|
|
5885
5914
|
internalPoolAddress?: Maybe<Scalars['String']['output']>;
|
|
5886
5915
|
/** The network ID the token is deployed on. */
|
|
5887
5916
|
networkId: Scalars['Int']['output'];
|
|
5888
|
-
/**
|
|
5889
|
-
|
|
5917
|
+
/**
|
|
5918
|
+
* The pool that emitted the swap generating this price
|
|
5919
|
+
* @deprecated Pricing no longer based on specific pools
|
|
5920
|
+
*/
|
|
5921
|
+
poolAddress?: Maybe<Scalars['String']['output']>;
|
|
5890
5922
|
/** The token price in USD. */
|
|
5891
5923
|
priceUsd: Scalars['Float']['output'];
|
|
5892
5924
|
/** The unix timestamp for the price. */
|
|
@@ -6531,11 +6563,6 @@ export type Query = {
|
|
|
6531
6563
|
primeHolders: PrimeHolders;
|
|
6532
6564
|
/** Returns a list of NFT collections matching a given query string. */
|
|
6533
6565
|
searchNfts?: Maybe<NftSearchResponse>;
|
|
6534
|
-
/**
|
|
6535
|
-
* Returns a list of tokens matching a given query string.
|
|
6536
|
-
* @deprecated This query is no longer supported and will not return up to date data. Use `filterTokens` instead.
|
|
6537
|
-
*/
|
|
6538
|
-
searchTokens?: Maybe<TokenSearchResponse>;
|
|
6539
6566
|
/** Returns a single token by its address & network id. */
|
|
6540
6567
|
token: EnhancedToken;
|
|
6541
6568
|
/** Returns a list of token lifecycle events. */
|
|
@@ -6905,13 +6932,6 @@ export type QuerySearchNftsArgs = {
|
|
|
6905
6932
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
6906
6933
|
window?: InputMaybe<Scalars['String']['input']>;
|
|
6907
6934
|
};
|
|
6908
|
-
export type QuerySearchTokensArgs = {
|
|
6909
|
-
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
6910
|
-
lowVolumeFilter?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6911
|
-
networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
6912
|
-
resolution?: InputMaybe<Scalars['String']['input']>;
|
|
6913
|
-
search: Scalars['String']['input'];
|
|
6914
|
-
};
|
|
6915
6935
|
export type QueryTokenArgs = {
|
|
6916
6936
|
input: TokenInput;
|
|
6917
6937
|
};
|
|
@@ -8059,7 +8079,7 @@ export type TokenLifecycleEvent = {
|
|
|
8059
8079
|
/** Response returned by `tokenLifecycleEvents`. */
|
|
8060
8080
|
export type TokenLifecycleEventConnection = {
|
|
8061
8081
|
__typename?: 'TokenLifecycleEventConnection';
|
|
8062
|
-
/** A cursor for use in pagination. */
|
|
8082
|
+
/** A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering. */
|
|
8063
8083
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
8064
8084
|
/** A list of transactions for a token's top pair. */
|
|
8065
8085
|
items: Array<Maybe<TokenLifecycleEvent>>;
|
|
@@ -8253,16 +8273,6 @@ export declare enum TokenRankingAttribute {
|
|
|
8253
8273
|
WalletAgeAvg = "walletAgeAvg",
|
|
8254
8274
|
WalletAgeStd = "walletAgeStd"
|
|
8255
8275
|
}
|
|
8256
|
-
/** Response returned by `searchTokens`. */
|
|
8257
|
-
export type TokenSearchResponse = {
|
|
8258
|
-
__typename?: 'TokenSearchResponse';
|
|
8259
|
-
/** The number of additional high volume results found. Only used if `lowVolumeFilter` is set to `true`. */
|
|
8260
|
-
hasMore?: Maybe<Scalars['Int']['output']>;
|
|
8261
|
-
/** If `lowVolumeFilter` is set to `true`, the number of additional low volume results found. If `lowVolumeFilter` is set to `false`, the number of additional high and low volume results found. */
|
|
8262
|
-
hasMoreLowVolume?: Maybe<Scalars['Int']['output']>;
|
|
8263
|
-
/** A list of tokens. */
|
|
8264
|
-
tokens?: Maybe<Array<TokenWithMetadata>>;
|
|
8265
|
-
};
|
|
8266
8276
|
/** A sparkline for a token. */
|
|
8267
8277
|
export type TokenSparkline = {
|
|
8268
8278
|
__typename?: 'TokenSparkline';
|