@codex-data/sdk 1.0.0-rc2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resources/generated_mutations/CreateWebhooks.graphql +392 -0
- package/dist/resources/generated_queries/FilterPairs.graphql +4 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +4 -0
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +100 -0
- package/dist/resources/generated_queries/GetEventLabels.graphql +11 -0
- package/dist/resources/generated_queries/GetNftEvents.graphql +46 -0
- package/dist/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
- package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
- package/dist/resources/generated_queries/GetTokenPrices.graphql +1 -0
- package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
- package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
- package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
- package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
- package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
- package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
- package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
- package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
- package/dist/resources/graphql.d.ts +161 -12
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +8 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +1012 -118
- package/dist/resources/graphql.ts +169 -13
- package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
- package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
- package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
- package/dist/resources/schema.graphql +230 -14
- package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
- package/dist/scripts/generateGraphql.d.ts +1 -0
- package/dist/scripts/generateGraphql.d.ts.map +1 -1
- package/dist/scripts/generateGraphql.js +48 -12
- package/dist/scripts/generateGraphql.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +3 -1
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +44 -12
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +62 -46
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +25 -23
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +2917 -68
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +34 -24
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/index.js.map +1 -1
- package/package.json +2 -2
- package/src/resources/generated_mutations/CreateWebhooks.graphql +392 -0
- package/src/resources/generated_queries/FilterPairs.graphql +4 -0
- package/src/resources/generated_queries/FilterTokens.graphql +4 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
- package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
- package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
- package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
- package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
- package/src/resources/generated_queries/GetTokenPrices.graphql +1 -0
- package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
- package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
- package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
- package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
- package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
- package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
- package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
- package/src/resources/graphql.schema.json +1012 -118
- package/src/resources/graphql.ts +169 -13
- package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
- package/src/resources/queries_override/GetEventLabels.graphql +35 -0
- package/src/resources/queries_override/GetWebhooks.graphql +134 -0
- package/src/resources/schema.graphql +230 -14
- package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
- package/src/scripts/generateGraphql.ts +87 -17
- package/src/sdk/Subscribe.ts +60 -12
- package/src/sdk/generated/gql.ts +56 -46
- package/src/sdk/generated/graphql.ts +233 -59
- package/src/sdk/index.ts +1 -0
|
@@ -375,7 +375,7 @@ export declare enum CostBasisMethod {
|
|
|
375
375
|
export type CreateApiTokensInput = {
|
|
376
376
|
/** Number of tokens to create, default is 1 */
|
|
377
377
|
count?: InputMaybe<Scalars['Int']['input']>;
|
|
378
|
-
/** Number of
|
|
378
|
+
/** Number of seconds until the token expires, defaults to 1 hour (3600) */
|
|
379
379
|
expiresIn?: InputMaybe<Scalars['Int']['input']>;
|
|
380
380
|
/** Number of requests allowed per token, represented as a string, default is 5000 */
|
|
381
381
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -386,6 +386,7 @@ export type CreateNftEventWebhookArgs = {
|
|
|
386
386
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
387
387
|
callbackUrl: Scalars['String']['input'];
|
|
388
388
|
conditions: NftEventWebhookConditionInput;
|
|
389
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
389
390
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
390
391
|
name: Scalars['String']['input'];
|
|
391
392
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -401,6 +402,7 @@ export type CreatePriceWebhookArgs = {
|
|
|
401
402
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
402
403
|
callbackUrl: Scalars['String']['input'];
|
|
403
404
|
conditions: PriceEventWebhookConditionInput;
|
|
405
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
404
406
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
405
407
|
name: Scalars['String']['input'];
|
|
406
408
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -416,6 +418,7 @@ export type CreateRawTransactionWebhookArgs = {
|
|
|
416
418
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
417
419
|
callbackUrl: Scalars['String']['input'];
|
|
418
420
|
conditions: RawTransactionWebhookConditionInput;
|
|
421
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
419
422
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
420
423
|
name: Scalars['String']['input'];
|
|
421
424
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -431,6 +434,7 @@ export type CreateTokenPairEventWebhookArgs = {
|
|
|
431
434
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
432
435
|
callbackUrl: Scalars['String']['input'];
|
|
433
436
|
conditions: TokenPairEventWebhookConditionInput;
|
|
437
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
434
438
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
435
439
|
name: Scalars['String']['input'];
|
|
436
440
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -1160,6 +1164,7 @@ export type GetGasEstimateInput = {
|
|
|
1160
1164
|
outputTokenAddress: Scalars['String']['input'];
|
|
1161
1165
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1162
1166
|
sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1167
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1163
1168
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1164
1169
|
walletId?: InputMaybe<Scalars['Int']['input']>;
|
|
1165
1170
|
};
|
|
@@ -1203,6 +1208,8 @@ export type GetPriceInput = {
|
|
|
1203
1208
|
maxDeviations?: InputMaybe<Scalars['Float']['input']>;
|
|
1204
1209
|
/** The network ID the token is deployed on. */
|
|
1205
1210
|
networkId: Scalars['Int']['input'];
|
|
1211
|
+
/** The address of the pool, when omitted the top pool is used. */
|
|
1212
|
+
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1206
1213
|
/** The unix timestamp for the price. */
|
|
1207
1214
|
timestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
1208
1215
|
};
|
|
@@ -1214,6 +1221,7 @@ export type GetQuoteInput = {
|
|
|
1214
1221
|
networkId: Scalars['Int']['input'];
|
|
1215
1222
|
outputTokenAddress: Scalars['String']['input'];
|
|
1216
1223
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1224
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1217
1225
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1218
1226
|
};
|
|
1219
1227
|
export type GetSimulateTokenContractResultsConnection = {
|
|
@@ -4153,6 +4161,8 @@ export type OnBarsUpdatedResponse = {
|
|
|
4153
4161
|
pairId: Scalars['String']['output'];
|
|
4154
4162
|
/** The quote token within the pair. */
|
|
4155
4163
|
quoteToken?: Maybe<QuoteToken>;
|
|
4164
|
+
/** The address of the token being quoted */
|
|
4165
|
+
quoteTokenAddress: Scalars['String']['output'];
|
|
4156
4166
|
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4157
4167
|
statsType: TokenPairStatisticsType;
|
|
4158
4168
|
/** The unix timestamp for the new bar. */
|
|
@@ -4162,10 +4172,60 @@ export type OnPricesUpdatedInput = {
|
|
|
4162
4172
|
address: Scalars['String']['input'];
|
|
4163
4173
|
networkId: Scalars['Int']['input'];
|
|
4164
4174
|
};
|
|
4175
|
+
/** Response returned by `onBarsUpdated`. */
|
|
4176
|
+
export type OnTokenBarsUpdatedResponse = {
|
|
4177
|
+
__typename?: 'OnTokenBarsUpdatedResponse';
|
|
4178
|
+
/** Price data broken down by resolution. */
|
|
4179
|
+
aggregates: ResolutionBarData;
|
|
4180
|
+
/**
|
|
4181
|
+
* The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
4182
|
+
* For example, `0000000016414564#00000224#00000413`.
|
|
4183
|
+
*/
|
|
4184
|
+
eventSortKey: Scalars['String']['output'];
|
|
4185
|
+
/** The network ID the pair is deployed on. */
|
|
4186
|
+
networkId: Scalars['Int']['output'];
|
|
4187
|
+
/** The contract address for the pair. */
|
|
4188
|
+
pairAddress: Scalars['String']['output'];
|
|
4189
|
+
/** The ID for the pair (`pairAddress`:`networkId`). */
|
|
4190
|
+
pairId: Scalars['String']['output'];
|
|
4191
|
+
/** The quote token within the pair. */
|
|
4192
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
4193
|
+
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4194
|
+
statsType: TokenPairStatisticsType;
|
|
4195
|
+
/** The unix timestamp for the new bar. */
|
|
4196
|
+
timestamp: Scalars['Int']['output'];
|
|
4197
|
+
/** The address of the token being quoted */
|
|
4198
|
+
tokenAddress: Scalars['String']['output'];
|
|
4199
|
+
/** The address of the token being quoted */
|
|
4200
|
+
tokenId: Scalars['String']['output'];
|
|
4201
|
+
};
|
|
4165
4202
|
export type OnTokenEventsCreatedInput = {
|
|
4166
4203
|
networkId: Scalars['Int']['input'];
|
|
4167
4204
|
tokenAddress: Scalars['String']['input'];
|
|
4168
4205
|
};
|
|
4206
|
+
/** Response returned by `onUnconfirmedBarsUpdated`. */
|
|
4207
|
+
export type OnUnconfirmedBarsUpdated = {
|
|
4208
|
+
__typename?: 'OnUnconfirmedBarsUpdated';
|
|
4209
|
+
/** Price data broken down by resolution. */
|
|
4210
|
+
aggregates: UnconfirmedResolutionBarData;
|
|
4211
|
+
/**
|
|
4212
|
+
* The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
4213
|
+
* For example, `0000000016414564#00000224#00000413`.
|
|
4214
|
+
*/
|
|
4215
|
+
eventSortKey: Scalars['String']['output'];
|
|
4216
|
+
/** The network ID the pair is deployed on. */
|
|
4217
|
+
networkId: Scalars['Int']['output'];
|
|
4218
|
+
/** The contract address for the pair. */
|
|
4219
|
+
pairAddress: Scalars['String']['output'];
|
|
4220
|
+
/** The ID for the pair (`pairAddress`:`networkId`). */
|
|
4221
|
+
pairId: Scalars['String']['output'];
|
|
4222
|
+
/** The quote token within the pair. */
|
|
4223
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
4224
|
+
/** The address of the token being quoted */
|
|
4225
|
+
quoteTokenAddress: Scalars['String']['output'];
|
|
4226
|
+
/** The unix timestamp for the new bar. */
|
|
4227
|
+
timestamp: Scalars['Int']['output'];
|
|
4228
|
+
};
|
|
4169
4229
|
export type OneOfNumberCondition = {
|
|
4170
4230
|
__typename?: 'OneOfNumberCondition';
|
|
4171
4231
|
oneOf: Array<Scalars['Int']['output']>;
|
|
@@ -4352,6 +4412,14 @@ export type PairFilterResult = {
|
|
|
4352
4412
|
uniqueTransactions12?: Maybe<Scalars['Int']['output']>;
|
|
4353
4413
|
/** The unique number of transactions in the past 24 hours. */
|
|
4354
4414
|
uniqueTransactions24?: Maybe<Scalars['Int']['output']>;
|
|
4415
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
4416
|
+
volumeChange1?: Maybe<Scalars['String']['output']>;
|
|
4417
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
4418
|
+
volumeChange4?: Maybe<Scalars['String']['output']>;
|
|
4419
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
4420
|
+
volumeChange12?: Maybe<Scalars['String']['output']>;
|
|
4421
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
4422
|
+
volumeChange24?: Maybe<Scalars['String']['output']>;
|
|
4355
4423
|
/** The trade volume in USD in the past hour. */
|
|
4356
4424
|
volumeUSD1?: Maybe<Scalars['String']['output']>;
|
|
4357
4425
|
/** The trade volume in USD in the past 4 hours. */
|
|
@@ -4455,6 +4523,14 @@ export type PairFilters = {
|
|
|
4455
4523
|
uniqueTransactions12?: InputMaybe<NumberFilter>;
|
|
4456
4524
|
/** The unique number of transactions in the past 24 hours. */
|
|
4457
4525
|
uniqueTransactions24?: InputMaybe<NumberFilter>;
|
|
4526
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
4527
|
+
volumeChange1?: InputMaybe<NumberFilter>;
|
|
4528
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
4529
|
+
volumeChange4?: InputMaybe<NumberFilter>;
|
|
4530
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
4531
|
+
volumeChange12?: InputMaybe<NumberFilter>;
|
|
4532
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
4533
|
+
volumeChange24?: InputMaybe<NumberFilter>;
|
|
4458
4534
|
/** The trade volume in USD in the past hour. */
|
|
4459
4535
|
volumeUSD1?: InputMaybe<NumberFilter>;
|
|
4460
4536
|
/** The trade volume in USD in the past 4 hours. */
|
|
@@ -4569,6 +4645,10 @@ export declare enum PairRankingAttribute {
|
|
|
4569
4645
|
UniqueTransactions4 = "uniqueTransactions4",
|
|
4570
4646
|
UniqueTransactions12 = "uniqueTransactions12",
|
|
4571
4647
|
UniqueTransactions24 = "uniqueTransactions24",
|
|
4648
|
+
VolumeChange1 = "volumeChange1",
|
|
4649
|
+
VolumeChange4 = "volumeChange4",
|
|
4650
|
+
VolumeChange12 = "volumeChange12",
|
|
4651
|
+
VolumeChange24 = "volumeChange24",
|
|
4572
4652
|
VolumeUsd1 = "volumeUSD1",
|
|
4573
4653
|
VolumeUsd4 = "volumeUSD4",
|
|
4574
4654
|
VolumeUsd12 = "volumeUSD12",
|
|
@@ -4908,6 +4988,8 @@ export type Price = {
|
|
|
4908
4988
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
4909
4989
|
/** The network ID the token is deployed on. */
|
|
4910
4990
|
networkId: Scalars['Int']['output'];
|
|
4991
|
+
/** The pool that emitted the swap generating this price */
|
|
4992
|
+
poolAddress: Scalars['String']['output'];
|
|
4911
4993
|
/** The token price in USD. */
|
|
4912
4994
|
priceUsd: Scalars['Float']['output'];
|
|
4913
4995
|
/** The unix timestamp for the price. */
|
|
@@ -5909,6 +5991,7 @@ export type QueryWalletNftCollectionsArgs = {
|
|
|
5909
5991
|
export type Quote = {
|
|
5910
5992
|
__typename?: 'Quote';
|
|
5911
5993
|
exchange: QuoteExchange;
|
|
5994
|
+
outputAmountMin?: Maybe<Scalars['String']['output']>;
|
|
5912
5995
|
poolFee?: Maybe<Scalars['String']['output']>;
|
|
5913
5996
|
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
5914
5997
|
quoteType: QuoteType;
|
|
@@ -5940,16 +6023,6 @@ export declare enum QuoteType {
|
|
|
5940
6023
|
Input = "INPUT",
|
|
5941
6024
|
Output = "OUTPUT"
|
|
5942
6025
|
}
|
|
5943
|
-
export type QuoteV2 = {
|
|
5944
|
-
__typename?: 'QuoteV2';
|
|
5945
|
-
exchange: QuoteExchange;
|
|
5946
|
-
poolFee?: Maybe<Scalars['String']['output']>;
|
|
5947
|
-
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
5948
|
-
quoteType: QuoteType;
|
|
5949
|
-
quotedAmount: Scalars['String']['output'];
|
|
5950
|
-
tradeFee: Scalars['String']['output'];
|
|
5951
|
-
tradeFeeBps: Scalars['Float']['output'];
|
|
5952
|
-
};
|
|
5953
6026
|
/** The order of ranking. */
|
|
5954
6027
|
export declare enum RankingDirection {
|
|
5955
6028
|
Asc = "ASC",
|
|
@@ -6030,6 +6103,8 @@ export type ResolutionBarData = {
|
|
|
6030
6103
|
r15S?: Maybe<CurrencyBarData>;
|
|
6031
6104
|
/** 30 minute resolution. */
|
|
6032
6105
|
r30?: Maybe<CurrencyBarData>;
|
|
6106
|
+
/** 30 second resolution. */
|
|
6107
|
+
r30S?: Maybe<CurrencyBarData>;
|
|
6033
6108
|
/** 60 minute resolution. */
|
|
6034
6109
|
r60?: Maybe<CurrencyBarData>;
|
|
6035
6110
|
/** 4 hour resolution. */
|
|
@@ -6371,10 +6446,14 @@ export type Subscription = {
|
|
|
6371
6446
|
/** Live-streamed price updates for multiple tokens. */
|
|
6372
6447
|
onPricesUpdated: Price;
|
|
6373
6448
|
onSimulateTokenContract: SimulateTokenContractResult;
|
|
6449
|
+
/** Live-streamed bar chart data to track price changes over time for a token. */
|
|
6450
|
+
onTokenBarsUpdated?: Maybe<OnTokenBarsUpdatedResponse>;
|
|
6374
6451
|
/** Live streamed events for a given token across all it's pools */
|
|
6375
6452
|
onTokenEventsCreated: AddTokenEventsOutput;
|
|
6376
6453
|
/** Live-streamed token lifecycle events (mints and burns) */
|
|
6377
6454
|
onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
|
|
6455
|
+
/** Unconfirmed live-streamed bar chart data to track price changes over time. (Solana only) */
|
|
6456
|
+
onUnconfirmedBarsUpdated?: Maybe<OnUnconfirmedBarsUpdated>;
|
|
6378
6457
|
/** Live-streamed unconfirmed transactions for a token. (Solana only) */
|
|
6379
6458
|
onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
|
|
6380
6459
|
};
|
|
@@ -6437,6 +6516,10 @@ export type SubscriptionOnSimulateTokenContractArgs = {
|
|
|
6437
6516
|
networkId: Scalars['Int']['input'];
|
|
6438
6517
|
simulationId?: InputMaybe<Scalars['String']['input']>;
|
|
6439
6518
|
};
|
|
6519
|
+
export type SubscriptionOnTokenBarsUpdatedArgs = {
|
|
6520
|
+
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
6521
|
+
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
6522
|
+
};
|
|
6440
6523
|
export type SubscriptionOnTokenEventsCreatedArgs = {
|
|
6441
6524
|
input: OnTokenEventsCreatedInput;
|
|
6442
6525
|
};
|
|
@@ -6444,6 +6527,10 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
|
|
|
6444
6527
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
6445
6528
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
6446
6529
|
};
|
|
6530
|
+
export type SubscriptionOnUnconfirmedBarsUpdatedArgs = {
|
|
6531
|
+
pairId?: InputMaybe<Scalars['String']['input']>;
|
|
6532
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
6533
|
+
};
|
|
6447
6534
|
export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
6448
6535
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
6449
6536
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -6754,6 +6841,14 @@ export type TokenFilterResult = {
|
|
|
6754
6841
|
volume12?: Maybe<Scalars['String']['output']>;
|
|
6755
6842
|
/** The trade volume in USD in the past 24 hours. */
|
|
6756
6843
|
volume24?: Maybe<Scalars['String']['output']>;
|
|
6844
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
6845
|
+
volumeChange1?: Maybe<Scalars['String']['output']>;
|
|
6846
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
6847
|
+
volumeChange4?: Maybe<Scalars['String']['output']>;
|
|
6848
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
6849
|
+
volumeChange12?: Maybe<Scalars['String']['output']>;
|
|
6850
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
6851
|
+
volumeChange24?: Maybe<Scalars['String']['output']>;
|
|
6757
6852
|
};
|
|
6758
6853
|
/** Input type of `TokenFilters`. */
|
|
6759
6854
|
export type TokenFilters = {
|
|
@@ -6867,6 +6962,14 @@ export type TokenFilters = {
|
|
|
6867
6962
|
volume12?: InputMaybe<NumberFilter>;
|
|
6868
6963
|
/** The trade volume in USD in the past 24 hours. */
|
|
6869
6964
|
volume24?: InputMaybe<NumberFilter>;
|
|
6965
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
6966
|
+
volumeChange1?: InputMaybe<NumberFilter>;
|
|
6967
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
6968
|
+
volumeChange4?: InputMaybe<NumberFilter>;
|
|
6969
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
6970
|
+
volumeChange12?: InputMaybe<NumberFilter>;
|
|
6971
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
6972
|
+
volumeChange24?: InputMaybe<NumberFilter>;
|
|
6870
6973
|
};
|
|
6871
6974
|
/** Metadata for a token. */
|
|
6872
6975
|
export type TokenInfo = {
|
|
@@ -7072,7 +7175,11 @@ export declare enum TokenRankingAttribute {
|
|
|
7072
7175
|
Volume1 = "volume1",
|
|
7073
7176
|
Volume4 = "volume4",
|
|
7074
7177
|
Volume12 = "volume12",
|
|
7075
|
-
Volume24 = "volume24"
|
|
7178
|
+
Volume24 = "volume24",
|
|
7179
|
+
VolumeChange1 = "volumeChange1",
|
|
7180
|
+
VolumeChange4 = "volumeChange4",
|
|
7181
|
+
VolumeChange12 = "volumeChange12",
|
|
7182
|
+
VolumeChange24 = "volumeChange24"
|
|
7076
7183
|
}
|
|
7077
7184
|
/** Response returned by `searchTokens`. */
|
|
7078
7185
|
export type TokenSearchResponse = {
|
|
@@ -7212,6 +7319,24 @@ export type UnconfirmedEvent = {
|
|
|
7212
7319
|
transactionIndex: Scalars['Int']['output'];
|
|
7213
7320
|
};
|
|
7214
7321
|
export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
|
|
7322
|
+
/** Unconfirmed bar chart data. */
|
|
7323
|
+
export type UnconfirmedIndividualBarData = {
|
|
7324
|
+
__typename?: 'UnconfirmedIndividualBarData';
|
|
7325
|
+
/** The closing price. */
|
|
7326
|
+
c: Scalars['Float']['output'];
|
|
7327
|
+
/** The high price. */
|
|
7328
|
+
h: Scalars['Float']['output'];
|
|
7329
|
+
/** The low price. */
|
|
7330
|
+
l: Scalars['Float']['output'];
|
|
7331
|
+
/** The opening price. */
|
|
7332
|
+
o: Scalars['Float']['output'];
|
|
7333
|
+
/** The timestamp for the bar. */
|
|
7334
|
+
t: Scalars['Int']['output'];
|
|
7335
|
+
/** The volume. */
|
|
7336
|
+
v?: Maybe<Scalars['Int']['output']>;
|
|
7337
|
+
/** The volume with higher precision. */
|
|
7338
|
+
volume: Scalars['String']['output'];
|
|
7339
|
+
};
|
|
7215
7340
|
export type UnconfirmedLiquidityChangeEventData = {
|
|
7216
7341
|
__typename?: 'UnconfirmedLiquidityChangeEventData';
|
|
7217
7342
|
/** The amount of `token0` added or removed from the pair. */
|
|
@@ -7225,10 +7350,34 @@ export type UnconfirmedLiquidityChangeEventData = {
|
|
|
7225
7350
|
/** The type of token event, `Mint` or 'Burn'. */
|
|
7226
7351
|
type: EventType;
|
|
7227
7352
|
};
|
|
7353
|
+
/** Unconfirmed price data for each supported resolution. */
|
|
7354
|
+
export type UnconfirmedResolutionBarData = {
|
|
7355
|
+
__typename?: 'UnconfirmedResolutionBarData';
|
|
7356
|
+
/** 1 minute resolution. */
|
|
7357
|
+
r1?: Maybe<UnconfirmedIndividualBarData>;
|
|
7358
|
+
/** 1 second resolution. */
|
|
7359
|
+
r1S?: Maybe<UnconfirmedIndividualBarData>;
|
|
7360
|
+
/** 5 minute resolution. */
|
|
7361
|
+
r5?: Maybe<UnconfirmedIndividualBarData>;
|
|
7362
|
+
/** 5 second resolution. */
|
|
7363
|
+
r5S?: Maybe<UnconfirmedIndividualBarData>;
|
|
7364
|
+
/** 15 minute resolution. */
|
|
7365
|
+
r15?: Maybe<UnconfirmedIndividualBarData>;
|
|
7366
|
+
/** 15 second resolution. */
|
|
7367
|
+
r15S?: Maybe<UnconfirmedIndividualBarData>;
|
|
7368
|
+
};
|
|
7228
7369
|
export type UnconfirmedSwapEventData = {
|
|
7229
7370
|
__typename?: 'UnconfirmedSwapEventData';
|
|
7230
7371
|
/** The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap. */
|
|
7231
7372
|
amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
|
|
7373
|
+
/** The price per `quoteToken` at the time of the swap in the network's base token. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in ETH. */
|
|
7374
|
+
priceBaseToken?: Maybe<Scalars['String']['output']>;
|
|
7375
|
+
/** The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`). */
|
|
7376
|
+
priceBaseTokenTotal?: Maybe<Scalars['String']['output']>;
|
|
7377
|
+
/** The price per `quoteToken` at the time of the swap in USD. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in USD ($1.00). */
|
|
7378
|
+
priceUsd?: Maybe<Scalars['String']['output']>;
|
|
7379
|
+
/** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
|
|
7380
|
+
priceUsdTotal?: Maybe<Scalars['String']['output']>;
|
|
7232
7381
|
/** The type of token event, `Swap`. */
|
|
7233
7382
|
type: EventType;
|
|
7234
7383
|
};
|