@codex-data/sdk 0.5.8 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,6 +93,11 @@ export type AddNftPoolEventsOutput = {
93
93
  networkId: Scalars['Int']['output'];
94
94
  poolAddress: Scalars['String']['output'];
95
95
  };
96
+ export type AddTokenEventsOutput = {
97
+ __typename?: 'AddTokenEventsOutput';
98
+ events: Array<Event>;
99
+ id: Scalars['String']['output'];
100
+ };
96
101
  export type AddTokenLifecycleEventsOutput = {
97
102
  __typename?: 'AddTokenLifecycleEventsOutput';
98
103
  events: Array<TokenLifecycleEvent>;
@@ -355,34 +360,6 @@ export type CreateApiTokensInput = {
355
360
  /** Number of requests allowed per token, represented as a string, default is 5000 */
356
361
  requestLimit?: InputMaybe<Scalars['String']['input']>;
357
362
  };
358
- export type CreateDecodedCallWebhookArgs = {
359
- alertRecurrence: AlertRecurrence;
360
- bucketId?: InputMaybe<Scalars['String']['input']>;
361
- bucketSortkey?: InputMaybe<Scalars['String']['input']>;
362
- callbackUrl: Scalars['String']['input'];
363
- conditions: DecodedCallWebhookConditionInput;
364
- groupId?: InputMaybe<Scalars['String']['input']>;
365
- name: Scalars['String']['input'];
366
- retrySettings?: InputMaybe<RetrySettingsInput>;
367
- securityToken: Scalars['String']['input'];
368
- };
369
- export type CreateDecodedCallWebhooksInput = {
370
- webhooks: Array<CreateDecodedCallWebhookArgs>;
371
- };
372
- export type CreateDecodedLogWebhookArgs = {
373
- alertRecurrence: AlertRecurrence;
374
- bucketId?: InputMaybe<Scalars['String']['input']>;
375
- bucketSortkey?: InputMaybe<Scalars['String']['input']>;
376
- callbackUrl: Scalars['String']['input'];
377
- conditions: DecodedLogWebhookConditionInput;
378
- groupId?: InputMaybe<Scalars['String']['input']>;
379
- name: Scalars['String']['input'];
380
- retrySettings?: InputMaybe<RetrySettingsInput>;
381
- securityToken: Scalars['String']['input'];
382
- };
383
- export type CreateDecodedLogWebhooksInput = {
384
- webhooks: Array<CreateDecodedLogWebhookArgs>;
385
- };
386
363
  export type CreateNftEventWebhookArgs = {
387
364
  alertRecurrence: AlertRecurrence;
388
365
  bucketId?: InputMaybe<Scalars['String']['input']>;
@@ -411,20 +388,6 @@ export type CreatePriceWebhookArgs = {
411
388
  export type CreatePriceWebhooksInput = {
412
389
  webhooks: Array<CreatePriceWebhookArgs>;
413
390
  };
414
- export type CreateRawCallTraceWebhookArgs = {
415
- alertRecurrence: AlertRecurrence;
416
- bucketId?: InputMaybe<Scalars['String']['input']>;
417
- bucketSortkey?: InputMaybe<Scalars['String']['input']>;
418
- callbackUrl: Scalars['String']['input'];
419
- conditions: RawCallTraceWebhookConditionInput;
420
- groupId?: InputMaybe<Scalars['String']['input']>;
421
- name: Scalars['String']['input'];
422
- retrySettings?: InputMaybe<RetrySettingsInput>;
423
- securityToken: Scalars['String']['input'];
424
- };
425
- export type CreateRawCallTraceWebhooksInput = {
426
- webhooks: Array<CreateRawCallTraceWebhookArgs>;
427
- };
428
391
  export type CreateRawTransactionWebhookArgs = {
429
392
  alertRecurrence: AlertRecurrence;
430
393
  bucketId?: InputMaybe<Scalars['String']['input']>;
@@ -454,21 +417,15 @@ export type CreateTokenPairEventWebhooksInput = {
454
417
  webhooks: Array<CreateTokenPairEventWebhookArgs>;
455
418
  };
456
419
  export type CreateWebhooksInput = {
457
- decodedCallWebhooksInput?: InputMaybe<CreateDecodedCallWebhooksInput>;
458
- decodedLogWebhooksInput?: InputMaybe<CreateDecodedLogWebhooksInput>;
459
420
  nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
460
421
  priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
461
- rawCallTraceWebhooksInput?: InputMaybe<CreateRawCallTraceWebhooksInput>;
462
422
  rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
463
423
  tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
464
424
  };
465
425
  export type CreateWebhooksOutput = {
466
426
  __typename?: 'CreateWebhooksOutput';
467
- decodedCallWebhooks: Array<Maybe<Webhook>>;
468
- decodedLogWebhooks: Array<Maybe<Webhook>>;
469
427
  nftEventWebhooks: Array<Maybe<Webhook>>;
470
428
  priceWebhooks: Array<Maybe<Webhook>>;
471
- rawCallTraceWebhooks: Array<Maybe<Webhook>>;
472
429
  rawTransactionWebhooks: Array<Maybe<Webhook>>;
473
430
  tokenPairEventWebhooks: Array<Maybe<Webhook>>;
474
431
  };
@@ -487,40 +444,6 @@ export type CurrencyBarData = {
487
444
  /** Bar chart data in USD. */
488
445
  usd: IndividualBarData;
489
446
  };
490
- export type DecodedCallWebhookCondition = {
491
- __typename?: 'DecodedCallWebhookCondition';
492
- address?: Maybe<StringEqualsCondition>;
493
- decodingId: StringEqualsCondition;
494
- from?: Maybe<StringEqualsCondition>;
495
- input?: Maybe<Scalars['JSON']['output']>;
496
- methodId?: Maybe<StringEqualsCondition>;
497
- methodName?: Maybe<StringEqualsCondition>;
498
- output?: Maybe<Scalars['JSON']['output']>;
499
- to?: Maybe<StringEqualsCondition>;
500
- };
501
- export type DecodedCallWebhookConditionInput = {
502
- address?: InputMaybe<StringEqualsConditionInput>;
503
- decodingId: StringEqualsConditionInput;
504
- from?: InputMaybe<StringEqualsConditionInput>;
505
- input?: InputMaybe<Scalars['JSON']['input']>;
506
- methodId?: InputMaybe<StringEqualsConditionInput>;
507
- methodName?: InputMaybe<StringEqualsConditionInput>;
508
- output?: InputMaybe<Scalars['JSON']['input']>;
509
- to?: InputMaybe<StringEqualsConditionInput>;
510
- };
511
- export type DecodedLogWebhookCondition = {
512
- __typename?: 'DecodedLogWebhookCondition';
513
- address?: Maybe<StringEqualsCondition>;
514
- decodingId: StringEqualsCondition;
515
- event?: Maybe<Scalars['JSON']['output']>;
516
- eventName?: Maybe<StringEqualsCondition>;
517
- };
518
- export type DecodedLogWebhookConditionInput = {
519
- address?: InputMaybe<StringEqualsConditionInput>;
520
- decodingId: StringEqualsConditionInput;
521
- event?: InputMaybe<Scalars['JSON']['input']>;
522
- eventName?: InputMaybe<StringEqualsConditionInput>;
523
- };
524
447
  export type DeleteWebhooksInput = {
525
448
  webhookIds: Array<Scalars['String']['input']>;
526
449
  };
@@ -954,7 +877,7 @@ export declare enum EventType {
954
877
  }
955
878
  /** Input type of `EventsQuery`. */
956
879
  export type EventsQueryInput = {
957
- /** The pair contract address to filter by. */
880
+ /** 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. */
958
881
  address: Scalars['String']['input'];
959
882
  /** The amount of `quoteToken` involved in the swap. */
960
883
  amountNonLiquidityToken?: InputMaybe<NumberFilter>;
@@ -1240,7 +1163,7 @@ export type GetPriceInput = {
1240
1163
  maxDeviations?: InputMaybe<Scalars['Float']['input']>;
1241
1164
  /** The network ID the token is deployed on. */
1242
1165
  networkId: Scalars['Int']['input'];
1243
- /** The unix timestamp for the price. Lookup is limited to the last three months. */
1166
+ /** The unix timestamp for the price. */
1244
1167
  timestamp?: InputMaybe<Scalars['Int']['input']>;
1245
1168
  };
1246
1169
  export type GetQuoteInput = {
@@ -1529,6 +1452,7 @@ export type LiquidityLockConnection = {
1529
1452
  /** Protocols that can lock liquidity */
1530
1453
  export declare enum LiquidityLockProtocol {
1531
1454
  BasecampV1 = "BASECAMP_V1",
1455
+ Bitbond = "BITBOND",
1532
1456
  Burn = "BURN",
1533
1457
  UncxV2 = "UNCX_V2",
1534
1458
  UncxV3 = "UNCX_V3"
@@ -4156,6 +4080,10 @@ export type OnBarsUpdatedResponse = {
4156
4080
  /** The unix timestamp for the new bar. */
4157
4081
  timestamp: Scalars['Int']['output'];
4158
4082
  };
4083
+ export type OnTokenEventsCreatedInput = {
4084
+ networkId: Scalars['Int']['input'];
4085
+ tokenAddress: Scalars['String']['input'];
4086
+ };
4159
4087
  export type OneOfNumberCondition = {
4160
4088
  __typename?: 'OneOfNumberCondition';
4161
4089
  oneOf: Array<Scalars['Int']['output']>;
@@ -5926,34 +5854,6 @@ export declare enum RankingDirection {
5926
5854
  Asc = "ASC",
5927
5855
  Desc = "DESC"
5928
5856
  }
5929
- export declare enum RawCallTraceType {
5930
- Create = "create"
5931
- }
5932
- export type RawCallTraceTypeConditionInput = {
5933
- eq: RawCallTraceType;
5934
- };
5935
- export type RawCallTraceTypeCondtion = {
5936
- __typename?: 'RawCallTraceTypeCondtion';
5937
- eq: RawCallTraceType;
5938
- };
5939
- export type RawCallTraceWebhookCondition = {
5940
- __typename?: 'RawCallTraceWebhookCondition';
5941
- networkId?: Maybe<OneOfNumberCondition>;
5942
- result?: Maybe<RawCallTraceWebhookConditionResult>;
5943
- traceType: RawCallTraceTypeCondtion;
5944
- };
5945
- export type RawCallTraceWebhookConditionInput = {
5946
- networkId?: InputMaybe<OneOfNumberConditionInput>;
5947
- result?: InputMaybe<RawCallTraceWebhookConditionResultInput>;
5948
- traceType: RawCallTraceTypeConditionInput;
5949
- };
5950
- export type RawCallTraceWebhookConditionResult = {
5951
- __typename?: 'RawCallTraceWebhookConditionResult';
5952
- code?: Maybe<StringContainsCondition>;
5953
- };
5954
- export type RawCallTraceWebhookConditionResultInput = {
5955
- code?: InputMaybe<StringContainsConditionInput>;
5956
- };
5957
5857
  export type RawNftAssetData = {
5958
5858
  __typename?: 'RawNftAssetData';
5959
5859
  /** An optional image field that may or may not be present on the requested NFT asset smart contract. */
@@ -6344,6 +6244,8 @@ export type Subscription = {
6344
6244
  /** Live-streamed price updates for a token. */
6345
6245
  onPriceUpdated?: Maybe<Price>;
6346
6246
  onSimulateTokenContract: SimulateTokenContractResult;
6247
+ /** Live streamed events for a given token across all it's pools */
6248
+ onTokenEventsCreated: AddTokenEventsOutput;
6347
6249
  /** Live-streamed token lifecycle events (mints and burns) */
6348
6250
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6349
6251
  };
@@ -6403,6 +6305,9 @@ export type SubscriptionOnSimulateTokenContractArgs = {
6403
6305
  networkId: Scalars['Int']['input'];
6404
6306
  simulationId?: InputMaybe<Scalars['String']['input']>;
6405
6307
  };
6308
+ export type SubscriptionOnTokenEventsCreatedArgs = {
6309
+ input: OnTokenEventsCreatedInput;
6310
+ };
6406
6311
  export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6407
6312
  address?: InputMaybe<Scalars['String']['input']>;
6408
6313
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -7217,7 +7122,7 @@ export type Webhook = {
7217
7122
  status: Scalars['String']['output'];
7218
7123
  webhookType: WebhookType;
7219
7124
  };
7220
- export type WebhookCondition = DecodedCallWebhookCondition | DecodedLogWebhookCondition | NftEventWebhookCondition | PriceEventWebhookCondition | RawCallTraceWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7125
+ export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7221
7126
  export declare enum WebhookNftEventFillSource {
7222
7127
  Blur = "BLUR",
7223
7128
  Coinbase = "COINBASE",
@@ -7243,7 +7148,6 @@ export declare enum WebhookNftEventType {
7243
7148
  export declare enum WebhookType {
7244
7149
  NftEvent = "NFT_EVENT",
7245
7150
  PriceEvent = "PRICE_EVENT",
7246
- RawCallTrace = "RAW_CALL_TRACE",
7247
7151
  RawTransaction = "RAW_TRANSACTION",
7248
7152
  TokenPairEvent = "TOKEN_PAIR_EVENT"
7249
7153
  }