@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.
Files changed (47) hide show
  1. package/README.md +6 -0
  2. package/dist/resources/generated_queries/BackfillWalletState.graphql +3 -0
  3. package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
  4. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  5. package/dist/resources/generated_queries/Holders.graphql +1 -0
  6. package/dist/resources/generated_queries/PairMetadata.graphql +126 -0
  7. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  8. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  9. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  10. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  11. package/dist/resources/graphql.d.ts +264 -2
  12. package/dist/resources/graphql.d.ts.map +1 -1
  13. package/dist/resources/graphql.js +14 -2
  14. package/dist/resources/graphql.js.map +1 -1
  15. package/dist/resources/graphql.schema.json +724 -228
  16. package/dist/resources/graphql.ts +268 -2
  17. package/dist/resources/schema.graphql +533 -6
  18. package/dist/sdk/Query.d.ts +3 -1
  19. package/dist/sdk/Query.d.ts.map +1 -1
  20. package/dist/sdk/Query.js +2 -0
  21. package/dist/sdk/Query.js.map +1 -1
  22. package/dist/sdk/Subscribe.js +3 -3
  23. package/dist/sdk/generated/gql.d.ts +28 -14
  24. package/dist/sdk/generated/gql.d.ts.map +1 -1
  25. package/dist/sdk/generated/gql.js +9 -7
  26. package/dist/sdk/generated/gql.js.map +1 -1
  27. package/dist/sdk/generated/graphql.d.ts +561 -2
  28. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  29. package/dist/sdk/generated/graphql.js +25 -11
  30. package/dist/sdk/generated/graphql.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/resources/generated_queries/BackfillWalletState.graphql +3 -0
  33. package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
  34. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  35. package/src/resources/generated_queries/Holders.graphql +1 -0
  36. package/src/resources/generated_queries/PairMetadata.graphql +126 -0
  37. package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  38. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  39. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  40. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  41. package/src/resources/graphql.schema.json +724 -228
  42. package/src/resources/graphql.ts +268 -2
  43. package/src/resources/schema.graphql +533 -6
  44. package/src/sdk/Query.ts +8 -0
  45. package/src/sdk/Subscribe.ts +3 -3
  46. package/src/sdk/generated/gql.ts +24 -14
  47. package/src/sdk/generated/graphql.ts +296 -16
@@ -58,6 +58,12 @@ type AddNftPoolEventsOutput {
58
58
  events: [NftPoolEvent]!
59
59
  }
60
60
 
61
+ enum AddressType {
62
+ EVM
63
+ SOL
64
+ TRON
65
+ }
66
+
61
67
  type AddTokenEventsOutput {
62
68
  id: String!
63
69
  events: [Event!]!
@@ -97,6 +103,7 @@ input AddUserAchievementInput {
97
103
  quantity: Int!
98
104
  }
99
105
 
106
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
100
107
  enum AlertRecurrence {
101
108
  INDEFINITE
102
109
  ONCE
@@ -391,19 +398,39 @@ enum CommunityNoteType {
391
398
  LOGO
392
399
  }
393
400
 
401
+ """Comparison operators."""
394
402
  type ComparisonOperator {
403
+ """Greater than."""
395
404
  gt: String
405
+
406
+ """Greater than or equal to."""
396
407
  gte: String
408
+
409
+ """Less than."""
397
410
  lt: String
411
+
412
+ """Less than or equal to."""
398
413
  lte: String
414
+
415
+ """Equal to."""
399
416
  eq: String
400
417
  }
401
418
 
419
+ """Input for comparison operators."""
402
420
  input ComparisonOperatorInput {
421
+ """Greater than."""
403
422
  gt: String
423
+
424
+ """Greater than or equal."""
404
425
  gte: String
426
+
427
+ """Less than."""
405
428
  lt: String
429
+
430
+ """Less than or equal."""
406
431
  lte: String
432
+
433
+ """Equal to."""
407
434
  eq: String
408
435
  }
409
436
 
@@ -457,89 +484,257 @@ input CreateApiTokensInput {
457
484
  expiresIn: Int
458
485
  }
459
486
 
487
+ """Input for creating an NFT event webhook."""
460
488
  input CreateNftEventWebhookArgs {
489
+ """The name of the webhook (max 128 characters)."""
461
490
  name: String!
491
+
492
+ """The url to which the webhook message should be sent."""
462
493
  callbackUrl: String!
494
+
495
+ """
496
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
497
+ """
463
498
  securityToken: String!
499
+
500
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
464
501
  alertRecurrence: AlertRecurrence!
502
+
503
+ """
504
+ 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.
505
+ """
465
506
  groupId: String
507
+
508
+ """
509
+ The conditions which must be met in order for the webhook to send a message.
510
+ """
466
511
  conditions: NftEventWebhookConditionInput!
512
+
513
+ """The settings for retrying failed webhook messages."""
467
514
  retrySettings: RetrySettingsInput
515
+
516
+ """
517
+ 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).
518
+ """
468
519
  bucketId: String
520
+
521
+ """
522
+ 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).
523
+ """
469
524
  bucketSortkey: String
525
+
526
+ """
527
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
528
+ """
470
529
  publishingType: PublishingType
530
+
531
+ """
532
+ 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.
533
+ """
471
534
  deduplicate: Boolean
472
535
  }
473
536
 
537
+ """Input for creating NFT event webhooks."""
474
538
  input CreateNftEventWebhooksInput {
539
+ """A list of NFT event webhooks to create."""
475
540
  webhooks: [CreateNftEventWebhookArgs!]!
476
541
  }
477
542
 
543
+ """Input for creating a price webhook."""
478
544
  input CreatePriceWebhookArgs {
545
+ """The name of the webhook (max 128 characters)."""
479
546
  name: String!
547
+
548
+ """The url to which the webhook message should be sent."""
480
549
  callbackUrl: String!
550
+
551
+ """
552
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
553
+ """
481
554
  securityToken: String!
555
+
556
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
482
557
  alertRecurrence: AlertRecurrence!
558
+
559
+ """
560
+ 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.
561
+ """
483
562
  groupId: String
563
+
564
+ """
565
+ The conditions which must be met in order for the webhook to send a message.
566
+ """
484
567
  conditions: PriceEventWebhookConditionInput!
568
+
569
+ """The settings for retrying failed webhook messages."""
485
570
  retrySettings: RetrySettingsInput
571
+
572
+ """
573
+ 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).
574
+ """
486
575
  bucketId: String
576
+
577
+ """
578
+ 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).
579
+ """
487
580
  bucketSortkey: String
581
+
582
+ """
583
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
584
+ """
488
585
  publishingType: PublishingType
586
+
587
+ """
588
+ 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.
589
+ """
489
590
  deduplicate: Boolean
490
591
  }
491
592
 
593
+ """Input for creating price webhooks."""
492
594
  input CreatePriceWebhooksInput {
595
+ """A list of price webhooks to create."""
493
596
  webhooks: [CreatePriceWebhookArgs!]!
494
597
  }
495
598
 
599
+ """Input for creating a Raw Transaction webhook."""
496
600
  input CreateRawTransactionWebhookArgs {
601
+ """The name of the webhook (max 128 characters)."""
497
602
  name: String!
603
+
604
+ """The url to which the webhook message should be sent."""
498
605
  callbackUrl: String!
606
+
607
+ """
608
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
609
+ """
499
610
  securityToken: String!
611
+
612
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
500
613
  alertRecurrence: AlertRecurrence!
614
+
615
+ """
616
+ 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.
617
+ """
501
618
  groupId: String
619
+
620
+ """
621
+ The conditions which must be met in order for the webhook to send a message.
622
+ """
502
623
  conditions: RawTransactionWebhookConditionInput!
624
+
625
+ """The settings for retrying failed webhook messages."""
503
626
  retrySettings: RetrySettingsInput
627
+
628
+ """
629
+ 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).
630
+ """
504
631
  bucketId: String
632
+
633
+ """
634
+ 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).
635
+ """
505
636
  bucketSortkey: String
637
+
638
+ """
639
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
640
+ """
506
641
  publishingType: PublishingType
642
+
643
+ """
644
+ 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.
645
+ """
507
646
  deduplicate: Boolean
508
647
  }
509
648
 
649
+ """Input for creating Raw Transaction webhooks."""
510
650
  input CreateRawTransactionWebhooksInput {
651
+ """A list of Raw Transaction webhooks to create."""
511
652
  webhooks: [CreateRawTransactionWebhookArgs!]!
512
653
  }
513
654
 
655
+ """Input for creating a token pair event webhook."""
514
656
  input CreateTokenPairEventWebhookArgs {
657
+ """The name of the webhook (max 128 characters)."""
515
658
  name: String!
659
+
660
+ """The url to which the webhook message should be sent."""
516
661
  callbackUrl: String!
662
+
663
+ """
664
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
665
+ """
517
666
  securityToken: String!
667
+
668
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
518
669
  alertRecurrence: AlertRecurrence!
670
+
671
+ """
672
+ 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.
673
+ """
519
674
  groupId: String
675
+
676
+ """
677
+ The conditions which must be met in order for the webhook to send a message.
678
+ """
520
679
  conditions: TokenPairEventWebhookConditionInput!
680
+
681
+ """The settings for retrying failed webhook messages."""
521
682
  retrySettings: RetrySettingsInput
683
+
684
+ """
685
+ 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).
686
+ """
522
687
  bucketId: String
688
+
689
+ """
690
+ 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).
691
+ """
523
692
  bucketSortkey: String
693
+
694
+ """
695
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
696
+ """
524
697
  publishingType: PublishingType
698
+
699
+ """
700
+ 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.
701
+ """
525
702
  deduplicate: Boolean
526
703
  }
527
704
 
705
+ """Input for creating token pair event webhooks."""
528
706
  input CreateTokenPairEventWebhooksInput {
707
+ """A list of token pair event webhooks to create."""
529
708
  webhooks: [CreateTokenPairEventWebhookArgs!]!
530
709
  }
531
710
 
711
+ """Input for creating webhooks."""
532
712
  input CreateWebhooksInput {
713
+ """Input for creating price webhooks."""
533
714
  priceWebhooksInput: CreatePriceWebhooksInput
715
+
716
+ """Input for creating token pair event webhooks."""
534
717
  tokenPairEventWebhooksInput: CreateTokenPairEventWebhooksInput
718
+
719
+ """Input for creating NFT event webhooks."""
535
720
  nftEventWebhooksInput: CreateNftEventWebhooksInput
721
+
722
+ """Input for creating raw transaction webhooks."""
536
723
  rawTransactionWebhooksInput: CreateRawTransactionWebhooksInput
537
724
  }
538
725
 
726
+ """Result returned by `createWebhooks`."""
539
727
  type CreateWebhooksOutput {
728
+ """The list of price webhooks that were created."""
540
729
  priceWebhooks: [Webhook]!
730
+
731
+ """The list of token pair event webhooks that were created."""
541
732
  tokenPairEventWebhooks: [Webhook]!
733
+
734
+ """The list of NFT event webhooks that were created."""
542
735
  nftEventWebhooks: [Webhook]!
736
+
737
+ """The list of raw transaction webhooks that were created."""
543
738
  rawTransactionWebhooks: [Webhook]!
544
739
  }
545
740
 
@@ -561,11 +756,15 @@ type CurrencyBarData {
561
756
  token: IndividualBarData!
562
757
  }
563
758
 
759
+ """Input for deleting webhooks."""
564
760
  input DeleteWebhooksInput {
761
+ """A list of webhook IDs to delete."""
565
762
  webhookIds: [String!]!
566
763
  }
567
764
 
765
+ """Result returned by `deleteWebhooks`."""
568
766
  type DeleteWebhooksOutput {
767
+ """The list of webhook IDs that were deleted."""
569
768
  deletedIds: [String]
570
769
  }
571
770
 
@@ -1006,6 +1205,12 @@ type Event {
1006
1205
  """The unix timestamp for when the transaction occurred."""
1007
1206
  timestamp: Int!
1008
1207
 
1208
+ """The address of the event's token0."""
1209
+ token0Address: String
1210
+
1211
+ """The address of the event's token1."""
1212
+ token1Address: String
1213
+
1009
1214
  """The price of `token0` paid/received in USD, including any fees."""
1010
1215
  token0SwapValueUsd: String
1011
1216
 
@@ -1573,8 +1778,12 @@ input GetTokensInfoInput {
1573
1778
  networkId: Int!
1574
1779
  }
1575
1780
 
1781
+ """Response returned by `getWebhooks`."""
1576
1782
  type GetWebhooksResponse {
1783
+ """A list of webhooks belonging to a user."""
1577
1784
  items: [Webhook]
1785
+
1786
+ """A cursor for use in pagination."""
1578
1787
  cursor: String
1579
1788
  }
1580
1789
 
@@ -1617,6 +1826,9 @@ type HoldersResponse {
1617
1826
  Status of holder. Disabled if on unsupported network or there is insufficient holder data.
1618
1827
  """
1619
1828
  status: HoldersStatus!
1829
+
1830
+ """What percentage of the total supply do the top 10 holders hold"""
1831
+ top10HoldersPercent: Float
1620
1832
  }
1621
1833
 
1622
1834
  enum HoldersSortAttribute {
@@ -1683,11 +1895,15 @@ type IndividualBarData {
1683
1895
  transactions: Int!
1684
1896
  }
1685
1897
 
1898
+ """Integer equals condition."""
1686
1899
  type IntEqualsCondition {
1900
+ """The integer to equal."""
1687
1901
  eq: Int!
1688
1902
  }
1689
1903
 
1904
+ """Input for integer equals condition."""
1690
1905
  input IntEqualsConditionInput {
1906
+ """The integer to equal."""
1691
1907
  eq: Int!
1692
1908
  }
1693
1909
 
@@ -2096,11 +2312,25 @@ input MakerEventsQueryInput {
2096
2312
  """The specific wallet address to filter by."""
2097
2313
  maker: String!
2098
2314
 
2315
+ """The time range to filter by."""
2316
+ timestamp: EventQueryTimestampInput
2317
+
2099
2318
  """The network ID to filter by."""
2100
- networkId: Int!
2319
+ networkId: Int
2101
2320
 
2102
- """The token of interest. Can be `token0` or `token1`."""
2321
+ """docs: hide"""
2103
2322
  quoteToken: QuoteToken
2323
+
2324
+ """
2325
+ The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
2326
+ """
2327
+ priceUsdTotal: NumberFilter
2328
+
2329
+ """The specific event type to filter by."""
2330
+ eventType: EventType
2331
+
2332
+ """The token involved in the event."""
2333
+ tokenAddress: String
2104
2334
  }
2105
2335
 
2106
2336
  """The status for a network supported on Defined."""
@@ -2167,8 +2397,20 @@ type Mutation {
2167
2397
 
2168
2398
  """Delete a single short-lived api access token by id"""
2169
2399
  deleteApiToken(id: String!): String!
2170
- createWebhooks(input: CreateWebhooksInput!): CreateWebhooksOutput!
2171
- deleteWebhooks(input: DeleteWebhooksInput!): DeleteWebhooksOutput
2400
+
2401
+ """
2402
+ Create price, raw transaction, token/pair event, and NFT event webhooks.
2403
+ """
2404
+ createWebhooks(
2405
+ """input: Input for creating webhooks."""
2406
+ input: CreateWebhooksInput!
2407
+ ): CreateWebhooksOutput!
2408
+
2409
+ """Delete multiple webhooks."""
2410
+ deleteWebhooks(
2411
+ """input: Input for deleting webhooks."""
2412
+ input: DeleteWebhooksInput!
2413
+ ): DeleteWebhooksOutput
2172
2414
  }
2173
2415
 
2174
2416
  """A network supported on Defined."""
@@ -3511,11 +3753,15 @@ type NftEvent {
3511
3753
  orderDirection: NftEventOrderDirection
3512
3754
  }
3513
3755
 
3756
+ """NFT marketplaces for a webhook to listen on."""
3514
3757
  type NftEventFillSourceCondition {
3758
+ """The list of NFT marketplaces."""
3515
3759
  oneOf: [WebhookNftEventFillSource!]!
3516
3760
  }
3517
3761
 
3762
+ """Input for NFT event fill source condition."""
3518
3763
  input NftEventFillSourceConditionInput {
3764
+ """The list of NFT marketplace to equal."""
3519
3765
  oneOf: [WebhookNftEventFillSource!]!
3520
3766
  }
3521
3767
 
@@ -3628,35 +3874,75 @@ enum NftEventTradeItemType {
3628
3874
  TOKEN
3629
3875
  }
3630
3876
 
3877
+ """An NFT event type for a webhook to listen for."""
3631
3878
  type NftEventTypeCondition {
3879
+ """The NFT event type."""
3632
3880
  eq: WebhookNftEventType!
3633
3881
  }
3634
3882
 
3883
+ """Input for NFT event type."""
3635
3884
  input NftEventTypeConditionInput {
3885
+ """The NFT event type to equal."""
3636
3886
  eq: WebhookNftEventType!
3637
3887
  }
3638
3888
 
3889
+ """Webhook conditions for an NFT event."""
3639
3890
  type NftEventWebhookCondition {
3891
+ """The list of network IDs the webhook is listening on."""
3640
3892
  networkId: OneOfNumberCondition
3893
+
3894
+ """The maker wallet address the webhook is listening for."""
3641
3895
  maker: StringEqualsCondition
3896
+
3897
+ """The NFT collection contract address the webhook is listening for."""
3642
3898
  contractAddress: StringEqualsCondition
3899
+
3900
+ """The exchange contract address the webhook is listening for."""
3643
3901
  exchangeAddress: StringEqualsCondition
3902
+
3903
+ """The token ID the webhook is listening for."""
3644
3904
  tokenId: StringEqualsCondition
3905
+
3906
+ """The token contract address the webhook is listening for."""
3645
3907
  tokenAddress: StringEqualsCondition
3908
+
3909
+ """The base token price the webhook is listening for."""
3646
3910
  individualBaseTokenPrice: ComparisonOperator
3911
+
3912
+ """The NFT event type the webhook is listening for."""
3647
3913
  eventType: NftEventTypeCondition
3914
+
3915
+ """The NFT marketplaces the webhook is listening on."""
3648
3916
  fillSource: NftEventFillSourceCondition
3917
+
3918
+ """Option to ignore all nft transfer events"""
3649
3919
  ignoreTransfers: Boolean
3650
3920
  }
3651
3921
 
3922
+ """Input conditions for an NFT event webhook."""
3652
3923
  input NftEventWebhookConditionInput {
3924
+ """A list of network IDs to listen on."""
3653
3925
  networkId: OneOfNumberConditionInput
3926
+
3927
+ """The maker wallet address to listen for."""
3654
3928
  maker: StringEqualsConditionInput
3929
+
3930
+ """The NFT collection contract address to listen for."""
3655
3931
  contractAddress: StringEqualsConditionInput
3932
+
3933
+ """The exchange contract address to listen for."""
3656
3934
  exchangeAddress: StringEqualsConditionInput
3935
+
3936
+ """The token ID to listen for."""
3657
3937
  tokenId: StringEqualsConditionInput
3938
+
3939
+ """The NFT event type to listen for."""
3658
3940
  eventType: NftEventTypeConditionInput
3941
+
3942
+ """The NFT marketplaces to listen for."""
3659
3943
  fillSource: NftEventFillSourceConditionInput
3944
+
3945
+ """Option to ignore all nft transfer events"""
3660
3946
  ignoreTransfers: Boolean
3661
3947
  }
3662
3948
 
@@ -5695,11 +5981,15 @@ type OnBarsUpdatedResponse {
5695
5981
  quoteTokenAddress: String!
5696
5982
  }
5697
5983
 
5984
+ """Integer list condition."""
5698
5985
  type OneOfNumberCondition {
5986
+ """The list of integers."""
5699
5987
  oneOf: [Int!]!
5700
5988
  }
5701
5989
 
5990
+ """Input for integer list condition."""
5702
5991
  input OneOfNumberConditionInput {
5992
+ """The list of integers."""
5703
5993
  oneOf: [Int!]!
5704
5994
  }
5705
5995
 
@@ -6267,6 +6557,8 @@ type PairMetadata {
6267
6557
  lowPrice24: String
6268
6558
  lowPrice4: String
6269
6559
  lowPrice1w: String
6560
+ enhancedToken0: EnhancedToken
6561
+ enhancedToken1: EnhancedToken
6270
6562
  }
6271
6563
 
6272
6564
  type PairMetadataToken {
@@ -6826,16 +7118,34 @@ type Price {
6826
7118
  confidence: Float
6827
7119
  }
6828
7120
 
7121
+ """Webhook conditions for a price event."""
6829
7122
  type PriceEventWebhookCondition {
7123
+ """The token contract address the webhook is listening for."""
6830
7124
  tokenAddress: StringEqualsCondition!
7125
+
7126
+ """The network ID the webhook is listening on."""
6831
7127
  networkId: IntEqualsCondition!
7128
+
7129
+ """The price condition that must be met in order for the webhook to send."""
6832
7130
  priceUsd: ComparisonOperator!
7131
+
7132
+ """The pair contract address the webhook is listening for."""
7133
+ pairAddress: StringEqualsCondition
6833
7134
  }
6834
7135
 
7136
+ """Input conditions for a price event webhook."""
6835
7137
  input PriceEventWebhookConditionInput {
7138
+ """The contract address of the token to listen for."""
6836
7139
  tokenAddress: StringEqualsConditionInput!
7140
+
7141
+ """The network ID to listen on."""
6837
7142
  networkId: IntEqualsConditionInput!
7143
+
7144
+ """The price conditions to listen for."""
6838
7145
  priceUsd: ComparisonOperatorInput!
7146
+
7147
+ """The contract address of the pair to listen for."""
7148
+ pairAddress: StringEqualsConditionInput
6839
7149
  }
6840
7150
 
6841
7151
  """Response returned by `primeHolders`."""
@@ -7528,7 +7838,26 @@ type Query {
7528
7838
  """The list of network IDs."""
7529
7839
  networkIds: [Int!]!
7530
7840
  ): [MetadataResponse!]
7531
- getWebhooks(cursor: String, webhookId: String, bucketId: String, bucketSortkey: String, limit: Int): GetWebhooksResponse
7841
+
7842
+ """Returns a user's list of webhooks."""
7843
+ getWebhooks(
7844
+ """The cursor to use for pagination."""
7845
+ cursor: String
7846
+
7847
+ """webhookId: The id of the webhook you want to retrieve."""
7848
+ webhookId: String
7849
+
7850
+ """
7851
+ bucketId: The bucketId of the webhooks you want to retrieve. Note that bucketId and webhookId are mutually exclusive, do not send both.
7852
+ """
7853
+ bucketId: String
7854
+
7855
+ """bucketSortkey: The bucketSortkey of the webhooks you want to retrieve."""
7856
+ bucketSortkey: String
7857
+
7858
+ """limit: The maximum number of webhooks to return."""
7859
+ limit: Int
7860
+ ): GetWebhooksResponse
7532
7861
 
7533
7862
  """Returns an NFT pool."""
7534
7863
  getNftPool(
@@ -8213,7 +8542,23 @@ type Query {
8213
8542
  """
8214
8543
  direction: RankingDirection
8215
8544
  ): EventConnection
8216
- getTokenEventsForMaker(limit: Int, query: MakerEventsQueryInput!, cursor: String, direction: RankingDirection): MakerEventConnection
8545
+
8546
+ """Returns a list of token events for a given maker."""
8547
+ getTokenEventsForMaker(
8548
+ """The maximum number of events to return."""
8549
+ limit: Int
8550
+
8551
+ """The query filters to apply to the results."""
8552
+ query: MakerEventsQueryInput!
8553
+
8554
+ """The cursor to use for pagination."""
8555
+ cursor: String
8556
+
8557
+ """
8558
+ The order to receive the token events. Can be `DESC` (default) or `ASC`.
8559
+ """
8560
+ direction: RankingDirection
8561
+ ): MakerEventConnection
8217
8562
 
8218
8563
  """
8219
8564
  Returns real-time or historical prices for a list of tokens, fetched in batches.
@@ -8292,6 +8637,9 @@ type Query {
8292
8637
  search: String!
8293
8638
  ): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
8294
8639
 
8640
+ """What percent of the total supply do the top 10 holders of a token hold"""
8641
+ top10HoldersPercent(tokenId: String!): Float
8642
+
8295
8643
  """Returns a list of decentralized exchange metadata."""
8296
8644
  getExchanges(
8297
8645
  """Get exchanges with missing fields. Default is `false`."""
@@ -8474,6 +8822,7 @@ type Query {
8474
8822
  """The network id of the pair."""
8475
8823
  networkId: Int!
8476
8824
  ): LiquidityMetadata
8825
+ backfillWalletState: Boolean!
8477
8826
 
8478
8827
  """Returns community gathered notes."""
8479
8828
  getCommunityNotes(input: CommunityNotesInput): CommunityNotesResponse!
@@ -8545,23 +8894,63 @@ type RawNftAssetData {
8545
8894
  externalUrl: String
8546
8895
  }
8547
8896
 
8897
+ """Webhook conditions for a raw transaction."""
8548
8898
  type RawTransactionWebhookCondition {
8899
+ """A list of network IDs to listen on."""
8549
8900
  networkId: OneOfNumberCondition
8901
+
8902
+ """The to address to listen for."""
8550
8903
  to: StringEqualsCondition
8904
+
8905
+ """The from address to listen for."""
8551
8906
  from: StringEqualsCondition
8907
+
8908
+ """Trigger the webhook if either the to or the from address matches."""
8552
8909
  toOrFrom: StringEqualsCondition
8910
+
8911
+ """
8912
+ Trigger the webhook if the contains or doesn't contain the specified string.
8913
+ """
8553
8914
  input: StringContainsCondition
8915
+
8916
+ """
8917
+ Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook.
8918
+ """
8554
8919
  ignoreTokenPairEvents: Boolean
8920
+
8921
+ """
8922
+ Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook.
8923
+ """
8555
8924
  ignoreNftEvents: Boolean
8556
8925
  }
8557
8926
 
8927
+ """Input conditions for a Raw Transaction webhook."""
8558
8928
  input RawTransactionWebhookConditionInput {
8929
+ """A list of network IDs to listen on."""
8559
8930
  networkId: OneOfNumberConditionInput
8931
+
8932
+ """The to address to listen for."""
8560
8933
  to: StringEqualsConditionInput
8934
+
8935
+ """The from address to listen for."""
8561
8936
  from: StringEqualsConditionInput
8937
+
8938
+ """Trigger the webhook if either the to or the from address matches."""
8562
8939
  toOrFrom: StringEqualsConditionInput
8940
+
8941
+ """
8942
+ Trigger the webhook if the input contains or doesn't contain the specified string.
8943
+ """
8563
8944
  input: StringContainsConditionInput
8945
+
8946
+ """
8947
+ Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook.
8948
+ """
8564
8949
  ignoreTokenPairEvents: Boolean
8950
+
8951
+ """
8952
+ Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook.
8953
+ """
8565
8954
  ignoreNftEvents: Boolean
8566
8955
  }
8567
8956
 
@@ -8636,17 +9025,45 @@ type ResolutionBarData {
8636
9025
  r7D: CurrencyBarData
8637
9026
  }
8638
9027
 
9028
+ """Config for retrying failed webhook messages"""
8639
9029
  type RetrySettings {
9030
+ """
9031
+ The maximum time in seconds that the webhook will retry sending a message
9032
+ """
8640
9033
  maxTimeElapsed: Int
9034
+
9035
+ """
9036
+ The minimum time in seconds that the webhook will wait before retrying a failed message
9037
+ """
8641
9038
  minRetryDelay: Int
9039
+
9040
+ """
9041
+ The maximum time in seconds that the webhook will wait before retrying a failed message
9042
+ """
8642
9043
  maxRetryDelay: Int
9044
+
9045
+ """The maximum number of times the webhook will retry sending a message"""
8643
9046
  maxRetries: Int
8644
9047
  }
8645
9048
 
9049
+ """Config input for retrying failed webhook messages"""
8646
9050
  input RetrySettingsInput {
9051
+ """
9052
+ The maximum time in seconds that the webhook will retry sending a message
9053
+ """
8647
9054
  maxTimeElapsed: Int
9055
+
9056
+ """
9057
+ The minimum time in seconds that the webhook will wait before retrying a failed message
9058
+ """
8648
9059
  minRetryDelay: Int
9060
+
9061
+ """
9062
+ The maximum time in seconds that the webhook will wait before retrying a failed message
9063
+ """
8649
9064
  maxRetryDelay: Int
9065
+
9066
+ """The maximum number of times the webhook will retry sending a message"""
8650
9067
  maxRetries: Int
8651
9068
  }
8652
9069
 
@@ -9004,21 +9421,33 @@ input statsNonCurrency {
9004
9421
  uniqueMinters: StatsFilter
9005
9422
  }
9006
9423
 
9424
+ """String contains condition."""
9007
9425
  type StringContainsCondition {
9426
+ """A list of substrings included within the string."""
9008
9427
  contains: [String!]
9428
+
9429
+ """A list of substrings not included within the string."""
9009
9430
  notContains: [String!]
9010
9431
  }
9011
9432
 
9433
+ """Input for string contains condition."""
9012
9434
  input StringContainsConditionInput {
9435
+ """A list of substrings to be included within the string."""
9013
9436
  contains: [String!]
9437
+
9438
+ """A list of substrings not to be included within the string."""
9014
9439
  notContains: [String!]
9015
9440
  }
9016
9441
 
9442
+ """String equals condition."""
9017
9443
  type StringEqualsCondition {
9444
+ """The string to equal."""
9018
9445
  eq: String!
9019
9446
  }
9020
9447
 
9448
+ """Input for string equals condition."""
9021
9449
  input StringEqualsConditionInput {
9450
+ """The string to equal."""
9022
9451
  eq: String!
9023
9452
  }
9024
9453
 
@@ -9200,6 +9629,25 @@ type Subscription {
9200
9629
  ): AddTokenLifecycleEventsOutput!
9201
9630
  }
9202
9631
 
9632
+ type SuiNetworkConfig {
9633
+ id: ID!
9634
+ networkId: Int!
9635
+ baseTokenAddress: String!
9636
+ baseTokenSymbol: String!
9637
+ color: String
9638
+ defaultPairAddress: String!
9639
+ defaultPairQuoteToken: QuoteToken!
9640
+ enabled: Boolean!
9641
+ newTokensEnabled: Boolean
9642
+ mainnet: Boolean!
9643
+ name: String!
9644
+ networkIconUrl: String!
9645
+ networkName: String!
9646
+ networkShortName: String!
9647
+ stableCoinAddresses: [String!]
9648
+ wrappedBaseTokenSymbol: String!
9649
+ }
9650
+
9203
9651
  """Event data for a token swap event."""
9204
9652
  type SwapEventData {
9205
9653
  """
@@ -9800,6 +10248,9 @@ input TokenFilters {
9800
10248
  """The number of different wallets holding the token."""
9801
10249
  holders: NumberFilter
9802
10250
 
10251
+ """docs: hide"""
10252
+ notableHolderCount: NumberFilter
10253
+
9803
10254
  """The token price in USD."""
9804
10255
  priceUSD: NumberFilter
9805
10256
 
@@ -10032,6 +10483,7 @@ enum TokenOfInterest {
10032
10483
  token1
10033
10484
  }
10034
10485
 
10486
+ """Token pair event types."""
10035
10487
  enum TokenPairEventType {
10036
10488
  SWAP
10037
10489
  MINT
@@ -10043,31 +10495,63 @@ enum TokenPairEventType {
10043
10495
  COLLECT_PROTOCOL
10044
10496
  }
10045
10497
 
10498
+ """Webhook condition for token pair event type."""
10046
10499
  type TokenPairEventTypeCondition {
10500
+ """The list of token pair event types."""
10047
10501
  oneOf: [TokenPairEventType!]!
10048
10502
  }
10049
10503
 
10504
+ """Input for token pair event type condition."""
10050
10505
  input TokenPairEventTypeConditionInput {
10506
+ """The list of token event types to equal."""
10051
10507
  oneOf: [TokenPairEventType!]!
10052
10508
  }
10053
10509
 
10510
+ """Webhook conditions for a token pair event."""
10054
10511
  type TokenPairEventWebhookCondition {
10512
+ """The token contract address the webhook is listening for."""
10055
10513
  tokenAddress: StringEqualsCondition
10514
+
10515
+ """The list of network IDs the webhook is listening on."""
10056
10516
  networkId: OneOfNumberCondition
10517
+
10518
+ """The swap values the webhook is listening for."""
10057
10519
  swapValue: ComparisonOperator
10520
+
10521
+ """The maker wallet address the webhook is listening for."""
10058
10522
  maker: StringEqualsCondition
10523
+
10524
+ """The pair contract address the webhook is listening for."""
10059
10525
  pairAddress: StringEqualsCondition
10526
+
10527
+ """The exchange contract address the webhook is listening for."""
10060
10528
  exchangeAddress: StringEqualsCondition
10529
+
10530
+ """The event type the webhook is listening for."""
10061
10531
  eventType: TokenPairEventTypeCondition
10062
10532
  }
10063
10533
 
10534
+ """Input conditions for a token pair event webhook."""
10064
10535
  input TokenPairEventWebhookConditionInput {
10536
+ """A list of network IDs to listen on."""
10065
10537
  networkId: OneOfNumberConditionInput
10538
+
10539
+ """The maker wallet address to listen for."""
10066
10540
  maker: StringEqualsConditionInput
10541
+
10542
+ """The pair contract address to listen for."""
10067
10543
  pairAddress: StringEqualsConditionInput
10544
+
10545
+ """The exchange contract address to listen for."""
10068
10546
  exchangeAddress: StringEqualsConditionInput
10547
+
10548
+ """The token contract address to listen for."""
10069
10549
  tokenAddress: StringEqualsConditionInput
10550
+
10551
+ """The swap values to listen for."""
10070
10552
  swapValue: ComparisonOperatorInput
10553
+
10554
+ """The token event type to listen for."""
10071
10555
  eventType: TokenPairEventTypeConditionInput
10072
10556
  }
10073
10557
 
@@ -10108,6 +10592,7 @@ enum TokenRankingAttribute {
10108
10592
  high12
10109
10593
  high24
10110
10594
  holders
10595
+ notableHolderCount
10111
10596
  liquidity
10112
10597
  low1
10113
10598
  low4
@@ -10546,24 +11031,64 @@ type WashtradeLabelForEvent {
10546
11031
  label: String!
10547
11032
  }
10548
11033
 
11034
+ """Metadata for a webhook."""
10549
11035
  type Webhook {
11036
+ """The ID of the webhook."""
10550
11037
  id: String!
11038
+
11039
+ """
11040
+ The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`.
11041
+ """
10551
11042
  webhookType: WebhookType!
11043
+
11044
+ """The given name of the webhook."""
10552
11045
  name: String!
11046
+
11047
+ """The unix timestamp for the time the webhook was created."""
10553
11048
  created: Int!
11049
+
11050
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
10554
11051
  alertRecurrence: AlertRecurrence!
11052
+
11053
+ """The url to which the webhook message should be sent."""
10555
11054
  callbackUrl: String!
11055
+
11056
+ """The status of the webhook. Can be `ACTIVE` or `INACTIVE`."""
10556
11057
  status: String!
11058
+
11059
+ """
11060
+ The webhook group ID used to group webhooks together for ordered message sending.
11061
+ """
10557
11062
  groupId: String
11063
+
11064
+ """
11065
+ The conditions which must be met in order for the webhook to send a message.
11066
+ """
10558
11067
  conditions: WebhookCondition!
11068
+
11069
+ """The settings for retrying failed webhook messages."""
10559
11070
  retrySettings: RetrySettings
11071
+
11072
+ """
11073
+ 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).
11074
+ """
10560
11075
  bucketId: String
11076
+
11077
+ """
11078
+ 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).
11079
+ """
10561
11080
  bucketSortkey: String
11081
+
11082
+ """
11083
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
11084
+ """
10562
11085
  publishingType: PublishingType
10563
11086
  }
10564
11087
 
11088
+ """Webhook conditions that must be met for each webhook type."""
10565
11089
  union WebhookCondition = PriceEventWebhookCondition | TokenPairEventWebhookCondition | NftEventWebhookCondition | RawTransactionWebhookCondition
10566
11090
 
11091
+ """NFT marketplace names."""
10567
11092
  enum WebhookNftEventFillSource {
10568
11093
  GEM
10569
11094
  ENSVISION
@@ -10582,12 +11107,14 @@ enum WebhookNftEventFillSource {
10582
11107
  GENIE
10583
11108
  }
10584
11109
 
11110
+ """NFT event types."""
10585
11111
  enum WebhookNftEventType {
10586
11112
  MINT
10587
11113
  SALE
10588
11114
  TRANSFER
10589
11115
  }
10590
11116
 
11117
+ """The type of webhook."""
10591
11118
  enum WebhookType {
10592
11119
  PRICE_EVENT
10593
11120
  NFT_EVENT