@uniswap/client-data-api 0.0.137 → 0.0.140

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.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetTokenTradesRequest, GetTokenTradesResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v2.DataApiService.GetToken
5
5
  */
@@ -78,6 +78,19 @@ export declare const listPools: {
78
78
  readonly typeName: "data.v2.DataApiService";
79
79
  };
80
80
  };
81
+ /**
82
+ * @generated from rpc data.v2.DataApiService.ListTransactions
83
+ */
84
+ export declare const listTransactions: {
85
+ readonly localName: "listTransactions";
86
+ readonly name: "ListTransactions";
87
+ readonly kind: MethodKind.Unary;
88
+ readonly I: typeof ListTransactionsRequest;
89
+ readonly O: typeof ListTransactionsResponse;
90
+ readonly service: {
91
+ readonly typeName: "data.v2.DataApiService";
92
+ };
93
+ };
81
94
  /**
82
95
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
83
96
  */
@@ -156,6 +169,19 @@ export declare const getTokenHistoryTVL: {
156
169
  readonly typeName: "data.v2.DataApiService";
157
170
  };
158
171
  };
172
+ /**
173
+ * @generated from rpc data.v2.DataApiService.GetTokenTrades
174
+ */
175
+ export declare const getTokenTrades: {
176
+ readonly localName: "getTokenTrades";
177
+ readonly name: "GetTokenTrades";
178
+ readonly kind: MethodKind.Unary;
179
+ readonly I: typeof GetTokenTradesRequest;
180
+ readonly O: typeof GetTokenTradesResponse;
181
+ readonly service: {
182
+ readonly typeName: "data.v2.DataApiService";
183
+ };
184
+ };
159
185
  /**
160
186
  * @generated from rpc data.v2.DataApiService.ConvertFiat
161
187
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetTokenTradesRequest, GetTokenTradesResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v2.DataApiService.GetToken
9
9
  */
@@ -82,6 +82,19 @@ export const listPools = {
82
82
  typeName: "data.v2.DataApiService"
83
83
  }
84
84
  };
85
+ /**
86
+ * @generated from rpc data.v2.DataApiService.ListTransactions
87
+ */
88
+ export const listTransactions = {
89
+ localName: "listTransactions",
90
+ name: "ListTransactions",
91
+ kind: MethodKind.Unary,
92
+ I: ListTransactionsRequest,
93
+ O: ListTransactionsResponse,
94
+ service: {
95
+ typeName: "data.v2.DataApiService"
96
+ }
97
+ };
85
98
  /**
86
99
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
87
100
  */
@@ -160,6 +173,19 @@ export const getTokenHistoryTVL = {
160
173
  typeName: "data.v2.DataApiService"
161
174
  }
162
175
  };
176
+ /**
177
+ * @generated from rpc data.v2.DataApiService.GetTokenTrades
178
+ */
179
+ export const getTokenTrades = {
180
+ localName: "getTokenTrades",
181
+ name: "GetTokenTrades",
182
+ kind: MethodKind.Unary,
183
+ I: GetTokenTradesRequest,
184
+ O: GetTokenTradesResponse,
185
+ service: {
186
+ typeName: "data.v2.DataApiService"
187
+ }
188
+ };
163
189
  /**
164
190
  * @generated from rpc data.v2.DataApiService.ConvertFiat
165
191
  */
@@ -1,4 +1,4 @@
1
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
1
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetTokenTradesRequest, GetTokenTradesResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v2.DataApiService
@@ -60,6 +60,15 @@ export declare const DataApiService: {
60
60
  readonly O: typeof ListPoolsResponse;
61
61
  readonly kind: MethodKind.Unary;
62
62
  };
63
+ /**
64
+ * @generated from rpc data.v2.DataApiService.ListTransactions
65
+ */
66
+ readonly listTransactions: {
67
+ readonly name: "ListTransactions";
68
+ readonly I: typeof ListTransactionsRequest;
69
+ readonly O: typeof ListTransactionsResponse;
70
+ readonly kind: MethodKind.Unary;
71
+ };
63
72
  /**
64
73
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
65
74
  */
@@ -114,6 +123,15 @@ export declare const DataApiService: {
114
123
  readonly O: typeof GetTokenHistoryTVLResponse;
115
124
  readonly kind: MethodKind.Unary;
116
125
  };
126
+ /**
127
+ * @generated from rpc data.v2.DataApiService.GetTokenTrades
128
+ */
129
+ readonly getTokenTrades: {
130
+ readonly name: "GetTokenTrades";
131
+ readonly I: typeof GetTokenTradesRequest;
132
+ readonly O: typeof GetTokenTradesResponse;
133
+ readonly kind: MethodKind.Unary;
134
+ };
117
135
  /**
118
136
  * @generated from rpc data.v2.DataApiService.ConvertFiat
119
137
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
5
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetTokenTradesRequest, GetTokenTradesResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v2.DataApiService
@@ -64,6 +64,15 @@ export const DataApiService = {
64
64
  O: ListPoolsResponse,
65
65
  kind: MethodKind.Unary,
66
66
  },
67
+ /**
68
+ * @generated from rpc data.v2.DataApiService.ListTransactions
69
+ */
70
+ listTransactions: {
71
+ name: "ListTransactions",
72
+ I: ListTransactionsRequest,
73
+ O: ListTransactionsResponse,
74
+ kind: MethodKind.Unary,
75
+ },
67
76
  /**
68
77
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
69
78
  */
@@ -118,6 +127,15 @@ export const DataApiService = {
118
127
  O: GetTokenHistoryTVLResponse,
119
128
  kind: MethodKind.Unary,
120
129
  },
130
+ /**
131
+ * @generated from rpc data.v2.DataApiService.GetTokenTrades
132
+ */
133
+ getTokenTrades: {
134
+ name: "GetTokenTrades",
135
+ I: GetTokenTradesRequest,
136
+ O: GetTokenTradesResponse,
137
+ kind: MethodKind.Unary,
138
+ },
121
139
  /**
122
140
  * @generated from rpc data.v2.DataApiService.ConvertFiat
123
141
  */
@@ -1,8 +1,9 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
4
- import { EarnPosition, EarnVault } from "./earn_pb.js";
2
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
+ import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
5
4
  import { PageRequest, PageResponse } from "./common_pb.js";
5
+ import { EarnPosition, EarnVault } from "./earn_pb.js";
6
+ import { ProtocolVersion } from "../v1/poolTypes_pb.js";
6
7
  /**
7
8
  * @generated from message data.v2.GetTokenMarketsRequest
8
9
  */
@@ -360,6 +361,15 @@ export declare class GetTokenHistoryPriceRequest extends Message<GetTokenHistory
360
361
  * @generated from field: data.v2.HistoryDuration duration = 3;
361
362
  */
362
363
  duration: HistoryDuration;
364
+ /**
365
+ * Anchored mode: when set, the series covers [start_time, now] instead of a
366
+ * trailing duration window (duration is ignored). The server picks the
367
+ * bucket width — the finest available (1 min) for short ranges, scaled up so
368
+ * the series stays under ~400 points for long ones. single_chain (EVM) only.
369
+ *
370
+ * @generated from field: optional google.protobuf.Timestamp start_time = 4;
371
+ */
372
+ startTime?: Timestamp;
363
373
  constructor(data?: PartialMessage<GetTokenHistoryPriceRequest>);
364
374
  static readonly runtime: typeof proto3;
365
375
  static readonly typeName = "data.v2.GetTokenHistoryPriceRequest";
@@ -474,6 +484,56 @@ export declare class GetTokenHistoryTVLResponse extends Message<GetTokenHistoryT
474
484
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
475
485
  static equals(a: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined, b: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined): boolean;
476
486
  }
487
+ /**
488
+ * Newest-first swap feed for a token, aggregated across ALL its pools
489
+ * (v2/v3/v4) on the chain. Non-swap events (mints/burns/liquidity) are
490
+ * excluded. Lookback is capped at 3 months. EVM-only.
491
+ *
492
+ * @generated from message data.v2.GetTokenTradesRequest
493
+ */
494
+ export declare class GetTokenTradesRequest extends Message<GetTokenTradesRequest> {
495
+ /**
496
+ * @generated from field: data.v2.TokenIdentifier token = 1;
497
+ */
498
+ token?: TokenIdentifier;
499
+ /**
500
+ * page_size (default 25, max 100) + page_token
501
+ *
502
+ * @generated from field: optional data.v2.PageRequest page = 2;
503
+ */
504
+ page?: PageRequest;
505
+ constructor(data?: PartialMessage<GetTokenTradesRequest>);
506
+ static readonly runtime: typeof proto3;
507
+ static readonly typeName = "data.v2.GetTokenTradesRequest";
508
+ static readonly fields: FieldList;
509
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenTradesRequest;
510
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenTradesRequest;
511
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenTradesRequest;
512
+ static equals(a: GetTokenTradesRequest | PlainMessage<GetTokenTradesRequest> | undefined, b: GetTokenTradesRequest | PlainMessage<GetTokenTradesRequest> | undefined): boolean;
513
+ }
514
+ /**
515
+ * @generated from message data.v2.GetTokenTradesResponse
516
+ */
517
+ export declare class GetTokenTradesResponse extends Message<GetTokenTradesResponse> {
518
+ /**
519
+ * @generated from field: repeated data.v2.TokenTrade trades = 1;
520
+ */
521
+ trades: TokenTrade[];
522
+ /**
523
+ * next_page_token absent on last page
524
+ *
525
+ * @generated from field: data.v2.PageResponse page = 2;
526
+ */
527
+ page?: PageResponse;
528
+ constructor(data?: PartialMessage<GetTokenTradesResponse>);
529
+ static readonly runtime: typeof proto3;
530
+ static readonly typeName = "data.v2.GetTokenTradesResponse";
531
+ static readonly fields: FieldList;
532
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenTradesResponse;
533
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenTradesResponse;
534
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenTradesResponse;
535
+ static equals(a: GetTokenTradesResponse | PlainMessage<GetTokenTradesResponse> | undefined, b: GetTokenTradesResponse | PlainMessage<GetTokenTradesResponse> | undefined): boolean;
536
+ }
477
537
  /**
478
538
  * @generated from message data.v2.TvlPoint
479
539
  */
@@ -1218,3 +1278,122 @@ export declare class GetWalletNftsResponse extends Message<GetWalletNftsResponse
1218
1278
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
1219
1279
  static equals(a: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined, b: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined): boolean;
1220
1280
  }
1281
+ /**
1282
+ * Server-side filters applied before pagination.
1283
+ * Omitting token_scope returns the global feed (Explore page feed).
1284
+ *
1285
+ * @generated from message data.v2.TransactionListFilter
1286
+ */
1287
+ export declare class TransactionListFilter extends Message<TransactionListFilter> {
1288
+ /**
1289
+ * empty = all (V2 + V3 + V4)
1290
+ *
1291
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
1292
+ */
1293
+ protocolVersions: ProtocolVersion[];
1294
+ /**
1295
+ * empty = all (swap + add + remove)
1296
+ *
1297
+ * @generated from field: repeated data.v2.TransactionEventType event_types = 2;
1298
+ */
1299
+ eventTypes: TransactionEventType[];
1300
+ /**
1301
+ * default false (spam excluded)
1302
+ *
1303
+ * @generated from field: optional bool include_spam = 3;
1304
+ */
1305
+ includeSpam?: boolean;
1306
+ /**
1307
+ * @generated from oneof data.v2.TransactionListFilter.token_scope
1308
+ */
1309
+ tokenScope: {
1310
+ /**
1311
+ * pool address (V2/V3) or poolId bytes32 (V4); absent = global feed
1312
+ *
1313
+ * @generated from field: string pool_id = 4;
1314
+ */
1315
+ value: string;
1316
+ case: "poolId";
1317
+ } | {
1318
+ /**
1319
+ * @generated from field: string multichain_id = 5;
1320
+ */
1321
+ value: string;
1322
+ case: "multichainId";
1323
+ } | {
1324
+ /**
1325
+ * 1..100 tokens; feed includes txs touching ANY of them
1326
+ *
1327
+ * @generated from field: data.v2.TokenIdentifierList tokens_on_chain = 6;
1328
+ */
1329
+ value: TokenIdentifierList;
1330
+ case: "tokensOnChain";
1331
+ } | {
1332
+ case: undefined;
1333
+ value?: undefined;
1334
+ };
1335
+ constructor(data?: PartialMessage<TransactionListFilter>);
1336
+ static readonly runtime: typeof proto3;
1337
+ static readonly typeName = "data.v2.TransactionListFilter";
1338
+ static readonly fields: FieldList;
1339
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionListFilter;
1340
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionListFilter;
1341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionListFilter;
1342
+ static equals(a: TransactionListFilter | PlainMessage<TransactionListFilter> | undefined, b: TransactionListFilter | PlainMessage<TransactionListFilter> | undefined): boolean;
1343
+ }
1344
+ /**
1345
+ * Global protocol transaction feed, newest first. Sorted by
1346
+ * (timestamp_ms DESC, chain_id ASC, global_sequence_number DESC); the opaque
1347
+ * page_token encodes all three so a next page resumes exactly.
1348
+ *
1349
+ * @generated from message data.v2.ListTransactionsRequest
1350
+ */
1351
+ export declare class ListTransactionsRequest extends Message<ListTransactionsRequest> {
1352
+ /**
1353
+ * required
1354
+ *
1355
+ * @generated from field: repeated uint32 chain_ids = 1;
1356
+ */
1357
+ chainIds: number[];
1358
+ /**
1359
+ * @generated from field: optional data.v2.TransactionListFilter filter = 2;
1360
+ */
1361
+ filter?: TransactionListFilter;
1362
+ /**
1363
+ * page_size (default 100, max 100) + page_token
1364
+ *
1365
+ * @generated from field: optional data.v2.PageRequest page = 3;
1366
+ */
1367
+ page?: PageRequest;
1368
+ constructor(data?: PartialMessage<ListTransactionsRequest>);
1369
+ static readonly runtime: typeof proto3;
1370
+ static readonly typeName = "data.v2.ListTransactionsRequest";
1371
+ static readonly fields: FieldList;
1372
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTransactionsRequest;
1373
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTransactionsRequest;
1374
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTransactionsRequest;
1375
+ static equals(a: ListTransactionsRequest | PlainMessage<ListTransactionsRequest> | undefined, b: ListTransactionsRequest | PlainMessage<ListTransactionsRequest> | undefined): boolean;
1376
+ }
1377
+ /**
1378
+ * @generated from message data.v2.ListTransactionsResponse
1379
+ */
1380
+ export declare class ListTransactionsResponse extends Message<ListTransactionsResponse> {
1381
+ /**
1382
+ * @generated from field: repeated data.v2.UniswapTransaction transactions = 1;
1383
+ */
1384
+ transactions: UniswapTransaction[];
1385
+ /**
1386
+ * next_page_token absent on last page
1387
+ *
1388
+ * @generated from field: data.v2.PageResponse page = 2;
1389
+ */
1390
+ page?: PageResponse;
1391
+ constructor(data?: PartialMessage<ListTransactionsResponse>);
1392
+ static readonly runtime: typeof proto3;
1393
+ static readonly typeName = "data.v2.ListTransactionsResponse";
1394
+ static readonly fields: FieldList;
1395
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTransactionsResponse;
1396
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTransactionsResponse;
1397
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTransactionsResponse;
1398
+ static equals(a: ListTransactionsResponse | PlainMessage<ListTransactionsResponse> | undefined, b: ListTransactionsResponse | PlainMessage<ListTransactionsResponse> | undefined): boolean;
1399
+ }
@@ -2,10 +2,11 @@
2
2
  // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
- import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
7
- import { EarnPosition, EarnVault } from "./earn_pb.js";
5
+ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
6
+ import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
8
7
  import { PageRequest, PageResponse } from "./common_pb.js";
8
+ import { EarnPosition, EarnVault } from "./earn_pb.js";
9
+ import { ProtocolVersion } from "../v1/poolTypes_pb.js";
9
10
  /**
10
11
  * @generated from message data.v2.GetTokenMarketsRequest
11
12
  */
@@ -459,6 +460,7 @@ GetTokenHistoryPriceRequest.fields = proto3.util.newFieldList(() => [
459
460
  { no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
460
461
  { no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
461
462
  { no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
463
+ { no: 4, name: "start_time", kind: "message", T: Timestamp, opt: true },
462
464
  ]);
463
465
  /**
464
466
  * @generated from message data.v2.GetTokenHistoryPriceResponse
@@ -604,6 +606,68 @@ GetTokenHistoryTVLResponse.typeName = "data.v2.GetTokenHistoryTVLResponse";
604
606
  GetTokenHistoryTVLResponse.fields = proto3.util.newFieldList(() => [
605
607
  { no: 1, name: "points", kind: "message", T: TvlPoint, repeated: true },
606
608
  ]);
609
+ /**
610
+ * Newest-first swap feed for a token, aggregated across ALL its pools
611
+ * (v2/v3/v4) on the chain. Non-swap events (mints/burns/liquidity) are
612
+ * excluded. Lookback is capped at 3 months. EVM-only.
613
+ *
614
+ * @generated from message data.v2.GetTokenTradesRequest
615
+ */
616
+ export class GetTokenTradesRequest extends Message {
617
+ constructor(data) {
618
+ super();
619
+ proto3.util.initPartial(data, this);
620
+ }
621
+ static fromBinary(bytes, options) {
622
+ return new GetTokenTradesRequest().fromBinary(bytes, options);
623
+ }
624
+ static fromJson(jsonValue, options) {
625
+ return new GetTokenTradesRequest().fromJson(jsonValue, options);
626
+ }
627
+ static fromJsonString(jsonString, options) {
628
+ return new GetTokenTradesRequest().fromJsonString(jsonString, options);
629
+ }
630
+ static equals(a, b) {
631
+ return proto3.util.equals(GetTokenTradesRequest, a, b);
632
+ }
633
+ }
634
+ GetTokenTradesRequest.runtime = proto3;
635
+ GetTokenTradesRequest.typeName = "data.v2.GetTokenTradesRequest";
636
+ GetTokenTradesRequest.fields = proto3.util.newFieldList(() => [
637
+ { no: 1, name: "token", kind: "message", T: TokenIdentifier },
638
+ { no: 2, name: "page", kind: "message", T: PageRequest, opt: true },
639
+ ]);
640
+ /**
641
+ * @generated from message data.v2.GetTokenTradesResponse
642
+ */
643
+ export class GetTokenTradesResponse extends Message {
644
+ constructor(data) {
645
+ super();
646
+ /**
647
+ * @generated from field: repeated data.v2.TokenTrade trades = 1;
648
+ */
649
+ this.trades = [];
650
+ proto3.util.initPartial(data, this);
651
+ }
652
+ static fromBinary(bytes, options) {
653
+ return new GetTokenTradesResponse().fromBinary(bytes, options);
654
+ }
655
+ static fromJson(jsonValue, options) {
656
+ return new GetTokenTradesResponse().fromJson(jsonValue, options);
657
+ }
658
+ static fromJsonString(jsonString, options) {
659
+ return new GetTokenTradesResponse().fromJsonString(jsonString, options);
660
+ }
661
+ static equals(a, b) {
662
+ return proto3.util.equals(GetTokenTradesResponse, a, b);
663
+ }
664
+ }
665
+ GetTokenTradesResponse.runtime = proto3;
666
+ GetTokenTradesResponse.typeName = "data.v2.GetTokenTradesResponse";
667
+ GetTokenTradesResponse.fields = proto3.util.newFieldList(() => [
668
+ { no: 1, name: "trades", kind: "message", T: TokenTrade, repeated: true },
669
+ { no: 2, name: "page", kind: "message", T: PageResponse },
670
+ ]);
607
671
  /**
608
672
  * @generated from message data.v2.TvlPoint
609
673
  */
@@ -1606,3 +1670,122 @@ GetWalletNftsResponse.fields = proto3.util.newFieldList(() => [
1606
1670
  { no: 1, name: "nfts", kind: "message", T: Nft, repeated: true },
1607
1671
  { no: 2, name: "page", kind: "message", T: PageResponse },
1608
1672
  ]);
1673
+ /**
1674
+ * Server-side filters applied before pagination.
1675
+ * Omitting token_scope returns the global feed (Explore page feed).
1676
+ *
1677
+ * @generated from message data.v2.TransactionListFilter
1678
+ */
1679
+ export class TransactionListFilter extends Message {
1680
+ constructor(data) {
1681
+ super();
1682
+ /**
1683
+ * empty = all (V2 + V3 + V4)
1684
+ *
1685
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
1686
+ */
1687
+ this.protocolVersions = [];
1688
+ /**
1689
+ * empty = all (swap + add + remove)
1690
+ *
1691
+ * @generated from field: repeated data.v2.TransactionEventType event_types = 2;
1692
+ */
1693
+ this.eventTypes = [];
1694
+ /**
1695
+ * @generated from oneof data.v2.TransactionListFilter.token_scope
1696
+ */
1697
+ this.tokenScope = { case: undefined };
1698
+ proto3.util.initPartial(data, this);
1699
+ }
1700
+ static fromBinary(bytes, options) {
1701
+ return new TransactionListFilter().fromBinary(bytes, options);
1702
+ }
1703
+ static fromJson(jsonValue, options) {
1704
+ return new TransactionListFilter().fromJson(jsonValue, options);
1705
+ }
1706
+ static fromJsonString(jsonString, options) {
1707
+ return new TransactionListFilter().fromJsonString(jsonString, options);
1708
+ }
1709
+ static equals(a, b) {
1710
+ return proto3.util.equals(TransactionListFilter, a, b);
1711
+ }
1712
+ }
1713
+ TransactionListFilter.runtime = proto3;
1714
+ TransactionListFilter.typeName = "data.v2.TransactionListFilter";
1715
+ TransactionListFilter.fields = proto3.util.newFieldList(() => [
1716
+ { no: 1, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
1717
+ { no: 2, name: "event_types", kind: "enum", T: proto3.getEnumType(TransactionEventType), repeated: true },
1718
+ { no: 3, name: "include_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1719
+ { no: 4, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "token_scope" },
1720
+ { no: 5, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "token_scope" },
1721
+ { no: 6, name: "tokens_on_chain", kind: "message", T: TokenIdentifierList, oneof: "token_scope" },
1722
+ ]);
1723
+ /**
1724
+ * Global protocol transaction feed, newest first. Sorted by
1725
+ * (timestamp_ms DESC, chain_id ASC, global_sequence_number DESC); the opaque
1726
+ * page_token encodes all three so a next page resumes exactly.
1727
+ *
1728
+ * @generated from message data.v2.ListTransactionsRequest
1729
+ */
1730
+ export class ListTransactionsRequest extends Message {
1731
+ constructor(data) {
1732
+ super();
1733
+ /**
1734
+ * required
1735
+ *
1736
+ * @generated from field: repeated uint32 chain_ids = 1;
1737
+ */
1738
+ this.chainIds = [];
1739
+ proto3.util.initPartial(data, this);
1740
+ }
1741
+ static fromBinary(bytes, options) {
1742
+ return new ListTransactionsRequest().fromBinary(bytes, options);
1743
+ }
1744
+ static fromJson(jsonValue, options) {
1745
+ return new ListTransactionsRequest().fromJson(jsonValue, options);
1746
+ }
1747
+ static fromJsonString(jsonString, options) {
1748
+ return new ListTransactionsRequest().fromJsonString(jsonString, options);
1749
+ }
1750
+ static equals(a, b) {
1751
+ return proto3.util.equals(ListTransactionsRequest, a, b);
1752
+ }
1753
+ }
1754
+ ListTransactionsRequest.runtime = proto3;
1755
+ ListTransactionsRequest.typeName = "data.v2.ListTransactionsRequest";
1756
+ ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
1757
+ { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1758
+ { no: 2, name: "filter", kind: "message", T: TransactionListFilter, opt: true },
1759
+ { no: 3, name: "page", kind: "message", T: PageRequest, opt: true },
1760
+ ]);
1761
+ /**
1762
+ * @generated from message data.v2.ListTransactionsResponse
1763
+ */
1764
+ export class ListTransactionsResponse extends Message {
1765
+ constructor(data) {
1766
+ super();
1767
+ /**
1768
+ * @generated from field: repeated data.v2.UniswapTransaction transactions = 1;
1769
+ */
1770
+ this.transactions = [];
1771
+ proto3.util.initPartial(data, this);
1772
+ }
1773
+ static fromBinary(bytes, options) {
1774
+ return new ListTransactionsResponse().fromBinary(bytes, options);
1775
+ }
1776
+ static fromJson(jsonValue, options) {
1777
+ return new ListTransactionsResponse().fromJson(jsonValue, options);
1778
+ }
1779
+ static fromJsonString(jsonString, options) {
1780
+ return new ListTransactionsResponse().fromJsonString(jsonString, options);
1781
+ }
1782
+ static equals(a, b) {
1783
+ return proto3.util.equals(ListTransactionsResponse, a, b);
1784
+ }
1785
+ }
1786
+ ListTransactionsResponse.runtime = proto3;
1787
+ ListTransactionsResponse.typeName = "data.v2.ListTransactionsResponse";
1788
+ ListTransactionsResponse.fields = proto3.util.newFieldList(() => [
1789
+ { no: 1, name: "transactions", kind: "message", T: UniswapTransaction, repeated: true },
1790
+ { no: 2, name: "page", kind: "message", T: PageResponse },
1791
+ ]);
@@ -1,5 +1,5 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
3
  import { TimestampedValue, TokenType } from "../v1/types_pb.js";
4
4
  import { ProtocolVersion } from "../v1/poolTypes_pb.js";
5
5
  /**
@@ -261,6 +261,31 @@ export declare enum PoolTokenLogicalOperator {
261
261
  */
262
262
  AND = 2
263
263
  }
264
+ /**
265
+ * @generated from enum data.v2.TransactionEventType
266
+ */
267
+ export declare enum TransactionEventType {
268
+ /**
269
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0;
270
+ */
271
+ UNSPECIFIED = 0,
272
+ /**
273
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_SWAP = 1;
274
+ */
275
+ SWAP = 1,
276
+ /**
277
+ * mint / positive modify_liquidity
278
+ *
279
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_ADD = 2;
280
+ */
281
+ ADD = 2,
282
+ /**
283
+ * burn / negative modify_liquidity
284
+ *
285
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_REMOVE = 3;
286
+ */
287
+ REMOVE = 3
288
+ }
264
289
  /**
265
290
  * Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
266
291
  *
@@ -280,6 +305,27 @@ export declare enum LaunchesOrderBy {
280
305
  */
281
306
  VOLUME_1D = 2
282
307
  }
308
+ /**
309
+ * The trade's direction from the trader's perspective: BUY = the trader
310
+ * received the requested token, SELL = the trader gave it up. UNSPECIFIED
311
+ * when the direction can't be derived (zero/unknown amount).
312
+ *
313
+ * @generated from enum data.v2.TradeSide
314
+ */
315
+ export declare enum TradeSide {
316
+ /**
317
+ * @generated from enum value: TRADE_SIDE_UNSPECIFIED = 0;
318
+ */
319
+ UNSPECIFIED = 0,
320
+ /**
321
+ * @generated from enum value: TRADE_SIDE_BUY = 1;
322
+ */
323
+ BUY = 1,
324
+ /**
325
+ * @generated from enum value: TRADE_SIDE_SELL = 2;
326
+ */
327
+ SELL = 2
328
+ }
283
329
  /**
284
330
  * Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
285
331
  * All fields are populated from Clickhouse aggregations.
@@ -1046,6 +1092,99 @@ export declare class RankedPool extends Message<RankedPool> {
1046
1092
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RankedPool;
1047
1093
  static equals(a: RankedPool | PlainMessage<RankedPool> | undefined, b: RankedPool | PlainMessage<RankedPool> | undefined): boolean;
1048
1094
  }
1095
+ /**
1096
+ * One token side of a pool event. amount is absolute (always positive).
1097
+ * amount_usd = |amount| * price; 0 when price or decimals are unavailable.
1098
+ *
1099
+ * @generated from message data.v2.TransactionTokenSide
1100
+ */
1101
+ export declare class TransactionTokenSide extends Message<TransactionTokenSide> {
1102
+ /**
1103
+ * @generated from field: data.v2.Token token = 1;
1104
+ */
1105
+ token?: Token;
1106
+ /**
1107
+ * decimal-adjusted absolute amount, full precision; absent when decimals unavailable
1108
+ *
1109
+ * @generated from field: optional string amount = 2;
1110
+ */
1111
+ amount?: string;
1112
+ /**
1113
+ * @generated from field: double amount_usd = 3;
1114
+ */
1115
+ amountUsd: number;
1116
+ constructor(data?: PartialMessage<TransactionTokenSide>);
1117
+ static readonly runtime: typeof proto3;
1118
+ static readonly typeName = "data.v2.TransactionTokenSide";
1119
+ static readonly fields: FieldList;
1120
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionTokenSide;
1121
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionTokenSide;
1122
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionTokenSide;
1123
+ static equals(a: TransactionTokenSide | PlainMessage<TransactionTokenSide> | undefined, b: TransactionTokenSide | PlainMessage<TransactionTokenSide> | undefined): boolean;
1124
+ }
1125
+ /**
1126
+ * A single on-chain event from the global protocol feed.
1127
+ *
1128
+ * @generated from message data.v2.UniswapTransaction
1129
+ */
1130
+ export declare class UniswapTransaction extends Message<UniswapTransaction> {
1131
+ /**
1132
+ * @generated from field: uint32 chain_id = 1;
1133
+ */
1134
+ chainId: number;
1135
+ /**
1136
+ * @generated from field: string tx_hash = 2;
1137
+ */
1138
+ txHash: string;
1139
+ /**
1140
+ * Unix epoch milliseconds
1141
+ *
1142
+ * @generated from field: int64 timestamp_ms = 3;
1143
+ */
1144
+ timestampMs: bigint;
1145
+ /**
1146
+ * @generated from field: data.v2.TransactionEventType event_type = 4;
1147
+ */
1148
+ eventType: TransactionEventType;
1149
+ /**
1150
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
1151
+ */
1152
+ protocolVersion: ProtocolVersion;
1153
+ /**
1154
+ * pool address (V2/V3) or pool_id (V4)
1155
+ *
1156
+ * @generated from field: string pool_id = 6;
1157
+ */
1158
+ poolId: string;
1159
+ /**
1160
+ * @generated from field: data.v2.TransactionTokenSide token0 = 7;
1161
+ */
1162
+ token0?: TransactionTokenSide;
1163
+ /**
1164
+ * @generated from field: data.v2.TransactionTokenSide token1 = 8;
1165
+ */
1166
+ token1?: TransactionTokenSide;
1167
+ /**
1168
+ * swap = avg of both sides; add/remove = sum
1169
+ *
1170
+ * @generated from field: double amount_usd = 9;
1171
+ */
1172
+ amountUsd: number;
1173
+ /**
1174
+ * checksummed EVM address (tx_from)
1175
+ *
1176
+ * @generated from field: string wallet_address = 10;
1177
+ */
1178
+ walletAddress: string;
1179
+ constructor(data?: PartialMessage<UniswapTransaction>);
1180
+ static readonly runtime: typeof proto3;
1181
+ static readonly typeName = "data.v2.UniswapTransaction";
1182
+ static readonly fields: FieldList;
1183
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UniswapTransaction;
1184
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UniswapTransaction;
1185
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UniswapTransaction;
1186
+ static equals(a: UniswapTransaction | PlainMessage<UniswapTransaction> | undefined, b: UniswapTransaction | PlainMessage<UniswapTransaction> | undefined): boolean;
1187
+ }
1049
1188
  /**
1050
1189
  * @generated from message data.v2.Token
1051
1190
  */
@@ -1301,6 +1440,59 @@ export declare class Launch extends Message<Launch> {
1301
1440
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
1302
1441
  static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
1303
1442
  }
1443
+ /**
1444
+ * One swap involving the requested token, returned by GetTokenTrades.
1445
+ *
1446
+ * @generated from message data.v2.TokenTrade
1447
+ */
1448
+ export declare class TokenTrade extends Message<TokenTrade> {
1449
+ /**
1450
+ * @generated from field: string tx_hash = 1;
1451
+ */
1452
+ txHash: string;
1453
+ /**
1454
+ * @generated from field: data.v2.TradeSide side = 2;
1455
+ */
1456
+ side: TradeSide;
1457
+ /**
1458
+ * The transaction's from-address (the EOA that signed it), not the router
1459
+ * contract that forwarded the swap to the pool.
1460
+ *
1461
+ * @generated from field: string wallet = 3;
1462
+ */
1463
+ wallet: string;
1464
+ /**
1465
+ * Whole-swap USD value at trade time; unset when no USD price is known.
1466
+ *
1467
+ * @generated from field: optional double amount_usd = 4;
1468
+ */
1469
+ amountUsd?: number;
1470
+ /**
1471
+ * Absolute amount of the requested token traded, decimal string in token
1472
+ * units (decimals applied). Empty when the token's decimals are unknown.
1473
+ *
1474
+ * @generated from field: string token_amount = 5;
1475
+ */
1476
+ tokenAmount: string;
1477
+ /**
1478
+ * USD price of the requested token at trade time; unset when unknown.
1479
+ *
1480
+ * @generated from field: optional double price_usd = 6;
1481
+ */
1482
+ priceUsd?: number;
1483
+ /**
1484
+ * @generated from field: google.protobuf.Timestamp timestamp = 7;
1485
+ */
1486
+ timestamp?: Timestamp;
1487
+ constructor(data?: PartialMessage<TokenTrade>);
1488
+ static readonly runtime: typeof proto3;
1489
+ static readonly typeName = "data.v2.TokenTrade";
1490
+ static readonly fields: FieldList;
1491
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenTrade;
1492
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenTrade;
1493
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenTrade;
1494
+ static equals(a: TokenTrade | PlainMessage<TokenTrade> | undefined, b: TokenTrade | PlainMessage<TokenTrade> | undefined): boolean;
1495
+ }
1304
1496
  /**
1305
1497
  * @generated from message data.v2.NftImage
1306
1498
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v2/types.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
5
+ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
6
6
  import { TimestampedValue, TokenType } from "../v1/types_pb.js";
7
7
  import { ProtocolVersion } from "../v1/poolTypes_pb.js";
8
8
  /**
@@ -338,6 +338,39 @@ proto3.util.setEnumType(PoolTokenLogicalOperator, "data.v2.PoolTokenLogicalOpera
338
338
  { no: 1, name: "POOL_TOKEN_LOGICAL_OPERATOR_OR" },
339
339
  { no: 2, name: "POOL_TOKEN_LOGICAL_OPERATOR_AND" },
340
340
  ]);
341
+ /**
342
+ * @generated from enum data.v2.TransactionEventType
343
+ */
344
+ export var TransactionEventType;
345
+ (function (TransactionEventType) {
346
+ /**
347
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0;
348
+ */
349
+ TransactionEventType[TransactionEventType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
350
+ /**
351
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_SWAP = 1;
352
+ */
353
+ TransactionEventType[TransactionEventType["SWAP"] = 1] = "SWAP";
354
+ /**
355
+ * mint / positive modify_liquidity
356
+ *
357
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_ADD = 2;
358
+ */
359
+ TransactionEventType[TransactionEventType["ADD"] = 2] = "ADD";
360
+ /**
361
+ * burn / negative modify_liquidity
362
+ *
363
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_REMOVE = 3;
364
+ */
365
+ TransactionEventType[TransactionEventType["REMOVE"] = 3] = "REMOVE";
366
+ })(TransactionEventType || (TransactionEventType = {}));
367
+ // Retrieve enum metadata with: proto3.getEnumType(TransactionEventType)
368
+ proto3.util.setEnumType(TransactionEventType, "data.v2.TransactionEventType", [
369
+ { no: 0, name: "TRANSACTION_EVENT_TYPE_UNSPECIFIED" },
370
+ { no: 1, name: "TRANSACTION_EVENT_TYPE_SWAP" },
371
+ { no: 2, name: "TRANSACTION_EVENT_TYPE_ADD" },
372
+ { no: 3, name: "TRANSACTION_EVENT_TYPE_REMOVE" },
373
+ ]);
341
374
  /**
342
375
  * Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
343
376
  *
@@ -364,6 +397,34 @@ proto3.util.setEnumType(LaunchesOrderBy, "data.v2.LaunchesOrderBy", [
364
397
  { no: 1, name: "LAUNCHES_ORDER_BY_LAUNCHED_AT" },
365
398
  { no: 2, name: "LAUNCHES_ORDER_BY_VOLUME_1D" },
366
399
  ]);
400
+ /**
401
+ * The trade's direction from the trader's perspective: BUY = the trader
402
+ * received the requested token, SELL = the trader gave it up. UNSPECIFIED
403
+ * when the direction can't be derived (zero/unknown amount).
404
+ *
405
+ * @generated from enum data.v2.TradeSide
406
+ */
407
+ export var TradeSide;
408
+ (function (TradeSide) {
409
+ /**
410
+ * @generated from enum value: TRADE_SIDE_UNSPECIFIED = 0;
411
+ */
412
+ TradeSide[TradeSide["UNSPECIFIED"] = 0] = "UNSPECIFIED";
413
+ /**
414
+ * @generated from enum value: TRADE_SIDE_BUY = 1;
415
+ */
416
+ TradeSide[TradeSide["BUY"] = 1] = "BUY";
417
+ /**
418
+ * @generated from enum value: TRADE_SIDE_SELL = 2;
419
+ */
420
+ TradeSide[TradeSide["SELL"] = 2] = "SELL";
421
+ })(TradeSide || (TradeSide = {}));
422
+ // Retrieve enum metadata with: proto3.getEnumType(TradeSide)
423
+ proto3.util.setEnumType(TradeSide, "data.v2.TradeSide", [
424
+ { no: 0, name: "TRADE_SIDE_UNSPECIFIED" },
425
+ { no: 1, name: "TRADE_SIDE_BUY" },
426
+ { no: 2, name: "TRADE_SIDE_SELL" },
427
+ ]);
367
428
  /**
368
429
  * Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
369
430
  * All fields are populated from Clickhouse aggregations.
@@ -1207,6 +1268,118 @@ RankedPool.fields = proto3.util.newFieldList(() => [
1207
1268
  { no: 1, name: "pool", kind: "message", T: Pool },
1208
1269
  { no: 2, name: "stats", kind: "message", T: PoolRankStats },
1209
1270
  ]);
1271
+ /**
1272
+ * One token side of a pool event. amount is absolute (always positive).
1273
+ * amount_usd = |amount| * price; 0 when price or decimals are unavailable.
1274
+ *
1275
+ * @generated from message data.v2.TransactionTokenSide
1276
+ */
1277
+ export class TransactionTokenSide extends Message {
1278
+ constructor(data) {
1279
+ super();
1280
+ /**
1281
+ * @generated from field: double amount_usd = 3;
1282
+ */
1283
+ this.amountUsd = 0;
1284
+ proto3.util.initPartial(data, this);
1285
+ }
1286
+ static fromBinary(bytes, options) {
1287
+ return new TransactionTokenSide().fromBinary(bytes, options);
1288
+ }
1289
+ static fromJson(jsonValue, options) {
1290
+ return new TransactionTokenSide().fromJson(jsonValue, options);
1291
+ }
1292
+ static fromJsonString(jsonString, options) {
1293
+ return new TransactionTokenSide().fromJsonString(jsonString, options);
1294
+ }
1295
+ static equals(a, b) {
1296
+ return proto3.util.equals(TransactionTokenSide, a, b);
1297
+ }
1298
+ }
1299
+ TransactionTokenSide.runtime = proto3;
1300
+ TransactionTokenSide.typeName = "data.v2.TransactionTokenSide";
1301
+ TransactionTokenSide.fields = proto3.util.newFieldList(() => [
1302
+ { no: 1, name: "token", kind: "message", T: Token },
1303
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1304
+ { no: 3, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1305
+ ]);
1306
+ /**
1307
+ * A single on-chain event from the global protocol feed.
1308
+ *
1309
+ * @generated from message data.v2.UniswapTransaction
1310
+ */
1311
+ export class UniswapTransaction extends Message {
1312
+ constructor(data) {
1313
+ super();
1314
+ /**
1315
+ * @generated from field: uint32 chain_id = 1;
1316
+ */
1317
+ this.chainId = 0;
1318
+ /**
1319
+ * @generated from field: string tx_hash = 2;
1320
+ */
1321
+ this.txHash = "";
1322
+ /**
1323
+ * Unix epoch milliseconds
1324
+ *
1325
+ * @generated from field: int64 timestamp_ms = 3;
1326
+ */
1327
+ this.timestampMs = protoInt64.zero;
1328
+ /**
1329
+ * @generated from field: data.v2.TransactionEventType event_type = 4;
1330
+ */
1331
+ this.eventType = TransactionEventType.UNSPECIFIED;
1332
+ /**
1333
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
1334
+ */
1335
+ this.protocolVersion = ProtocolVersion.UNSPECIFIED;
1336
+ /**
1337
+ * pool address (V2/V3) or pool_id (V4)
1338
+ *
1339
+ * @generated from field: string pool_id = 6;
1340
+ */
1341
+ this.poolId = "";
1342
+ /**
1343
+ * swap = avg of both sides; add/remove = sum
1344
+ *
1345
+ * @generated from field: double amount_usd = 9;
1346
+ */
1347
+ this.amountUsd = 0;
1348
+ /**
1349
+ * checksummed EVM address (tx_from)
1350
+ *
1351
+ * @generated from field: string wallet_address = 10;
1352
+ */
1353
+ this.walletAddress = "";
1354
+ proto3.util.initPartial(data, this);
1355
+ }
1356
+ static fromBinary(bytes, options) {
1357
+ return new UniswapTransaction().fromBinary(bytes, options);
1358
+ }
1359
+ static fromJson(jsonValue, options) {
1360
+ return new UniswapTransaction().fromJson(jsonValue, options);
1361
+ }
1362
+ static fromJsonString(jsonString, options) {
1363
+ return new UniswapTransaction().fromJsonString(jsonString, options);
1364
+ }
1365
+ static equals(a, b) {
1366
+ return proto3.util.equals(UniswapTransaction, a, b);
1367
+ }
1368
+ }
1369
+ UniswapTransaction.runtime = proto3;
1370
+ UniswapTransaction.typeName = "data.v2.UniswapTransaction";
1371
+ UniswapTransaction.fields = proto3.util.newFieldList(() => [
1372
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1373
+ { no: 2, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1374
+ { no: 3, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1375
+ { no: 4, name: "event_type", kind: "enum", T: proto3.getEnumType(TransactionEventType) },
1376
+ { no: 5, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
1377
+ { no: 6, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1378
+ { no: 7, name: "token0", kind: "message", T: TransactionTokenSide },
1379
+ { no: 8, name: "token1", kind: "message", T: TransactionTokenSide },
1380
+ { no: 9, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1381
+ { no: 10, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1382
+ ]);
1210
1383
  /**
1211
1384
  * @generated from message data.v2.Token
1212
1385
  */
@@ -1453,6 +1626,62 @@ Launch.fields = proto3.util.newFieldList(() => [
1453
1626
  { no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1454
1627
  { no: 10, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1455
1628
  ]);
1629
+ /**
1630
+ * One swap involving the requested token, returned by GetTokenTrades.
1631
+ *
1632
+ * @generated from message data.v2.TokenTrade
1633
+ */
1634
+ export class TokenTrade extends Message {
1635
+ constructor(data) {
1636
+ super();
1637
+ /**
1638
+ * @generated from field: string tx_hash = 1;
1639
+ */
1640
+ this.txHash = "";
1641
+ /**
1642
+ * @generated from field: data.v2.TradeSide side = 2;
1643
+ */
1644
+ this.side = TradeSide.UNSPECIFIED;
1645
+ /**
1646
+ * The transaction's from-address (the EOA that signed it), not the router
1647
+ * contract that forwarded the swap to the pool.
1648
+ *
1649
+ * @generated from field: string wallet = 3;
1650
+ */
1651
+ this.wallet = "";
1652
+ /**
1653
+ * Absolute amount of the requested token traded, decimal string in token
1654
+ * units (decimals applied). Empty when the token's decimals are unknown.
1655
+ *
1656
+ * @generated from field: string token_amount = 5;
1657
+ */
1658
+ this.tokenAmount = "";
1659
+ proto3.util.initPartial(data, this);
1660
+ }
1661
+ static fromBinary(bytes, options) {
1662
+ return new TokenTrade().fromBinary(bytes, options);
1663
+ }
1664
+ static fromJson(jsonValue, options) {
1665
+ return new TokenTrade().fromJson(jsonValue, options);
1666
+ }
1667
+ static fromJsonString(jsonString, options) {
1668
+ return new TokenTrade().fromJsonString(jsonString, options);
1669
+ }
1670
+ static equals(a, b) {
1671
+ return proto3.util.equals(TokenTrade, a, b);
1672
+ }
1673
+ }
1674
+ TokenTrade.runtime = proto3;
1675
+ TokenTrade.typeName = "data.v2.TokenTrade";
1676
+ TokenTrade.fields = proto3.util.newFieldList(() => [
1677
+ { no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1678
+ { no: 2, name: "side", kind: "enum", T: proto3.getEnumType(TradeSide) },
1679
+ { no: 3, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1680
+ { no: 4, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1681
+ { no: 5, name: "token_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1682
+ { no: 6, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1683
+ { no: 7, name: "timestamp", kind: "message", T: Timestamp },
1684
+ ]);
1456
1685
  /**
1457
1686
  * @generated from message data.v2.NftImage
1458
1687
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.137",
3
+ "version": "0.0.140",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },