@codex-data/sdk 0.6.1 → 0.6.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.
@@ -103,6 +103,24 @@ export type AddTokenLifecycleEventsOutput = {
103
103
  events: Array<TokenLifecycleEvent>;
104
104
  id: Scalars['String']['output'];
105
105
  };
106
+ export type AddTrackedWalletEventsOutput = {
107
+ __typename?: 'AddTrackedWalletEventsOutput';
108
+ userId: Scalars['String']['output'];
109
+ };
110
+ /** Response returned by `onUnconfirmedEventsCreated`. */
111
+ export type AddUnconfirmedEventsOutput = {
112
+ __typename?: 'AddUnconfirmedEventsOutput';
113
+ /** The contract address of the pair. */
114
+ address: Scalars['String']['output'];
115
+ /** A list of transactions for the token. */
116
+ events: Array<Maybe<UnconfirmedEvent>>;
117
+ /** The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
118
+ id: Scalars['String']['output'];
119
+ /** The network ID that the token is deployed on. */
120
+ networkId: Scalars['Int']['output'];
121
+ /** The token of interest within the pair. Can be `token0` or `token1`. */
122
+ quoteToken?: Maybe<QuoteToken>;
123
+ };
106
124
  export declare enum AlertRecurrence {
107
125
  Indefinite = "INDEFINITE",
108
126
  Once = "ONCE"
@@ -357,7 +375,7 @@ export declare enum CostBasisMethod {
357
375
  export type CreateApiTokensInput = {
358
376
  /** Number of tokens to create, default is 1 */
359
377
  count?: InputMaybe<Scalars['Int']['input']>;
360
- /** Number of milliseconds until the token expires, defaults to 1 hour (3600000) */
378
+ /** Number of seconds until the token expires, defaults to 1 hour (3600) */
361
379
  expiresIn?: InputMaybe<Scalars['Int']['input']>;
362
380
  /** Number of requests allowed per token, represented as a string, default is 5000 */
363
381
  requestLimit?: InputMaybe<Scalars['String']['input']>;
@@ -368,6 +386,7 @@ export type CreateNftEventWebhookArgs = {
368
386
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
369
387
  callbackUrl: Scalars['String']['input'];
370
388
  conditions: NftEventWebhookConditionInput;
389
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
371
390
  groupId?: InputMaybe<Scalars['String']['input']>;
372
391
  name: Scalars['String']['input'];
373
392
  publishingType?: InputMaybe<PublishingType>;
@@ -383,6 +402,7 @@ export type CreatePriceWebhookArgs = {
383
402
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
384
403
  callbackUrl: Scalars['String']['input'];
385
404
  conditions: PriceEventWebhookConditionInput;
405
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
386
406
  groupId?: InputMaybe<Scalars['String']['input']>;
387
407
  name: Scalars['String']['input'];
388
408
  publishingType?: InputMaybe<PublishingType>;
@@ -398,6 +418,7 @@ export type CreateRawTransactionWebhookArgs = {
398
418
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
399
419
  callbackUrl: Scalars['String']['input'];
400
420
  conditions: RawTransactionWebhookConditionInput;
421
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
401
422
  groupId?: InputMaybe<Scalars['String']['input']>;
402
423
  name: Scalars['String']['input'];
403
424
  publishingType?: InputMaybe<PublishingType>;
@@ -413,6 +434,7 @@ export type CreateTokenPairEventWebhookArgs = {
413
434
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
414
435
  callbackUrl: Scalars['String']['input'];
415
436
  conditions: TokenPairEventWebhookConditionInput;
437
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
416
438
  groupId?: InputMaybe<Scalars['String']['input']>;
417
439
  name: Scalars['String']['input'];
418
440
  publishingType?: InputMaybe<PublishingType>;
@@ -1093,9 +1115,11 @@ export type FrontRunLabelData = {
1093
1115
  };
1094
1116
  export type GasEstimate = {
1095
1117
  __typename?: 'GasEstimate';
1096
- approveTxHash?: Maybe<Scalars['String']['output']>;
1097
1118
  error?: Maybe<Scalars['String']['output']>;
1119
+ errorReason?: Maybe<Scalars['String']['output']>;
1098
1120
  gasLimitEstimate?: Maybe<Scalars['String']['output']>;
1121
+ gasPrice?: Maybe<Scalars['String']['output']>;
1122
+ totalFee?: Maybe<Scalars['String']['output']>;
1099
1123
  };
1100
1124
  export type GasFee = {
1101
1125
  __typename?: 'GasFee';
@@ -1139,9 +1163,24 @@ export type GetGasEstimateInput = {
1139
1163
  networkId: Scalars['Int']['input'];
1140
1164
  outputTokenAddress: Scalars['String']['input'];
1141
1165
  poolAddress?: InputMaybe<Scalars['String']['input']>;
1166
+ sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
1167
+ slippage?: InputMaybe<Scalars['Float']['input']>;
1142
1168
  userId?: InputMaybe<Scalars['Int']['input']>;
1143
1169
  walletId?: InputMaybe<Scalars['Int']['input']>;
1144
1170
  };
1171
+ /** Response returned by `getNetworkStats`. */
1172
+ export type GetNetworkStatsResponse = {
1173
+ __typename?: 'GetNetworkStatsResponse';
1174
+ liquidity: Scalars['Float']['output'];
1175
+ transactions1: Scalars['Int']['output'];
1176
+ transactions4: Scalars['Int']['output'];
1177
+ transactions12: Scalars['Int']['output'];
1178
+ transactions24: Scalars['Int']['output'];
1179
+ volume1: Scalars['Float']['output'];
1180
+ volume4: Scalars['Float']['output'];
1181
+ volume12: Scalars['Float']['output'];
1182
+ volume24: Scalars['Float']['output'];
1183
+ };
1145
1184
  /** Response returned by `getNftPoolCollectionsByExchange`. */
1146
1185
  export type GetNftPoolCollectionsResponse = {
1147
1186
  __typename?: 'GetNftPoolCollectionsResponse';
@@ -1180,6 +1219,7 @@ export type GetQuoteInput = {
1180
1219
  networkId: Scalars['Int']['input'];
1181
1220
  outputTokenAddress: Scalars['String']['input'];
1182
1221
  poolAddress?: InputMaybe<Scalars['String']['input']>;
1222
+ slippage?: InputMaybe<Scalars['Float']['input']>;
1183
1223
  userId?: InputMaybe<Scalars['Int']['input']>;
1184
1224
  };
1185
1225
  export type GetSimulateTokenContractResultsConnection = {
@@ -1541,6 +1581,22 @@ export type LockedLiquidityData = {
1541
1581
  /** A breakdown of how much and where liquidity is locked. */
1542
1582
  lockBreakdown: Array<Maybe<LockBreakdown>>;
1543
1583
  };
1584
+ /** Response returned by `getTokenEventsForMaker`. */
1585
+ export type MakerEventConnection = {
1586
+ __typename?: 'MakerEventConnection';
1587
+ /** A cursor for use in pagination. */
1588
+ cursor?: Maybe<Scalars['String']['output']>;
1589
+ /** A list of transactions for a token's top pair. */
1590
+ items?: Maybe<Array<Maybe<Event>>>;
1591
+ };
1592
+ export type MakerEventsQueryInput = {
1593
+ /** The specific wallet address to filter by. */
1594
+ maker: Scalars['String']['input'];
1595
+ /** The network ID to filter by. */
1596
+ networkId: Scalars['Int']['input'];
1597
+ /** The token of interest. Can be `token0` or `token1`. */
1598
+ quoteToken?: InputMaybe<QuoteToken>;
1599
+ };
1544
1600
  /** The status for a network supported on Defined. */
1545
1601
  export type MetadataResponse = {
1546
1602
  __typename?: 'MetadataResponse';
@@ -1553,6 +1609,16 @@ export type MetadataResponse = {
1553
1609
  /** The name of the network. */
1554
1610
  networkName: Scalars['String']['output'];
1555
1611
  };
1612
+ export type MigrateTrackedWalletsInput = {
1613
+ fromUserId: Scalars['String']['input'];
1614
+ toUserId: Scalars['String']['input'];
1615
+ };
1616
+ export type MigrateTrackedWalletsOutput = {
1617
+ __typename?: 'MigrateTrackedWalletsOutput';
1618
+ fromUserId: Scalars['String']['output'];
1619
+ status: Scalars['String']['output'];
1620
+ toUserId: Scalars['String']['output'];
1621
+ };
1556
1622
  /** Event data for a token mint event. */
1557
1623
  export type MintEventData = {
1558
1624
  __typename?: 'MintEventData';
@@ -4093,11 +4159,44 @@ export type OnBarsUpdatedResponse = {
4093
4159
  pairId: Scalars['String']['output'];
4094
4160
  /** The quote token within the pair. */
4095
4161
  quoteToken?: Maybe<QuoteToken>;
4162
+ /** The address of the token being quoted */
4163
+ quoteTokenAddress: Scalars['String']['output'];
4096
4164
  /** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
4097
4165
  statsType: TokenPairStatisticsType;
4098
4166
  /** The unix timestamp for the new bar. */
4099
4167
  timestamp: Scalars['Int']['output'];
4100
4168
  };
4169
+ export type OnPricesUpdatedInput = {
4170
+ address: Scalars['String']['input'];
4171
+ networkId: Scalars['Int']['input'];
4172
+ };
4173
+ /** Response returned by `onBarsUpdated`. */
4174
+ export type OnTokenBarsUpdatedResponse = {
4175
+ __typename?: 'OnTokenBarsUpdatedResponse';
4176
+ /** Price data broken down by resolution. */
4177
+ aggregates: ResolutionBarData;
4178
+ /**
4179
+ * The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
4180
+ * For example, `0000000016414564#00000224#00000413`.
4181
+ */
4182
+ eventSortKey: Scalars['String']['output'];
4183
+ /** The network ID the pair is deployed on. */
4184
+ networkId: Scalars['Int']['output'];
4185
+ /** The contract address for the pair. */
4186
+ pairAddress: Scalars['String']['output'];
4187
+ /** The ID for the pair (`pairAddress`:`networkId`). */
4188
+ pairId: Scalars['String']['output'];
4189
+ /** The quote token within the pair. */
4190
+ quoteToken?: Maybe<QuoteToken>;
4191
+ /** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
4192
+ statsType: TokenPairStatisticsType;
4193
+ /** The unix timestamp for the new bar. */
4194
+ timestamp: Scalars['Int']['output'];
4195
+ /** The address of the token being quoted */
4196
+ tokenAddress: Scalars['String']['output'];
4197
+ /** The address of the token being quoted */
4198
+ tokenId: Scalars['String']['output'];
4199
+ };
4101
4200
  export type OnTokenEventsCreatedInput = {
4102
4201
  networkId: Scalars['Int']['input'];
4103
4202
  tokenAddress: Scalars['String']['input'];
@@ -5372,6 +5471,8 @@ export type Query = {
5372
5471
  /** Returns new tokens listed over the last three days. */
5373
5472
  getLatestPairs?: Maybe<LatestPairConnection>;
5374
5473
  getLatestTokens?: Maybe<LatestTokenConnection>;
5474
+ /** Returns metadata for a given network. */
5475
+ getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5375
5476
  /** Returns the status of a list of networks supported on Defined. */
5376
5477
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
5377
5478
  /** Returns a list of all networks supported on Defined. */
@@ -5415,6 +5516,7 @@ export type Query = {
5415
5516
  getTokenCount: Scalars['String']['output'];
5416
5517
  /** Returns transactions for a pair. */
5417
5518
  getTokenEvents?: Maybe<EventConnection>;
5519
+ getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5418
5520
  /** Returns metadata for a given token. */
5419
5521
  getTokenInfo?: Maybe<TokenInfo>;
5420
5522
  /** Returns real-time or historical prices for a list of tokens, fetched in batches. */
@@ -5523,6 +5625,7 @@ export type QueryFilterPairsArgs = {
5523
5625
  statsType?: InputMaybe<TokenPairStatisticsType>;
5524
5626
  };
5525
5627
  export type QueryFilterTokensArgs = {
5628
+ excludeTokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5526
5629
  filters?: InputMaybe<TokenFilters>;
5527
5630
  limit?: InputMaybe<Scalars['Int']['input']>;
5528
5631
  offset?: InputMaybe<Scalars['Int']['input']>;
@@ -5595,6 +5698,10 @@ export type QueryGetLatestTokensArgs = {
5595
5698
  networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
5596
5699
  offset?: InputMaybe<Scalars['Int']['input']>;
5597
5700
  };
5701
+ export type QueryGetNetworkStatsArgs = {
5702
+ exchangeAddress?: InputMaybe<Scalars['String']['input']>;
5703
+ networkId: Scalars['Int']['input'];
5704
+ };
5598
5705
  export type QueryGetNetworkStatusArgs = {
5599
5706
  networkIds: Array<Scalars['Int']['input']>;
5600
5707
  };
@@ -5648,6 +5755,7 @@ export type QueryGetNftPoolEventsArgs = {
5648
5755
  limit?: InputMaybe<Scalars['Int']['input']>;
5649
5756
  networkId: Scalars['Int']['input'];
5650
5757
  poolAddress?: InputMaybe<Scalars['String']['input']>;
5758
+ timestamp?: InputMaybe<EventQueryTimestampInput>;
5651
5759
  };
5652
5760
  export type QueryGetNftPoolStatsArgs = {
5653
5761
  collectionAddress: Scalars['String']['input'];
@@ -5723,6 +5831,12 @@ export type QueryGetTokenEventsArgs = {
5723
5831
  limit?: InputMaybe<Scalars['Int']['input']>;
5724
5832
  query: EventsQueryInput;
5725
5833
  };
5834
+ export type QueryGetTokenEventsForMakerArgs = {
5835
+ cursor?: InputMaybe<Scalars['String']['input']>;
5836
+ direction?: InputMaybe<RankingDirection>;
5837
+ limit?: InputMaybe<Scalars['Int']['input']>;
5838
+ query: MakerEventsQueryInput;
5839
+ };
5726
5840
  export type QueryGetTokenInfoArgs = {
5727
5841
  address: Scalars['String']['input'];
5728
5842
  networkId: Scalars['Int']['input'];
@@ -5830,6 +5944,7 @@ export type QueryWalletNftCollectionsArgs = {
5830
5944
  export type Quote = {
5831
5945
  __typename?: 'Quote';
5832
5946
  exchange: QuoteExchange;
5947
+ outputAmountMin?: Maybe<Scalars['String']['output']>;
5833
5948
  poolFee?: Maybe<Scalars['String']['output']>;
5834
5949
  poolFeeBps?: Maybe<Scalars['Float']['output']>;
5835
5950
  quoteType: QuoteType;
@@ -5861,16 +5976,6 @@ export declare enum QuoteType {
5861
5976
  Input = "INPUT",
5862
5977
  Output = "OUTPUT"
5863
5978
  }
5864
- export type QuoteV2 = {
5865
- __typename?: 'QuoteV2';
5866
- exchange: QuoteExchange;
5867
- poolFee?: Maybe<Scalars['String']['output']>;
5868
- poolFeeBps?: Maybe<Scalars['Float']['output']>;
5869
- quoteType: QuoteType;
5870
- quotedAmount: Scalars['String']['output'];
5871
- tradeFee: Scalars['String']['output'];
5872
- tradeFeeBps: Scalars['Float']['output'];
5873
- };
5874
5979
  /** The order of ranking. */
5875
5980
  export declare enum RankingDirection {
5876
5981
  Asc = "ASC",
@@ -5906,6 +6011,30 @@ export type RawTransactionWebhookConditionInput = {
5906
6011
  to?: InputMaybe<StringEqualsConditionInput>;
5907
6012
  toOrFrom?: InputMaybe<StringEqualsConditionInput>;
5908
6013
  };
6014
+ export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
6015
+ export type ReferralsEventPayoutData = {
6016
+ __typename?: 'ReferralsEventPayoutData';
6017
+ payouts: Array<ReferralsPayoutData>;
6018
+ };
6019
+ export type ReferralsEventRewardData = {
6020
+ __typename?: 'ReferralsEventRewardData';
6021
+ inputTokenAddress: Scalars['String']['output'];
6022
+ networkId: Scalars['Int']['output'];
6023
+ outputTokenAddress: Scalars['String']['output'];
6024
+ payoutPercent: Scalars['Float']['output'];
6025
+ referralUserId: Scalars['String']['output'];
6026
+ rewardTokenAddress?: Maybe<Scalars['String']['output']>;
6027
+ rewardTokenAmount?: Maybe<Scalars['String']['output']>;
6028
+ transactionFee: Scalars['String']['output'];
6029
+ transactionId: Scalars['String']['output'];
6030
+ transactionTokenAddress: Scalars['String']['output'];
6031
+ transactionTokenAmount: Scalars['String']['output'];
6032
+ };
6033
+ export type ReferralsPayoutData = {
6034
+ __typename?: 'ReferralsPayoutData';
6035
+ tokenAddressNetworkIdPaid: Scalars['String']['output'];
6036
+ tokenAmountPaid: Scalars['String']['output'];
6037
+ };
5909
6038
  /** Price data for each supported resolution. */
5910
6039
  export type ResolutionBarData = {
5911
6040
  __typename?: 'ResolutionBarData';
@@ -5927,6 +6056,8 @@ export type ResolutionBarData = {
5927
6056
  r15S?: Maybe<CurrencyBarData>;
5928
6057
  /** 30 minute resolution. */
5929
6058
  r30?: Maybe<CurrencyBarData>;
6059
+ /** 30 second resolution. */
6060
+ r30S?: Maybe<CurrencyBarData>;
5930
6061
  /** 60 minute resolution. */
5931
6062
  r60?: Maybe<CurrencyBarData>;
5932
6063
  /** 4 hour resolution. */
@@ -6265,11 +6396,17 @@ export type Subscription = {
6265
6396
  onPairMetadataUpdated?: Maybe<PairMetadata>;
6266
6397
  /** Live-streamed price updates for a token. */
6267
6398
  onPriceUpdated?: Maybe<Price>;
6399
+ /** Live-streamed price updates for multiple tokens. */
6400
+ onPricesUpdated: Price;
6268
6401
  onSimulateTokenContract: SimulateTokenContractResult;
6402
+ /** Live-streamed bar chart data to track price changes over time for a token. */
6403
+ onTokenBarsUpdated?: Maybe<OnTokenBarsUpdatedResponse>;
6269
6404
  /** Live streamed events for a given token across all it's pools */
6270
6405
  onTokenEventsCreated: AddTokenEventsOutput;
6271
6406
  /** Live-streamed token lifecycle events (mints and burns) */
6272
6407
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6408
+ /** Live-streamed unconfirmed transactions for a token. (Solana only) */
6409
+ onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
6273
6410
  };
6274
6411
  export type SubscriptionOnBarsUpdatedArgs = {
6275
6412
  pairId?: InputMaybe<Scalars['String']['input']>;
@@ -6322,11 +6459,18 @@ export type SubscriptionOnPriceUpdatedArgs = {
6322
6459
  address?: InputMaybe<Scalars['String']['input']>;
6323
6460
  networkId?: InputMaybe<Scalars['Int']['input']>;
6324
6461
  };
6462
+ export type SubscriptionOnPricesUpdatedArgs = {
6463
+ input: Array<OnPricesUpdatedInput>;
6464
+ };
6325
6465
  export type SubscriptionOnSimulateTokenContractArgs = {
6326
6466
  contractAddress?: InputMaybe<Scalars['String']['input']>;
6327
6467
  networkId: Scalars['Int']['input'];
6328
6468
  simulationId?: InputMaybe<Scalars['String']['input']>;
6329
6469
  };
6470
+ export type SubscriptionOnTokenBarsUpdatedArgs = {
6471
+ statsType?: InputMaybe<TokenPairStatisticsType>;
6472
+ tokenId?: InputMaybe<Scalars['String']['input']>;
6473
+ };
6330
6474
  export type SubscriptionOnTokenEventsCreatedArgs = {
6331
6475
  input: OnTokenEventsCreatedInput;
6332
6476
  };
@@ -6334,6 +6478,11 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6334
6478
  address?: InputMaybe<Scalars['String']['input']>;
6335
6479
  networkId?: InputMaybe<Scalars['Int']['input']>;
6336
6480
  };
6481
+ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
6482
+ address?: InputMaybe<Scalars['String']['input']>;
6483
+ id?: InputMaybe<Scalars['String']['input']>;
6484
+ quoteToken?: InputMaybe<QuoteToken>;
6485
+ };
6337
6486
  /** Event data for a token swap event. */
6338
6487
  export type SwapEventData = {
6339
6488
  __typename?: 'SwapEventData';
@@ -6766,6 +6915,8 @@ export type TokenInfo = {
6766
6915
  description?: Maybe<Scalars['String']['output']>;
6767
6916
  /** Uniquely identifies the token. */
6768
6917
  id: Scalars['String']['output'];
6918
+ /** The token banner URL. */
6919
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
6769
6920
  /** The large token logo URL. */
6770
6921
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
6771
6922
  /** The small token logo URL. */
@@ -6993,6 +7144,8 @@ export type TokenWithMetadata = {
6993
7144
  exchanges: Array<Exchange>;
6994
7145
  /** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
6995
7146
  id: Scalars['String']['output'];
7147
+ /** The token banner URL. */
7148
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
6996
7149
  /** The token logo URL. */
6997
7150
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
6998
7151
  /** The token logo URL. */
@@ -7058,6 +7211,69 @@ export type TokenWithMetadata = {
7058
7211
  /** The volume over the time frame requested in USD. */
7059
7212
  volume: Scalars['String']['output'];
7060
7213
  };
7214
+ /** An unconfirmed token transaction. */
7215
+ export type UnconfirmedEvent = {
7216
+ __typename?: 'UnconfirmedEvent';
7217
+ /** The contract address of the token's top pair. */
7218
+ address: Scalars['String']['output'];
7219
+ /** The hash of the block where the transaction occurred. */
7220
+ blockHash: Scalars['String']['output'];
7221
+ /** The block number for the transaction. */
7222
+ blockNumber: Scalars['Int']['output'];
7223
+ /** The event-specific data for the transaction. */
7224
+ data?: Maybe<UnconfirmedEventData>;
7225
+ /** A more specific breakdown of `eventType`. Splits `Swap` into `Buy` or `Sell`. */
7226
+ eventDisplayType?: Maybe<EventDisplayType>;
7227
+ /** The type of transaction event. Can be `Burn`, `Mint`, `Swap`, `Sync`, `Collect`, or `CollectProtocol`. */
7228
+ eventType: EventType;
7229
+ /** The ID of the event (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
7230
+ id: Scalars['String']['output'];
7231
+ /** The index of the log in the block. */
7232
+ logIndex: Scalars['Int']['output'];
7233
+ /** The wallet address that performed the transaction. */
7234
+ maker?: Maybe<Scalars['String']['output']>;
7235
+ /** The network ID that the token is deployed on. */
7236
+ networkId: Scalars['Int']['output'];
7237
+ /** The token of interest within the token's top pair. Can be `token0` or `token1`. */
7238
+ quoteToken?: Maybe<QuoteToken>;
7239
+ /** A optional unique identifier of where the event is within the transaction. */
7240
+ supplementalIndex?: Maybe<Scalars['Int']['output']>;
7241
+ /** The unix timestamp for when the transaction occurred. */
7242
+ timestamp: Scalars['Int']['output'];
7243
+ /** The unique hash for the transaction. */
7244
+ transactionHash: Scalars['String']['output'];
7245
+ /** The index of the transaction within the block. */
7246
+ transactionIndex: Scalars['Int']['output'];
7247
+ };
7248
+ export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
7249
+ export type UnconfirmedLiquidityChangeEventData = {
7250
+ __typename?: 'UnconfirmedLiquidityChangeEventData';
7251
+ /** The amount of `token0` added or removed from the pair. */
7252
+ amount0?: Maybe<Scalars['String']['output']>;
7253
+ /** The amount of `token0` added or removed from the pair, adjusted by the number of decimals in the token. For example, if `amount0` is in WEI, `amount0Shifted` will be in ETH. */
7254
+ amount0Shifted?: Maybe<Scalars['String']['output']>;
7255
+ /** The amount of `token1` added or removed from the pair. */
7256
+ amount1?: Maybe<Scalars['String']['output']>;
7257
+ /** The amount of `token1` added or removed from the pair, adjusted by the number of decimals in the token. For example, USDC `amount1Shifted` will be by 6 decimals. */
7258
+ amount1Shifted?: Maybe<Scalars['String']['output']>;
7259
+ /** The type of token event, `Mint` or 'Burn'. */
7260
+ type: EventType;
7261
+ };
7262
+ export type UnconfirmedSwapEventData = {
7263
+ __typename?: 'UnconfirmedSwapEventData';
7264
+ /** The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap. */
7265
+ amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
7266
+ /** The price per `quoteToken` at the time of the swap in the network's base token. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in ETH. */
7267
+ priceBaseToken?: Maybe<Scalars['String']['output']>;
7268
+ /** The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`). */
7269
+ priceBaseTokenTotal?: Maybe<Scalars['String']['output']>;
7270
+ /** The price per `quoteToken` at the time of the swap in USD. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in USD ($1.00). */
7271
+ priceUsd?: Maybe<Scalars['String']['output']>;
7272
+ /** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
7273
+ priceUsdTotal?: Maybe<Scalars['String']['output']>;
7274
+ /** The type of token event, `Swap`. */
7275
+ type: EventType;
7276
+ };
7061
7277
  export type UniV3Tick = {
7062
7278
  __typename?: 'UniV3Tick';
7063
7279
  liquidityNet?: Maybe<Scalars['String']['output']>;