@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
package/src/resources/graphql.ts
CHANGED
|
@@ -367,7 +367,7 @@ export enum CostBasisMethod {
|
|
|
367
367
|
export type CreateApiTokensInput = {
|
|
368
368
|
/** Number of tokens to create, default is 1 */
|
|
369
369
|
count?: InputMaybe<Scalars['Int']['input']>;
|
|
370
|
-
/** Number of
|
|
370
|
+
/** Number of seconds until the token expires, defaults to 1 hour (3600) */
|
|
371
371
|
expiresIn?: InputMaybe<Scalars['Int']['input']>;
|
|
372
372
|
/** Number of requests allowed per token, represented as a string, default is 5000 */
|
|
373
373
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -379,6 +379,7 @@ export type CreateNftEventWebhookArgs = {
|
|
|
379
379
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
380
380
|
callbackUrl: Scalars['String']['input'];
|
|
381
381
|
conditions: NftEventWebhookConditionInput;
|
|
382
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
382
383
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
383
384
|
name: Scalars['String']['input'];
|
|
384
385
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -396,6 +397,7 @@ export type CreatePriceWebhookArgs = {
|
|
|
396
397
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
397
398
|
callbackUrl: Scalars['String']['input'];
|
|
398
399
|
conditions: PriceEventWebhookConditionInput;
|
|
400
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
399
401
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
400
402
|
name: Scalars['String']['input'];
|
|
401
403
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -413,6 +415,7 @@ export type CreateRawTransactionWebhookArgs = {
|
|
|
413
415
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
414
416
|
callbackUrl: Scalars['String']['input'];
|
|
415
417
|
conditions: RawTransactionWebhookConditionInput;
|
|
418
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
416
419
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
417
420
|
name: Scalars['String']['input'];
|
|
418
421
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -430,6 +433,7 @@ export type CreateTokenPairEventWebhookArgs = {
|
|
|
430
433
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
431
434
|
callbackUrl: Scalars['String']['input'];
|
|
432
435
|
conditions: TokenPairEventWebhookConditionInput;
|
|
436
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
433
437
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
434
438
|
name: Scalars['String']['input'];
|
|
435
439
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -1212,6 +1216,7 @@ export type GetGasEstimateInput = {
|
|
|
1212
1216
|
outputTokenAddress: Scalars['String']['input'];
|
|
1213
1217
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1214
1218
|
sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1219
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1215
1220
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1216
1221
|
walletId?: InputMaybe<Scalars['Int']['input']>;
|
|
1217
1222
|
};
|
|
@@ -1259,6 +1264,8 @@ export type GetPriceInput = {
|
|
|
1259
1264
|
maxDeviations?: InputMaybe<Scalars['Float']['input']>;
|
|
1260
1265
|
/** The network ID the token is deployed on. */
|
|
1261
1266
|
networkId: Scalars['Int']['input'];
|
|
1267
|
+
/** The address of the pool, when omitted the top pool is used. */
|
|
1268
|
+
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1262
1269
|
/** The unix timestamp for the price. */
|
|
1263
1270
|
timestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
1264
1271
|
};
|
|
@@ -1271,6 +1278,7 @@ export type GetQuoteInput = {
|
|
|
1271
1278
|
networkId: Scalars['Int']['input'];
|
|
1272
1279
|
outputTokenAddress: Scalars['String']['input'];
|
|
1273
1280
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1281
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1274
1282
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1275
1283
|
};
|
|
1276
1284
|
|
|
@@ -4349,6 +4357,8 @@ export type OnBarsUpdatedResponse = {
|
|
|
4349
4357
|
pairId: Scalars['String']['output'];
|
|
4350
4358
|
/** The quote token within the pair. */
|
|
4351
4359
|
quoteToken?: Maybe<QuoteToken>;
|
|
4360
|
+
/** The address of the token being quoted */
|
|
4361
|
+
quoteTokenAddress: Scalars['String']['output'];
|
|
4352
4362
|
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4353
4363
|
statsType: TokenPairStatisticsType;
|
|
4354
4364
|
/** The unix timestamp for the new bar. */
|
|
@@ -4360,11 +4370,63 @@ export type OnPricesUpdatedInput = {
|
|
|
4360
4370
|
networkId: Scalars['Int']['input'];
|
|
4361
4371
|
};
|
|
4362
4372
|
|
|
4373
|
+
/** Response returned by `onBarsUpdated`. */
|
|
4374
|
+
export type OnTokenBarsUpdatedResponse = {
|
|
4375
|
+
__typename?: 'OnTokenBarsUpdatedResponse';
|
|
4376
|
+
/** Price data broken down by resolution. */
|
|
4377
|
+
aggregates: ResolutionBarData;
|
|
4378
|
+
/**
|
|
4379
|
+
* The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
4380
|
+
* For example, `0000000016414564#00000224#00000413`.
|
|
4381
|
+
*/
|
|
4382
|
+
eventSortKey: Scalars['String']['output'];
|
|
4383
|
+
/** The network ID the pair is deployed on. */
|
|
4384
|
+
networkId: Scalars['Int']['output'];
|
|
4385
|
+
/** The contract address for the pair. */
|
|
4386
|
+
pairAddress: Scalars['String']['output'];
|
|
4387
|
+
/** The ID for the pair (`pairAddress`:`networkId`). */
|
|
4388
|
+
pairId: Scalars['String']['output'];
|
|
4389
|
+
/** The quote token within the pair. */
|
|
4390
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
4391
|
+
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4392
|
+
statsType: TokenPairStatisticsType;
|
|
4393
|
+
/** The unix timestamp for the new bar. */
|
|
4394
|
+
timestamp: Scalars['Int']['output'];
|
|
4395
|
+
/** The address of the token being quoted */
|
|
4396
|
+
tokenAddress: Scalars['String']['output'];
|
|
4397
|
+
/** The address of the token being quoted */
|
|
4398
|
+
tokenId: Scalars['String']['output'];
|
|
4399
|
+
};
|
|
4400
|
+
|
|
4363
4401
|
export type OnTokenEventsCreatedInput = {
|
|
4364
4402
|
networkId: Scalars['Int']['input'];
|
|
4365
4403
|
tokenAddress: Scalars['String']['input'];
|
|
4366
4404
|
};
|
|
4367
4405
|
|
|
4406
|
+
/** Response returned by `onUnconfirmedBarsUpdated`. */
|
|
4407
|
+
export type OnUnconfirmedBarsUpdated = {
|
|
4408
|
+
__typename?: 'OnUnconfirmedBarsUpdated';
|
|
4409
|
+
/** Price data broken down by resolution. */
|
|
4410
|
+
aggregates: UnconfirmedResolutionBarData;
|
|
4411
|
+
/**
|
|
4412
|
+
* The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
4413
|
+
* For example, `0000000016414564#00000224#00000413`.
|
|
4414
|
+
*/
|
|
4415
|
+
eventSortKey: Scalars['String']['output'];
|
|
4416
|
+
/** The network ID the pair is deployed on. */
|
|
4417
|
+
networkId: Scalars['Int']['output'];
|
|
4418
|
+
/** The contract address for the pair. */
|
|
4419
|
+
pairAddress: Scalars['String']['output'];
|
|
4420
|
+
/** The ID for the pair (`pairAddress`:`networkId`). */
|
|
4421
|
+
pairId: Scalars['String']['output'];
|
|
4422
|
+
/** The quote token within the pair. */
|
|
4423
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
4424
|
+
/** The address of the token being quoted */
|
|
4425
|
+
quoteTokenAddress: Scalars['String']['output'];
|
|
4426
|
+
/** The unix timestamp for the new bar. */
|
|
4427
|
+
timestamp: Scalars['Int']['output'];
|
|
4428
|
+
};
|
|
4429
|
+
|
|
4368
4430
|
export type OneOfNumberCondition = {
|
|
4369
4431
|
__typename?: 'OneOfNumberCondition';
|
|
4370
4432
|
oneOf: Array<Scalars['Int']['output']>;
|
|
@@ -4560,6 +4622,14 @@ export type PairFilterResult = {
|
|
|
4560
4622
|
uniqueTransactions12?: Maybe<Scalars['Int']['output']>;
|
|
4561
4623
|
/** The unique number of transactions in the past 24 hours. */
|
|
4562
4624
|
uniqueTransactions24?: Maybe<Scalars['Int']['output']>;
|
|
4625
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
4626
|
+
volumeChange1?: Maybe<Scalars['String']['output']>;
|
|
4627
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
4628
|
+
volumeChange4?: Maybe<Scalars['String']['output']>;
|
|
4629
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
4630
|
+
volumeChange12?: Maybe<Scalars['String']['output']>;
|
|
4631
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
4632
|
+
volumeChange24?: Maybe<Scalars['String']['output']>;
|
|
4563
4633
|
/** The trade volume in USD in the past hour. */
|
|
4564
4634
|
volumeUSD1?: Maybe<Scalars['String']['output']>;
|
|
4565
4635
|
/** The trade volume in USD in the past 4 hours. */
|
|
@@ -4664,6 +4734,14 @@ export type PairFilters = {
|
|
|
4664
4734
|
uniqueTransactions12?: InputMaybe<NumberFilter>;
|
|
4665
4735
|
/** The unique number of transactions in the past 24 hours. */
|
|
4666
4736
|
uniqueTransactions24?: InputMaybe<NumberFilter>;
|
|
4737
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
4738
|
+
volumeChange1?: InputMaybe<NumberFilter>;
|
|
4739
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
4740
|
+
volumeChange4?: InputMaybe<NumberFilter>;
|
|
4741
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
4742
|
+
volumeChange12?: InputMaybe<NumberFilter>;
|
|
4743
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
4744
|
+
volumeChange24?: InputMaybe<NumberFilter>;
|
|
4667
4745
|
/** The trade volume in USD in the past hour. */
|
|
4668
4746
|
volumeUSD1?: InputMaybe<NumberFilter>;
|
|
4669
4747
|
/** The trade volume in USD in the past 4 hours. */
|
|
@@ -4782,6 +4860,10 @@ export enum PairRankingAttribute {
|
|
|
4782
4860
|
UniqueTransactions4 = 'uniqueTransactions4',
|
|
4783
4861
|
UniqueTransactions12 = 'uniqueTransactions12',
|
|
4784
4862
|
UniqueTransactions24 = 'uniqueTransactions24',
|
|
4863
|
+
VolumeChange1 = 'volumeChange1',
|
|
4864
|
+
VolumeChange4 = 'volumeChange4',
|
|
4865
|
+
VolumeChange12 = 'volumeChange12',
|
|
4866
|
+
VolumeChange24 = 'volumeChange24',
|
|
4785
4867
|
VolumeUsd1 = 'volumeUSD1',
|
|
4786
4868
|
VolumeUsd4 = 'volumeUSD4',
|
|
4787
4869
|
VolumeUsd12 = 'volumeUSD12',
|
|
@@ -5146,6 +5228,8 @@ export type Price = {
|
|
|
5146
5228
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
5147
5229
|
/** The network ID the token is deployed on. */
|
|
5148
5230
|
networkId: Scalars['Int']['output'];
|
|
5231
|
+
/** The pool that emitted the swap generating this price */
|
|
5232
|
+
poolAddress: Scalars['String']['output'];
|
|
5149
5233
|
/** The token price in USD. */
|
|
5150
5234
|
priceUsd: Scalars['Float']['output'];
|
|
5151
5235
|
/** The unix timestamp for the price. */
|
|
@@ -6315,6 +6399,7 @@ export type QueryWalletNftCollectionsArgs = {
|
|
|
6315
6399
|
export type Quote = {
|
|
6316
6400
|
__typename?: 'Quote';
|
|
6317
6401
|
exchange: QuoteExchange;
|
|
6402
|
+
outputAmountMin?: Maybe<Scalars['String']['output']>;
|
|
6318
6403
|
poolFee?: Maybe<Scalars['String']['output']>;
|
|
6319
6404
|
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
6320
6405
|
quoteType: QuoteType;
|
|
@@ -6351,17 +6436,6 @@ export enum QuoteType {
|
|
|
6351
6436
|
Output = 'OUTPUT'
|
|
6352
6437
|
}
|
|
6353
6438
|
|
|
6354
|
-
export type QuoteV2 = {
|
|
6355
|
-
__typename?: 'QuoteV2';
|
|
6356
|
-
exchange: QuoteExchange;
|
|
6357
|
-
poolFee?: Maybe<Scalars['String']['output']>;
|
|
6358
|
-
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
6359
|
-
quoteType: QuoteType;
|
|
6360
|
-
quotedAmount: Scalars['String']['output'];
|
|
6361
|
-
tradeFee: Scalars['String']['output'];
|
|
6362
|
-
tradeFeeBps: Scalars['Float']['output'];
|
|
6363
|
-
};
|
|
6364
|
-
|
|
6365
6439
|
/** The order of ranking. */
|
|
6366
6440
|
export enum RankingDirection {
|
|
6367
6441
|
Asc = 'ASC',
|
|
@@ -6450,6 +6524,8 @@ export type ResolutionBarData = {
|
|
|
6450
6524
|
r15S?: Maybe<CurrencyBarData>;
|
|
6451
6525
|
/** 30 minute resolution. */
|
|
6452
6526
|
r30?: Maybe<CurrencyBarData>;
|
|
6527
|
+
/** 30 second resolution. */
|
|
6528
|
+
r30S?: Maybe<CurrencyBarData>;
|
|
6453
6529
|
/** 60 minute resolution. */
|
|
6454
6530
|
r60?: Maybe<CurrencyBarData>;
|
|
6455
6531
|
/** 4 hour resolution. */
|
|
@@ -6832,10 +6908,14 @@ export type Subscription = {
|
|
|
6832
6908
|
/** Live-streamed price updates for multiple tokens. */
|
|
6833
6909
|
onPricesUpdated: Price;
|
|
6834
6910
|
onSimulateTokenContract: SimulateTokenContractResult;
|
|
6911
|
+
/** Live-streamed bar chart data to track price changes over time for a token. */
|
|
6912
|
+
onTokenBarsUpdated?: Maybe<OnTokenBarsUpdatedResponse>;
|
|
6835
6913
|
/** Live streamed events for a given token across all it's pools */
|
|
6836
6914
|
onTokenEventsCreated: AddTokenEventsOutput;
|
|
6837
6915
|
/** Live-streamed token lifecycle events (mints and burns) */
|
|
6838
6916
|
onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
|
|
6917
|
+
/** Unconfirmed live-streamed bar chart data to track price changes over time. (Solana only) */
|
|
6918
|
+
onUnconfirmedBarsUpdated?: Maybe<OnUnconfirmedBarsUpdated>;
|
|
6839
6919
|
/** Live-streamed unconfirmed transactions for a token. (Solana only) */
|
|
6840
6920
|
onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
|
|
6841
6921
|
};
|
|
@@ -6926,6 +7006,12 @@ export type SubscriptionOnSimulateTokenContractArgs = {
|
|
|
6926
7006
|
};
|
|
6927
7007
|
|
|
6928
7008
|
|
|
7009
|
+
export type SubscriptionOnTokenBarsUpdatedArgs = {
|
|
7010
|
+
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
7011
|
+
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
7012
|
+
};
|
|
7013
|
+
|
|
7014
|
+
|
|
6929
7015
|
export type SubscriptionOnTokenEventsCreatedArgs = {
|
|
6930
7016
|
input: OnTokenEventsCreatedInput;
|
|
6931
7017
|
};
|
|
@@ -6937,6 +7023,12 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
|
|
|
6937
7023
|
};
|
|
6938
7024
|
|
|
6939
7025
|
|
|
7026
|
+
export type SubscriptionOnUnconfirmedBarsUpdatedArgs = {
|
|
7027
|
+
pairId?: InputMaybe<Scalars['String']['input']>;
|
|
7028
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
7029
|
+
};
|
|
7030
|
+
|
|
7031
|
+
|
|
6940
7032
|
export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
6941
7033
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
6942
7034
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -7256,6 +7348,14 @@ export type TokenFilterResult = {
|
|
|
7256
7348
|
volume12?: Maybe<Scalars['String']['output']>;
|
|
7257
7349
|
/** The trade volume in USD in the past 24 hours. */
|
|
7258
7350
|
volume24?: Maybe<Scalars['String']['output']>;
|
|
7351
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
7352
|
+
volumeChange1?: Maybe<Scalars['String']['output']>;
|
|
7353
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
7354
|
+
volumeChange4?: Maybe<Scalars['String']['output']>;
|
|
7355
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
7356
|
+
volumeChange12?: Maybe<Scalars['String']['output']>;
|
|
7357
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
7358
|
+
volumeChange24?: Maybe<Scalars['String']['output']>;
|
|
7259
7359
|
};
|
|
7260
7360
|
|
|
7261
7361
|
/** Input type of `TokenFilters`. */
|
|
@@ -7370,6 +7470,14 @@ export type TokenFilters = {
|
|
|
7370
7470
|
volume12?: InputMaybe<NumberFilter>;
|
|
7371
7471
|
/** The trade volume in USD in the past 24 hours. */
|
|
7372
7472
|
volume24?: InputMaybe<NumberFilter>;
|
|
7473
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
7474
|
+
volumeChange1?: InputMaybe<NumberFilter>;
|
|
7475
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
7476
|
+
volumeChange4?: InputMaybe<NumberFilter>;
|
|
7477
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
7478
|
+
volumeChange12?: InputMaybe<NumberFilter>;
|
|
7479
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
7480
|
+
volumeChange24?: InputMaybe<NumberFilter>;
|
|
7373
7481
|
};
|
|
7374
7482
|
|
|
7375
7483
|
/** Metadata for a token. */
|
|
@@ -7592,7 +7700,11 @@ export enum TokenRankingAttribute {
|
|
|
7592
7700
|
Volume1 = 'volume1',
|
|
7593
7701
|
Volume4 = 'volume4',
|
|
7594
7702
|
Volume12 = 'volume12',
|
|
7595
|
-
Volume24 = 'volume24'
|
|
7703
|
+
Volume24 = 'volume24',
|
|
7704
|
+
VolumeChange1 = 'volumeChange1',
|
|
7705
|
+
VolumeChange4 = 'volumeChange4',
|
|
7706
|
+
VolumeChange12 = 'volumeChange12',
|
|
7707
|
+
VolumeChange24 = 'volumeChange24'
|
|
7596
7708
|
}
|
|
7597
7709
|
|
|
7598
7710
|
/** Response returned by `searchTokens`. */
|
|
@@ -7739,6 +7851,25 @@ export type UnconfirmedEvent = {
|
|
|
7739
7851
|
|
|
7740
7852
|
export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
|
|
7741
7853
|
|
|
7854
|
+
/** Unconfirmed bar chart data. */
|
|
7855
|
+
export type UnconfirmedIndividualBarData = {
|
|
7856
|
+
__typename?: 'UnconfirmedIndividualBarData';
|
|
7857
|
+
/** The closing price. */
|
|
7858
|
+
c: Scalars['Float']['output'];
|
|
7859
|
+
/** The high price. */
|
|
7860
|
+
h: Scalars['Float']['output'];
|
|
7861
|
+
/** The low price. */
|
|
7862
|
+
l: Scalars['Float']['output'];
|
|
7863
|
+
/** The opening price. */
|
|
7864
|
+
o: Scalars['Float']['output'];
|
|
7865
|
+
/** The timestamp for the bar. */
|
|
7866
|
+
t: Scalars['Int']['output'];
|
|
7867
|
+
/** The volume. */
|
|
7868
|
+
v?: Maybe<Scalars['Int']['output']>;
|
|
7869
|
+
/** The volume with higher precision. */
|
|
7870
|
+
volume: Scalars['String']['output'];
|
|
7871
|
+
};
|
|
7872
|
+
|
|
7742
7873
|
export type UnconfirmedLiquidityChangeEventData = {
|
|
7743
7874
|
__typename?: 'UnconfirmedLiquidityChangeEventData';
|
|
7744
7875
|
/** The amount of `token0` added or removed from the pair. */
|
|
@@ -7753,10 +7884,35 @@ export type UnconfirmedLiquidityChangeEventData = {
|
|
|
7753
7884
|
type: EventType;
|
|
7754
7885
|
};
|
|
7755
7886
|
|
|
7887
|
+
/** Unconfirmed price data for each supported resolution. */
|
|
7888
|
+
export type UnconfirmedResolutionBarData = {
|
|
7889
|
+
__typename?: 'UnconfirmedResolutionBarData';
|
|
7890
|
+
/** 1 minute resolution. */
|
|
7891
|
+
r1?: Maybe<UnconfirmedIndividualBarData>;
|
|
7892
|
+
/** 1 second resolution. */
|
|
7893
|
+
r1S?: Maybe<UnconfirmedIndividualBarData>;
|
|
7894
|
+
/** 5 minute resolution. */
|
|
7895
|
+
r5?: Maybe<UnconfirmedIndividualBarData>;
|
|
7896
|
+
/** 5 second resolution. */
|
|
7897
|
+
r5S?: Maybe<UnconfirmedIndividualBarData>;
|
|
7898
|
+
/** 15 minute resolution. */
|
|
7899
|
+
r15?: Maybe<UnconfirmedIndividualBarData>;
|
|
7900
|
+
/** 15 second resolution. */
|
|
7901
|
+
r15S?: Maybe<UnconfirmedIndividualBarData>;
|
|
7902
|
+
};
|
|
7903
|
+
|
|
7756
7904
|
export type UnconfirmedSwapEventData = {
|
|
7757
7905
|
__typename?: 'UnconfirmedSwapEventData';
|
|
7758
7906
|
/** 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. */
|
|
7759
7907
|
amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
|
|
7908
|
+
/** 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. */
|
|
7909
|
+
priceBaseToken?: Maybe<Scalars['String']['output']>;
|
|
7910
|
+
/** The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`). */
|
|
7911
|
+
priceBaseTokenTotal?: Maybe<Scalars['String']['output']>;
|
|
7912
|
+
/** 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). */
|
|
7913
|
+
priceUsd?: Maybe<Scalars['String']['output']>;
|
|
7914
|
+
/** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
|
|
7915
|
+
priceUsdTotal?: Maybe<Scalars['String']['output']>;
|
|
7760
7916
|
/** The type of token event, `Swap`. */
|
|
7761
7917
|
type: EventType;
|
|
7762
7918
|
};
|