@uniswap/client-data-api 0.0.140 → 0.0.142

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 { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
2
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
5
5
  */
@@ -169,6 +169,19 @@ export declare const getPool: {
169
169
  readonly typeName: "data.v1.DataApiService";
170
170
  };
171
171
  };
172
+ /**
173
+ * @generated from rpc data.v1.DataApiService.GetProtocolFees
174
+ */
175
+ export declare const getProtocolFees: {
176
+ readonly localName: "getProtocolFees";
177
+ readonly name: "GetProtocolFees";
178
+ readonly kind: MethodKind.Unary;
179
+ readonly I: typeof GetProtocolFeesRequest;
180
+ readonly O: typeof GetProtocolFeesResponse;
181
+ readonly service: {
182
+ readonly typeName: "data.v1.DataApiService";
183
+ };
184
+ };
172
185
  /**
173
186
  * @generated from rpc data.v1.DataApiService.GetPosition
174
187
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
6
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
9
9
  */
@@ -173,6 +173,19 @@ export const getPool = {
173
173
  typeName: "data.v1.DataApiService"
174
174
  }
175
175
  };
176
+ /**
177
+ * @generated from rpc data.v1.DataApiService.GetProtocolFees
178
+ */
179
+ export const getProtocolFees = {
180
+ localName: "getProtocolFees",
181
+ name: "GetProtocolFees",
182
+ kind: MethodKind.Unary,
183
+ I: GetProtocolFeesRequest,
184
+ O: GetProtocolFeesResponse,
185
+ service: {
186
+ typeName: "data.v1.DataApiService"
187
+ }
188
+ };
176
189
  /**
177
190
  * @generated from rpc data.v1.DataApiService.GetPosition
178
191
  */
@@ -1014,6 +1014,24 @@ export declare class AuctionWithStats extends Message<AuctionWithStats> {
1014
1014
  * @deprecated
1015
1015
  */
1016
1016
  totalBidVolume: string;
1017
+ /**
1018
+ * Distinct wallets that have placed bids in the auction, all-time
1019
+ * (includes exited/withdrawn bids — historical participation).
1020
+ * Optional for explicit presence: absent when the stats aggregate failed
1021
+ * (degraded response), so clients can tell "unavailable" from a real 0.
1022
+ *
1023
+ * @generated from field: optional int32 unique_bidder_count = 3;
1024
+ */
1025
+ uniqueBidderCount?: number;
1026
+ /**
1027
+ * USD value of currency committed to the auction in the trailing hour
1028
+ * (includes exited bids, matching total_bid_volume semantics).
1029
+ * Optional for explicit presence: absent when the stats aggregate failed
1030
+ * (degraded response), so clients can tell "unavailable" from a real 0.
1031
+ *
1032
+ * @generated from field: optional double bid_volume_usd_last_1h = 4;
1033
+ */
1034
+ bidVolumeUsdLast1h?: number;
1017
1035
  constructor(data?: PartialMessage<AuctionWithStats>);
1018
1036
  static readonly runtime: typeof proto3;
1019
1037
  static readonly typeName = "data.v1.AuctionWithStats";
@@ -1276,6 +1276,8 @@ AuctionWithStats.typeName = "data.v1.AuctionWithStats";
1276
1276
  AuctionWithStats.fields = proto3.util.newFieldList(() => [
1277
1277
  { no: 1, name: "auction", kind: "message", T: Auction },
1278
1278
  { no: 2, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1279
+ { no: 3, name: "unique_bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1280
+ { no: 4, name: "bid_volume_usd_last_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1279
1281
  ]);
1280
1282
  /**
1281
1283
  * Response containing top auctions ordered by total bid volume.
@@ -1400,8 +1400,10 @@ export declare class Launch extends Message<Launch> {
1400
1400
  */
1401
1401
  stats?: LaunchStats;
1402
1402
  /**
1403
- * CCA launches only: true once the auction migrated into its pool
1404
- * (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.
1405
1407
  *
1406
1408
  * @generated from field: optional bool graduated = 7;
1407
1409
  */
@@ -1431,6 +1433,13 @@ export declare class Launch extends Message<Launch> {
1431
1433
  * @generated from field: optional int32 bidder_count = 10;
1432
1434
  */
1433
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;
1434
1443
  constructor(data?: PartialMessage<Launch>);
1435
1444
  static readonly runtime: typeof proto3;
1436
1445
  static readonly typeName = "data.v2.Launch";
@@ -1440,6 +1449,65 @@ export declare class Launch extends Message<Launch> {
1440
1449
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
1441
1450
  static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
1442
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
+ }
1443
1511
  /**
1444
1512
  * One swap involving the requested token, returned by GetTokenTrades.
1445
1513
  *
@@ -1625,6 +1625,49 @@ Launch.fields = proto3.util.newFieldList(() => [
1625
1625
  { no: 8, name: "auction_fill_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1626
1626
  { no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1627
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 },
1628
1671
  ]);
1629
1672
  /**
1630
1673
  * One swap involving the requested token, returned by GetTokenTrades.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.140",
3
+ "version": "0.0.142",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },