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