@codex-data/sdk 0.5.8 → 0.6.1

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.
@@ -94,6 +94,11 @@ export type AddNftPoolEventsOutput = {
94
94
  networkId: Scalars['Int']['output'];
95
95
  poolAddress: Scalars['String']['output'];
96
96
  };
97
+ export type AddTokenEventsOutput = {
98
+ __typename?: 'AddTokenEventsOutput';
99
+ events: Array<Event>;
100
+ id: Scalars['String']['output'];
101
+ };
97
102
  export type AddTokenLifecycleEventsOutput = {
98
103
  __typename?: 'AddTokenLifecycleEventsOutput';
99
104
  events: Array<TokenLifecycleEvent>;
@@ -121,6 +126,8 @@ export type Balance = {
121
126
  __typename?: 'Balance';
122
127
  /** The balance held by the wallet. */
123
128
  balance: Scalars['String']['output'];
129
+ /** The time that this address first held a token */
130
+ firstHeldTimestamp?: Maybe<Scalars['Int']['output']>;
124
131
  /** The balance held by the wallet, adjusted by the number of decimals in the token. */
125
132
  shiftedBalance: Scalars['Float']['output'];
126
133
  /** The ID of the token (`tokenAddress:networkId`). */
@@ -356,34 +363,6 @@ export type CreateApiTokensInput = {
356
363
  /** Number of requests allowed per token, represented as a string, default is 5000 */
357
364
  requestLimit?: InputMaybe<Scalars['String']['input']>;
358
365
  };
359
- export type CreateDecodedCallWebhookArgs = {
360
- alertRecurrence: AlertRecurrence;
361
- bucketId?: InputMaybe<Scalars['String']['input']>;
362
- bucketSortkey?: InputMaybe<Scalars['String']['input']>;
363
- callbackUrl: Scalars['String']['input'];
364
- conditions: DecodedCallWebhookConditionInput;
365
- groupId?: InputMaybe<Scalars['String']['input']>;
366
- name: Scalars['String']['input'];
367
- retrySettings?: InputMaybe<RetrySettingsInput>;
368
- securityToken: Scalars['String']['input'];
369
- };
370
- export type CreateDecodedCallWebhooksInput = {
371
- webhooks: Array<CreateDecodedCallWebhookArgs>;
372
- };
373
- export type CreateDecodedLogWebhookArgs = {
374
- alertRecurrence: AlertRecurrence;
375
- bucketId?: InputMaybe<Scalars['String']['input']>;
376
- bucketSortkey?: InputMaybe<Scalars['String']['input']>;
377
- callbackUrl: Scalars['String']['input'];
378
- conditions: DecodedLogWebhookConditionInput;
379
- groupId?: InputMaybe<Scalars['String']['input']>;
380
- name: Scalars['String']['input'];
381
- retrySettings?: InputMaybe<RetrySettingsInput>;
382
- securityToken: Scalars['String']['input'];
383
- };
384
- export type CreateDecodedLogWebhooksInput = {
385
- webhooks: Array<CreateDecodedLogWebhookArgs>;
386
- };
387
366
  export type CreateNftEventWebhookArgs = {
388
367
  alertRecurrence: AlertRecurrence;
389
368
  bucketId?: InputMaybe<Scalars['String']['input']>;
@@ -392,6 +371,7 @@ export type CreateNftEventWebhookArgs = {
392
371
  conditions: NftEventWebhookConditionInput;
393
372
  groupId?: InputMaybe<Scalars['String']['input']>;
394
373
  name: Scalars['String']['input'];
374
+ publishingType?: InputMaybe<PublishingType>;
395
375
  retrySettings?: InputMaybe<RetrySettingsInput>;
396
376
  securityToken: Scalars['String']['input'];
397
377
  };
@@ -406,26 +386,13 @@ export type CreatePriceWebhookArgs = {
406
386
  conditions: PriceEventWebhookConditionInput;
407
387
  groupId?: InputMaybe<Scalars['String']['input']>;
408
388
  name: Scalars['String']['input'];
389
+ publishingType?: InputMaybe<PublishingType>;
409
390
  retrySettings?: InputMaybe<RetrySettingsInput>;
410
391
  securityToken: Scalars['String']['input'];
411
392
  };
412
393
  export type CreatePriceWebhooksInput = {
413
394
  webhooks: Array<CreatePriceWebhookArgs>;
414
395
  };
415
- export type CreateRawCallTraceWebhookArgs = {
416
- alertRecurrence: AlertRecurrence;
417
- bucketId?: InputMaybe<Scalars['String']['input']>;
418
- bucketSortkey?: InputMaybe<Scalars['String']['input']>;
419
- callbackUrl: Scalars['String']['input'];
420
- conditions: RawCallTraceWebhookConditionInput;
421
- groupId?: InputMaybe<Scalars['String']['input']>;
422
- name: Scalars['String']['input'];
423
- retrySettings?: InputMaybe<RetrySettingsInput>;
424
- securityToken: Scalars['String']['input'];
425
- };
426
- export type CreateRawCallTraceWebhooksInput = {
427
- webhooks: Array<CreateRawCallTraceWebhookArgs>;
428
- };
429
396
  export type CreateRawTransactionWebhookArgs = {
430
397
  alertRecurrence: AlertRecurrence;
431
398
  bucketId?: InputMaybe<Scalars['String']['input']>;
@@ -434,6 +401,7 @@ export type CreateRawTransactionWebhookArgs = {
434
401
  conditions: RawTransactionWebhookConditionInput;
435
402
  groupId?: InputMaybe<Scalars['String']['input']>;
436
403
  name: Scalars['String']['input'];
404
+ publishingType?: InputMaybe<PublishingType>;
437
405
  retrySettings?: InputMaybe<RetrySettingsInput>;
438
406
  securityToken: Scalars['String']['input'];
439
407
  };
@@ -448,6 +416,7 @@ export type CreateTokenPairEventWebhookArgs = {
448
416
  conditions: TokenPairEventWebhookConditionInput;
449
417
  groupId?: InputMaybe<Scalars['String']['input']>;
450
418
  name: Scalars['String']['input'];
419
+ publishingType?: InputMaybe<PublishingType>;
451
420
  retrySettings?: InputMaybe<RetrySettingsInput>;
452
421
  securityToken: Scalars['String']['input'];
453
422
  };
@@ -455,21 +424,15 @@ export type CreateTokenPairEventWebhooksInput = {
455
424
  webhooks: Array<CreateTokenPairEventWebhookArgs>;
456
425
  };
457
426
  export type CreateWebhooksInput = {
458
- decodedCallWebhooksInput?: InputMaybe<CreateDecodedCallWebhooksInput>;
459
- decodedLogWebhooksInput?: InputMaybe<CreateDecodedLogWebhooksInput>;
460
427
  nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
461
428
  priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
462
- rawCallTraceWebhooksInput?: InputMaybe<CreateRawCallTraceWebhooksInput>;
463
429
  rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
464
430
  tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
465
431
  };
466
432
  export type CreateWebhooksOutput = {
467
433
  __typename?: 'CreateWebhooksOutput';
468
- decodedCallWebhooks: Array<Maybe<Webhook>>;
469
- decodedLogWebhooks: Array<Maybe<Webhook>>;
470
434
  nftEventWebhooks: Array<Maybe<Webhook>>;
471
435
  priceWebhooks: Array<Maybe<Webhook>>;
472
- rawCallTraceWebhooks: Array<Maybe<Webhook>>;
473
436
  rawTransactionWebhooks: Array<Maybe<Webhook>>;
474
437
  tokenPairEventWebhooks: Array<Maybe<Webhook>>;
475
438
  };
@@ -488,40 +451,6 @@ export type CurrencyBarData = {
488
451
  /** Bar chart data in USD. */
489
452
  usd: IndividualBarData;
490
453
  };
491
- export type DecodedCallWebhookCondition = {
492
- __typename?: 'DecodedCallWebhookCondition';
493
- address?: Maybe<StringEqualsCondition>;
494
- decodingId: StringEqualsCondition;
495
- from?: Maybe<StringEqualsCondition>;
496
- input?: Maybe<Scalars['JSON']['output']>;
497
- methodId?: Maybe<StringEqualsCondition>;
498
- methodName?: Maybe<StringEqualsCondition>;
499
- output?: Maybe<Scalars['JSON']['output']>;
500
- to?: Maybe<StringEqualsCondition>;
501
- };
502
- export type DecodedCallWebhookConditionInput = {
503
- address?: InputMaybe<StringEqualsConditionInput>;
504
- decodingId: StringEqualsConditionInput;
505
- from?: InputMaybe<StringEqualsConditionInput>;
506
- input?: InputMaybe<Scalars['JSON']['input']>;
507
- methodId?: InputMaybe<StringEqualsConditionInput>;
508
- methodName?: InputMaybe<StringEqualsConditionInput>;
509
- output?: InputMaybe<Scalars['JSON']['input']>;
510
- to?: InputMaybe<StringEqualsConditionInput>;
511
- };
512
- export type DecodedLogWebhookCondition = {
513
- __typename?: 'DecodedLogWebhookCondition';
514
- address?: Maybe<StringEqualsCondition>;
515
- decodingId: StringEqualsCondition;
516
- event?: Maybe<Scalars['JSON']['output']>;
517
- eventName?: Maybe<StringEqualsCondition>;
518
- };
519
- export type DecodedLogWebhookConditionInput = {
520
- address?: InputMaybe<StringEqualsConditionInput>;
521
- decodingId: StringEqualsConditionInput;
522
- event?: InputMaybe<Scalars['JSON']['input']>;
523
- eventName?: InputMaybe<StringEqualsConditionInput>;
524
- };
525
454
  export type DeleteWebhooksInput = {
526
455
  webhookIds: Array<Scalars['String']['input']>;
527
456
  };
@@ -955,7 +884,7 @@ export declare enum EventType {
955
884
  }
956
885
  /** Input type of `EventsQuery`. */
957
886
  export type EventsQueryInput = {
958
- /** The pair contract address to filter by. */
887
+ /** The pair contract address to filter by. If you pass a token address in here, it will instead find the top pair for that token and use that. */
959
888
  address: Scalars['String']['input'];
960
889
  /** The amount of `quoteToken` involved in the swap. */
961
890
  amountNonLiquidityToken?: InputMaybe<NumberFilter>;
@@ -1241,7 +1170,7 @@ export type GetPriceInput = {
1241
1170
  maxDeviations?: InputMaybe<Scalars['Float']['input']>;
1242
1171
  /** The network ID the token is deployed on. */
1243
1172
  networkId: Scalars['Int']['input'];
1244
- /** The unix timestamp for the price. Lookup is limited to the last three months. */
1173
+ /** The unix timestamp for the price. */
1245
1174
  timestamp?: InputMaybe<Scalars['Int']['input']>;
1246
1175
  };
1247
1176
  export type GetQuoteInput = {
@@ -1279,9 +1208,17 @@ export declare enum GraphQlNftPoolVariant {
1279
1208
  export type HoldersInput = {
1280
1209
  /** A cursor for use in pagination. */
1281
1210
  cursor?: InputMaybe<Scalars['String']['input']>;
1211
+ /** The attribute to sort the list on */
1212
+ sort?: InputMaybe<HoldersInputSort>;
1282
1213
  /** The ID of the token (`tokenAddress:networkId`). */
1283
1214
  tokenId: Scalars['String']['input'];
1284
1215
  };
1216
+ export type HoldersInputSort = {
1217
+ /** The attribute to sort the list on */
1218
+ attribute?: InputMaybe<HoldersSortAttribute>;
1219
+ /** The direction to apply to the ranking attribute. */
1220
+ direction?: InputMaybe<RankingDirection>;
1221
+ };
1285
1222
  export type HoldersResponse = {
1286
1223
  __typename?: 'HoldersResponse';
1287
1224
  /** the unique count of holders for the token. */
@@ -1293,6 +1230,10 @@ export type HoldersResponse = {
1293
1230
  /** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
1294
1231
  status: HoldersStatus;
1295
1232
  };
1233
+ export declare enum HoldersSortAttribute {
1234
+ Balance = "BALANCE",
1235
+ Date = "DATE"
1236
+ }
1296
1237
  export declare enum HoldersStatus {
1297
1238
  Disabled = "DISABLED",
1298
1239
  Enabled = "ENABLED"
@@ -1530,6 +1471,7 @@ export type LiquidityLockConnection = {
1530
1471
  /** Protocols that can lock liquidity */
1531
1472
  export declare enum LiquidityLockProtocol {
1532
1473
  BasecampV1 = "BASECAMP_V1",
1474
+ Bitbond = "BITBOND",
1533
1475
  Burn = "BURN",
1534
1476
  UncxV2 = "UNCX_V2",
1535
1477
  UncxV3 = "UNCX_V3"
@@ -4157,6 +4099,10 @@ export type OnBarsUpdatedResponse = {
4157
4099
  /** The unix timestamp for the new bar. */
4158
4100
  timestamp: Scalars['Int']['output'];
4159
4101
  };
4102
+ export type OnTokenEventsCreatedInput = {
4103
+ networkId: Scalars['Int']['input'];
4104
+ tokenAddress: Scalars['String']['input'];
4105
+ };
4160
4106
  export type OneOfNumberCondition = {
4161
4107
  __typename?: 'OneOfNumberCondition';
4162
4108
  oneOf: Array<Scalars['Int']['output']>;
@@ -5377,6 +5323,10 @@ export type PrimePoolWithdrawData = {
5377
5323
  /** The amount of PRIME the user is not eligible for either from having already harvesting or from not caching in the past. */
5378
5324
  userPrimeRewardDebt: Scalars['String']['output'];
5379
5325
  };
5326
+ export declare enum PublishingType {
5327
+ Batch = "BATCH",
5328
+ Single = "SINGLE"
5329
+ }
5380
5330
  export type Query = {
5381
5331
  __typename?: 'Query';
5382
5332
  /** Get the active short-lived api token for this api key by the short-lived token */
@@ -5927,34 +5877,6 @@ export declare enum RankingDirection {
5927
5877
  Asc = "ASC",
5928
5878
  Desc = "DESC"
5929
5879
  }
5930
- export declare enum RawCallTraceType {
5931
- Create = "create"
5932
- }
5933
- export type RawCallTraceTypeConditionInput = {
5934
- eq: RawCallTraceType;
5935
- };
5936
- export type RawCallTraceTypeCondtion = {
5937
- __typename?: 'RawCallTraceTypeCondtion';
5938
- eq: RawCallTraceType;
5939
- };
5940
- export type RawCallTraceWebhookCondition = {
5941
- __typename?: 'RawCallTraceWebhookCondition';
5942
- networkId?: Maybe<OneOfNumberCondition>;
5943
- result?: Maybe<RawCallTraceWebhookConditionResult>;
5944
- traceType: RawCallTraceTypeCondtion;
5945
- };
5946
- export type RawCallTraceWebhookConditionInput = {
5947
- networkId?: InputMaybe<OneOfNumberConditionInput>;
5948
- result?: InputMaybe<RawCallTraceWebhookConditionResultInput>;
5949
- traceType: RawCallTraceTypeConditionInput;
5950
- };
5951
- export type RawCallTraceWebhookConditionResult = {
5952
- __typename?: 'RawCallTraceWebhookConditionResult';
5953
- code?: Maybe<StringContainsCondition>;
5954
- };
5955
- export type RawCallTraceWebhookConditionResultInput = {
5956
- code?: InputMaybe<StringContainsConditionInput>;
5957
- };
5958
5880
  export type RawNftAssetData = {
5959
5881
  __typename?: 'RawNftAssetData';
5960
5882
  /** An optional image field that may or may not be present on the requested NFT asset smart contract. */
@@ -6345,6 +6267,8 @@ export type Subscription = {
6345
6267
  /** Live-streamed price updates for a token. */
6346
6268
  onPriceUpdated?: Maybe<Price>;
6347
6269
  onSimulateTokenContract: SimulateTokenContractResult;
6270
+ /** Live streamed events for a given token across all it's pools */
6271
+ onTokenEventsCreated: AddTokenEventsOutput;
6348
6272
  /** Live-streamed token lifecycle events (mints and burns) */
6349
6273
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6350
6274
  };
@@ -6404,6 +6328,9 @@ export type SubscriptionOnSimulateTokenContractArgs = {
6404
6328
  networkId: Scalars['Int']['input'];
6405
6329
  simulationId?: InputMaybe<Scalars['String']['input']>;
6406
6330
  };
6331
+ export type SubscriptionOnTokenEventsCreatedArgs = {
6332
+ input: OnTokenEventsCreatedInput;
6333
+ };
6407
6334
  export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6408
6335
  address?: InputMaybe<Scalars['String']['input']>;
6409
6336
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -6655,7 +6582,7 @@ export type TokenFilterResult = {
6655
6582
  low12?: Maybe<Scalars['String']['output']>;
6656
6583
  /** The lowest price in USD in the past 24 hours. */
6657
6584
  low24?: Maybe<Scalars['String']['output']>;
6658
- /** The market cap of circulating supply. */
6585
+ /** The fully diluted market cap. For circulating market cap multiply `token { info { circulatingSupply } }` by `priceUSD`. */
6659
6586
  marketCap?: Maybe<Scalars['String']['output']>;
6660
6587
  /** Metadata for the token's top pair. */
6661
6588
  pair?: Maybe<Pair>;
@@ -7214,11 +7141,12 @@ export type Webhook = {
7214
7141
  groupId?: Maybe<Scalars['String']['output']>;
7215
7142
  id: Scalars['String']['output'];
7216
7143
  name: Scalars['String']['output'];
7144
+ publishingType?: Maybe<PublishingType>;
7217
7145
  retrySettings?: Maybe<RetrySettings>;
7218
7146
  status: Scalars['String']['output'];
7219
7147
  webhookType: WebhookType;
7220
7148
  };
7221
- export type WebhookCondition = DecodedCallWebhookCondition | DecodedLogWebhookCondition | NftEventWebhookCondition | PriceEventWebhookCondition | RawCallTraceWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7149
+ export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7222
7150
  export declare enum WebhookNftEventFillSource {
7223
7151
  Blur = "BLUR",
7224
7152
  Coinbase = "COINBASE",
@@ -7244,7 +7172,6 @@ export declare enum WebhookNftEventType {
7244
7172
  export declare enum WebhookType {
7245
7173
  NftEvent = "NFT_EVENT",
7246
7174
  PriceEvent = "PRICE_EVENT",
7247
- RawCallTrace = "RAW_CALL_TRACE",
7248
7175
  RawTransaction = "RAW_TRANSACTION",
7249
7176
  TokenPairEvent = "TOKEN_PAIR_EVENT"
7250
7177
  }
@@ -7456,49 +7383,6 @@ export type CreateWebhooksMutation = {
7456
7383
  bucketId?: string | null;
7457
7384
  bucketSortkey?: string | null;
7458
7385
  conditions: {
7459
- __typename?: 'DecodedCallWebhookCondition';
7460
- output?: any | null;
7461
- inputDecodedCallWebhookCondition?: any | null;
7462
- decodingId: {
7463
- __typename?: 'StringEqualsCondition';
7464
- eq: string;
7465
- };
7466
- methodName?: {
7467
- __typename?: 'StringEqualsCondition';
7468
- eq: string;
7469
- } | null;
7470
- address?: {
7471
- __typename?: 'StringEqualsCondition';
7472
- eq: string;
7473
- } | null;
7474
- from?: {
7475
- __typename?: 'StringEqualsCondition';
7476
- eq: string;
7477
- } | null;
7478
- to?: {
7479
- __typename?: 'StringEqualsCondition';
7480
- eq: string;
7481
- } | null;
7482
- methodId?: {
7483
- __typename?: 'StringEqualsCondition';
7484
- eq: string;
7485
- } | null;
7486
- } | {
7487
- __typename?: 'DecodedLogWebhookCondition';
7488
- event?: any | null;
7489
- decodingId: {
7490
- __typename?: 'StringEqualsCondition';
7491
- eq: string;
7492
- };
7493
- eventName?: {
7494
- __typename?: 'StringEqualsCondition';
7495
- eq: string;
7496
- } | null;
7497
- address?: {
7498
- __typename?: 'StringEqualsCondition';
7499
- eq: string;
7500
- } | null;
7501
- } | {
7502
7386
  __typename?: 'NftEventWebhookCondition';
7503
7387
  networkId?: {
7504
7388
  __typename?: 'OneOfNumberCondition';
@@ -7558,24 +7442,6 @@ export type CreateWebhooksMutation = {
7558
7442
  lte?: string | null;
7559
7443
  eq?: string | null;
7560
7444
  };
7561
- } | {
7562
- __typename?: 'RawCallTraceWebhookCondition';
7563
- traceType: {
7564
- __typename?: 'RawCallTraceTypeCondtion';
7565
- eq: RawCallTraceType;
7566
- };
7567
- result?: {
7568
- __typename?: 'RawCallTraceWebhookConditionResult';
7569
- code?: {
7570
- __typename?: 'StringContainsCondition';
7571
- contains?: Array<string> | null;
7572
- notContains?: Array<string> | null;
7573
- } | null;
7574
- } | null;
7575
- networkId?: {
7576
- __typename?: 'OneOfNumberCondition';
7577
- oneOf: Array<number>;
7578
- } | null;
7579
7445
  } | {
7580
7446
  __typename?: 'RawTransactionWebhookCondition';
7581
7447
  ignoreTokenPairEvents?: boolean | null;
@@ -7644,7 +7510,7 @@ export type CreateWebhooksMutation = {
7644
7510
  maxRetries?: number | null;
7645
7511
  } | null;
7646
7512
  } | null>;
7647
- decodedLogWebhooks: Array<{
7513
+ tokenPairEventWebhooks: Array<{
7648
7514
  __typename?: 'Webhook';
7649
7515
  id: string;
7650
7516
  webhookType: WebhookType;
@@ -7657,49 +7523,6 @@ export type CreateWebhooksMutation = {
7657
7523
  bucketId?: string | null;
7658
7524
  bucketSortkey?: string | null;
7659
7525
  conditions: {
7660
- __typename?: 'DecodedCallWebhookCondition';
7661
- output?: any | null;
7662
- inputDecodedCallWebhookCondition?: any | null;
7663
- decodingId: {
7664
- __typename?: 'StringEqualsCondition';
7665
- eq: string;
7666
- };
7667
- methodName?: {
7668
- __typename?: 'StringEqualsCondition';
7669
- eq: string;
7670
- } | null;
7671
- address?: {
7672
- __typename?: 'StringEqualsCondition';
7673
- eq: string;
7674
- } | null;
7675
- from?: {
7676
- __typename?: 'StringEqualsCondition';
7677
- eq: string;
7678
- } | null;
7679
- to?: {
7680
- __typename?: 'StringEqualsCondition';
7681
- eq: string;
7682
- } | null;
7683
- methodId?: {
7684
- __typename?: 'StringEqualsCondition';
7685
- eq: string;
7686
- } | null;
7687
- } | {
7688
- __typename?: 'DecodedLogWebhookCondition';
7689
- event?: any | null;
7690
- decodingId: {
7691
- __typename?: 'StringEqualsCondition';
7692
- eq: string;
7693
- };
7694
- eventName?: {
7695
- __typename?: 'StringEqualsCondition';
7696
- eq: string;
7697
- } | null;
7698
- address?: {
7699
- __typename?: 'StringEqualsCondition';
7700
- eq: string;
7701
- } | null;
7702
- } | {
7703
7526
  __typename?: 'NftEventWebhookCondition';
7704
7527
  networkId?: {
7705
7528
  __typename?: 'OneOfNumberCondition';
@@ -7759,24 +7582,6 @@ export type CreateWebhooksMutation = {
7759
7582
  lte?: string | null;
7760
7583
  eq?: string | null;
7761
7584
  };
7762
- } | {
7763
- __typename?: 'RawCallTraceWebhookCondition';
7764
- traceType: {
7765
- __typename?: 'RawCallTraceTypeCondtion';
7766
- eq: RawCallTraceType;
7767
- };
7768
- result?: {
7769
- __typename?: 'RawCallTraceWebhookConditionResult';
7770
- code?: {
7771
- __typename?: 'StringContainsCondition';
7772
- contains?: Array<string> | null;
7773
- notContains?: Array<string> | null;
7774
- } | null;
7775
- } | null;
7776
- networkId?: {
7777
- __typename?: 'OneOfNumberCondition';
7778
- oneOf: Array<number>;
7779
- } | null;
7780
7585
  } | {
7781
7586
  __typename?: 'RawTransactionWebhookCondition';
7782
7587
  ignoreTokenPairEvents?: boolean | null;
@@ -7845,7 +7650,7 @@ export type CreateWebhooksMutation = {
7845
7650
  maxRetries?: number | null;
7846
7651
  } | null;
7847
7652
  } | null>;
7848
- decodedCallWebhooks: Array<{
7653
+ nftEventWebhooks: Array<{
7849
7654
  __typename?: 'Webhook';
7850
7655
  id: string;
7851
7656
  webhookType: WebhookType;
@@ -7857,50 +7662,14 @@ export type CreateWebhooksMutation = {
7857
7662
  groupId?: string | null;
7858
7663
  bucketId?: string | null;
7859
7664
  bucketSortkey?: string | null;
7665
+ retrySettings?: {
7666
+ __typename?: 'RetrySettings';
7667
+ maxTimeElapsed?: number | null;
7668
+ minRetryDelay?: number | null;
7669
+ maxRetryDelay?: number | null;
7670
+ maxRetries?: number | null;
7671
+ } | null;
7860
7672
  conditions: {
7861
- __typename?: 'DecodedCallWebhookCondition';
7862
- output?: any | null;
7863
- inputDecodedCallWebhookCondition?: any | null;
7864
- decodingId: {
7865
- __typename?: 'StringEqualsCondition';
7866
- eq: string;
7867
- };
7868
- methodName?: {
7869
- __typename?: 'StringEqualsCondition';
7870
- eq: string;
7871
- } | null;
7872
- address?: {
7873
- __typename?: 'StringEqualsCondition';
7874
- eq: string;
7875
- } | null;
7876
- from?: {
7877
- __typename?: 'StringEqualsCondition';
7878
- eq: string;
7879
- } | null;
7880
- to?: {
7881
- __typename?: 'StringEqualsCondition';
7882
- eq: string;
7883
- } | null;
7884
- methodId?: {
7885
- __typename?: 'StringEqualsCondition';
7886
- eq: string;
7887
- } | null;
7888
- } | {
7889
- __typename?: 'DecodedLogWebhookCondition';
7890
- event?: any | null;
7891
- decodingId: {
7892
- __typename?: 'StringEqualsCondition';
7893
- eq: string;
7894
- };
7895
- eventName?: {
7896
- __typename?: 'StringEqualsCondition';
7897
- eq: string;
7898
- } | null;
7899
- address?: {
7900
- __typename?: 'StringEqualsCondition';
7901
- eq: string;
7902
- } | null;
7903
- } | {
7904
7673
  __typename?: 'NftEventWebhookCondition';
7905
7674
  networkId?: {
7906
7675
  __typename?: 'OneOfNumberCondition';
@@ -7960,24 +7729,6 @@ export type CreateWebhooksMutation = {
7960
7729
  lte?: string | null;
7961
7730
  eq?: string | null;
7962
7731
  };
7963
- } | {
7964
- __typename?: 'RawCallTraceWebhookCondition';
7965
- traceType: {
7966
- __typename?: 'RawCallTraceTypeCondtion';
7967
- eq: RawCallTraceType;
7968
- };
7969
- result?: {
7970
- __typename?: 'RawCallTraceWebhookConditionResult';
7971
- code?: {
7972
- __typename?: 'StringContainsCondition';
7973
- contains?: Array<string> | null;
7974
- notContains?: Array<string> | null;
7975
- } | null;
7976
- } | null;
7977
- networkId?: {
7978
- __typename?: 'OneOfNumberCondition';
7979
- oneOf: Array<number>;
7980
- } | null;
7981
7732
  } | {
7982
7733
  __typename?: 'RawTransactionWebhookCondition';
7983
7734
  ignoreTokenPairEvents?: boolean | null;
@@ -8038,15 +7789,8 @@ export type CreateWebhooksMutation = {
8038
7789
  oneOf: Array<TokenPairEventType>;
8039
7790
  } | null;
8040
7791
  };
8041
- retrySettings?: {
8042
- __typename?: 'RetrySettings';
8043
- maxTimeElapsed?: number | null;
8044
- minRetryDelay?: number | null;
8045
- maxRetryDelay?: number | null;
8046
- maxRetries?: number | null;
8047
- } | null;
8048
7792
  } | null>;
8049
- rawCallTraceWebhooks: Array<{
7793
+ rawTransactionWebhooks: Array<{
8050
7794
  __typename?: 'Webhook';
8051
7795
  id: string;
8052
7796
  webhookType: WebhookType;
@@ -8059,49 +7803,6 @@ export type CreateWebhooksMutation = {
8059
7803
  bucketId?: string | null;
8060
7804
  bucketSortkey?: string | null;
8061
7805
  conditions: {
8062
- __typename?: 'DecodedCallWebhookCondition';
8063
- output?: any | null;
8064
- inputDecodedCallWebhookCondition?: any | null;
8065
- decodingId: {
8066
- __typename?: 'StringEqualsCondition';
8067
- eq: string;
8068
- };
8069
- methodName?: {
8070
- __typename?: 'StringEqualsCondition';
8071
- eq: string;
8072
- } | null;
8073
- address?: {
8074
- __typename?: 'StringEqualsCondition';
8075
- eq: string;
8076
- } | null;
8077
- from?: {
8078
- __typename?: 'StringEqualsCondition';
8079
- eq: string;
8080
- } | null;
8081
- to?: {
8082
- __typename?: 'StringEqualsCondition';
8083
- eq: string;
8084
- } | null;
8085
- methodId?: {
8086
- __typename?: 'StringEqualsCondition';
8087
- eq: string;
8088
- } | null;
8089
- } | {
8090
- __typename?: 'DecodedLogWebhookCondition';
8091
- event?: any | null;
8092
- decodingId: {
8093
- __typename?: 'StringEqualsCondition';
8094
- eq: string;
8095
- };
8096
- eventName?: {
8097
- __typename?: 'StringEqualsCondition';
8098
- eq: string;
8099
- } | null;
8100
- address?: {
8101
- __typename?: 'StringEqualsCondition';
8102
- eq: string;
8103
- } | null;
8104
- } | {
8105
7806
  __typename?: 'NftEventWebhookCondition';
8106
7807
  networkId?: {
8107
7808
  __typename?: 'OneOfNumberCondition';
@@ -8161,627 +7862,6 @@ export type CreateWebhooksMutation = {
8161
7862
  lte?: string | null;
8162
7863
  eq?: string | null;
8163
7864
  };
8164
- } | {
8165
- __typename?: 'RawCallTraceWebhookCondition';
8166
- traceType: {
8167
- __typename?: 'RawCallTraceTypeCondtion';
8168
- eq: RawCallTraceType;
8169
- };
8170
- result?: {
8171
- __typename?: 'RawCallTraceWebhookConditionResult';
8172
- code?: {
8173
- __typename?: 'StringContainsCondition';
8174
- contains?: Array<string> | null;
8175
- notContains?: Array<string> | null;
8176
- } | null;
8177
- } | null;
8178
- networkId?: {
8179
- __typename?: 'OneOfNumberCondition';
8180
- oneOf: Array<number>;
8181
- } | null;
8182
- } | {
8183
- __typename?: 'RawTransactionWebhookCondition';
8184
- ignoreTokenPairEvents?: boolean | null;
8185
- ignoreNftEvents?: boolean | null;
8186
- networkId?: {
8187
- __typename?: 'OneOfNumberCondition';
8188
- oneOf: Array<number>;
8189
- } | null;
8190
- to?: {
8191
- __typename?: 'StringEqualsCondition';
8192
- eq: string;
8193
- } | null;
8194
- from?: {
8195
- __typename?: 'StringEqualsCondition';
8196
- eq: string;
8197
- } | null;
8198
- toOrFrom?: {
8199
- __typename?: 'StringEqualsCondition';
8200
- eq: string;
8201
- } | null;
8202
- input?: {
8203
- __typename?: 'StringContainsCondition';
8204
- contains?: Array<string> | null;
8205
- notContains?: Array<string> | null;
8206
- } | null;
8207
- } | {
8208
- __typename?: 'TokenPairEventWebhookCondition';
8209
- tokenAddress?: {
8210
- __typename?: 'StringEqualsCondition';
8211
- eq: string;
8212
- } | null;
8213
- networkId?: {
8214
- __typename?: 'OneOfNumberCondition';
8215
- oneOf: Array<number>;
8216
- } | null;
8217
- swapValue?: {
8218
- __typename?: 'ComparisonOperator';
8219
- gt?: string | null;
8220
- gte?: string | null;
8221
- lt?: string | null;
8222
- lte?: string | null;
8223
- eq?: string | null;
8224
- } | null;
8225
- maker?: {
8226
- __typename?: 'StringEqualsCondition';
8227
- eq: string;
8228
- } | null;
8229
- pairAddress?: {
8230
- __typename?: 'StringEqualsCondition';
8231
- eq: string;
8232
- } | null;
8233
- exchangeAddress?: {
8234
- __typename?: 'StringEqualsCondition';
8235
- eq: string;
8236
- } | null;
8237
- eventType?: {
8238
- __typename?: 'TokenPairEventTypeCondition';
8239
- oneOf: Array<TokenPairEventType>;
8240
- } | null;
8241
- };
8242
- retrySettings?: {
8243
- __typename?: 'RetrySettings';
8244
- maxTimeElapsed?: number | null;
8245
- minRetryDelay?: number | null;
8246
- maxRetryDelay?: number | null;
8247
- maxRetries?: number | null;
8248
- } | null;
8249
- } | null>;
8250
- tokenPairEventWebhooks: Array<{
8251
- __typename?: 'Webhook';
8252
- id: string;
8253
- webhookType: WebhookType;
8254
- name: string;
8255
- created: number;
8256
- alertRecurrence: AlertRecurrence;
8257
- callbackUrl: string;
8258
- status: string;
8259
- groupId?: string | null;
8260
- bucketId?: string | null;
8261
- bucketSortkey?: string | null;
8262
- conditions: {
8263
- __typename?: 'DecodedCallWebhookCondition';
8264
- output?: any | null;
8265
- inputDecodedCallWebhookCondition?: any | null;
8266
- decodingId: {
8267
- __typename?: 'StringEqualsCondition';
8268
- eq: string;
8269
- };
8270
- methodName?: {
8271
- __typename?: 'StringEqualsCondition';
8272
- eq: string;
8273
- } | null;
8274
- address?: {
8275
- __typename?: 'StringEqualsCondition';
8276
- eq: string;
8277
- } | null;
8278
- from?: {
8279
- __typename?: 'StringEqualsCondition';
8280
- eq: string;
8281
- } | null;
8282
- to?: {
8283
- __typename?: 'StringEqualsCondition';
8284
- eq: string;
8285
- } | null;
8286
- methodId?: {
8287
- __typename?: 'StringEqualsCondition';
8288
- eq: string;
8289
- } | null;
8290
- } | {
8291
- __typename?: 'DecodedLogWebhookCondition';
8292
- event?: any | null;
8293
- decodingId: {
8294
- __typename?: 'StringEqualsCondition';
8295
- eq: string;
8296
- };
8297
- eventName?: {
8298
- __typename?: 'StringEqualsCondition';
8299
- eq: string;
8300
- } | null;
8301
- address?: {
8302
- __typename?: 'StringEqualsCondition';
8303
- eq: string;
8304
- } | null;
8305
- } | {
8306
- __typename?: 'NftEventWebhookCondition';
8307
- networkId?: {
8308
- __typename?: 'OneOfNumberCondition';
8309
- oneOf: Array<number>;
8310
- } | null;
8311
- maker?: {
8312
- __typename?: 'StringEqualsCondition';
8313
- eq: string;
8314
- } | null;
8315
- contractAddress?: {
8316
- __typename?: 'StringEqualsCondition';
8317
- eq: string;
8318
- } | null;
8319
- exchangeAddress?: {
8320
- __typename?: 'StringEqualsCondition';
8321
- eq: string;
8322
- } | null;
8323
- tokenId?: {
8324
- __typename?: 'StringEqualsCondition';
8325
- eq: string;
8326
- } | null;
8327
- tokenAddress?: {
8328
- __typename?: 'StringEqualsCondition';
8329
- eq: string;
8330
- } | null;
8331
- individualBaseTokenPrice?: {
8332
- __typename?: 'ComparisonOperator';
8333
- gt?: string | null;
8334
- gte?: string | null;
8335
- lt?: string | null;
8336
- lte?: string | null;
8337
- eq?: string | null;
8338
- } | null;
8339
- eventType?: {
8340
- __typename?: 'NftEventTypeCondition';
8341
- eq: WebhookNftEventType;
8342
- } | null;
8343
- fillSource?: {
8344
- __typename?: 'NftEventFillSourceCondition';
8345
- oneOf: Array<WebhookNftEventFillSource>;
8346
- } | null;
8347
- } | {
8348
- __typename?: 'PriceEventWebhookCondition';
8349
- tokenAddressPriceEventWebhookCondition: {
8350
- __typename?: 'StringEqualsCondition';
8351
- eq: string;
8352
- };
8353
- networkIdPriceEventWebhookCondition: {
8354
- __typename?: 'IntEqualsCondition';
8355
- eq: number;
8356
- };
8357
- priceUsd: {
8358
- __typename?: 'ComparisonOperator';
8359
- gt?: string | null;
8360
- gte?: string | null;
8361
- lt?: string | null;
8362
- lte?: string | null;
8363
- eq?: string | null;
8364
- };
8365
- } | {
8366
- __typename?: 'RawCallTraceWebhookCondition';
8367
- traceType: {
8368
- __typename?: 'RawCallTraceTypeCondtion';
8369
- eq: RawCallTraceType;
8370
- };
8371
- result?: {
8372
- __typename?: 'RawCallTraceWebhookConditionResult';
8373
- code?: {
8374
- __typename?: 'StringContainsCondition';
8375
- contains?: Array<string> | null;
8376
- notContains?: Array<string> | null;
8377
- } | null;
8378
- } | null;
8379
- networkId?: {
8380
- __typename?: 'OneOfNumberCondition';
8381
- oneOf: Array<number>;
8382
- } | null;
8383
- } | {
8384
- __typename?: 'RawTransactionWebhookCondition';
8385
- ignoreTokenPairEvents?: boolean | null;
8386
- ignoreNftEvents?: boolean | null;
8387
- networkId?: {
8388
- __typename?: 'OneOfNumberCondition';
8389
- oneOf: Array<number>;
8390
- } | null;
8391
- to?: {
8392
- __typename?: 'StringEqualsCondition';
8393
- eq: string;
8394
- } | null;
8395
- from?: {
8396
- __typename?: 'StringEqualsCondition';
8397
- eq: string;
8398
- } | null;
8399
- toOrFrom?: {
8400
- __typename?: 'StringEqualsCondition';
8401
- eq: string;
8402
- } | null;
8403
- input?: {
8404
- __typename?: 'StringContainsCondition';
8405
- contains?: Array<string> | null;
8406
- notContains?: Array<string> | null;
8407
- } | null;
8408
- } | {
8409
- __typename?: 'TokenPairEventWebhookCondition';
8410
- tokenAddress?: {
8411
- __typename?: 'StringEqualsCondition';
8412
- eq: string;
8413
- } | null;
8414
- networkId?: {
8415
- __typename?: 'OneOfNumberCondition';
8416
- oneOf: Array<number>;
8417
- } | null;
8418
- swapValue?: {
8419
- __typename?: 'ComparisonOperator';
8420
- gt?: string | null;
8421
- gte?: string | null;
8422
- lt?: string | null;
8423
- lte?: string | null;
8424
- eq?: string | null;
8425
- } | null;
8426
- maker?: {
8427
- __typename?: 'StringEqualsCondition';
8428
- eq: string;
8429
- } | null;
8430
- pairAddress?: {
8431
- __typename?: 'StringEqualsCondition';
8432
- eq: string;
8433
- } | null;
8434
- exchangeAddress?: {
8435
- __typename?: 'StringEqualsCondition';
8436
- eq: string;
8437
- } | null;
8438
- eventType?: {
8439
- __typename?: 'TokenPairEventTypeCondition';
8440
- oneOf: Array<TokenPairEventType>;
8441
- } | null;
8442
- };
8443
- retrySettings?: {
8444
- __typename?: 'RetrySettings';
8445
- maxTimeElapsed?: number | null;
8446
- minRetryDelay?: number | null;
8447
- maxRetryDelay?: number | null;
8448
- maxRetries?: number | null;
8449
- } | null;
8450
- } | null>;
8451
- nftEventWebhooks: Array<{
8452
- __typename?: 'Webhook';
8453
- id: string;
8454
- webhookType: WebhookType;
8455
- name: string;
8456
- created: number;
8457
- alertRecurrence: AlertRecurrence;
8458
- callbackUrl: string;
8459
- status: string;
8460
- groupId?: string | null;
8461
- bucketId?: string | null;
8462
- bucketSortkey?: string | null;
8463
- retrySettings?: {
8464
- __typename?: 'RetrySettings';
8465
- maxTimeElapsed?: number | null;
8466
- minRetryDelay?: number | null;
8467
- maxRetryDelay?: number | null;
8468
- maxRetries?: number | null;
8469
- } | null;
8470
- conditions: {
8471
- __typename?: 'DecodedCallWebhookCondition';
8472
- output?: any | null;
8473
- inputDecodedCallWebhookCondition?: any | null;
8474
- decodingId: {
8475
- __typename?: 'StringEqualsCondition';
8476
- eq: string;
8477
- };
8478
- methodName?: {
8479
- __typename?: 'StringEqualsCondition';
8480
- eq: string;
8481
- } | null;
8482
- address?: {
8483
- __typename?: 'StringEqualsCondition';
8484
- eq: string;
8485
- } | null;
8486
- from?: {
8487
- __typename?: 'StringEqualsCondition';
8488
- eq: string;
8489
- } | null;
8490
- to?: {
8491
- __typename?: 'StringEqualsCondition';
8492
- eq: string;
8493
- } | null;
8494
- methodId?: {
8495
- __typename?: 'StringEqualsCondition';
8496
- eq: string;
8497
- } | null;
8498
- } | {
8499
- __typename?: 'DecodedLogWebhookCondition';
8500
- event?: any | null;
8501
- decodingId: {
8502
- __typename?: 'StringEqualsCondition';
8503
- eq: string;
8504
- };
8505
- eventName?: {
8506
- __typename?: 'StringEqualsCondition';
8507
- eq: string;
8508
- } | null;
8509
- address?: {
8510
- __typename?: 'StringEqualsCondition';
8511
- eq: string;
8512
- } | null;
8513
- } | {
8514
- __typename?: 'NftEventWebhookCondition';
8515
- networkId?: {
8516
- __typename?: 'OneOfNumberCondition';
8517
- oneOf: Array<number>;
8518
- } | null;
8519
- maker?: {
8520
- __typename?: 'StringEqualsCondition';
8521
- eq: string;
8522
- } | null;
8523
- contractAddress?: {
8524
- __typename?: 'StringEqualsCondition';
8525
- eq: string;
8526
- } | null;
8527
- exchangeAddress?: {
8528
- __typename?: 'StringEqualsCondition';
8529
- eq: string;
8530
- } | null;
8531
- tokenId?: {
8532
- __typename?: 'StringEqualsCondition';
8533
- eq: string;
8534
- } | null;
8535
- tokenAddress?: {
8536
- __typename?: 'StringEqualsCondition';
8537
- eq: string;
8538
- } | null;
8539
- individualBaseTokenPrice?: {
8540
- __typename?: 'ComparisonOperator';
8541
- gt?: string | null;
8542
- gte?: string | null;
8543
- lt?: string | null;
8544
- lte?: string | null;
8545
- eq?: string | null;
8546
- } | null;
8547
- eventType?: {
8548
- __typename?: 'NftEventTypeCondition';
8549
- eq: WebhookNftEventType;
8550
- } | null;
8551
- fillSource?: {
8552
- __typename?: 'NftEventFillSourceCondition';
8553
- oneOf: Array<WebhookNftEventFillSource>;
8554
- } | null;
8555
- } | {
8556
- __typename?: 'PriceEventWebhookCondition';
8557
- tokenAddressPriceEventWebhookCondition: {
8558
- __typename?: 'StringEqualsCondition';
8559
- eq: string;
8560
- };
8561
- networkIdPriceEventWebhookCondition: {
8562
- __typename?: 'IntEqualsCondition';
8563
- eq: number;
8564
- };
8565
- priceUsd: {
8566
- __typename?: 'ComparisonOperator';
8567
- gt?: string | null;
8568
- gte?: string | null;
8569
- lt?: string | null;
8570
- lte?: string | null;
8571
- eq?: string | null;
8572
- };
8573
- } | {
8574
- __typename?: 'RawCallTraceWebhookCondition';
8575
- traceType: {
8576
- __typename?: 'RawCallTraceTypeCondtion';
8577
- eq: RawCallTraceType;
8578
- };
8579
- result?: {
8580
- __typename?: 'RawCallTraceWebhookConditionResult';
8581
- code?: {
8582
- __typename?: 'StringContainsCondition';
8583
- contains?: Array<string> | null;
8584
- notContains?: Array<string> | null;
8585
- } | null;
8586
- } | null;
8587
- networkId?: {
8588
- __typename?: 'OneOfNumberCondition';
8589
- oneOf: Array<number>;
8590
- } | null;
8591
- } | {
8592
- __typename?: 'RawTransactionWebhookCondition';
8593
- ignoreTokenPairEvents?: boolean | null;
8594
- ignoreNftEvents?: boolean | null;
8595
- networkId?: {
8596
- __typename?: 'OneOfNumberCondition';
8597
- oneOf: Array<number>;
8598
- } | null;
8599
- to?: {
8600
- __typename?: 'StringEqualsCondition';
8601
- eq: string;
8602
- } | null;
8603
- from?: {
8604
- __typename?: 'StringEqualsCondition';
8605
- eq: string;
8606
- } | null;
8607
- toOrFrom?: {
8608
- __typename?: 'StringEqualsCondition';
8609
- eq: string;
8610
- } | null;
8611
- input?: {
8612
- __typename?: 'StringContainsCondition';
8613
- contains?: Array<string> | null;
8614
- notContains?: Array<string> | null;
8615
- } | null;
8616
- } | {
8617
- __typename?: 'TokenPairEventWebhookCondition';
8618
- tokenAddress?: {
8619
- __typename?: 'StringEqualsCondition';
8620
- eq: string;
8621
- } | null;
8622
- networkId?: {
8623
- __typename?: 'OneOfNumberCondition';
8624
- oneOf: Array<number>;
8625
- } | null;
8626
- swapValue?: {
8627
- __typename?: 'ComparisonOperator';
8628
- gt?: string | null;
8629
- gte?: string | null;
8630
- lt?: string | null;
8631
- lte?: string | null;
8632
- eq?: string | null;
8633
- } | null;
8634
- maker?: {
8635
- __typename?: 'StringEqualsCondition';
8636
- eq: string;
8637
- } | null;
8638
- pairAddress?: {
8639
- __typename?: 'StringEqualsCondition';
8640
- eq: string;
8641
- } | null;
8642
- exchangeAddress?: {
8643
- __typename?: 'StringEqualsCondition';
8644
- eq: string;
8645
- } | null;
8646
- eventType?: {
8647
- __typename?: 'TokenPairEventTypeCondition';
8648
- oneOf: Array<TokenPairEventType>;
8649
- } | null;
8650
- };
8651
- } | null>;
8652
- rawTransactionWebhooks: Array<{
8653
- __typename?: 'Webhook';
8654
- id: string;
8655
- webhookType: WebhookType;
8656
- name: string;
8657
- created: number;
8658
- alertRecurrence: AlertRecurrence;
8659
- callbackUrl: string;
8660
- status: string;
8661
- groupId?: string | null;
8662
- bucketId?: string | null;
8663
- bucketSortkey?: string | null;
8664
- conditions: {
8665
- __typename?: 'DecodedCallWebhookCondition';
8666
- output?: any | null;
8667
- inputDecodedCallWebhookCondition?: any | null;
8668
- decodingId: {
8669
- __typename?: 'StringEqualsCondition';
8670
- eq: string;
8671
- };
8672
- methodName?: {
8673
- __typename?: 'StringEqualsCondition';
8674
- eq: string;
8675
- } | null;
8676
- address?: {
8677
- __typename?: 'StringEqualsCondition';
8678
- eq: string;
8679
- } | null;
8680
- from?: {
8681
- __typename?: 'StringEqualsCondition';
8682
- eq: string;
8683
- } | null;
8684
- to?: {
8685
- __typename?: 'StringEqualsCondition';
8686
- eq: string;
8687
- } | null;
8688
- methodId?: {
8689
- __typename?: 'StringEqualsCondition';
8690
- eq: string;
8691
- } | null;
8692
- } | {
8693
- __typename?: 'DecodedLogWebhookCondition';
8694
- event?: any | null;
8695
- decodingId: {
8696
- __typename?: 'StringEqualsCondition';
8697
- eq: string;
8698
- };
8699
- eventName?: {
8700
- __typename?: 'StringEqualsCondition';
8701
- eq: string;
8702
- } | null;
8703
- address?: {
8704
- __typename?: 'StringEqualsCondition';
8705
- eq: string;
8706
- } | null;
8707
- } | {
8708
- __typename?: 'NftEventWebhookCondition';
8709
- networkId?: {
8710
- __typename?: 'OneOfNumberCondition';
8711
- oneOf: Array<number>;
8712
- } | null;
8713
- maker?: {
8714
- __typename?: 'StringEqualsCondition';
8715
- eq: string;
8716
- } | null;
8717
- contractAddress?: {
8718
- __typename?: 'StringEqualsCondition';
8719
- eq: string;
8720
- } | null;
8721
- exchangeAddress?: {
8722
- __typename?: 'StringEqualsCondition';
8723
- eq: string;
8724
- } | null;
8725
- tokenId?: {
8726
- __typename?: 'StringEqualsCondition';
8727
- eq: string;
8728
- } | null;
8729
- tokenAddress?: {
8730
- __typename?: 'StringEqualsCondition';
8731
- eq: string;
8732
- } | null;
8733
- individualBaseTokenPrice?: {
8734
- __typename?: 'ComparisonOperator';
8735
- gt?: string | null;
8736
- gte?: string | null;
8737
- lt?: string | null;
8738
- lte?: string | null;
8739
- eq?: string | null;
8740
- } | null;
8741
- eventType?: {
8742
- __typename?: 'NftEventTypeCondition';
8743
- eq: WebhookNftEventType;
8744
- } | null;
8745
- fillSource?: {
8746
- __typename?: 'NftEventFillSourceCondition';
8747
- oneOf: Array<WebhookNftEventFillSource>;
8748
- } | null;
8749
- } | {
8750
- __typename?: 'PriceEventWebhookCondition';
8751
- tokenAddressPriceEventWebhookCondition: {
8752
- __typename?: 'StringEqualsCondition';
8753
- eq: string;
8754
- };
8755
- networkIdPriceEventWebhookCondition: {
8756
- __typename?: 'IntEqualsCondition';
8757
- eq: number;
8758
- };
8759
- priceUsd: {
8760
- __typename?: 'ComparisonOperator';
8761
- gt?: string | null;
8762
- gte?: string | null;
8763
- lt?: string | null;
8764
- lte?: string | null;
8765
- eq?: string | null;
8766
- };
8767
- } | {
8768
- __typename?: 'RawCallTraceWebhookCondition';
8769
- traceType: {
8770
- __typename?: 'RawCallTraceTypeCondtion';
8771
- eq: RawCallTraceType;
8772
- };
8773
- result?: {
8774
- __typename?: 'RawCallTraceWebhookConditionResult';
8775
- code?: {
8776
- __typename?: 'StringContainsCondition';
8777
- contains?: Array<string> | null;
8778
- notContains?: Array<string> | null;
8779
- } | null;
8780
- } | null;
8781
- networkId?: {
8782
- __typename?: 'OneOfNumberCondition';
8783
- oneOf: Array<number>;
8784
- } | null;
8785
7865
  } | {
8786
7866
  __typename?: 'RawTransactionWebhookCondition';
8787
7867
  ignoreTokenPairEvents?: boolean | null;
@@ -8898,6 +7978,7 @@ export type FilterPairsQueryVariables = Exact<{
8898
7978
  limit?: InputMaybe<Scalars['Int']['input']>;
8899
7979
  offset?: InputMaybe<Scalars['Int']['input']>;
8900
7980
  matchTokens?: InputMaybe<PairFilterMatchTokens>;
7981
+ statsType?: InputMaybe<TokenPairStatisticsType>;
8901
7982
  }>;
8902
7983
  export type FilterPairsQuery = {
8903
7984
  __typename?: 'Query';
@@ -9024,6 +8105,7 @@ export type FilterTokensQueryVariables = Exact<{
9024
8105
  rankings?: InputMaybe<Array<InputMaybe<TokenRanking>> | InputMaybe<TokenRanking>>;
9025
8106
  limit?: InputMaybe<Scalars['Int']['input']>;
9026
8107
  offset?: InputMaybe<Scalars['Int']['input']>;
8108
+ statsType?: InputMaybe<TokenPairStatisticsType>;
9027
8109
  }>;
9028
8110
  export type FilterTokensQuery = {
9029
8111
  __typename?: 'Query';
@@ -10301,6 +9383,9 @@ export type GetNetworksQuery = {
10301
9383
  }>;
10302
9384
  };
10303
9385
  export type PairEventsQueryVariables = Exact<{
9386
+ cursor?: InputMaybe<Scalars['String']['input']>;
9387
+ limit?: InputMaybe<Scalars['Int']['input']>;
9388
+ direction?: InputMaybe<RankingDirection>;
10304
9389
  query: EventsQueryInput;
10305
9390
  }>;
10306
9391
  export type PairEventsQuery = {
@@ -10331,6 +9416,42 @@ export type PairEventsQuery = {
10331
9416
  transactionHash: string;
10332
9417
  transactionIndex: number;
10333
9418
  logIndex: number;
9419
+ data?: {
9420
+ __typename: 'BurnEventData';
9421
+ amount0?: string | null;
9422
+ amount1?: string | null;
9423
+ amount0Shifted?: string | null;
9424
+ amount1Shifted?: string | null;
9425
+ type: EventType;
9426
+ } | {
9427
+ __typename: 'MintEventData';
9428
+ amount0?: string | null;
9429
+ amount1?: string | null;
9430
+ amount0Shifted?: string | null;
9431
+ amount1Shifted?: string | null;
9432
+ type: EventType;
9433
+ } | {
9434
+ __typename: 'PoolBalanceChangedEventData';
9435
+ amount0?: string | null;
9436
+ amount1?: string | null;
9437
+ amount0Shifted?: string | null;
9438
+ amount1Shifted?: string | null;
9439
+ type: EventType;
9440
+ } | {
9441
+ __typename: 'SwapEventData';
9442
+ amount0In?: string | null;
9443
+ amount0Out?: string | null;
9444
+ amount1In?: string | null;
9445
+ amount1Out?: string | null;
9446
+ amount0?: string | null;
9447
+ amount1?: string | null;
9448
+ amountNonLiquidityToken?: string | null;
9449
+ priceUsd?: string | null;
9450
+ priceUsdTotal?: string | null;
9451
+ priceBaseToken?: string | null;
9452
+ priceBaseTokenTotal?: string | null;
9453
+ type: EventType;
9454
+ } | null;
10334
9455
  } | null> | null;
10335
9456
  } | null;
10336
9457
  };
@@ -10417,49 +9538,6 @@ export type GetWebhooksQuery = {
10417
9538
  bucketSortkey?: string | null;
10418
9539
  callbackUrl: string;
10419
9540
  conditions: {
10420
- __typename?: 'DecodedCallWebhookCondition';
10421
- output?: any | null;
10422
- inputJSON?: any | null;
10423
- decodingId: {
10424
- __typename?: 'StringEqualsCondition';
10425
- eq: string;
10426
- };
10427
- methodName?: {
10428
- __typename?: 'StringEqualsCondition';
10429
- eq: string;
10430
- } | null;
10431
- address?: {
10432
- __typename?: 'StringEqualsCondition';
10433
- eq: string;
10434
- } | null;
10435
- from?: {
10436
- __typename?: 'StringEqualsCondition';
10437
- eq: string;
10438
- } | null;
10439
- to?: {
10440
- __typename?: 'StringEqualsCondition';
10441
- eq: string;
10442
- } | null;
10443
- methodId?: {
10444
- __typename?: 'StringEqualsCondition';
10445
- eq: string;
10446
- } | null;
10447
- } | {
10448
- __typename?: 'DecodedLogWebhookCondition';
10449
- event?: any | null;
10450
- decodingId: {
10451
- __typename?: 'StringEqualsCondition';
10452
- eq: string;
10453
- };
10454
- eventName?: {
10455
- __typename?: 'StringEqualsCondition';
10456
- eq: string;
10457
- } | null;
10458
- address?: {
10459
- __typename?: 'StringEqualsCondition';
10460
- eq: string;
10461
- } | null;
10462
- } | {
10463
9541
  __typename?: 'NftEventWebhookCondition';
10464
9542
  networkId?: {
10465
9543
  __typename?: 'OneOfNumberCondition';
@@ -10519,24 +9597,6 @@ export type GetWebhooksQuery = {
10519
9597
  lte?: string | null;
10520
9598
  eq?: string | null;
10521
9599
  };
10522
- } | {
10523
- __typename?: 'RawCallTraceWebhookCondition';
10524
- traceType: {
10525
- __typename?: 'RawCallTraceTypeCondtion';
10526
- eq: RawCallTraceType;
10527
- };
10528
- result?: {
10529
- __typename?: 'RawCallTraceWebhookConditionResult';
10530
- code?: {
10531
- __typename?: 'StringContainsCondition';
10532
- contains?: Array<string> | null;
10533
- notContains?: Array<string> | null;
10534
- } | null;
10535
- } | null;
10536
- networkId?: {
10537
- __typename?: 'OneOfNumberCondition';
10538
- oneOf: Array<number>;
10539
- } | null;
10540
9600
  } | {
10541
9601
  __typename?: 'RawTransactionWebhookCondition';
10542
9602
  ignoreTokenPairEvents?: boolean | null;
@@ -10789,207 +9849,113 @@ export type OnBarsUpdatedSubscription = {
10789
9849
  quoteToken?: QuoteToken | null;
10790
9850
  aggregates: {
10791
9851
  __typename?: 'ResolutionBarData';
10792
- r1?: {
9852
+ r1?: ({
10793
9853
  __typename?: 'CurrencyBarData';
10794
- t: number;
10795
- usd: {
10796
- __typename?: 'IndividualBarData';
10797
- t: number;
10798
- o: number;
10799
- h: number;
10800
- l: number;
10801
- c: number;
10802
- volume: string;
10803
- };
10804
- token: {
10805
- __typename?: 'IndividualBarData';
10806
- t: number;
10807
- o: number;
10808
- h: number;
10809
- l: number;
10810
- c: number;
10811
- volume: string;
9854
+ } & {
9855
+ ' $fragmentRefs'?: {
9856
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10812
9857
  };
10813
- } | null;
10814
- r5?: {
9858
+ }) | null;
9859
+ r5?: ({
10815
9860
  __typename?: 'CurrencyBarData';
10816
- t: number;
10817
- usd: {
10818
- __typename?: 'IndividualBarData';
10819
- t: number;
10820
- o: number;
10821
- h: number;
10822
- l: number;
10823
- c: number;
10824
- volume: string;
10825
- };
10826
- token: {
10827
- __typename?: 'IndividualBarData';
10828
- t: number;
10829
- o: number;
10830
- h: number;
10831
- l: number;
10832
- c: number;
10833
- volume: string;
9861
+ } & {
9862
+ ' $fragmentRefs'?: {
9863
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10834
9864
  };
10835
- } | null;
10836
- r15?: {
9865
+ }) | null;
9866
+ r15?: ({
10837
9867
  __typename?: 'CurrencyBarData';
10838
- t: number;
10839
- usd: {
10840
- __typename?: 'IndividualBarData';
10841
- t: number;
10842
- o: number;
10843
- h: number;
10844
- l: number;
10845
- c: number;
10846
- volume: string;
10847
- };
10848
- token: {
10849
- __typename?: 'IndividualBarData';
10850
- t: number;
10851
- o: number;
10852
- h: number;
10853
- l: number;
10854
- c: number;
10855
- volume: string;
9868
+ } & {
9869
+ ' $fragmentRefs'?: {
9870
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10856
9871
  };
10857
- } | null;
10858
- r30?: {
9872
+ }) | null;
9873
+ r30?: ({
10859
9874
  __typename?: 'CurrencyBarData';
10860
- t: number;
10861
- usd: {
10862
- __typename?: 'IndividualBarData';
10863
- t: number;
10864
- o: number;
10865
- h: number;
10866
- l: number;
10867
- c: number;
10868
- volume: string;
10869
- };
10870
- token: {
10871
- __typename?: 'IndividualBarData';
10872
- t: number;
10873
- o: number;
10874
- h: number;
10875
- l: number;
10876
- c: number;
10877
- volume: string;
9875
+ } & {
9876
+ ' $fragmentRefs'?: {
9877
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10878
9878
  };
10879
- } | null;
10880
- r60?: {
9879
+ }) | null;
9880
+ r60?: ({
10881
9881
  __typename?: 'CurrencyBarData';
10882
- t: number;
10883
- usd: {
10884
- __typename?: 'IndividualBarData';
10885
- t: number;
10886
- o: number;
10887
- h: number;
10888
- l: number;
10889
- c: number;
10890
- volume: string;
10891
- };
10892
- token: {
10893
- __typename?: 'IndividualBarData';
10894
- t: number;
10895
- o: number;
10896
- h: number;
10897
- l: number;
10898
- c: number;
10899
- volume: string;
9882
+ } & {
9883
+ ' $fragmentRefs'?: {
9884
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10900
9885
  };
10901
- } | null;
10902
- r240?: {
9886
+ }) | null;
9887
+ r240?: ({
10903
9888
  __typename?: 'CurrencyBarData';
10904
- t: number;
10905
- usd: {
10906
- __typename?: 'IndividualBarData';
10907
- t: number;
10908
- o: number;
10909
- h: number;
10910
- l: number;
10911
- c: number;
10912
- volume: string;
10913
- };
10914
- token: {
10915
- __typename?: 'IndividualBarData';
10916
- t: number;
10917
- o: number;
10918
- h: number;
10919
- l: number;
10920
- c: number;
10921
- volume: string;
9889
+ } & {
9890
+ ' $fragmentRefs'?: {
9891
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10922
9892
  };
10923
- } | null;
10924
- r720?: {
9893
+ }) | null;
9894
+ r720?: ({
10925
9895
  __typename?: 'CurrencyBarData';
10926
- t: number;
10927
- usd: {
10928
- __typename?: 'IndividualBarData';
10929
- t: number;
10930
- o: number;
10931
- h: number;
10932
- l: number;
10933
- c: number;
10934
- volume: string;
10935
- };
10936
- token: {
10937
- __typename?: 'IndividualBarData';
10938
- t: number;
10939
- o: number;
10940
- h: number;
10941
- l: number;
10942
- c: number;
10943
- volume: string;
9896
+ } & {
9897
+ ' $fragmentRefs'?: {
9898
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10944
9899
  };
10945
- } | null;
10946
- r1D?: {
9900
+ }) | null;
9901
+ r1D?: ({
10947
9902
  __typename?: 'CurrencyBarData';
10948
- t: number;
10949
- usd: {
10950
- __typename?: 'IndividualBarData';
10951
- t: number;
10952
- o: number;
10953
- h: number;
10954
- l: number;
10955
- c: number;
10956
- volume: string;
10957
- };
10958
- token: {
10959
- __typename?: 'IndividualBarData';
10960
- t: number;
10961
- o: number;
10962
- h: number;
10963
- l: number;
10964
- c: number;
10965
- volume: string;
9903
+ } & {
9904
+ ' $fragmentRefs'?: {
9905
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10966
9906
  };
10967
- } | null;
10968
- r7D?: {
9907
+ }) | null;
9908
+ r7D?: ({
10969
9909
  __typename?: 'CurrencyBarData';
10970
- t: number;
10971
- usd: {
10972
- __typename?: 'IndividualBarData';
10973
- t: number;
10974
- o: number;
10975
- h: number;
10976
- l: number;
10977
- c: number;
10978
- volume: string;
10979
- };
10980
- token: {
10981
- __typename?: 'IndividualBarData';
10982
- t: number;
10983
- o: number;
10984
- h: number;
10985
- l: number;
10986
- c: number;
10987
- volume: string;
9910
+ } & {
9911
+ ' $fragmentRefs'?: {
9912
+ 'CurrencyFieldsFragment': CurrencyFieldsFragment;
10988
9913
  };
10989
- } | null;
9914
+ }) | null;
10990
9915
  };
10991
9916
  } | null;
10992
9917
  };
9918
+ export type BarDataFieldsFragment = {
9919
+ __typename?: 'IndividualBarData';
9920
+ buyers: number;
9921
+ buys: number;
9922
+ buyVolume: string;
9923
+ c: number;
9924
+ h: number;
9925
+ l: number;
9926
+ liquidity: string;
9927
+ o: number;
9928
+ sellers: number;
9929
+ sells: number;
9930
+ sellVolume: string;
9931
+ t: number;
9932
+ traders: number;
9933
+ transactions: number;
9934
+ volume: string;
9935
+ volumeNativeToken: string;
9936
+ } & {
9937
+ ' $fragmentName'?: 'BarDataFieldsFragment';
9938
+ };
9939
+ export type CurrencyFieldsFragment = {
9940
+ __typename?: 'CurrencyBarData';
9941
+ t: number;
9942
+ token: ({
9943
+ __typename?: 'IndividualBarData';
9944
+ } & {
9945
+ ' $fragmentRefs'?: {
9946
+ 'BarDataFieldsFragment': BarDataFieldsFragment;
9947
+ };
9948
+ });
9949
+ usd: ({
9950
+ __typename?: 'IndividualBarData';
9951
+ } & {
9952
+ ' $fragmentRefs'?: {
9953
+ 'BarDataFieldsFragment': BarDataFieldsFragment;
9954
+ };
9955
+ });
9956
+ } & {
9957
+ ' $fragmentName'?: 'CurrencyFieldsFragment';
9958
+ };
10993
9959
  export type OnDetailedStatsUpdatedSubscriptionVariables = Exact<{
10994
9960
  pairId?: InputMaybe<Scalars['String']['input']>;
10995
9961
  tokenOfInterest?: InputMaybe<TokenOfInterest>;
@@ -11645,6 +10611,8 @@ export type OnPriceUpdatedSubscription = {
11645
10611
  timestamp: number;
11646
10612
  } | null;
11647
10613
  };
10614
+ export declare const BarDataFieldsFragmentDoc: DocumentNode<BarDataFieldsFragment, unknown>;
10615
+ export declare const CurrencyFieldsFragmentDoc: DocumentNode<CurrencyFieldsFragment, unknown>;
11648
10616
  export declare const CreateWebhooksDocument: DocumentNode<CreateWebhooksMutation, Exact<{
11649
10617
  input: CreateWebhooksInput;
11650
10618
  }>>;
@@ -11666,6 +10634,7 @@ export declare const FilterPairsDocument: DocumentNode<FilterPairsQuery, Exact<{
11666
10634
  limit?: InputMaybe<number> | undefined;
11667
10635
  offset?: InputMaybe<number> | undefined;
11668
10636
  matchTokens?: InputMaybe<PairFilterMatchTokens> | undefined;
10637
+ statsType?: InputMaybe<TokenPairStatisticsType> | undefined;
11669
10638
  }>>;
11670
10639
  export declare const FilterTokensDocument: DocumentNode<FilterTokensQuery, Exact<{
11671
10640
  filters?: InputMaybe<TokenFilters> | undefined;
@@ -11674,6 +10643,7 @@ export declare const FilterTokensDocument: DocumentNode<FilterTokensQuery, Exact
11674
10643
  rankings?: InputMaybe<InputMaybe<TokenRanking> | InputMaybe<TokenRanking>[]> | undefined;
11675
10644
  limit?: InputMaybe<number> | undefined;
11676
10645
  offset?: InputMaybe<number> | undefined;
10646
+ statsType?: InputMaybe<TokenPairStatisticsType> | undefined;
11677
10647
  }>>;
11678
10648
  export declare const GetBarsDocument: DocumentNode<GetBarsQuery, Exact<{
11679
10649
  symbol: Scalars['String']['input'];
@@ -11701,6 +10671,9 @@ export declare const GetNetworksDocument: DocumentNode<GetNetworksQuery, Exact<{
11701
10671
  [key: string]: never;
11702
10672
  }>>;
11703
10673
  export declare const PairEventsDocument: DocumentNode<PairEventsQuery, Exact<{
10674
+ cursor?: InputMaybe<string> | undefined;
10675
+ limit?: InputMaybe<number> | undefined;
10676
+ direction?: InputMaybe<RankingDirection> | undefined;
11704
10677
  query: EventsQueryInput;
11705
10678
  }>>;
11706
10679
  export declare const GetTokenPriceDocument: DocumentNode<GetTokenPriceQuery, Exact<{