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