@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
@@ -125,6 +125,12 @@ export type AddUserAchievementInput = {
125
125
  quantity: Scalars['Int']['input'];
126
126
  userId: Scalars['String']['input'];
127
127
  };
128
+ export declare enum AddressType {
129
+ Evm = "EVM",
130
+ Sol = "SOL",
131
+ Tron = "TRON"
132
+ }
133
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
128
134
  export declare enum AlertRecurrence {
129
135
  Indefinite = "INDEFINITE",
130
136
  Once = "ONCE"
@@ -334,19 +340,31 @@ export type CommunityNotesResponse = {
334
340
  /** The list of community notes matching the filter parameters. */
335
341
  items: Array<CommunityNote>;
336
342
  };
343
+ /** Comparison operators. */
337
344
  export type ComparisonOperator = {
338
345
  __typename?: 'ComparisonOperator';
346
+ /** Equal to. */
339
347
  eq?: Maybe<Scalars['String']['output']>;
348
+ /** Greater than. */
340
349
  gt?: Maybe<Scalars['String']['output']>;
350
+ /** Greater than or equal to. */
341
351
  gte?: Maybe<Scalars['String']['output']>;
352
+ /** Less than. */
342
353
  lt?: Maybe<Scalars['String']['output']>;
354
+ /** Less than or equal to. */
343
355
  lte?: Maybe<Scalars['String']['output']>;
344
356
  };
357
+ /** Input for comparison operators. */
345
358
  export type ComparisonOperatorInput = {
359
+ /** Equal to. */
346
360
  eq?: InputMaybe<Scalars['String']['input']>;
361
+ /** Greater than. */
347
362
  gt?: InputMaybe<Scalars['String']['input']>;
363
+ /** Greater than or equal. */
348
364
  gte?: InputMaybe<Scalars['String']['input']>;
365
+ /** Less than. */
349
366
  lt?: InputMaybe<Scalars['String']['input']>;
367
+ /** Less than or equal. */
350
368
  lte?: InputMaybe<Scalars['String']['input']>;
351
369
  };
352
370
  /** Metadata for a contract label. */
@@ -386,81 +404,147 @@ export type CreateApiTokensInput = {
386
404
  /** Number of requests allowed per token, represented as a string, default is 5000 */
387
405
  requestLimit?: InputMaybe<Scalars['String']['input']>;
388
406
  };
407
+ /** Input for creating an NFT event webhook. */
389
408
  export type CreateNftEventWebhookArgs = {
409
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
390
410
  alertRecurrence: AlertRecurrence;
411
+ /** 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). */
391
412
  bucketId?: InputMaybe<Scalars['String']['input']>;
413
+ /** 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). */
392
414
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
415
+ /** The url to which the webhook message should be sent. */
393
416
  callbackUrl: Scalars['String']['input'];
417
+ /** The conditions which must be met in order for the webhook to send a message. */
394
418
  conditions: NftEventWebhookConditionInput;
419
+ /** 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. */
395
420
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
421
+ /** 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. */
396
422
  groupId?: InputMaybe<Scalars['String']['input']>;
423
+ /** The name of the webhook (max 128 characters). */
397
424
  name: Scalars['String']['input'];
425
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
398
426
  publishingType?: InputMaybe<PublishingType>;
427
+ /** The settings for retrying failed webhook messages. */
399
428
  retrySettings?: InputMaybe<RetrySettingsInput>;
429
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
400
430
  securityToken: Scalars['String']['input'];
401
431
  };
432
+ /** Input for creating NFT event webhooks. */
402
433
  export type CreateNftEventWebhooksInput = {
434
+ /** A list of NFT event webhooks to create. */
403
435
  webhooks: Array<CreateNftEventWebhookArgs>;
404
436
  };
437
+ /** Input for creating a price webhook. */
405
438
  export type CreatePriceWebhookArgs = {
439
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
406
440
  alertRecurrence: AlertRecurrence;
441
+ /** 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). */
407
442
  bucketId?: InputMaybe<Scalars['String']['input']>;
443
+ /** 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). */
408
444
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
445
+ /** The url to which the webhook message should be sent. */
409
446
  callbackUrl: Scalars['String']['input'];
447
+ /** The conditions which must be met in order for the webhook to send a message. */
410
448
  conditions: PriceEventWebhookConditionInput;
449
+ /** 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. */
411
450
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
451
+ /** 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. */
412
452
  groupId?: InputMaybe<Scalars['String']['input']>;
453
+ /** The name of the webhook (max 128 characters). */
413
454
  name: Scalars['String']['input'];
455
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
414
456
  publishingType?: InputMaybe<PublishingType>;
457
+ /** The settings for retrying failed webhook messages. */
415
458
  retrySettings?: InputMaybe<RetrySettingsInput>;
459
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
416
460
  securityToken: Scalars['String']['input'];
417
461
  };
462
+ /** Input for creating price webhooks. */
418
463
  export type CreatePriceWebhooksInput = {
464
+ /** A list of price webhooks to create. */
419
465
  webhooks: Array<CreatePriceWebhookArgs>;
420
466
  };
467
+ /** Input for creating a Raw Transaction webhook. */
421
468
  export type CreateRawTransactionWebhookArgs = {
469
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
422
470
  alertRecurrence: AlertRecurrence;
471
+ /** 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). */
423
472
  bucketId?: InputMaybe<Scalars['String']['input']>;
473
+ /** 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). */
424
474
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
475
+ /** The url to which the webhook message should be sent. */
425
476
  callbackUrl: Scalars['String']['input'];
477
+ /** The conditions which must be met in order for the webhook to send a message. */
426
478
  conditions: RawTransactionWebhookConditionInput;
479
+ /** 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. */
427
480
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
481
+ /** 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. */
428
482
  groupId?: InputMaybe<Scalars['String']['input']>;
483
+ /** The name of the webhook (max 128 characters). */
429
484
  name: Scalars['String']['input'];
485
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
430
486
  publishingType?: InputMaybe<PublishingType>;
487
+ /** The settings for retrying failed webhook messages. */
431
488
  retrySettings?: InputMaybe<RetrySettingsInput>;
489
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
432
490
  securityToken: Scalars['String']['input'];
433
491
  };
492
+ /** Input for creating Raw Transaction webhooks. */
434
493
  export type CreateRawTransactionWebhooksInput = {
494
+ /** A list of Raw Transaction webhooks to create. */
435
495
  webhooks: Array<CreateRawTransactionWebhookArgs>;
436
496
  };
497
+ /** Input for creating a token pair event webhook. */
437
498
  export type CreateTokenPairEventWebhookArgs = {
499
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
438
500
  alertRecurrence: AlertRecurrence;
501
+ /** 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
502
  bucketId?: InputMaybe<Scalars['String']['input']>;
503
+ /** 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
504
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
505
+ /** The url to which the webhook message should be sent. */
441
506
  callbackUrl: Scalars['String']['input'];
507
+ /** The conditions which must be met in order for the webhook to send a message. */
442
508
  conditions: TokenPairEventWebhookConditionInput;
509
+ /** 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
510
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
511
+ /** 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
512
  groupId?: InputMaybe<Scalars['String']['input']>;
513
+ /** The name of the webhook (max 128 characters). */
445
514
  name: Scalars['String']['input'];
515
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
446
516
  publishingType?: InputMaybe<PublishingType>;
517
+ /** The settings for retrying failed webhook messages. */
447
518
  retrySettings?: InputMaybe<RetrySettingsInput>;
519
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
448
520
  securityToken: Scalars['String']['input'];
449
521
  };
522
+ /** Input for creating token pair event webhooks. */
450
523
  export type CreateTokenPairEventWebhooksInput = {
524
+ /** A list of token pair event webhooks to create. */
451
525
  webhooks: Array<CreateTokenPairEventWebhookArgs>;
452
526
  };
527
+ /** Input for creating webhooks. */
453
528
  export type CreateWebhooksInput = {
529
+ /** Input for creating NFT event webhooks. */
454
530
  nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
531
+ /** Input for creating price webhooks. */
455
532
  priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
533
+ /** Input for creating raw transaction webhooks. */
456
534
  rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
535
+ /** Input for creating token pair event webhooks. */
457
536
  tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
458
537
  };
538
+ /** Result returned by `createWebhooks`. */
459
539
  export type CreateWebhooksOutput = {
460
540
  __typename?: 'CreateWebhooksOutput';
541
+ /** The list of NFT event webhooks that were created. */
461
542
  nftEventWebhooks: Array<Maybe<Webhook>>;
543
+ /** The list of price webhooks that were created. */
462
544
  priceWebhooks: Array<Maybe<Webhook>>;
545
+ /** The list of raw transaction webhooks that were created. */
463
546
  rawTransactionWebhooks: Array<Maybe<Webhook>>;
547
+ /** The list of token pair event webhooks that were created. */
464
548
  tokenPairEventWebhooks: Array<Maybe<Webhook>>;
465
549
  };
466
550
  export declare enum CreationContext {
@@ -478,11 +562,15 @@ export type CurrencyBarData = {
478
562
  /** Bar chart data in USD. */
479
563
  usd: IndividualBarData;
480
564
  };
565
+ /** Input for deleting webhooks. */
481
566
  export type DeleteWebhooksInput = {
567
+ /** A list of webhook IDs to delete. */
482
568
  webhookIds: Array<Scalars['String']['input']>;
483
569
  };
570
+ /** Result returned by `deleteWebhooks`. */
484
571
  export type DeleteWebhooksOutput = {
485
572
  __typename?: 'DeleteWebhooksOutput';
573
+ /** The list of webhook IDs that were deleted. */
486
574
  deletedIds?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
487
575
  };
488
576
  /** Detailed stats for an NFT collection. */
@@ -824,12 +912,16 @@ export type Event = {
824
912
  quoteToken?: Maybe<QuoteToken>;
825
913
  /** The unix timestamp for when the transaction occurred. */
826
914
  timestamp: Scalars['Int']['output'];
915
+ /** The address of the event's token0. */
916
+ token0Address?: Maybe<Scalars['String']['output']>;
827
917
  /** The updated price of `token0` in USD, calculated after the transaction. */
828
918
  token0PoolValueUsd?: Maybe<Scalars['String']['output']>;
829
919
  /** The price of `token0` paid/received in USD, including any fees. */
830
920
  token0SwapValueUsd?: Maybe<Scalars['String']['output']>;
831
921
  /** The price of `token0` paid/received in the network's base token, including fees. */
832
922
  token0ValueBase?: Maybe<Scalars['String']['output']>;
923
+ /** The address of the event's token1. */
924
+ token1Address?: Maybe<Scalars['String']['output']>;
833
925
  /** The updated price of `token1` in USD, calculated after the transaction. */
834
926
  token1PoolValueUsd?: Maybe<Scalars['String']['output']>;
835
927
  /** The price of `token1` paid/received in USD, including any fees. */
@@ -1246,9 +1338,12 @@ export type GetTokensInfoInput = {
1246
1338
  /** The network ID the token is deployed on. */
1247
1339
  networkId: Scalars['Int']['input'];
1248
1340
  };
1341
+ /** Response returned by `getWebhooks`. */
1249
1342
  export type GetWebhooksResponse = {
1250
1343
  __typename?: 'GetWebhooksResponse';
1344
+ /** A cursor for use in pagination. */
1251
1345
  cursor?: Maybe<Scalars['String']['output']>;
1346
+ /** A list of webhooks belonging to a user. */
1252
1347
  items?: Maybe<Array<Maybe<Webhook>>>;
1253
1348
  };
1254
1349
  /** The pool variant. */
@@ -1280,6 +1375,8 @@ export type HoldersResponse = {
1280
1375
  items: Array<Balance>;
1281
1376
  /** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
1282
1377
  status: HoldersStatus;
1378
+ /** What percentage of the total supply do the top 10 holders hold */
1379
+ top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
1283
1380
  };
1284
1381
  export declare enum HoldersSortAttribute {
1285
1382
  Balance = "BALANCE",
@@ -1327,11 +1424,15 @@ export type IndividualBarData = {
1327
1424
  /** The volume in the network's base token */
1328
1425
  volumeNativeToken: Scalars['String']['output'];
1329
1426
  };
1427
+ /** Integer equals condition. */
1330
1428
  export type IntEqualsCondition = {
1331
1429
  __typename?: 'IntEqualsCondition';
1430
+ /** The integer to equal. */
1332
1431
  eq: Scalars['Int']['output'];
1333
1432
  };
1433
+ /** Input for integer equals condition. */
1334
1434
  export type IntEqualsConditionInput = {
1435
+ /** The integer to equal. */
1335
1436
  eq: Scalars['Int']['input'];
1336
1437
  };
1337
1438
  /** Event labels. Can be `sandwich` or `washtrade`. */
@@ -1602,12 +1703,20 @@ export type MakerEventConnection = {
1602
1703
  items?: Maybe<Array<Maybe<Event>>>;
1603
1704
  };
1604
1705
  export type MakerEventsQueryInput = {
1706
+ /** The specific event type to filter by. */
1707
+ eventType?: InputMaybe<EventType>;
1605
1708
  /** The specific wallet address to filter by. */
1606
1709
  maker: Scalars['String']['input'];
1607
1710
  /** The network ID to filter by. */
1608
- networkId: Scalars['Int']['input'];
1609
- /** The token of interest. Can be `token0` or `token1`. */
1711
+ networkId?: InputMaybe<Scalars['Int']['input']>;
1712
+ /** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
1713
+ priceUsdTotal?: InputMaybe<NumberFilter>;
1714
+ /** docs: hide */
1610
1715
  quoteToken?: InputMaybe<QuoteToken>;
1716
+ /** The time range to filter by. */
1717
+ timestamp?: InputMaybe<EventQueryTimestampInput>;
1718
+ /** The token involved in the event. */
1719
+ tokenAddress?: InputMaybe<Scalars['String']['input']>;
1611
1720
  };
1612
1721
  /** The status for a network supported on Defined. */
1613
1722
  export type MetadataResponse = {
@@ -1653,9 +1762,11 @@ export type Mutation = {
1653
1762
  __typename?: 'Mutation';
1654
1763
  /** Create a new set of short-lived api access tokens */
1655
1764
  createApiTokens: Array<ApiToken>;
1765
+ /** Create price, raw transaction, token/pair event, and NFT event webhooks. */
1656
1766
  createWebhooks: CreateWebhooksOutput;
1657
1767
  /** Delete a single short-lived api access token by id */
1658
1768
  deleteApiToken: Scalars['String']['output'];
1769
+ /** Delete multiple webhooks. */
1659
1770
  deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
1660
1771
  };
1661
1772
  export type MutationCreateApiTokensArgs = {
@@ -2767,11 +2878,15 @@ export type NftEvent = {
2767
2878
  /** The index of the transaction within the block. */
2768
2879
  transactionIndex: Scalars['Int']['output'];
2769
2880
  };
2881
+ /** NFT marketplaces for a webhook to listen on. */
2770
2882
  export type NftEventFillSourceCondition = {
2771
2883
  __typename?: 'NftEventFillSourceCondition';
2884
+ /** The list of NFT marketplaces. */
2772
2885
  oneOf: Array<WebhookNftEventFillSource>;
2773
2886
  };
2887
+ /** Input for NFT event fill source condition. */
2774
2888
  export type NftEventFillSourceConditionInput = {
2889
+ /** The list of NFT marketplace to equal. */
2775
2890
  oneOf: Array<WebhookNftEventFillSource>;
2776
2891
  };
2777
2892
  /** Details for an NFT offered or received as part of an nft trade. */
@@ -2840,34 +2955,58 @@ export declare enum NftEventTradeItemType {
2840
2955
  Nft = "NFT",
2841
2956
  Token = "TOKEN"
2842
2957
  }
2958
+ /** An NFT event type for a webhook to listen for. */
2843
2959
  export type NftEventTypeCondition = {
2844
2960
  __typename?: 'NftEventTypeCondition';
2961
+ /** The NFT event type. */
2845
2962
  eq: WebhookNftEventType;
2846
2963
  };
2964
+ /** Input for NFT event type. */
2847
2965
  export type NftEventTypeConditionInput = {
2966
+ /** The NFT event type to equal. */
2848
2967
  eq: WebhookNftEventType;
2849
2968
  };
2969
+ /** Webhook conditions for an NFT event. */
2850
2970
  export type NftEventWebhookCondition = {
2851
2971
  __typename?: 'NftEventWebhookCondition';
2972
+ /** The NFT collection contract address the webhook is listening for. */
2852
2973
  contractAddress?: Maybe<StringEqualsCondition>;
2974
+ /** The NFT event type the webhook is listening for. */
2853
2975
  eventType?: Maybe<NftEventTypeCondition>;
2976
+ /** The exchange contract address the webhook is listening for. */
2854
2977
  exchangeAddress?: Maybe<StringEqualsCondition>;
2978
+ /** The NFT marketplaces the webhook is listening on. */
2855
2979
  fillSource?: Maybe<NftEventFillSourceCondition>;
2980
+ /** Option to ignore all nft transfer events */
2856
2981
  ignoreTransfers?: Maybe<Scalars['Boolean']['output']>;
2982
+ /** The base token price the webhook is listening for. */
2857
2983
  individualBaseTokenPrice?: Maybe<ComparisonOperator>;
2984
+ /** The maker wallet address the webhook is listening for. */
2858
2985
  maker?: Maybe<StringEqualsCondition>;
2986
+ /** The list of network IDs the webhook is listening on. */
2859
2987
  networkId?: Maybe<OneOfNumberCondition>;
2988
+ /** The token contract address the webhook is listening for. */
2860
2989
  tokenAddress?: Maybe<StringEqualsCondition>;
2990
+ /** The token ID the webhook is listening for. */
2861
2991
  tokenId?: Maybe<StringEqualsCondition>;
2862
2992
  };
2993
+ /** Input conditions for an NFT event webhook. */
2863
2994
  export type NftEventWebhookConditionInput = {
2995
+ /** The NFT collection contract address to listen for. */
2864
2996
  contractAddress?: InputMaybe<StringEqualsConditionInput>;
2997
+ /** The NFT event type to listen for. */
2865
2998
  eventType?: InputMaybe<NftEventTypeConditionInput>;
2999
+ /** The exchange contract address to listen for. */
2866
3000
  exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
3001
+ /** The NFT marketplaces to listen for. */
2867
3002
  fillSource?: InputMaybe<NftEventFillSourceConditionInput>;
3003
+ /** Option to ignore all nft transfer events */
2868
3004
  ignoreTransfers?: InputMaybe<Scalars['Boolean']['input']>;
3005
+ /** The maker wallet address to listen for. */
2869
3006
  maker?: InputMaybe<StringEqualsConditionInput>;
3007
+ /** A list of network IDs to listen on. */
2870
3008
  networkId?: InputMaybe<OneOfNumberConditionInput>;
3009
+ /** The token ID to listen for. */
2871
3010
  tokenId?: InputMaybe<StringEqualsConditionInput>;
2872
3011
  };
2873
3012
  /** Response returned by `getNftEvents`. */
@@ -4237,11 +4376,15 @@ export type OnUnconfirmedBarsUpdated = {
4237
4376
  /** The unix timestamp for the new bar. */
4238
4377
  timestamp: Scalars['Int']['output'];
4239
4378
  };
4379
+ /** Integer list condition. */
4240
4380
  export type OneOfNumberCondition = {
4241
4381
  __typename?: 'OneOfNumberCondition';
4382
+ /** The list of integers. */
4242
4383
  oneOf: Array<Scalars['Int']['output']>;
4243
4384
  };
4385
+ /** Input for integer list condition. */
4244
4386
  export type OneOfNumberConditionInput = {
4387
+ /** The list of integers. */
4245
4388
  oneOf: Array<Scalars['Int']['input']>;
4246
4389
  };
4247
4390
  export declare enum OrderState {
@@ -4553,6 +4696,8 @@ export type PairFilters = {
4553
4696
  };
4554
4697
  export type PairMetadata = {
4555
4698
  __typename?: 'PairMetadata';
4699
+ enhancedToken0?: Maybe<EnhancedToken>;
4700
+ enhancedToken1?: Maybe<EnhancedToken>;
4556
4701
  exchangeId?: Maybe<Scalars['String']['output']>;
4557
4702
  fee?: Maybe<Scalars['Int']['output']>;
4558
4703
  highPrice1?: Maybe<Scalars['String']['output']>;
@@ -5006,15 +5151,27 @@ export type Price = {
5006
5151
  /** The unix timestamp for the price. */
5007
5152
  timestamp: Scalars['Int']['output'];
5008
5153
  };
5154
+ /** Webhook conditions for a price event. */
5009
5155
  export type PriceEventWebhookCondition = {
5010
5156
  __typename?: 'PriceEventWebhookCondition';
5157
+ /** The network ID the webhook is listening on. */
5011
5158
  networkId: IntEqualsCondition;
5159
+ /** The pair contract address the webhook is listening for. */
5160
+ pairAddress?: Maybe<StringEqualsCondition>;
5161
+ /** The price condition that must be met in order for the webhook to send. */
5012
5162
  priceUsd: ComparisonOperator;
5163
+ /** The token contract address the webhook is listening for. */
5013
5164
  tokenAddress: StringEqualsCondition;
5014
5165
  };
5166
+ /** Input conditions for a price event webhook. */
5015
5167
  export type PriceEventWebhookConditionInput = {
5168
+ /** The network ID to listen on. */
5016
5169
  networkId: IntEqualsConditionInput;
5170
+ /** The contract address of the pair to listen for. */
5171
+ pairAddress?: InputMaybe<StringEqualsConditionInput>;
5172
+ /** The price conditions to listen for. */
5017
5173
  priceUsd: ComparisonOperatorInput;
5174
+ /** The contract address of the token to listen for. */
5018
5175
  tokenAddress: StringEqualsConditionInput;
5019
5176
  };
5020
5177
  /** Response returned by `primeHolders`. */
@@ -5489,6 +5646,7 @@ export type Query = {
5489
5646
  apiToken: ApiToken;
5490
5647
  /** Get all active short-lived api tokens for this api key */
5491
5648
  apiTokens: Array<ApiToken>;
5649
+ backfillWalletState: Scalars['Boolean']['output'];
5492
5650
  /** Returns list of token balances that a wallet has */
5493
5651
  balances: BalancesResponse;
5494
5652
  /** Returns a URL for a pair chart. */
@@ -5574,6 +5732,7 @@ export type Query = {
5574
5732
  getTokenCount: Scalars['String']['output'];
5575
5733
  /** Returns transactions for a pair. */
5576
5734
  getTokenEvents?: Maybe<EventConnection>;
5735
+ /** Returns a list of token events for a given maker. */
5577
5736
  getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5578
5737
  /** Returns metadata for a given token. */
5579
5738
  getTokenInfo?: Maybe<TokenInfo>;
@@ -5583,6 +5742,7 @@ export type Query = {
5583
5742
  getTokensInfo?: Maybe<Array<Maybe<TokenInfo>>>;
5584
5743
  /** Returns tick data for a given Uniswap V3-style pool. */
5585
5744
  getUniV3Ticks?: Maybe<UniV3TickConnection>;
5745
+ /** Returns a user's list of webhooks. */
5586
5746
  getWebhooks?: Maybe<GetWebhooksResponse>;
5587
5747
  /** Returns list of wallets that hold a given token, ordered by holdings descending. Also has the unique count of holders for that token */
5588
5748
  holders: HoldersResponse;
@@ -5621,6 +5781,8 @@ export type Query = {
5621
5781
  tokenSparklines: Array<TokenSparkline>;
5622
5782
  /** Find a list of tokens by their addresses & network id, with pagination. */
5623
5783
  tokens: Array<Maybe<EnhancedToken>>;
5784
+ /** What percent of the total supply do the top 10 holders of a token hold */
5785
+ top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
5624
5786
  /** Returns list of NFT assets held by a given wallet for a single collection. */
5625
5787
  walletNftCollectionAssets: WalletNftCollectionAssetsResponse;
5626
5788
  /** Returns list of collections and quantity of NFTs held by a given wallet. */
@@ -5993,6 +6155,9 @@ export type QueryTokenSparklinesArgs = {
5993
6155
  export type QueryTokensArgs = {
5994
6156
  ids?: InputMaybe<Array<TokenInput>>;
5995
6157
  };
6158
+ export type QueryTop10HoldersPercentArgs = {
6159
+ tokenId: Scalars['String']['input'];
6160
+ };
5996
6161
  export type QueryWalletNftCollectionAssetsArgs = {
5997
6162
  input: WalletNftCollectionAssetsInput;
5998
6163
  };
@@ -6050,23 +6215,39 @@ export type RawNftAssetData = {
6050
6215
  /** An optional image field that may or may not be present on the requested NFT asset smart contract. */
6051
6216
  imageUrl?: Maybe<Scalars['String']['output']>;
6052
6217
  };
6218
+ /** Webhook conditions for a raw transaction. */
6053
6219
  export type RawTransactionWebhookCondition = {
6054
6220
  __typename?: 'RawTransactionWebhookCondition';
6221
+ /** The from address to listen for. */
6055
6222
  from?: Maybe<StringEqualsCondition>;
6223
+ /** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
6056
6224
  ignoreNftEvents?: Maybe<Scalars['Boolean']['output']>;
6225
+ /** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
6057
6226
  ignoreTokenPairEvents?: Maybe<Scalars['Boolean']['output']>;
6227
+ /** Trigger the webhook if the contains or doesn't contain the specified string. */
6058
6228
  input?: Maybe<StringContainsCondition>;
6229
+ /** A list of network IDs to listen on. */
6059
6230
  networkId?: Maybe<OneOfNumberCondition>;
6231
+ /** The to address to listen for. */
6060
6232
  to?: Maybe<StringEqualsCondition>;
6233
+ /** Trigger the webhook if either the to or the from address matches. */
6061
6234
  toOrFrom?: Maybe<StringEqualsCondition>;
6062
6235
  };
6236
+ /** Input conditions for a Raw Transaction webhook. */
6063
6237
  export type RawTransactionWebhookConditionInput = {
6238
+ /** The from address to listen for. */
6064
6239
  from?: InputMaybe<StringEqualsConditionInput>;
6240
+ /** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
6065
6241
  ignoreNftEvents?: InputMaybe<Scalars['Boolean']['input']>;
6242
+ /** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
6066
6243
  ignoreTokenPairEvents?: InputMaybe<Scalars['Boolean']['input']>;
6244
+ /** Trigger the webhook if the input contains or doesn't contain the specified string. */
6067
6245
  input?: InputMaybe<StringContainsConditionInput>;
6246
+ /** A list of network IDs to listen on. */
6068
6247
  networkId?: InputMaybe<OneOfNumberConditionInput>;
6248
+ /** The to address to listen for. */
6069
6249
  to?: InputMaybe<StringEqualsConditionInput>;
6250
+ /** Trigger the webhook if either the to or the from address matches. */
6070
6251
  toOrFrom?: InputMaybe<StringEqualsConditionInput>;
6071
6252
  };
6072
6253
  export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
@@ -6126,17 +6307,27 @@ export type ResolutionBarData = {
6126
6307
  /** 12 hour resolution. */
6127
6308
  r720?: Maybe<CurrencyBarData>;
6128
6309
  };
6310
+ /** Config for retrying failed webhook messages */
6129
6311
  export type RetrySettings = {
6130
6312
  __typename?: 'RetrySettings';
6313
+ /** The maximum number of times the webhook will retry sending a message */
6131
6314
  maxRetries?: Maybe<Scalars['Int']['output']>;
6315
+ /** The maximum time in seconds that the webhook will wait before retrying a failed message */
6132
6316
  maxRetryDelay?: Maybe<Scalars['Int']['output']>;
6317
+ /** The maximum time in seconds that the webhook will retry sending a message */
6133
6318
  maxTimeElapsed?: Maybe<Scalars['Int']['output']>;
6319
+ /** The minimum time in seconds that the webhook will wait before retrying a failed message */
6134
6320
  minRetryDelay?: Maybe<Scalars['Int']['output']>;
6135
6321
  };
6322
+ /** Config input for retrying failed webhook messages */
6136
6323
  export type RetrySettingsInput = {
6324
+ /** The maximum number of times the webhook will retry sending a message */
6137
6325
  maxRetries?: InputMaybe<Scalars['Int']['input']>;
6326
+ /** The maximum time in seconds that the webhook will wait before retrying a failed message */
6138
6327
  maxRetryDelay?: InputMaybe<Scalars['Int']['input']>;
6328
+ /** The maximum time in seconds that the webhook will retry sending a message */
6139
6329
  maxTimeElapsed?: InputMaybe<Scalars['Int']['input']>;
6330
+ /** The minimum time in seconds that the webhook will wait before retrying a failed message */
6140
6331
  minRetryDelay?: InputMaybe<Scalars['Int']['input']>;
6141
6332
  };
6142
6333
  /** Metadata for a sandwich label. */
@@ -6407,20 +6598,30 @@ export type StatsFilter = {
6407
6598
  /** The total value for the previous window. */
6408
6599
  previous?: InputMaybe<NumberFilter>;
6409
6600
  };
6601
+ /** String contains condition. */
6410
6602
  export type StringContainsCondition = {
6411
6603
  __typename?: 'StringContainsCondition';
6604
+ /** A list of substrings included within the string. */
6412
6605
  contains?: Maybe<Array<Scalars['String']['output']>>;
6606
+ /** A list of substrings not included within the string. */
6413
6607
  notContains?: Maybe<Array<Scalars['String']['output']>>;
6414
6608
  };
6609
+ /** Input for string contains condition. */
6415
6610
  export type StringContainsConditionInput = {
6611
+ /** A list of substrings to be included within the string. */
6416
6612
  contains?: InputMaybe<Array<Scalars['String']['input']>>;
6613
+ /** A list of substrings not to be included within the string. */
6417
6614
  notContains?: InputMaybe<Array<Scalars['String']['input']>>;
6418
6615
  };
6616
+ /** String equals condition. */
6419
6617
  export type StringEqualsCondition = {
6420
6618
  __typename?: 'StringEqualsCondition';
6619
+ /** The string to equal. */
6421
6620
  eq: Scalars['String']['output'];
6422
6621
  };
6622
+ /** Input for string equals condition. */
6423
6623
  export type StringEqualsConditionInput = {
6624
+ /** The string to equal. */
6424
6625
  eq: Scalars['String']['input'];
6425
6626
  };
6426
6627
  /** Input type of `StringFilter`. */
@@ -6551,6 +6752,25 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
6551
6752
  id?: InputMaybe<Scalars['String']['input']>;
6552
6753
  quoteToken?: InputMaybe<QuoteToken>;
6553
6754
  };
6755
+ export type SuiNetworkConfig = {
6756
+ __typename?: 'SuiNetworkConfig';
6757
+ baseTokenAddress: Scalars['String']['output'];
6758
+ baseTokenSymbol: Scalars['String']['output'];
6759
+ color?: Maybe<Scalars['String']['output']>;
6760
+ defaultPairAddress: Scalars['String']['output'];
6761
+ defaultPairQuoteToken: QuoteToken;
6762
+ enabled: Scalars['Boolean']['output'];
6763
+ id: Scalars['ID']['output'];
6764
+ mainnet: Scalars['Boolean']['output'];
6765
+ name: Scalars['String']['output'];
6766
+ networkIconUrl: Scalars['String']['output'];
6767
+ networkId: Scalars['Int']['output'];
6768
+ networkName: Scalars['String']['output'];
6769
+ networkShortName: Scalars['String']['output'];
6770
+ newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
6771
+ stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
6772
+ wrappedBaseTokenSymbol: Scalars['String']['output'];
6773
+ };
6554
6774
  /** Event data for a token swap event. */
6555
6775
  export type SwapEventData = {
6556
6776
  __typename?: 'SwapEventData';
@@ -6925,6 +7145,8 @@ export type TokenFilters = {
6925
7145
  marketCap?: InputMaybe<NumberFilter>;
6926
7146
  /** 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. */
6927
7147
  network?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
7148
+ /** docs: hide */
7149
+ notableHolderCount?: InputMaybe<NumberFilter>;
6928
7150
  /** Filter potential Scams */
6929
7151
  potentialScam?: InputMaybe<Scalars['Boolean']['input']>;
6930
7152
  /** The token price in USD. */
@@ -7090,6 +7312,7 @@ export declare enum TokenOfInterest {
7090
7312
  Token0 = "token0",
7091
7313
  Token1 = "token1"
7092
7314
  }
7315
+ /** Token pair event types. */
7093
7316
  export declare enum TokenPairEventType {
7094
7317
  Burn = "BURN",
7095
7318
  Buy = "BUY",
@@ -7100,30 +7323,50 @@ export declare enum TokenPairEventType {
7100
7323
  Swap = "SWAP",
7101
7324
  Sync = "SYNC"
7102
7325
  }
7326
+ /** Webhook condition for token pair event type. */
7103
7327
  export type TokenPairEventTypeCondition = {
7104
7328
  __typename?: 'TokenPairEventTypeCondition';
7329
+ /** The list of token pair event types. */
7105
7330
  oneOf: Array<TokenPairEventType>;
7106
7331
  };
7332
+ /** Input for token pair event type condition. */
7107
7333
  export type TokenPairEventTypeConditionInput = {
7334
+ /** The list of token event types to equal. */
7108
7335
  oneOf: Array<TokenPairEventType>;
7109
7336
  };
7337
+ /** Webhook conditions for a token pair event. */
7110
7338
  export type TokenPairEventWebhookCondition = {
7111
7339
  __typename?: 'TokenPairEventWebhookCondition';
7340
+ /** The event type the webhook is listening for. */
7112
7341
  eventType?: Maybe<TokenPairEventTypeCondition>;
7342
+ /** The exchange contract address the webhook is listening for. */
7113
7343
  exchangeAddress?: Maybe<StringEqualsCondition>;
7344
+ /** The maker wallet address the webhook is listening for. */
7114
7345
  maker?: Maybe<StringEqualsCondition>;
7346
+ /** The list of network IDs the webhook is listening on. */
7115
7347
  networkId?: Maybe<OneOfNumberCondition>;
7348
+ /** The pair contract address the webhook is listening for. */
7116
7349
  pairAddress?: Maybe<StringEqualsCondition>;
7350
+ /** The swap values the webhook is listening for. */
7117
7351
  swapValue?: Maybe<ComparisonOperator>;
7352
+ /** The token contract address the webhook is listening for. */
7118
7353
  tokenAddress?: Maybe<StringEqualsCondition>;
7119
7354
  };
7355
+ /** Input conditions for a token pair event webhook. */
7120
7356
  export type TokenPairEventWebhookConditionInput = {
7357
+ /** The token event type to listen for. */
7121
7358
  eventType?: InputMaybe<TokenPairEventTypeConditionInput>;
7359
+ /** The exchange contract address to listen for. */
7122
7360
  exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
7361
+ /** The maker wallet address to listen for. */
7123
7362
  maker?: InputMaybe<StringEqualsConditionInput>;
7363
+ /** A list of network IDs to listen on. */
7124
7364
  networkId?: InputMaybe<OneOfNumberConditionInput>;
7365
+ /** The pair contract address to listen for. */
7125
7366
  pairAddress?: InputMaybe<StringEqualsConditionInput>;
7367
+ /** The swap values to listen for. */
7126
7368
  swapValue?: InputMaybe<ComparisonOperatorInput>;
7369
+ /** The token contract address to listen for. */
7127
7370
  tokenAddress?: InputMaybe<StringEqualsConditionInput>;
7128
7371
  };
7129
7372
  /** The type of statistics returned. Can be `FILTERED` or `UNFILTERED` */
@@ -7163,6 +7406,7 @@ export declare enum TokenRankingAttribute {
7163
7406
  Low12 = "low12",
7164
7407
  Low24 = "low24",
7165
7408
  MarketCap = "marketCap",
7409
+ NotableHolderCount = "notableHolderCount",
7166
7410
  PriceUsd = "priceUSD",
7167
7411
  SellCount1 = "sellCount1",
7168
7412
  SellCount4 = "sellCount4",
@@ -7469,23 +7713,39 @@ export type WashtradeLabelForEvent = {
7469
7713
  /** The label type, 'washtrade' */
7470
7714
  label: Scalars['String']['output'];
7471
7715
  };
7716
+ /** Metadata for a webhook. */
7472
7717
  export type Webhook = {
7473
7718
  __typename?: 'Webhook';
7719
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
7474
7720
  alertRecurrence: AlertRecurrence;
7721
+ /** 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). */
7475
7722
  bucketId?: Maybe<Scalars['String']['output']>;
7723
+ /** 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). */
7476
7724
  bucketSortkey?: Maybe<Scalars['String']['output']>;
7725
+ /** The url to which the webhook message should be sent. */
7477
7726
  callbackUrl: Scalars['String']['output'];
7727
+ /** The conditions which must be met in order for the webhook to send a message. */
7478
7728
  conditions: WebhookCondition;
7729
+ /** The unix timestamp for the time the webhook was created. */
7479
7730
  created: Scalars['Int']['output'];
7731
+ /** The webhook group ID used to group webhooks together for ordered message sending. */
7480
7732
  groupId?: Maybe<Scalars['String']['output']>;
7733
+ /** The ID of the webhook. */
7481
7734
  id: Scalars['String']['output'];
7735
+ /** The given name of the webhook. */
7482
7736
  name: Scalars['String']['output'];
7737
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
7483
7738
  publishingType?: Maybe<PublishingType>;
7739
+ /** The settings for retrying failed webhook messages. */
7484
7740
  retrySettings?: Maybe<RetrySettings>;
7741
+ /** The status of the webhook. Can be `ACTIVE` or `INACTIVE`. */
7485
7742
  status: Scalars['String']['output'];
7743
+ /** The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`. */
7486
7744
  webhookType: WebhookType;
7487
7745
  };
7746
+ /** Webhook conditions that must be met for each webhook type. */
7488
7747
  export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7748
+ /** NFT marketplace names. */
7489
7749
  export declare enum WebhookNftEventFillSource {
7490
7750
  Blur = "BLUR",
7491
7751
  Coinbase = "COINBASE",
@@ -7503,11 +7763,13 @@ export declare enum WebhookNftEventFillSource {
7503
7763
  Reservoirtools = "RESERVOIRTOOLS",
7504
7764
  Soundxyz = "SOUNDXYZ"
7505
7765
  }
7766
+ /** NFT event types. */
7506
7767
  export declare enum WebhookNftEventType {
7507
7768
  Mint = "MINT",
7508
7769
  Sale = "SALE",
7509
7770
  Transfer = "TRANSFER"
7510
7771
  }
7772
+ /** The type of webhook. */
7511
7773
  export declare enum WebhookType {
7512
7774
  NftEvent = "NFT_EVENT",
7513
7775
  PriceEvent = "PRICE_EVENT",