@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
|
@@ -799,7 +799,7 @@ export type DetailedPairStats = {
|
|
|
799
799
|
pairAddress: Scalars['String']['output'];
|
|
800
800
|
/** The timestamp specified as input to the query */
|
|
801
801
|
queryTimestamp?: Maybe<Scalars['Int']['output']>;
|
|
802
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
802
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
803
803
|
statsType: TokenPairStatisticsType;
|
|
804
804
|
/** The breakdown of stats over a 24 hour window. */
|
|
805
805
|
stats_day1?: Maybe<WindowedDetailedPairStats>;
|
|
@@ -877,7 +877,7 @@ export type DetailedStats = {
|
|
|
877
877
|
pairId: Scalars['String']['output'];
|
|
878
878
|
/** The timestamp specified as input to the query */
|
|
879
879
|
queryTimestamp?: Maybe<Scalars['Int']['output']>;
|
|
880
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
880
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
881
881
|
statsType: TokenPairStatisticsType;
|
|
882
882
|
/** The breakdown of stats over a 24 hour window. */
|
|
883
883
|
stats_day1?: Maybe<WindowedDetailedStats>;
|
|
@@ -1059,6 +1059,10 @@ export type EnhancedToken = {
|
|
|
1059
1059
|
imageThumbUrl?: Maybe<Scalars['String']['output']>;
|
|
1060
1060
|
/** More metadata about the token. */
|
|
1061
1061
|
info?: Maybe<TokenInfo>;
|
|
1062
|
+
/** Determines if freezable is a valid address or null value for the authority, or if the freezable state has not yet been determined. */
|
|
1063
|
+
isFreezableValid?: Maybe<Scalars['Boolean']['output']>;
|
|
1064
|
+
/** Determines if mintable is a valid address or null value for the authority, or if the mintable state has not yet been determined. */
|
|
1065
|
+
isMintableValid?: Maybe<Scalars['Boolean']['output']>;
|
|
1062
1066
|
/** Whether the token has been flagged as a scam. */
|
|
1063
1067
|
isScam?: Maybe<Scalars['Boolean']['output']>;
|
|
1064
1068
|
/** The launchpad data for the token, if applicable. */
|
|
@@ -1149,7 +1153,7 @@ export type Event = {
|
|
|
1149
1153
|
/** Response returned by `getTokenEvents`. */
|
|
1150
1154
|
export type EventConnection = {
|
|
1151
1155
|
__typename?: 'EventConnection';
|
|
1152
|
-
/** A cursor for use in pagination. */
|
|
1156
|
+
/** A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering. */
|
|
1153
1157
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
1154
1158
|
/** A list of transactions for a token's top pair. */
|
|
1155
1159
|
items?: Maybe<Array<Maybe<Event>>>;
|
|
@@ -1509,8 +1513,13 @@ export type FilterTokenWalletsInput = {
|
|
|
1509
1513
|
phrase?: InputMaybe<Scalars['String']['input']>;
|
|
1510
1514
|
/** A list of ranking attributes to apply */
|
|
1511
1515
|
rankings?: InputMaybe<Array<InputMaybe<WalletTokenRanking>>>;
|
|
1512
|
-
/**
|
|
1516
|
+
/**
|
|
1517
|
+
* The ID of the token to filter wallets for
|
|
1518
|
+
* @deprecated Use tokenIds instead
|
|
1519
|
+
*/
|
|
1513
1520
|
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
1521
|
+
/** 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. */
|
|
1522
|
+
tokenIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1514
1523
|
/**
|
|
1515
1524
|
* The wallet address to filter wallets for
|
|
1516
1525
|
* @deprecated Use wallets instead
|
|
@@ -1559,7 +1568,7 @@ export type GetDetailedPairsStatsInput = {
|
|
|
1559
1568
|
networkId: Scalars['Int']['input'];
|
|
1560
1569
|
/** The contract address of the pair. */
|
|
1561
1570
|
pairAddress: Scalars['String']['input'];
|
|
1562
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
1571
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
1563
1572
|
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
1564
1573
|
/** The unix timestamp for the stats. Defaults to current. */
|
|
1565
1574
|
timestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2226,7 +2235,7 @@ export type LockedLiquidityData = {
|
|
|
2226
2235
|
/** Response returned by `getTokenEventsForMaker`. */
|
|
2227
2236
|
export type MakerEventConnection = {
|
|
2228
2237
|
__typename?: 'MakerEventConnection';
|
|
2229
|
-
/** A cursor for use in pagination. */
|
|
2238
|
+
/** A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering. */
|
|
2230
2239
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
2231
2240
|
/** A list of transactions for a token's top pair. */
|
|
2232
2241
|
items?: Maybe<Array<Maybe<Event>>>;
|
|
@@ -5150,7 +5159,7 @@ export type OnBarsUpdatedResponse = {
|
|
|
5150
5159
|
quoteToken?: Maybe<QuoteToken>;
|
|
5151
5160
|
/** The address of the token being quoted */
|
|
5152
5161
|
quoteTokenAddress: Scalars['String']['output'];
|
|
5153
|
-
/** The type of statistics used. Can be `
|
|
5162
|
+
/** The type of statistics used. Can be `FILTERED` or `UNFILTERED`. */
|
|
5154
5163
|
statsType: TokenPairStatisticsType;
|
|
5155
5164
|
/** The unix timestamp for the new bar. */
|
|
5156
5165
|
timestamp: Scalars['Int']['output'];
|
|
@@ -5196,8 +5205,11 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
5196
5205
|
};
|
|
5197
5206
|
|
|
5198
5207
|
export type OnPricesUpdatedInput = {
|
|
5208
|
+
/** The token contract address. */
|
|
5199
5209
|
address: Scalars['String']['input'];
|
|
5210
|
+
/** The network ID the token is deployed on. */
|
|
5200
5211
|
networkId: Scalars['Int']['input'];
|
|
5212
|
+
/** The pair contract address from which to get pricing. Defaults to the top pair for the token. */
|
|
5201
5213
|
sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
|
|
5202
5214
|
};
|
|
5203
5215
|
|
|
@@ -5225,7 +5237,7 @@ export type OnTokenBarsUpdatedResponse = {
|
|
|
5225
5237
|
* @deprecated pairs are no longer used for pricing
|
|
5226
5238
|
*/
|
|
5227
5239
|
quoteToken?: Maybe<QuoteToken>;
|
|
5228
|
-
/** The type of statistics used.
|
|
5240
|
+
/** The type of statistics used. Only `FILTERED`. */
|
|
5229
5241
|
statsType: TokenPairStatisticsType;
|
|
5230
5242
|
/** The unix timestamp for the new bar. */
|
|
5231
5243
|
timestamp: Scalars['Int']['output'];
|
|
@@ -5238,7 +5250,7 @@ export type OnTokenBarsUpdatedResponse = {
|
|
|
5238
5250
|
export type OnTokenEventsCreatedInput = {
|
|
5239
5251
|
/** The network ID to filter by. */
|
|
5240
5252
|
networkId: Scalars['Int']['input'];
|
|
5241
|
-
/** The token address to filter by. */
|
|
5253
|
+
/** The token address to filter by. Required unless you are on an enterprise plan including EventFeed features. */
|
|
5242
5254
|
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
5243
5255
|
};
|
|
5244
5256
|
|
|
@@ -5299,6 +5311,8 @@ export type Pair = {
|
|
|
5299
5311
|
networkId: Scalars['Int']['output'];
|
|
5300
5312
|
/** The pooled amounts of each token in the pair. */
|
|
5301
5313
|
pooled?: Maybe<PooledTokenValues>;
|
|
5314
|
+
/** The protocol of the pair. E.g. UniswapV4, RaydiumV4, PumpV1, etc. */
|
|
5315
|
+
protocol?: Maybe<Scalars['String']['output']>;
|
|
5302
5316
|
/**
|
|
5303
5317
|
* The per-protocol data for the pair, if applicable
|
|
5304
5318
|
* @deprecated Use protocolData instead
|
|
@@ -5660,7 +5674,10 @@ export type PairMetadata = {
|
|
|
5660
5674
|
fee?: Maybe<Scalars['Int']['output']>;
|
|
5661
5675
|
/** The highest price in USD in the past hour. */
|
|
5662
5676
|
highPrice1?: Maybe<Scalars['String']['output']>;
|
|
5663
|
-
/**
|
|
5677
|
+
/**
|
|
5678
|
+
* The highest price in USD in the past week.
|
|
5679
|
+
* @deprecated Inaccurate
|
|
5680
|
+
*/
|
|
5664
5681
|
highPrice1w?: Maybe<Scalars['String']['output']>;
|
|
5665
5682
|
/** The highest price in USD in the past 4 hours. */
|
|
5666
5683
|
highPrice4?: Maybe<Scalars['String']['output']>;
|
|
@@ -5678,7 +5695,10 @@ export type PairMetadata = {
|
|
|
5678
5695
|
liquidityToken?: Maybe<Scalars['String']['output']>;
|
|
5679
5696
|
/** The lowest price in USD in the past hour. */
|
|
5680
5697
|
lowPrice1?: Maybe<Scalars['String']['output']>;
|
|
5681
|
-
/**
|
|
5698
|
+
/**
|
|
5699
|
+
* The lowest price in USD in the past week.
|
|
5700
|
+
* @deprecated Inaccurate
|
|
5701
|
+
*/
|
|
5682
5702
|
lowPrice1w?: Maybe<Scalars['String']['output']>;
|
|
5683
5703
|
/** The lowest price in USD in the past 4 hours. */
|
|
5684
5704
|
lowPrice4?: Maybe<Scalars['String']['output']>;
|
|
@@ -5698,7 +5718,10 @@ export type PairMetadata = {
|
|
|
5698
5718
|
price: Scalars['String']['output'];
|
|
5699
5719
|
/** The percent price change in the past hour. Decimal format. */
|
|
5700
5720
|
priceChange1?: Maybe<Scalars['Float']['output']>;
|
|
5701
|
-
/**
|
|
5721
|
+
/**
|
|
5722
|
+
* The percent price change in the past week. Decimal format.
|
|
5723
|
+
* @deprecated Inaccurate
|
|
5724
|
+
*/
|
|
5702
5725
|
priceChange1w?: Maybe<Scalars['Float']['output']>;
|
|
5703
5726
|
/** The percent price change in the past 4 hours. Decimal format. */
|
|
5704
5727
|
priceChange4?: Maybe<Scalars['Float']['output']>;
|
|
@@ -5712,7 +5735,7 @@ export type PairMetadata = {
|
|
|
5712
5735
|
priceNonQuoteToken: Scalars['String']['output'];
|
|
5713
5736
|
/** The token of interest within the pair. Can be `token0` or `token1`. */
|
|
5714
5737
|
quoteToken?: Maybe<QuoteToken>;
|
|
5715
|
-
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED
|
|
5738
|
+
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
5716
5739
|
statsType: TokenPairStatisticsType;
|
|
5717
5740
|
/** The amount of required tick separation. Only applicable for pairs on UniswapV3. */
|
|
5718
5741
|
tickSpacing?: Maybe<Scalars['Int']['output']>;
|
|
@@ -5722,7 +5745,10 @@ export type PairMetadata = {
|
|
|
5722
5745
|
token1: PairMetadataToken;
|
|
5723
5746
|
/** The trade volume in USD in the past hour. */
|
|
5724
5747
|
volume1?: Maybe<Scalars['String']['output']>;
|
|
5725
|
-
/**
|
|
5748
|
+
/**
|
|
5749
|
+
* The trade trade volume in USD in the past week.
|
|
5750
|
+
* @deprecated Inaccurate
|
|
5751
|
+
*/
|
|
5726
5752
|
volume1w?: Maybe<Scalars['String']['output']>;
|
|
5727
5753
|
/** The trade volume in USD in the past 4 hours. */
|
|
5728
5754
|
volume4?: Maybe<Scalars['String']['output']>;
|
|
@@ -6142,14 +6168,20 @@ export type Price = {
|
|
|
6142
6168
|
__typename?: 'Price';
|
|
6143
6169
|
/** The contract address of the token. */
|
|
6144
6170
|
address: Scalars['String']['output'];
|
|
6145
|
-
/**
|
|
6171
|
+
/**
|
|
6172
|
+
* Ratio of how confident we are in the price
|
|
6173
|
+
* @deprecated Pricing no longer based on specific pools
|
|
6174
|
+
*/
|
|
6146
6175
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
6147
6176
|
/** The internal pool address for the price */
|
|
6148
6177
|
internalPoolAddress?: Maybe<Scalars['String']['output']>;
|
|
6149
6178
|
/** The network ID the token is deployed on. */
|
|
6150
6179
|
networkId: Scalars['Int']['output'];
|
|
6151
|
-
/**
|
|
6152
|
-
|
|
6180
|
+
/**
|
|
6181
|
+
* The pool that emitted the swap generating this price
|
|
6182
|
+
* @deprecated Pricing no longer based on specific pools
|
|
6183
|
+
*/
|
|
6184
|
+
poolAddress?: Maybe<Scalars['String']['output']>;
|
|
6153
6185
|
/** The token price in USD. */
|
|
6154
6186
|
priceUsd: Scalars['Float']['output'];
|
|
6155
6187
|
/** The unix timestamp for the price. */
|
|
@@ -6830,11 +6862,6 @@ export type Query = {
|
|
|
6830
6862
|
primeHolders: PrimeHolders;
|
|
6831
6863
|
/** Returns a list of NFT collections matching a given query string. */
|
|
6832
6864
|
searchNfts?: Maybe<NftSearchResponse>;
|
|
6833
|
-
/**
|
|
6834
|
-
* Returns a list of tokens matching a given query string.
|
|
6835
|
-
* @deprecated This query is no longer supported and will not return up to date data. Use `filterTokens` instead.
|
|
6836
|
-
*/
|
|
6837
|
-
searchTokens?: Maybe<TokenSearchResponse>;
|
|
6838
6865
|
/** Returns a single token by its address & network id. */
|
|
6839
6866
|
token: EnhancedToken;
|
|
6840
6867
|
/** Returns a list of token lifecycle events. */
|
|
@@ -7326,15 +7353,6 @@ export type QuerySearchNftsArgs = {
|
|
|
7326
7353
|
};
|
|
7327
7354
|
|
|
7328
7355
|
|
|
7329
|
-
export type QuerySearchTokensArgs = {
|
|
7330
|
-
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
7331
|
-
lowVolumeFilter?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7332
|
-
networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
7333
|
-
resolution?: InputMaybe<Scalars['String']['input']>;
|
|
7334
|
-
search: Scalars['String']['input'];
|
|
7335
|
-
};
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
7356
|
export type QueryTokenArgs = {
|
|
7339
7357
|
input: TokenInput;
|
|
7340
7358
|
};
|
|
@@ -8588,7 +8606,7 @@ export type TokenLifecycleEvent = {
|
|
|
8588
8606
|
/** Response returned by `tokenLifecycleEvents`. */
|
|
8589
8607
|
export type TokenLifecycleEventConnection = {
|
|
8590
8608
|
__typename?: 'TokenLifecycleEventConnection';
|
|
8591
|
-
/** A cursor for use in pagination. */
|
|
8609
|
+
/** A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering. */
|
|
8592
8610
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
8593
8611
|
/** A list of transactions for a token's top pair. */
|
|
8594
8612
|
items: Array<Maybe<TokenLifecycleEvent>>;
|
|
@@ -8796,17 +8814,6 @@ export enum TokenRankingAttribute {
|
|
|
8796
8814
|
WalletAgeStd = 'walletAgeStd'
|
|
8797
8815
|
}
|
|
8798
8816
|
|
|
8799
|
-
/** Response returned by `searchTokens`. */
|
|
8800
|
-
export type TokenSearchResponse = {
|
|
8801
|
-
__typename?: 'TokenSearchResponse';
|
|
8802
|
-
/** The number of additional high volume results found. Only used if `lowVolumeFilter` is set to `true`. */
|
|
8803
|
-
hasMore?: Maybe<Scalars['Int']['output']>;
|
|
8804
|
-
/** 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. */
|
|
8805
|
-
hasMoreLowVolume?: Maybe<Scalars['Int']['output']>;
|
|
8806
|
-
/** A list of tokens. */
|
|
8807
|
-
tokens?: Maybe<Array<TokenWithMetadata>>;
|
|
8808
|
-
};
|
|
8809
|
-
|
|
8810
8817
|
/** A sparkline for a token. */
|
|
8811
8818
|
export type TokenSparkline = {
|
|
8812
8819
|
__typename?: 'TokenSparkline';
|
|
@@ -10883,7 +10890,7 @@ export type GetTokenPricesQueryVariables = Exact<{
|
|
|
10883
10890
|
}>;
|
|
10884
10891
|
|
|
10885
10892
|
|
|
10886
|
-
export type GetTokenPricesQuery = { __typename?: 'Query', getTokenPrices?: Array<{ __typename?: 'Price', address: string, confidence?: number | null, networkId: number, poolAddress
|
|
10893
|
+
export type GetTokenPricesQuery = { __typename?: 'Query', getTokenPrices?: Array<{ __typename?: 'Price', address: string, confidence?: number | null, networkId: number, poolAddress?: string | null, priceUsd: number, timestamp?: number | null } | null> | null };
|
|
10887
10894
|
|
|
10888
10895
|
export type GetWebhooksQueryVariables = Exact<{
|
|
10889
10896
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -11181,14 +11188,14 @@ export type OnPriceUpdatedSubscriptionVariables = Exact<{
|
|
|
11181
11188
|
}>;
|
|
11182
11189
|
|
|
11183
11190
|
|
|
11184
|
-
export type OnPriceUpdatedSubscription = { __typename?: 'Subscription', onPriceUpdated?: { __typename?: 'Price', address: string, confidence?: number | null, networkId: number, poolAddress
|
|
11191
|
+
export type OnPriceUpdatedSubscription = { __typename?: 'Subscription', onPriceUpdated?: { __typename?: 'Price', address: string, confidence?: number | null, networkId: number, poolAddress?: string | null, priceUsd: number, timestamp?: number | null } | null };
|
|
11185
11192
|
|
|
11186
11193
|
export type OnPricesUpdatedSubscriptionVariables = Exact<{
|
|
11187
11194
|
input: Array<OnPricesUpdatedInput> | OnPricesUpdatedInput;
|
|
11188
11195
|
}>;
|
|
11189
11196
|
|
|
11190
11197
|
|
|
11191
|
-
export type OnPricesUpdatedSubscription = { __typename?: 'Subscription', onPricesUpdated: { __typename?: 'Price', address: string, confidence?: number | null, networkId: number, poolAddress
|
|
11198
|
+
export type OnPricesUpdatedSubscription = { __typename?: 'Subscription', onPricesUpdated: { __typename?: 'Price', address: string, confidence?: number | null, networkId: number, poolAddress?: string | null, priceUsd: number, timestamp?: number | null } };
|
|
11192
11199
|
|
|
11193
11200
|
export type OnTokenBarsUpdatedSubscriptionVariables = Exact<{
|
|
11194
11201
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|