@uniswap/client-data-api 0.0.138 → 0.0.141

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, ListTransactionsRequest, ListTransactionsResponse } 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
  */
@@ -169,6 +169,19 @@ export declare const getTokenHistoryTVL: {
169
169
  readonly typeName: "data.v2.DataApiService";
170
170
  };
171
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
+ };
172
185
  /**
173
186
  * @generated from rpc data.v2.DataApiService.ConvertFiat
174
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, ListTransactionsRequest, ListTransactionsResponse } 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
  */
@@ -173,6 +173,19 @@ export const getTokenHistoryTVL = {
173
173
  typeName: "data.v2.DataApiService"
174
174
  }
175
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
+ };
176
189
  /**
177
190
  * @generated from rpc data.v2.DataApiService.ConvertFiat
178
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, ListTransactionsRequest, ListTransactionsResponse } 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
@@ -123,6 +123,15 @@ export declare const DataApiService: {
123
123
  readonly O: typeof GetTokenHistoryTVLResponse;
124
124
  readonly kind: MethodKind.Unary;
125
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
+ };
126
135
  /**
127
136
  * @generated from rpc data.v2.DataApiService.ConvertFiat
128
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, ListTransactionsRequest, ListTransactionsResponse } 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
@@ -127,6 +127,15 @@ export const DataApiService = {
127
127
  O: GetTokenHistoryTVLResponse,
128
128
  kind: MethodKind.Unary,
129
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
+ },
130
139
  /**
131
140
  * @generated from rpc data.v2.DataApiService.ConvertFiat
132
141
  */
@@ -1,8 +1,8 @@
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, TransactionEventType, UniswapTransaction } 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
6
  import { ProtocolVersion } from "../v1/poolTypes_pb.js";
7
7
  /**
8
8
  * @generated from message data.v2.GetTokenMarketsRequest
@@ -361,6 +361,15 @@ export declare class GetTokenHistoryPriceRequest extends Message<GetTokenHistory
361
361
  * @generated from field: data.v2.HistoryDuration duration = 3;
362
362
  */
363
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;
364
373
  constructor(data?: PartialMessage<GetTokenHistoryPriceRequest>);
365
374
  static readonly runtime: typeof proto3;
366
375
  static readonly typeName = "data.v2.GetTokenHistoryPriceRequest";
@@ -475,6 +484,56 @@ export declare class GetTokenHistoryTVLResponse extends Message<GetTokenHistoryT
475
484
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
476
485
  static equals(a: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined, b: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined): boolean;
477
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
+ }
478
537
  /**
479
538
  * @generated from message data.v2.TvlPoint
480
539
  */
@@ -2,10 +2,10 @@
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, TransactionEventType, UniswapTransaction } 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
9
  import { ProtocolVersion } from "../v1/poolTypes_pb.js";
10
10
  /**
11
11
  * @generated from message data.v2.GetTokenMarketsRequest
@@ -460,6 +460,7 @@ GetTokenHistoryPriceRequest.fields = proto3.util.newFieldList(() => [
460
460
  { no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
461
461
  { no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
462
462
  { no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
463
+ { no: 4, name: "start_time", kind: "message", T: Timestamp, opt: true },
463
464
  ]);
464
465
  /**
465
466
  * @generated from message data.v2.GetTokenHistoryPriceResponse
@@ -605,6 +606,68 @@ GetTokenHistoryTVLResponse.typeName = "data.v2.GetTokenHistoryTVLResponse";
605
606
  GetTokenHistoryTVLResponse.fields = proto3.util.newFieldList(() => [
606
607
  { no: 1, name: "points", kind: "message", T: TvlPoint, repeated: true },
607
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
+ ]);
608
671
  /**
609
672
  * @generated from message data.v2.TvlPoint
610
673
  */
@@ -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
  /**
@@ -305,6 +305,27 @@ export declare enum LaunchesOrderBy {
305
305
  */
306
306
  VOLUME_1D = 2
307
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
+ }
308
329
  /**
309
330
  * Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
310
331
  * All fields are populated from Clickhouse aggregations.
@@ -1379,8 +1400,10 @@ export declare class Launch extends Message<Launch> {
1379
1400
  */
1380
1401
  stats?: LaunchStats;
1381
1402
  /**
1382
- * CCA launches only: true once the auction migrated into its pool
1383
- * (graduated). Unset for hook-attributed launches, which are pools already.
1403
+ * CCA + bonding-curve launches: true once the launch graduated (CCA:
1404
+ * auction migrated into its pool; bonding-curve: curve position replaced
1405
+ * by the permanent full-range position). Unset for other hook-attributed
1406
+ * launches, which are pools already.
1384
1407
  *
1385
1408
  * @generated from field: optional bool graduated = 7;
1386
1409
  */
@@ -1410,6 +1433,13 @@ export declare class Launch extends Message<Launch> {
1410
1433
  * @generated from field: optional int32 bidder_count = 10;
1411
1434
  */
1412
1435
  bidderCount?: number;
1436
+ /**
1437
+ * Bonding-curve lifecycle overlay, set only for launches attributed to the
1438
+ * Uniswap bonding-curve hook. Absent while ingestion lags the launch.
1439
+ *
1440
+ * @generated from field: optional data.v2.BondingCurveInfo bonding_curve = 11;
1441
+ */
1442
+ bondingCurve?: BondingCurveInfo;
1413
1443
  constructor(data?: PartialMessage<Launch>);
1414
1444
  static readonly runtime: typeof proto3;
1415
1445
  static readonly typeName = "data.v2.Launch";
@@ -1419,6 +1449,118 @@ export declare class Launch extends Message<Launch> {
1419
1449
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
1420
1450
  static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
1421
1451
  }
1452
+ /**
1453
+ * Bonding-curve lifecycle overlay for launches attributed to the Uniswap
1454
+ * bonding-curve hook. Amounts are raw base-unit decimal strings. Curve
1455
+ * progress is client-derivable: price starts at
1456
+ * sqrtPriceAtTick(curve_tick_upper) (token is currency1) and graduates at
1457
+ * graduation_sqrt_price_x96. The strategy and hook events populating this
1458
+ * overlay arrive independently, so every field is optional: a field is
1459
+ * unset until its event has been ingested (0 is a real tick value, never
1460
+ * a placeholder).
1461
+ *
1462
+ * @generated from message data.v2.BondingCurveInfo
1463
+ */
1464
+ export declare class BondingCurveInfo extends Message<BondingCurveInfo> {
1465
+ /**
1466
+ * @generated from field: optional string graduation_sqrt_price_x96 = 1;
1467
+ */
1468
+ graduationSqrtPriceX96?: string;
1469
+ /**
1470
+ * @generated from field: optional int32 curve_tick_lower = 2;
1471
+ */
1472
+ curveTickLower?: number;
1473
+ /**
1474
+ * @generated from field: optional int32 curve_tick_upper = 3;
1475
+ */
1476
+ curveTickUpper?: number;
1477
+ /**
1478
+ * @generated from field: optional string curve_supply = 4;
1479
+ */
1480
+ curveSupply?: string;
1481
+ /**
1482
+ * @generated from field: optional string reserve_supply = 5;
1483
+ */
1484
+ reserveSupply?: string;
1485
+ /**
1486
+ * @generated from field: optional string graduated_tx_hash = 7;
1487
+ */
1488
+ graduatedTxHash?: string;
1489
+ /**
1490
+ * Server-computed % progress toward graduation; unset in the POC (needs
1491
+ * live pool sqrt price, which the list pipeline does not carry yet).
1492
+ *
1493
+ * @generated from field: optional double curve_progress_pct = 8;
1494
+ */
1495
+ curveProgressPct?: number;
1496
+ /**
1497
+ * Graduation time, unix seconds. Set once the Graduated event lands.
1498
+ *
1499
+ * @generated from field: optional int64 graduated_at = 9;
1500
+ */
1501
+ graduatedAt?: bigint;
1502
+ constructor(data?: PartialMessage<BondingCurveInfo>);
1503
+ static readonly runtime: typeof proto3;
1504
+ static readonly typeName = "data.v2.BondingCurveInfo";
1505
+ static readonly fields: FieldList;
1506
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BondingCurveInfo;
1507
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BondingCurveInfo;
1508
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BondingCurveInfo;
1509
+ static equals(a: BondingCurveInfo | PlainMessage<BondingCurveInfo> | undefined, b: BondingCurveInfo | PlainMessage<BondingCurveInfo> | undefined): boolean;
1510
+ }
1511
+ /**
1512
+ * One swap involving the requested token, returned by GetTokenTrades.
1513
+ *
1514
+ * @generated from message data.v2.TokenTrade
1515
+ */
1516
+ export declare class TokenTrade extends Message<TokenTrade> {
1517
+ /**
1518
+ * @generated from field: string tx_hash = 1;
1519
+ */
1520
+ txHash: string;
1521
+ /**
1522
+ * @generated from field: data.v2.TradeSide side = 2;
1523
+ */
1524
+ side: TradeSide;
1525
+ /**
1526
+ * The transaction's from-address (the EOA that signed it), not the router
1527
+ * contract that forwarded the swap to the pool.
1528
+ *
1529
+ * @generated from field: string wallet = 3;
1530
+ */
1531
+ wallet: string;
1532
+ /**
1533
+ * Whole-swap USD value at trade time; unset when no USD price is known.
1534
+ *
1535
+ * @generated from field: optional double amount_usd = 4;
1536
+ */
1537
+ amountUsd?: number;
1538
+ /**
1539
+ * Absolute amount of the requested token traded, decimal string in token
1540
+ * units (decimals applied). Empty when the token's decimals are unknown.
1541
+ *
1542
+ * @generated from field: string token_amount = 5;
1543
+ */
1544
+ tokenAmount: string;
1545
+ /**
1546
+ * USD price of the requested token at trade time; unset when unknown.
1547
+ *
1548
+ * @generated from field: optional double price_usd = 6;
1549
+ */
1550
+ priceUsd?: number;
1551
+ /**
1552
+ * @generated from field: google.protobuf.Timestamp timestamp = 7;
1553
+ */
1554
+ timestamp?: Timestamp;
1555
+ constructor(data?: PartialMessage<TokenTrade>);
1556
+ static readonly runtime: typeof proto3;
1557
+ static readonly typeName = "data.v2.TokenTrade";
1558
+ static readonly fields: FieldList;
1559
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenTrade;
1560
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenTrade;
1561
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenTrade;
1562
+ static equals(a: TokenTrade | PlainMessage<TokenTrade> | undefined, b: TokenTrade | PlainMessage<TokenTrade> | undefined): boolean;
1563
+ }
1422
1564
  /**
1423
1565
  * @generated from message data.v2.NftImage
1424
1566
  */
@@ -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
  /**
@@ -397,6 +397,34 @@ proto3.util.setEnumType(LaunchesOrderBy, "data.v2.LaunchesOrderBy", [
397
397
  { no: 1, name: "LAUNCHES_ORDER_BY_LAUNCHED_AT" },
398
398
  { no: 2, name: "LAUNCHES_ORDER_BY_VOLUME_1D" },
399
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
+ ]);
400
428
  /**
401
429
  * Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
402
430
  * All fields are populated from Clickhouse aggregations.
@@ -1597,6 +1625,105 @@ Launch.fields = proto3.util.newFieldList(() => [
1597
1625
  { no: 8, name: "auction_fill_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1598
1626
  { no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1599
1627
  { no: 10, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1628
+ { no: 11, name: "bonding_curve", kind: "message", T: BondingCurveInfo, opt: true },
1629
+ ]);
1630
+ /**
1631
+ * Bonding-curve lifecycle overlay for launches attributed to the Uniswap
1632
+ * bonding-curve hook. Amounts are raw base-unit decimal strings. Curve
1633
+ * progress is client-derivable: price starts at
1634
+ * sqrtPriceAtTick(curve_tick_upper) (token is currency1) and graduates at
1635
+ * graduation_sqrt_price_x96. The strategy and hook events populating this
1636
+ * overlay arrive independently, so every field is optional: a field is
1637
+ * unset until its event has been ingested (0 is a real tick value, never
1638
+ * a placeholder).
1639
+ *
1640
+ * @generated from message data.v2.BondingCurveInfo
1641
+ */
1642
+ export class BondingCurveInfo extends Message {
1643
+ constructor(data) {
1644
+ super();
1645
+ proto3.util.initPartial(data, this);
1646
+ }
1647
+ static fromBinary(bytes, options) {
1648
+ return new BondingCurveInfo().fromBinary(bytes, options);
1649
+ }
1650
+ static fromJson(jsonValue, options) {
1651
+ return new BondingCurveInfo().fromJson(jsonValue, options);
1652
+ }
1653
+ static fromJsonString(jsonString, options) {
1654
+ return new BondingCurveInfo().fromJsonString(jsonString, options);
1655
+ }
1656
+ static equals(a, b) {
1657
+ return proto3.util.equals(BondingCurveInfo, a, b);
1658
+ }
1659
+ }
1660
+ BondingCurveInfo.runtime = proto3;
1661
+ BondingCurveInfo.typeName = "data.v2.BondingCurveInfo";
1662
+ BondingCurveInfo.fields = proto3.util.newFieldList(() => [
1663
+ { no: 1, name: "graduation_sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1664
+ { no: 2, name: "curve_tick_lower", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1665
+ { no: 3, name: "curve_tick_upper", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1666
+ { no: 4, name: "curve_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1667
+ { no: 5, name: "reserve_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1668
+ { no: 7, name: "graduated_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1669
+ { no: 8, name: "curve_progress_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1670
+ { no: 9, name: "graduated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1671
+ ]);
1672
+ /**
1673
+ * One swap involving the requested token, returned by GetTokenTrades.
1674
+ *
1675
+ * @generated from message data.v2.TokenTrade
1676
+ */
1677
+ export class TokenTrade extends Message {
1678
+ constructor(data) {
1679
+ super();
1680
+ /**
1681
+ * @generated from field: string tx_hash = 1;
1682
+ */
1683
+ this.txHash = "";
1684
+ /**
1685
+ * @generated from field: data.v2.TradeSide side = 2;
1686
+ */
1687
+ this.side = TradeSide.UNSPECIFIED;
1688
+ /**
1689
+ * The transaction's from-address (the EOA that signed it), not the router
1690
+ * contract that forwarded the swap to the pool.
1691
+ *
1692
+ * @generated from field: string wallet = 3;
1693
+ */
1694
+ this.wallet = "";
1695
+ /**
1696
+ * Absolute amount of the requested token traded, decimal string in token
1697
+ * units (decimals applied). Empty when the token's decimals are unknown.
1698
+ *
1699
+ * @generated from field: string token_amount = 5;
1700
+ */
1701
+ this.tokenAmount = "";
1702
+ proto3.util.initPartial(data, this);
1703
+ }
1704
+ static fromBinary(bytes, options) {
1705
+ return new TokenTrade().fromBinary(bytes, options);
1706
+ }
1707
+ static fromJson(jsonValue, options) {
1708
+ return new TokenTrade().fromJson(jsonValue, options);
1709
+ }
1710
+ static fromJsonString(jsonString, options) {
1711
+ return new TokenTrade().fromJsonString(jsonString, options);
1712
+ }
1713
+ static equals(a, b) {
1714
+ return proto3.util.equals(TokenTrade, a, b);
1715
+ }
1716
+ }
1717
+ TokenTrade.runtime = proto3;
1718
+ TokenTrade.typeName = "data.v2.TokenTrade";
1719
+ TokenTrade.fields = proto3.util.newFieldList(() => [
1720
+ { no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1721
+ { no: 2, name: "side", kind: "enum", T: proto3.getEnumType(TradeSide) },
1722
+ { no: 3, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1723
+ { no: 4, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1724
+ { no: 5, name: "token_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1725
+ { no: 6, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1726
+ { no: 7, name: "timestamp", kind: "message", T: Timestamp },
1600
1727
  ]);
1601
1728
  /**
1602
1729
  * @generated from message data.v2.NftImage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.138",
3
+ "version": "0.0.141",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },