@codex-data/sdk 1.0.1 → 1.0.3
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/README.md +6 -0
- package/dist/resources/generated_queries/BackfillWalletState.graphql +3 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
- package/dist/resources/generated_queries/Holders.graphql +1 -0
- package/dist/resources/generated_queries/PairMetadata.graphql +126 -0
- package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
- package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
- package/dist/resources/graphql.d.ts +264 -2
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +14 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +724 -228
- package/dist/resources/graphql.ts +268 -2
- package/dist/resources/schema.graphql +533 -6
- package/dist/sdk/Query.d.ts +3 -1
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +2 -0
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.js +3 -3
- package/dist/sdk/generated/gql.d.ts +28 -14
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +9 -7
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +561 -2
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +25 -11
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/BackfillWalletState.graphql +3 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
- package/src/resources/generated_queries/Holders.graphql +1 -0
- package/src/resources/generated_queries/PairMetadata.graphql +126 -0
- package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
- package/src/resources/graphql.schema.json +724 -228
- package/src/resources/graphql.ts +268 -2
- package/src/resources/schema.graphql +533 -6
- package/src/sdk/Query.ts +8 -0
- package/src/sdk/Subscribe.ts +3 -3
- package/src/sdk/generated/gql.ts +24 -14
- package/src/sdk/generated/graphql.ts +296 -16
|
@@ -93,6 +93,13 @@ export type AddUserAchievementInput = {
|
|
|
93
93
|
userId: Scalars['String']['input'];
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
+
export enum AddressType {
|
|
97
|
+
Evm = 'EVM',
|
|
98
|
+
Sol = 'SOL',
|
|
99
|
+
Tron = 'TRON'
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
96
103
|
export enum AlertRecurrence {
|
|
97
104
|
Indefinite = 'INDEFINITE',
|
|
98
105
|
Once = 'ONCE'
|
|
@@ -320,20 +327,32 @@ export type CommunityNotesResponse = {
|
|
|
320
327
|
items: Array<CommunityNote>;
|
|
321
328
|
};
|
|
322
329
|
|
|
330
|
+
/** Comparison operators. */
|
|
323
331
|
export type ComparisonOperator = {
|
|
324
332
|
__typename?: 'ComparisonOperator';
|
|
333
|
+
/** Equal to. */
|
|
325
334
|
eq?: Maybe<Scalars['String']['output']>;
|
|
335
|
+
/** Greater than. */
|
|
326
336
|
gt?: Maybe<Scalars['String']['output']>;
|
|
337
|
+
/** Greater than or equal to. */
|
|
327
338
|
gte?: Maybe<Scalars['String']['output']>;
|
|
339
|
+
/** Less than. */
|
|
328
340
|
lt?: Maybe<Scalars['String']['output']>;
|
|
341
|
+
/** Less than or equal to. */
|
|
329
342
|
lte?: Maybe<Scalars['String']['output']>;
|
|
330
343
|
};
|
|
331
344
|
|
|
345
|
+
/** Input for comparison operators. */
|
|
332
346
|
export type ComparisonOperatorInput = {
|
|
347
|
+
/** Equal to. */
|
|
333
348
|
eq?: InputMaybe<Scalars['String']['input']>;
|
|
349
|
+
/** Greater than. */
|
|
334
350
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
351
|
+
/** Greater than or equal. */
|
|
335
352
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
353
|
+
/** Less than. */
|
|
336
354
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
355
|
+
/** Less than or equal. */
|
|
337
356
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
338
357
|
};
|
|
339
358
|
|
|
@@ -380,90 +399,156 @@ export type CreateApiTokensInput = {
|
|
|
380
399
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
381
400
|
};
|
|
382
401
|
|
|
402
|
+
/** Input for creating an NFT event webhook. */
|
|
383
403
|
export type CreateNftEventWebhookArgs = {
|
|
404
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
384
405
|
alertRecurrence: AlertRecurrence;
|
|
406
|
+
/** An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
385
407
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
408
|
+
/** An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
386
409
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
410
|
+
/** The url to which the webhook message should be sent. */
|
|
387
411
|
callbackUrl: Scalars['String']['input'];
|
|
412
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
388
413
|
conditions: NftEventWebhookConditionInput;
|
|
414
|
+
/** If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook. */
|
|
389
415
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
416
|
+
/** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
|
|
390
417
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
418
|
+
/** The name of the webhook (max 128 characters). */
|
|
391
419
|
name: Scalars['String']['input'];
|
|
420
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
392
421
|
publishingType?: InputMaybe<PublishingType>;
|
|
422
|
+
/** The settings for retrying failed webhook messages. */
|
|
393
423
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
424
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
394
425
|
securityToken: Scalars['String']['input'];
|
|
395
426
|
};
|
|
396
427
|
|
|
428
|
+
/** Input for creating NFT event webhooks. */
|
|
397
429
|
export type CreateNftEventWebhooksInput = {
|
|
430
|
+
/** A list of NFT event webhooks to create. */
|
|
398
431
|
webhooks: Array<CreateNftEventWebhookArgs>;
|
|
399
432
|
};
|
|
400
433
|
|
|
434
|
+
/** Input for creating a price webhook. */
|
|
401
435
|
export type CreatePriceWebhookArgs = {
|
|
436
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
402
437
|
alertRecurrence: AlertRecurrence;
|
|
438
|
+
/** An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
403
439
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
440
|
+
/** An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
404
441
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
442
|
+
/** The url to which the webhook message should be sent. */
|
|
405
443
|
callbackUrl: Scalars['String']['input'];
|
|
444
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
406
445
|
conditions: PriceEventWebhookConditionInput;
|
|
446
|
+
/** If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook. */
|
|
407
447
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
448
|
+
/** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
|
|
408
449
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
450
|
+
/** The name of the webhook (max 128 characters). */
|
|
409
451
|
name: Scalars['String']['input'];
|
|
452
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
410
453
|
publishingType?: InputMaybe<PublishingType>;
|
|
454
|
+
/** The settings for retrying failed webhook messages. */
|
|
411
455
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
456
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
412
457
|
securityToken: Scalars['String']['input'];
|
|
413
458
|
};
|
|
414
459
|
|
|
460
|
+
/** Input for creating price webhooks. */
|
|
415
461
|
export type CreatePriceWebhooksInput = {
|
|
462
|
+
/** A list of price webhooks to create. */
|
|
416
463
|
webhooks: Array<CreatePriceWebhookArgs>;
|
|
417
464
|
};
|
|
418
465
|
|
|
466
|
+
/** Input for creating a Raw Transaction webhook. */
|
|
419
467
|
export type CreateRawTransactionWebhookArgs = {
|
|
468
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
420
469
|
alertRecurrence: AlertRecurrence;
|
|
470
|
+
/** An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
421
471
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
472
|
+
/** An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
422
473
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
474
|
+
/** The url to which the webhook message should be sent. */
|
|
423
475
|
callbackUrl: Scalars['String']['input'];
|
|
476
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
424
477
|
conditions: RawTransactionWebhookConditionInput;
|
|
478
|
+
/** If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook. */
|
|
425
479
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
480
|
+
/** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
|
|
426
481
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
482
|
+
/** The name of the webhook (max 128 characters). */
|
|
427
483
|
name: Scalars['String']['input'];
|
|
484
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
428
485
|
publishingType?: InputMaybe<PublishingType>;
|
|
486
|
+
/** The settings for retrying failed webhook messages. */
|
|
429
487
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
488
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
430
489
|
securityToken: Scalars['String']['input'];
|
|
431
490
|
};
|
|
432
491
|
|
|
492
|
+
/** Input for creating Raw Transaction webhooks. */
|
|
433
493
|
export type CreateRawTransactionWebhooksInput = {
|
|
494
|
+
/** A list of Raw Transaction webhooks to create. */
|
|
434
495
|
webhooks: Array<CreateRawTransactionWebhookArgs>;
|
|
435
496
|
};
|
|
436
497
|
|
|
498
|
+
/** Input for creating a token pair event webhook. */
|
|
437
499
|
export type CreateTokenPairEventWebhookArgs = {
|
|
500
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
438
501
|
alertRecurrence: AlertRecurrence;
|
|
502
|
+
/** An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
439
503
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
504
|
+
/** An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
440
505
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
506
|
+
/** The url to which the webhook message should be sent. */
|
|
441
507
|
callbackUrl: Scalars['String']['input'];
|
|
508
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
442
509
|
conditions: TokenPairEventWebhookConditionInput;
|
|
510
|
+
/** If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook. */
|
|
443
511
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
512
|
+
/** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
|
|
444
513
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
514
|
+
/** The name of the webhook (max 128 characters). */
|
|
445
515
|
name: Scalars['String']['input'];
|
|
516
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
446
517
|
publishingType?: InputMaybe<PublishingType>;
|
|
518
|
+
/** The settings for retrying failed webhook messages. */
|
|
447
519
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
520
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
448
521
|
securityToken: Scalars['String']['input'];
|
|
449
522
|
};
|
|
450
523
|
|
|
524
|
+
/** Input for creating token pair event webhooks. */
|
|
451
525
|
export type CreateTokenPairEventWebhooksInput = {
|
|
526
|
+
/** A list of token pair event webhooks to create. */
|
|
452
527
|
webhooks: Array<CreateTokenPairEventWebhookArgs>;
|
|
453
528
|
};
|
|
454
529
|
|
|
530
|
+
/** Input for creating webhooks. */
|
|
455
531
|
export type CreateWebhooksInput = {
|
|
532
|
+
/** Input for creating NFT event webhooks. */
|
|
456
533
|
nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
|
|
534
|
+
/** Input for creating price webhooks. */
|
|
457
535
|
priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
|
|
536
|
+
/** Input for creating raw transaction webhooks. */
|
|
458
537
|
rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
|
|
538
|
+
/** Input for creating token pair event webhooks. */
|
|
459
539
|
tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
|
|
460
540
|
};
|
|
461
541
|
|
|
542
|
+
/** Result returned by `createWebhooks`. */
|
|
462
543
|
export type CreateWebhooksOutput = {
|
|
463
544
|
__typename?: 'CreateWebhooksOutput';
|
|
545
|
+
/** The list of NFT event webhooks that were created. */
|
|
464
546
|
nftEventWebhooks: Array<Maybe<Webhook>>;
|
|
547
|
+
/** The list of price webhooks that were created. */
|
|
465
548
|
priceWebhooks: Array<Maybe<Webhook>>;
|
|
549
|
+
/** The list of raw transaction webhooks that were created. */
|
|
466
550
|
rawTransactionWebhooks: Array<Maybe<Webhook>>;
|
|
551
|
+
/** The list of token pair event webhooks that were created. */
|
|
467
552
|
tokenPairEventWebhooks: Array<Maybe<Webhook>>;
|
|
468
553
|
};
|
|
469
554
|
|
|
@@ -484,12 +569,16 @@ export type CurrencyBarData = {
|
|
|
484
569
|
usd: IndividualBarData;
|
|
485
570
|
};
|
|
486
571
|
|
|
572
|
+
/** Input for deleting webhooks. */
|
|
487
573
|
export type DeleteWebhooksInput = {
|
|
574
|
+
/** A list of webhook IDs to delete. */
|
|
488
575
|
webhookIds: Array<Scalars['String']['input']>;
|
|
489
576
|
};
|
|
490
577
|
|
|
578
|
+
/** Result returned by `deleteWebhooks`. */
|
|
491
579
|
export type DeleteWebhooksOutput = {
|
|
492
580
|
__typename?: 'DeleteWebhooksOutput';
|
|
581
|
+
/** The list of webhook IDs that were deleted. */
|
|
493
582
|
deletedIds?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
494
583
|
};
|
|
495
584
|
|
|
@@ -850,12 +939,16 @@ export type Event = {
|
|
|
850
939
|
quoteToken?: Maybe<QuoteToken>;
|
|
851
940
|
/** The unix timestamp for when the transaction occurred. */
|
|
852
941
|
timestamp: Scalars['Int']['output'];
|
|
942
|
+
/** The address of the event's token0. */
|
|
943
|
+
token0Address?: Maybe<Scalars['String']['output']>;
|
|
853
944
|
/** The updated price of `token0` in USD, calculated after the transaction. */
|
|
854
945
|
token0PoolValueUsd?: Maybe<Scalars['String']['output']>;
|
|
855
946
|
/** The price of `token0` paid/received in USD, including any fees. */
|
|
856
947
|
token0SwapValueUsd?: Maybe<Scalars['String']['output']>;
|
|
857
948
|
/** The price of `token0` paid/received in the network's base token, including fees. */
|
|
858
949
|
token0ValueBase?: Maybe<Scalars['String']['output']>;
|
|
950
|
+
/** The address of the event's token1. */
|
|
951
|
+
token1Address?: Maybe<Scalars['String']['output']>;
|
|
859
952
|
/** The updated price of `token1` in USD, calculated after the transaction. */
|
|
860
953
|
token1PoolValueUsd?: Maybe<Scalars['String']['output']>;
|
|
861
954
|
/** The price of `token1` paid/received in USD, including any fees. */
|
|
@@ -1307,9 +1400,12 @@ export type GetTokensInfoInput = {
|
|
|
1307
1400
|
networkId: Scalars['Int']['input'];
|
|
1308
1401
|
};
|
|
1309
1402
|
|
|
1403
|
+
/** Response returned by `getWebhooks`. */
|
|
1310
1404
|
export type GetWebhooksResponse = {
|
|
1311
1405
|
__typename?: 'GetWebhooksResponse';
|
|
1406
|
+
/** A cursor for use in pagination. */
|
|
1312
1407
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
1408
|
+
/** A list of webhooks belonging to a user. */
|
|
1313
1409
|
items?: Maybe<Array<Maybe<Webhook>>>;
|
|
1314
1410
|
};
|
|
1315
1411
|
|
|
@@ -1345,6 +1441,8 @@ export type HoldersResponse = {
|
|
|
1345
1441
|
items: Array<Balance>;
|
|
1346
1442
|
/** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
|
|
1347
1443
|
status: HoldersStatus;
|
|
1444
|
+
/** What percentage of the total supply do the top 10 holders hold */
|
|
1445
|
+
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
1348
1446
|
};
|
|
1349
1447
|
|
|
1350
1448
|
export enum HoldersSortAttribute {
|
|
@@ -1396,12 +1494,16 @@ export type IndividualBarData = {
|
|
|
1396
1494
|
volumeNativeToken: Scalars['String']['output'];
|
|
1397
1495
|
};
|
|
1398
1496
|
|
|
1497
|
+
/** Integer equals condition. */
|
|
1399
1498
|
export type IntEqualsCondition = {
|
|
1400
1499
|
__typename?: 'IntEqualsCondition';
|
|
1500
|
+
/** The integer to equal. */
|
|
1401
1501
|
eq: Scalars['Int']['output'];
|
|
1402
1502
|
};
|
|
1403
1503
|
|
|
1504
|
+
/** Input for integer equals condition. */
|
|
1404
1505
|
export type IntEqualsConditionInput = {
|
|
1506
|
+
/** The integer to equal. */
|
|
1405
1507
|
eq: Scalars['Int']['input'];
|
|
1406
1508
|
};
|
|
1407
1509
|
|
|
@@ -1692,12 +1794,20 @@ export type MakerEventConnection = {
|
|
|
1692
1794
|
};
|
|
1693
1795
|
|
|
1694
1796
|
export type MakerEventsQueryInput = {
|
|
1797
|
+
/** The specific event type to filter by. */
|
|
1798
|
+
eventType?: InputMaybe<EventType>;
|
|
1695
1799
|
/** The specific wallet address to filter by. */
|
|
1696
1800
|
maker: Scalars['String']['input'];
|
|
1697
1801
|
/** The network ID to filter by. */
|
|
1698
|
-
networkId
|
|
1699
|
-
/** The
|
|
1802
|
+
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
1803
|
+
/** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
|
|
1804
|
+
priceUsdTotal?: InputMaybe<NumberFilter>;
|
|
1805
|
+
/** docs: hide */
|
|
1700
1806
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
1807
|
+
/** The time range to filter by. */
|
|
1808
|
+
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1809
|
+
/** The token involved in the event. */
|
|
1810
|
+
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1701
1811
|
};
|
|
1702
1812
|
|
|
1703
1813
|
/** The status for a network supported on Defined. */
|
|
@@ -1748,9 +1858,11 @@ export type Mutation = {
|
|
|
1748
1858
|
__typename?: 'Mutation';
|
|
1749
1859
|
/** Create a new set of short-lived api access tokens */
|
|
1750
1860
|
createApiTokens: Array<ApiToken>;
|
|
1861
|
+
/** Create price, raw transaction, token/pair event, and NFT event webhooks. */
|
|
1751
1862
|
createWebhooks: CreateWebhooksOutput;
|
|
1752
1863
|
/** Delete a single short-lived api access token by id */
|
|
1753
1864
|
deleteApiToken: Scalars['String']['output'];
|
|
1865
|
+
/** Delete multiple webhooks. */
|
|
1754
1866
|
deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
|
|
1755
1867
|
};
|
|
1756
1868
|
|
|
@@ -2901,12 +3013,16 @@ export type NftEvent = {
|
|
|
2901
3013
|
transactionIndex: Scalars['Int']['output'];
|
|
2902
3014
|
};
|
|
2903
3015
|
|
|
3016
|
+
/** NFT marketplaces for a webhook to listen on. */
|
|
2904
3017
|
export type NftEventFillSourceCondition = {
|
|
2905
3018
|
__typename?: 'NftEventFillSourceCondition';
|
|
3019
|
+
/** The list of NFT marketplaces. */
|
|
2906
3020
|
oneOf: Array<WebhookNftEventFillSource>;
|
|
2907
3021
|
};
|
|
2908
3022
|
|
|
3023
|
+
/** Input for NFT event fill source condition. */
|
|
2909
3024
|
export type NftEventFillSourceConditionInput = {
|
|
3025
|
+
/** The list of NFT marketplace to equal. */
|
|
2910
3026
|
oneOf: Array<WebhookNftEventFillSource>;
|
|
2911
3027
|
};
|
|
2912
3028
|
|
|
@@ -2982,37 +3098,61 @@ export enum NftEventTradeItemType {
|
|
|
2982
3098
|
Token = 'TOKEN'
|
|
2983
3099
|
}
|
|
2984
3100
|
|
|
3101
|
+
/** An NFT event type for a webhook to listen for. */
|
|
2985
3102
|
export type NftEventTypeCondition = {
|
|
2986
3103
|
__typename?: 'NftEventTypeCondition';
|
|
3104
|
+
/** The NFT event type. */
|
|
2987
3105
|
eq: WebhookNftEventType;
|
|
2988
3106
|
};
|
|
2989
3107
|
|
|
3108
|
+
/** Input for NFT event type. */
|
|
2990
3109
|
export type NftEventTypeConditionInput = {
|
|
3110
|
+
/** The NFT event type to equal. */
|
|
2991
3111
|
eq: WebhookNftEventType;
|
|
2992
3112
|
};
|
|
2993
3113
|
|
|
3114
|
+
/** Webhook conditions for an NFT event. */
|
|
2994
3115
|
export type NftEventWebhookCondition = {
|
|
2995
3116
|
__typename?: 'NftEventWebhookCondition';
|
|
3117
|
+
/** The NFT collection contract address the webhook is listening for. */
|
|
2996
3118
|
contractAddress?: Maybe<StringEqualsCondition>;
|
|
3119
|
+
/** The NFT event type the webhook is listening for. */
|
|
2997
3120
|
eventType?: Maybe<NftEventTypeCondition>;
|
|
3121
|
+
/** The exchange contract address the webhook is listening for. */
|
|
2998
3122
|
exchangeAddress?: Maybe<StringEqualsCondition>;
|
|
3123
|
+
/** The NFT marketplaces the webhook is listening on. */
|
|
2999
3124
|
fillSource?: Maybe<NftEventFillSourceCondition>;
|
|
3125
|
+
/** Option to ignore all nft transfer events */
|
|
3000
3126
|
ignoreTransfers?: Maybe<Scalars['Boolean']['output']>;
|
|
3127
|
+
/** The base token price the webhook is listening for. */
|
|
3001
3128
|
individualBaseTokenPrice?: Maybe<ComparisonOperator>;
|
|
3129
|
+
/** The maker wallet address the webhook is listening for. */
|
|
3002
3130
|
maker?: Maybe<StringEqualsCondition>;
|
|
3131
|
+
/** The list of network IDs the webhook is listening on. */
|
|
3003
3132
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
3133
|
+
/** The token contract address the webhook is listening for. */
|
|
3004
3134
|
tokenAddress?: Maybe<StringEqualsCondition>;
|
|
3135
|
+
/** The token ID the webhook is listening for. */
|
|
3005
3136
|
tokenId?: Maybe<StringEqualsCondition>;
|
|
3006
3137
|
};
|
|
3007
3138
|
|
|
3139
|
+
/** Input conditions for an NFT event webhook. */
|
|
3008
3140
|
export type NftEventWebhookConditionInput = {
|
|
3141
|
+
/** The NFT collection contract address to listen for. */
|
|
3009
3142
|
contractAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
3143
|
+
/** The NFT event type to listen for. */
|
|
3010
3144
|
eventType?: InputMaybe<NftEventTypeConditionInput>;
|
|
3145
|
+
/** The exchange contract address to listen for. */
|
|
3011
3146
|
exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
3147
|
+
/** The NFT marketplaces to listen for. */
|
|
3012
3148
|
fillSource?: InputMaybe<NftEventFillSourceConditionInput>;
|
|
3149
|
+
/** Option to ignore all nft transfer events */
|
|
3013
3150
|
ignoreTransfers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3151
|
+
/** The maker wallet address to listen for. */
|
|
3014
3152
|
maker?: InputMaybe<StringEqualsConditionInput>;
|
|
3153
|
+
/** A list of network IDs to listen on. */
|
|
3015
3154
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
3155
|
+
/** The token ID to listen for. */
|
|
3016
3156
|
tokenId?: InputMaybe<StringEqualsConditionInput>;
|
|
3017
3157
|
};
|
|
3018
3158
|
|
|
@@ -4439,12 +4579,16 @@ export type OnUnconfirmedBarsUpdated = {
|
|
|
4439
4579
|
timestamp: Scalars['Int']['output'];
|
|
4440
4580
|
};
|
|
4441
4581
|
|
|
4582
|
+
/** Integer list condition. */
|
|
4442
4583
|
export type OneOfNumberCondition = {
|
|
4443
4584
|
__typename?: 'OneOfNumberCondition';
|
|
4585
|
+
/** The list of integers. */
|
|
4444
4586
|
oneOf: Array<Scalars['Int']['output']>;
|
|
4445
4587
|
};
|
|
4446
4588
|
|
|
4589
|
+
/** Input for integer list condition. */
|
|
4447
4590
|
export type OneOfNumberConditionInput = {
|
|
4591
|
+
/** The list of integers. */
|
|
4448
4592
|
oneOf: Array<Scalars['Int']['input']>;
|
|
4449
4593
|
};
|
|
4450
4594
|
|
|
@@ -4766,6 +4910,8 @@ export type PairFilters = {
|
|
|
4766
4910
|
|
|
4767
4911
|
export type PairMetadata = {
|
|
4768
4912
|
__typename?: 'PairMetadata';
|
|
4913
|
+
enhancedToken0?: Maybe<EnhancedToken>;
|
|
4914
|
+
enhancedToken1?: Maybe<EnhancedToken>;
|
|
4769
4915
|
exchangeId?: Maybe<Scalars['String']['output']>;
|
|
4770
4916
|
fee?: Maybe<Scalars['Int']['output']>;
|
|
4771
4917
|
highPrice1?: Maybe<Scalars['String']['output']>;
|
|
@@ -5248,16 +5394,28 @@ export type Price = {
|
|
|
5248
5394
|
timestamp: Scalars['Int']['output'];
|
|
5249
5395
|
};
|
|
5250
5396
|
|
|
5397
|
+
/** Webhook conditions for a price event. */
|
|
5251
5398
|
export type PriceEventWebhookCondition = {
|
|
5252
5399
|
__typename?: 'PriceEventWebhookCondition';
|
|
5400
|
+
/** The network ID the webhook is listening on. */
|
|
5253
5401
|
networkId: IntEqualsCondition;
|
|
5402
|
+
/** The pair contract address the webhook is listening for. */
|
|
5403
|
+
pairAddress?: Maybe<StringEqualsCondition>;
|
|
5404
|
+
/** The price condition that must be met in order for the webhook to send. */
|
|
5254
5405
|
priceUsd: ComparisonOperator;
|
|
5406
|
+
/** The token contract address the webhook is listening for. */
|
|
5255
5407
|
tokenAddress: StringEqualsCondition;
|
|
5256
5408
|
};
|
|
5257
5409
|
|
|
5410
|
+
/** Input conditions for a price event webhook. */
|
|
5258
5411
|
export type PriceEventWebhookConditionInput = {
|
|
5412
|
+
/** The network ID to listen on. */
|
|
5259
5413
|
networkId: IntEqualsConditionInput;
|
|
5414
|
+
/** The contract address of the pair to listen for. */
|
|
5415
|
+
pairAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
5416
|
+
/** The price conditions to listen for. */
|
|
5260
5417
|
priceUsd: ComparisonOperatorInput;
|
|
5418
|
+
/** The contract address of the token to listen for. */
|
|
5261
5419
|
tokenAddress: StringEqualsConditionInput;
|
|
5262
5420
|
};
|
|
5263
5421
|
|
|
@@ -5765,6 +5923,7 @@ export type Query = {
|
|
|
5765
5923
|
apiToken: ApiToken;
|
|
5766
5924
|
/** Get all active short-lived api tokens for this api key */
|
|
5767
5925
|
apiTokens: Array<ApiToken>;
|
|
5926
|
+
backfillWalletState: Scalars['Boolean']['output'];
|
|
5768
5927
|
/** Returns list of token balances that a wallet has */
|
|
5769
5928
|
balances: BalancesResponse;
|
|
5770
5929
|
/** Returns a URL for a pair chart. */
|
|
@@ -5850,6 +6009,7 @@ export type Query = {
|
|
|
5850
6009
|
getTokenCount: Scalars['String']['output'];
|
|
5851
6010
|
/** Returns transactions for a pair. */
|
|
5852
6011
|
getTokenEvents?: Maybe<EventConnection>;
|
|
6012
|
+
/** Returns a list of token events for a given maker. */
|
|
5853
6013
|
getTokenEventsForMaker?: Maybe<MakerEventConnection>;
|
|
5854
6014
|
/** Returns metadata for a given token. */
|
|
5855
6015
|
getTokenInfo?: Maybe<TokenInfo>;
|
|
@@ -5859,6 +6019,7 @@ export type Query = {
|
|
|
5859
6019
|
getTokensInfo?: Maybe<Array<Maybe<TokenInfo>>>;
|
|
5860
6020
|
/** Returns tick data for a given Uniswap V3-style pool. */
|
|
5861
6021
|
getUniV3Ticks?: Maybe<UniV3TickConnection>;
|
|
6022
|
+
/** Returns a user's list of webhooks. */
|
|
5862
6023
|
getWebhooks?: Maybe<GetWebhooksResponse>;
|
|
5863
6024
|
/** Returns list of wallets that hold a given token, ordered by holdings descending. Also has the unique count of holders for that token */
|
|
5864
6025
|
holders: HoldersResponse;
|
|
@@ -5897,6 +6058,8 @@ export type Query = {
|
|
|
5897
6058
|
tokenSparklines: Array<TokenSparkline>;
|
|
5898
6059
|
/** Find a list of tokens by their addresses & network id, with pagination. */
|
|
5899
6060
|
tokens: Array<Maybe<EnhancedToken>>;
|
|
6061
|
+
/** What percent of the total supply do the top 10 holders of a token hold */
|
|
6062
|
+
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
5900
6063
|
/** Returns list of NFT assets held by a given wallet for a single collection. */
|
|
5901
6064
|
walletNftCollectionAssets: WalletNftCollectionAssetsResponse;
|
|
5902
6065
|
/** Returns list of collections and quantity of NFTs held by a given wallet. */
|
|
@@ -6399,6 +6562,11 @@ export type QueryTokensArgs = {
|
|
|
6399
6562
|
};
|
|
6400
6563
|
|
|
6401
6564
|
|
|
6565
|
+
export type QueryTop10HoldersPercentArgs = {
|
|
6566
|
+
tokenId: Scalars['String']['input'];
|
|
6567
|
+
};
|
|
6568
|
+
|
|
6569
|
+
|
|
6402
6570
|
export type QueryWalletNftCollectionAssetsArgs = {
|
|
6403
6571
|
input: WalletNftCollectionAssetsInput;
|
|
6404
6572
|
};
|
|
@@ -6466,24 +6634,40 @@ export type RawNftAssetData = {
|
|
|
6466
6634
|
imageUrl?: Maybe<Scalars['String']['output']>;
|
|
6467
6635
|
};
|
|
6468
6636
|
|
|
6637
|
+
/** Webhook conditions for a raw transaction. */
|
|
6469
6638
|
export type RawTransactionWebhookCondition = {
|
|
6470
6639
|
__typename?: 'RawTransactionWebhookCondition';
|
|
6640
|
+
/** The from address to listen for. */
|
|
6471
6641
|
from?: Maybe<StringEqualsCondition>;
|
|
6642
|
+
/** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
|
|
6472
6643
|
ignoreNftEvents?: Maybe<Scalars['Boolean']['output']>;
|
|
6644
|
+
/** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
|
|
6473
6645
|
ignoreTokenPairEvents?: Maybe<Scalars['Boolean']['output']>;
|
|
6646
|
+
/** Trigger the webhook if the contains or doesn't contain the specified string. */
|
|
6474
6647
|
input?: Maybe<StringContainsCondition>;
|
|
6648
|
+
/** A list of network IDs to listen on. */
|
|
6475
6649
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
6650
|
+
/** The to address to listen for. */
|
|
6476
6651
|
to?: Maybe<StringEqualsCondition>;
|
|
6652
|
+
/** Trigger the webhook if either the to or the from address matches. */
|
|
6477
6653
|
toOrFrom?: Maybe<StringEqualsCondition>;
|
|
6478
6654
|
};
|
|
6479
6655
|
|
|
6656
|
+
/** Input conditions for a Raw Transaction webhook. */
|
|
6480
6657
|
export type RawTransactionWebhookConditionInput = {
|
|
6658
|
+
/** The from address to listen for. */
|
|
6481
6659
|
from?: InputMaybe<StringEqualsConditionInput>;
|
|
6660
|
+
/** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
|
|
6482
6661
|
ignoreNftEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6662
|
+
/** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
|
|
6483
6663
|
ignoreTokenPairEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6664
|
+
/** Trigger the webhook if the input contains or doesn't contain the specified string. */
|
|
6484
6665
|
input?: InputMaybe<StringContainsConditionInput>;
|
|
6666
|
+
/** A list of network IDs to listen on. */
|
|
6485
6667
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
6668
|
+
/** The to address to listen for. */
|
|
6486
6669
|
to?: InputMaybe<StringEqualsConditionInput>;
|
|
6670
|
+
/** Trigger the webhook if either the to or the from address matches. */
|
|
6487
6671
|
toOrFrom?: InputMaybe<StringEqualsConditionInput>;
|
|
6488
6672
|
};
|
|
6489
6673
|
|
|
@@ -6550,18 +6734,28 @@ export type ResolutionBarData = {
|
|
|
6550
6734
|
r720?: Maybe<CurrencyBarData>;
|
|
6551
6735
|
};
|
|
6552
6736
|
|
|
6737
|
+
/** Config for retrying failed webhook messages */
|
|
6553
6738
|
export type RetrySettings = {
|
|
6554
6739
|
__typename?: 'RetrySettings';
|
|
6740
|
+
/** The maximum number of times the webhook will retry sending a message */
|
|
6555
6741
|
maxRetries?: Maybe<Scalars['Int']['output']>;
|
|
6742
|
+
/** The maximum time in seconds that the webhook will wait before retrying a failed message */
|
|
6556
6743
|
maxRetryDelay?: Maybe<Scalars['Int']['output']>;
|
|
6744
|
+
/** The maximum time in seconds that the webhook will retry sending a message */
|
|
6557
6745
|
maxTimeElapsed?: Maybe<Scalars['Int']['output']>;
|
|
6746
|
+
/** The minimum time in seconds that the webhook will wait before retrying a failed message */
|
|
6558
6747
|
minRetryDelay?: Maybe<Scalars['Int']['output']>;
|
|
6559
6748
|
};
|
|
6560
6749
|
|
|
6750
|
+
/** Config input for retrying failed webhook messages */
|
|
6561
6751
|
export type RetrySettingsInput = {
|
|
6752
|
+
/** The maximum number of times the webhook will retry sending a message */
|
|
6562
6753
|
maxRetries?: InputMaybe<Scalars['Int']['input']>;
|
|
6754
|
+
/** The maximum time in seconds that the webhook will wait before retrying a failed message */
|
|
6563
6755
|
maxRetryDelay?: InputMaybe<Scalars['Int']['input']>;
|
|
6756
|
+
/** The maximum time in seconds that the webhook will retry sending a message */
|
|
6564
6757
|
maxTimeElapsed?: InputMaybe<Scalars['Int']['input']>;
|
|
6758
|
+
/** The minimum time in seconds that the webhook will wait before retrying a failed message */
|
|
6565
6759
|
minRetryDelay?: InputMaybe<Scalars['Int']['input']>;
|
|
6566
6760
|
};
|
|
6567
6761
|
|
|
@@ -6866,23 +7060,33 @@ export type StatsFilter = {
|
|
|
6866
7060
|
previous?: InputMaybe<NumberFilter>;
|
|
6867
7061
|
};
|
|
6868
7062
|
|
|
7063
|
+
/** String contains condition. */
|
|
6869
7064
|
export type StringContainsCondition = {
|
|
6870
7065
|
__typename?: 'StringContainsCondition';
|
|
7066
|
+
/** A list of substrings included within the string. */
|
|
6871
7067
|
contains?: Maybe<Array<Scalars['String']['output']>>;
|
|
7068
|
+
/** A list of substrings not included within the string. */
|
|
6872
7069
|
notContains?: Maybe<Array<Scalars['String']['output']>>;
|
|
6873
7070
|
};
|
|
6874
7071
|
|
|
7072
|
+
/** Input for string contains condition. */
|
|
6875
7073
|
export type StringContainsConditionInput = {
|
|
7074
|
+
/** A list of substrings to be included within the string. */
|
|
6876
7075
|
contains?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
7076
|
+
/** A list of substrings not to be included within the string. */
|
|
6877
7077
|
notContains?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6878
7078
|
};
|
|
6879
7079
|
|
|
7080
|
+
/** String equals condition. */
|
|
6880
7081
|
export type StringEqualsCondition = {
|
|
6881
7082
|
__typename?: 'StringEqualsCondition';
|
|
7083
|
+
/** The string to equal. */
|
|
6882
7084
|
eq: Scalars['String']['output'];
|
|
6883
7085
|
};
|
|
6884
7086
|
|
|
7087
|
+
/** Input for string equals condition. */
|
|
6885
7088
|
export type StringEqualsConditionInput = {
|
|
7089
|
+
/** The string to equal. */
|
|
6886
7090
|
eq: Scalars['String']['input'];
|
|
6887
7091
|
};
|
|
6888
7092
|
|
|
@@ -7052,6 +7256,26 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
|
7052
7256
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
7053
7257
|
};
|
|
7054
7258
|
|
|
7259
|
+
export type SuiNetworkConfig = {
|
|
7260
|
+
__typename?: 'SuiNetworkConfig';
|
|
7261
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
7262
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
7263
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
7264
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
7265
|
+
defaultPairQuoteToken: QuoteToken;
|
|
7266
|
+
enabled: Scalars['Boolean']['output'];
|
|
7267
|
+
id: Scalars['ID']['output'];
|
|
7268
|
+
mainnet: Scalars['Boolean']['output'];
|
|
7269
|
+
name: Scalars['String']['output'];
|
|
7270
|
+
networkIconUrl: Scalars['String']['output'];
|
|
7271
|
+
networkId: Scalars['Int']['output'];
|
|
7272
|
+
networkName: Scalars['String']['output'];
|
|
7273
|
+
networkShortName: Scalars['String']['output'];
|
|
7274
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
7275
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
7276
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
7277
|
+
};
|
|
7278
|
+
|
|
7055
7279
|
/** Event data for a token swap event. */
|
|
7056
7280
|
export type SwapEventData = {
|
|
7057
7281
|
__typename?: 'SwapEventData';
|
|
@@ -7435,6 +7659,8 @@ export type TokenFilters = {
|
|
|
7435
7659
|
marketCap?: InputMaybe<NumberFilter>;
|
|
7436
7660
|
/** The list of network IDs to filter by. Applied in conjunction with `exchangeId` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
|
|
7437
7661
|
network?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
|
|
7662
|
+
/** docs: hide */
|
|
7663
|
+
notableHolderCount?: InputMaybe<NumberFilter>;
|
|
7438
7664
|
/** Filter potential Scams */
|
|
7439
7665
|
potentialScam?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7440
7666
|
/** The token price in USD. */
|
|
@@ -7610,6 +7836,7 @@ export enum TokenOfInterest {
|
|
|
7610
7836
|
Token1 = 'token1'
|
|
7611
7837
|
}
|
|
7612
7838
|
|
|
7839
|
+
/** Token pair event types. */
|
|
7613
7840
|
export enum TokenPairEventType {
|
|
7614
7841
|
Burn = 'BURN',
|
|
7615
7842
|
Buy = 'BUY',
|
|
@@ -7621,33 +7848,53 @@ export enum TokenPairEventType {
|
|
|
7621
7848
|
Sync = 'SYNC'
|
|
7622
7849
|
}
|
|
7623
7850
|
|
|
7851
|
+
/** Webhook condition for token pair event type. */
|
|
7624
7852
|
export type TokenPairEventTypeCondition = {
|
|
7625
7853
|
__typename?: 'TokenPairEventTypeCondition';
|
|
7854
|
+
/** The list of token pair event types. */
|
|
7626
7855
|
oneOf: Array<TokenPairEventType>;
|
|
7627
7856
|
};
|
|
7628
7857
|
|
|
7858
|
+
/** Input for token pair event type condition. */
|
|
7629
7859
|
export type TokenPairEventTypeConditionInput = {
|
|
7860
|
+
/** The list of token event types to equal. */
|
|
7630
7861
|
oneOf: Array<TokenPairEventType>;
|
|
7631
7862
|
};
|
|
7632
7863
|
|
|
7864
|
+
/** Webhook conditions for a token pair event. */
|
|
7633
7865
|
export type TokenPairEventWebhookCondition = {
|
|
7634
7866
|
__typename?: 'TokenPairEventWebhookCondition';
|
|
7867
|
+
/** The event type the webhook is listening for. */
|
|
7635
7868
|
eventType?: Maybe<TokenPairEventTypeCondition>;
|
|
7869
|
+
/** The exchange contract address the webhook is listening for. */
|
|
7636
7870
|
exchangeAddress?: Maybe<StringEqualsCondition>;
|
|
7871
|
+
/** The maker wallet address the webhook is listening for. */
|
|
7637
7872
|
maker?: Maybe<StringEqualsCondition>;
|
|
7873
|
+
/** The list of network IDs the webhook is listening on. */
|
|
7638
7874
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
7875
|
+
/** The pair contract address the webhook is listening for. */
|
|
7639
7876
|
pairAddress?: Maybe<StringEqualsCondition>;
|
|
7877
|
+
/** The swap values the webhook is listening for. */
|
|
7640
7878
|
swapValue?: Maybe<ComparisonOperator>;
|
|
7879
|
+
/** The token contract address the webhook is listening for. */
|
|
7641
7880
|
tokenAddress?: Maybe<StringEqualsCondition>;
|
|
7642
7881
|
};
|
|
7643
7882
|
|
|
7883
|
+
/** Input conditions for a token pair event webhook. */
|
|
7644
7884
|
export type TokenPairEventWebhookConditionInput = {
|
|
7885
|
+
/** The token event type to listen for. */
|
|
7645
7886
|
eventType?: InputMaybe<TokenPairEventTypeConditionInput>;
|
|
7887
|
+
/** The exchange contract address to listen for. */
|
|
7646
7888
|
exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7889
|
+
/** The maker wallet address to listen for. */
|
|
7647
7890
|
maker?: InputMaybe<StringEqualsConditionInput>;
|
|
7891
|
+
/** A list of network IDs to listen on. */
|
|
7648
7892
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
7893
|
+
/** The pair contract address to listen for. */
|
|
7649
7894
|
pairAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7895
|
+
/** The swap values to listen for. */
|
|
7650
7896
|
swapValue?: InputMaybe<ComparisonOperatorInput>;
|
|
7897
|
+
/** The token contract address to listen for. */
|
|
7651
7898
|
tokenAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7652
7899
|
};
|
|
7653
7900
|
|
|
@@ -7690,6 +7937,7 @@ export enum TokenRankingAttribute {
|
|
|
7690
7937
|
Low12 = 'low12',
|
|
7691
7938
|
Low24 = 'low24',
|
|
7692
7939
|
MarketCap = 'marketCap',
|
|
7940
|
+
NotableHolderCount = 'notableHolderCount',
|
|
7693
7941
|
PriceUsd = 'priceUSD',
|
|
7694
7942
|
SellCount1 = 'sellCount1',
|
|
7695
7943
|
SellCount4 = 'sellCount4',
|
|
@@ -8016,25 +8264,41 @@ export type WashtradeLabelForEvent = {
|
|
|
8016
8264
|
label: Scalars['String']['output'];
|
|
8017
8265
|
};
|
|
8018
8266
|
|
|
8267
|
+
/** Metadata for a webhook. */
|
|
8019
8268
|
export type Webhook = {
|
|
8020
8269
|
__typename?: 'Webhook';
|
|
8270
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
8021
8271
|
alertRecurrence: AlertRecurrence;
|
|
8272
|
+
/** An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
8022
8273
|
bucketId?: Maybe<Scalars['String']['output']>;
|
|
8274
|
+
/** An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks). */
|
|
8023
8275
|
bucketSortkey?: Maybe<Scalars['String']['output']>;
|
|
8276
|
+
/** The url to which the webhook message should be sent. */
|
|
8024
8277
|
callbackUrl: Scalars['String']['output'];
|
|
8278
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
8025
8279
|
conditions: WebhookCondition;
|
|
8280
|
+
/** The unix timestamp for the time the webhook was created. */
|
|
8026
8281
|
created: Scalars['Int']['output'];
|
|
8282
|
+
/** The webhook group ID used to group webhooks together for ordered message sending. */
|
|
8027
8283
|
groupId?: Maybe<Scalars['String']['output']>;
|
|
8284
|
+
/** The ID of the webhook. */
|
|
8028
8285
|
id: Scalars['String']['output'];
|
|
8286
|
+
/** The given name of the webhook. */
|
|
8029
8287
|
name: Scalars['String']['output'];
|
|
8288
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
8030
8289
|
publishingType?: Maybe<PublishingType>;
|
|
8290
|
+
/** The settings for retrying failed webhook messages. */
|
|
8031
8291
|
retrySettings?: Maybe<RetrySettings>;
|
|
8292
|
+
/** The status of the webhook. Can be `ACTIVE` or `INACTIVE`. */
|
|
8032
8293
|
status: Scalars['String']['output'];
|
|
8294
|
+
/** The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`. */
|
|
8033
8295
|
webhookType: WebhookType;
|
|
8034
8296
|
};
|
|
8035
8297
|
|
|
8298
|
+
/** Webhook conditions that must be met for each webhook type. */
|
|
8036
8299
|
export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
|
|
8037
8300
|
|
|
8301
|
+
/** NFT marketplace names. */
|
|
8038
8302
|
export enum WebhookNftEventFillSource {
|
|
8039
8303
|
Blur = 'BLUR',
|
|
8040
8304
|
Coinbase = 'COINBASE',
|
|
@@ -8053,12 +8317,14 @@ export enum WebhookNftEventFillSource {
|
|
|
8053
8317
|
Soundxyz = 'SOUNDXYZ'
|
|
8054
8318
|
}
|
|
8055
8319
|
|
|
8320
|
+
/** NFT event types. */
|
|
8056
8321
|
export enum WebhookNftEventType {
|
|
8057
8322
|
Mint = 'MINT',
|
|
8058
8323
|
Sale = 'SALE',
|
|
8059
8324
|
Transfer = 'TRANSFER'
|
|
8060
8325
|
}
|
|
8061
8326
|
|
|
8327
|
+
/** The type of webhook. */
|
|
8062
8328
|
export enum WebhookType {
|
|
8063
8329
|
NftEvent = 'NFT_EVENT',
|
|
8064
8330
|
PriceEvent = 'PRICE_EVENT',
|