@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.
@@ -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>;
@@ -120,6 +125,8 @@ export type Balance = {
120
125
  __typename?: 'Balance';
121
126
  /** The balance held by the wallet. */
122
127
  balance: Scalars['String']['output'];
128
+ /** The time that this address first held a token */
129
+ firstHeldTimestamp?: Maybe<Scalars['Int']['output']>;
123
130
  /** The balance held by the wallet, adjusted by the number of decimals in the token. */
124
131
  shiftedBalance: Scalars['Float']['output'];
125
132
  /** The ID of the token (`tokenAddress:networkId`). */
@@ -355,34 +362,6 @@ export type CreateApiTokensInput = {
355
362
  /** Number of requests allowed per token, represented as a string, default is 5000 */
356
363
  requestLimit?: InputMaybe<Scalars['String']['input']>;
357
364
  };
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
365
  export type CreateNftEventWebhookArgs = {
387
366
  alertRecurrence: AlertRecurrence;
388
367
  bucketId?: InputMaybe<Scalars['String']['input']>;
@@ -391,6 +370,7 @@ export type CreateNftEventWebhookArgs = {
391
370
  conditions: NftEventWebhookConditionInput;
392
371
  groupId?: InputMaybe<Scalars['String']['input']>;
393
372
  name: Scalars['String']['input'];
373
+ publishingType?: InputMaybe<PublishingType>;
394
374
  retrySettings?: InputMaybe<RetrySettingsInput>;
395
375
  securityToken: Scalars['String']['input'];
396
376
  };
@@ -405,26 +385,13 @@ export type CreatePriceWebhookArgs = {
405
385
  conditions: PriceEventWebhookConditionInput;
406
386
  groupId?: InputMaybe<Scalars['String']['input']>;
407
387
  name: Scalars['String']['input'];
388
+ publishingType?: InputMaybe<PublishingType>;
408
389
  retrySettings?: InputMaybe<RetrySettingsInput>;
409
390
  securityToken: Scalars['String']['input'];
410
391
  };
411
392
  export type CreatePriceWebhooksInput = {
412
393
  webhooks: Array<CreatePriceWebhookArgs>;
413
394
  };
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
395
  export type CreateRawTransactionWebhookArgs = {
429
396
  alertRecurrence: AlertRecurrence;
430
397
  bucketId?: InputMaybe<Scalars['String']['input']>;
@@ -433,6 +400,7 @@ export type CreateRawTransactionWebhookArgs = {
433
400
  conditions: RawTransactionWebhookConditionInput;
434
401
  groupId?: InputMaybe<Scalars['String']['input']>;
435
402
  name: Scalars['String']['input'];
403
+ publishingType?: InputMaybe<PublishingType>;
436
404
  retrySettings?: InputMaybe<RetrySettingsInput>;
437
405
  securityToken: Scalars['String']['input'];
438
406
  };
@@ -447,6 +415,7 @@ export type CreateTokenPairEventWebhookArgs = {
447
415
  conditions: TokenPairEventWebhookConditionInput;
448
416
  groupId?: InputMaybe<Scalars['String']['input']>;
449
417
  name: Scalars['String']['input'];
418
+ publishingType?: InputMaybe<PublishingType>;
450
419
  retrySettings?: InputMaybe<RetrySettingsInput>;
451
420
  securityToken: Scalars['String']['input'];
452
421
  };
@@ -454,21 +423,15 @@ export type CreateTokenPairEventWebhooksInput = {
454
423
  webhooks: Array<CreateTokenPairEventWebhookArgs>;
455
424
  };
456
425
  export type CreateWebhooksInput = {
457
- decodedCallWebhooksInput?: InputMaybe<CreateDecodedCallWebhooksInput>;
458
- decodedLogWebhooksInput?: InputMaybe<CreateDecodedLogWebhooksInput>;
459
426
  nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
460
427
  priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
461
- rawCallTraceWebhooksInput?: InputMaybe<CreateRawCallTraceWebhooksInput>;
462
428
  rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
463
429
  tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
464
430
  };
465
431
  export type CreateWebhooksOutput = {
466
432
  __typename?: 'CreateWebhooksOutput';
467
- decodedCallWebhooks: Array<Maybe<Webhook>>;
468
- decodedLogWebhooks: Array<Maybe<Webhook>>;
469
433
  nftEventWebhooks: Array<Maybe<Webhook>>;
470
434
  priceWebhooks: Array<Maybe<Webhook>>;
471
- rawCallTraceWebhooks: Array<Maybe<Webhook>>;
472
435
  rawTransactionWebhooks: Array<Maybe<Webhook>>;
473
436
  tokenPairEventWebhooks: Array<Maybe<Webhook>>;
474
437
  };
@@ -487,40 +450,6 @@ export type CurrencyBarData = {
487
450
  /** Bar chart data in USD. */
488
451
  usd: IndividualBarData;
489
452
  };
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
453
  export type DeleteWebhooksInput = {
525
454
  webhookIds: Array<Scalars['String']['input']>;
526
455
  };
@@ -954,7 +883,7 @@ export declare enum EventType {
954
883
  }
955
884
  /** Input type of `EventsQuery`. */
956
885
  export type EventsQueryInput = {
957
- /** The pair contract address to filter by. */
886
+ /** 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
887
  address: Scalars['String']['input'];
959
888
  /** The amount of `quoteToken` involved in the swap. */
960
889
  amountNonLiquidityToken?: InputMaybe<NumberFilter>;
@@ -1240,7 +1169,7 @@ export type GetPriceInput = {
1240
1169
  maxDeviations?: InputMaybe<Scalars['Float']['input']>;
1241
1170
  /** The network ID the token is deployed on. */
1242
1171
  networkId: Scalars['Int']['input'];
1243
- /** The unix timestamp for the price. Lookup is limited to the last three months. */
1172
+ /** The unix timestamp for the price. */
1244
1173
  timestamp?: InputMaybe<Scalars['Int']['input']>;
1245
1174
  };
1246
1175
  export type GetQuoteInput = {
@@ -1278,9 +1207,17 @@ export declare enum GraphQlNftPoolVariant {
1278
1207
  export type HoldersInput = {
1279
1208
  /** A cursor for use in pagination. */
1280
1209
  cursor?: InputMaybe<Scalars['String']['input']>;
1210
+ /** The attribute to sort the list on */
1211
+ sort?: InputMaybe<HoldersInputSort>;
1281
1212
  /** The ID of the token (`tokenAddress:networkId`). */
1282
1213
  tokenId: Scalars['String']['input'];
1283
1214
  };
1215
+ export type HoldersInputSort = {
1216
+ /** The attribute to sort the list on */
1217
+ attribute?: InputMaybe<HoldersSortAttribute>;
1218
+ /** The direction to apply to the ranking attribute. */
1219
+ direction?: InputMaybe<RankingDirection>;
1220
+ };
1284
1221
  export type HoldersResponse = {
1285
1222
  __typename?: 'HoldersResponse';
1286
1223
  /** the unique count of holders for the token. */
@@ -1292,6 +1229,10 @@ export type HoldersResponse = {
1292
1229
  /** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
1293
1230
  status: HoldersStatus;
1294
1231
  };
1232
+ export declare enum HoldersSortAttribute {
1233
+ Balance = "BALANCE",
1234
+ Date = "DATE"
1235
+ }
1295
1236
  export declare enum HoldersStatus {
1296
1237
  Disabled = "DISABLED",
1297
1238
  Enabled = "ENABLED"
@@ -1529,6 +1470,7 @@ export type LiquidityLockConnection = {
1529
1470
  /** Protocols that can lock liquidity */
1530
1471
  export declare enum LiquidityLockProtocol {
1531
1472
  BasecampV1 = "BASECAMP_V1",
1473
+ Bitbond = "BITBOND",
1532
1474
  Burn = "BURN",
1533
1475
  UncxV2 = "UNCX_V2",
1534
1476
  UncxV3 = "UNCX_V3"
@@ -4156,6 +4098,10 @@ export type OnBarsUpdatedResponse = {
4156
4098
  /** The unix timestamp for the new bar. */
4157
4099
  timestamp: Scalars['Int']['output'];
4158
4100
  };
4101
+ export type OnTokenEventsCreatedInput = {
4102
+ networkId: Scalars['Int']['input'];
4103
+ tokenAddress: Scalars['String']['input'];
4104
+ };
4159
4105
  export type OneOfNumberCondition = {
4160
4106
  __typename?: 'OneOfNumberCondition';
4161
4107
  oneOf: Array<Scalars['Int']['output']>;
@@ -5376,6 +5322,10 @@ export type PrimePoolWithdrawData = {
5376
5322
  /** The amount of PRIME the user is not eligible for either from having already harvesting or from not caching in the past. */
5377
5323
  userPrimeRewardDebt: Scalars['String']['output'];
5378
5324
  };
5325
+ export declare enum PublishingType {
5326
+ Batch = "BATCH",
5327
+ Single = "SINGLE"
5328
+ }
5379
5329
  export type Query = {
5380
5330
  __typename?: 'Query';
5381
5331
  /** Get the active short-lived api token for this api key by the short-lived token */
@@ -5926,34 +5876,6 @@ export declare enum RankingDirection {
5926
5876
  Asc = "ASC",
5927
5877
  Desc = "DESC"
5928
5878
  }
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
5879
  export type RawNftAssetData = {
5958
5880
  __typename?: 'RawNftAssetData';
5959
5881
  /** An optional image field that may or may not be present on the requested NFT asset smart contract. */
@@ -6344,6 +6266,8 @@ export type Subscription = {
6344
6266
  /** Live-streamed price updates for a token. */
6345
6267
  onPriceUpdated?: Maybe<Price>;
6346
6268
  onSimulateTokenContract: SimulateTokenContractResult;
6269
+ /** Live streamed events for a given token across all it's pools */
6270
+ onTokenEventsCreated: AddTokenEventsOutput;
6347
6271
  /** Live-streamed token lifecycle events (mints and burns) */
6348
6272
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6349
6273
  };
@@ -6403,6 +6327,9 @@ export type SubscriptionOnSimulateTokenContractArgs = {
6403
6327
  networkId: Scalars['Int']['input'];
6404
6328
  simulationId?: InputMaybe<Scalars['String']['input']>;
6405
6329
  };
6330
+ export type SubscriptionOnTokenEventsCreatedArgs = {
6331
+ input: OnTokenEventsCreatedInput;
6332
+ };
6406
6333
  export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6407
6334
  address?: InputMaybe<Scalars['String']['input']>;
6408
6335
  networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -6654,7 +6581,7 @@ export type TokenFilterResult = {
6654
6581
  low12?: Maybe<Scalars['String']['output']>;
6655
6582
  /** The lowest price in USD in the past 24 hours. */
6656
6583
  low24?: Maybe<Scalars['String']['output']>;
6657
- /** The market cap of circulating supply. */
6584
+ /** The fully diluted market cap. For circulating market cap multiply `token { info { circulatingSupply } }` by `priceUSD`. */
6658
6585
  marketCap?: Maybe<Scalars['String']['output']>;
6659
6586
  /** Metadata for the token's top pair. */
6660
6587
  pair?: Maybe<Pair>;
@@ -7213,11 +7140,12 @@ export type Webhook = {
7213
7140
  groupId?: Maybe<Scalars['String']['output']>;
7214
7141
  id: Scalars['String']['output'];
7215
7142
  name: Scalars['String']['output'];
7143
+ publishingType?: Maybe<PublishingType>;
7216
7144
  retrySettings?: Maybe<RetrySettings>;
7217
7145
  status: Scalars['String']['output'];
7218
7146
  webhookType: WebhookType;
7219
7147
  };
7220
- export type WebhookCondition = DecodedCallWebhookCondition | DecodedLogWebhookCondition | NftEventWebhookCondition | PriceEventWebhookCondition | RawCallTraceWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7148
+ export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7221
7149
  export declare enum WebhookNftEventFillSource {
7222
7150
  Blur = "BLUR",
7223
7151
  Coinbase = "COINBASE",
@@ -7243,7 +7171,6 @@ export declare enum WebhookNftEventType {
7243
7171
  export declare enum WebhookType {
7244
7172
  NftEvent = "NFT_EVENT",
7245
7173
  PriceEvent = "PRICE_EVENT",
7246
- RawCallTrace = "RAW_CALL_TRACE",
7247
7174
  RawTransaction = "RAW_TRANSACTION",
7248
7175
  TokenPairEvent = "TOKEN_PAIR_EVENT"
7249
7176
  }