@uniswap/client-liquidity 1.4.29 → 1.4.30

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.
@@ -824,6 +824,18 @@ export declare class PoolSummary extends Message<PoolSummary> {
824
824
  * @generated from field: repeated uniswap.liquidity.v2.PoolTokenRewards token_rewards = 28;
825
825
  */
826
826
  tokenRewards: PoolTokenRewards[];
827
+ /**
828
+ * What an LP earns on this pool all-in: the fee APR above plus every reward
829
+ * token's boost — `apr` + the sum of token_rewards[].boosted_apr. Percent.
830
+ *
831
+ * A missing side counts as 0, so a pool with no live campaign reports its fee
832
+ * APR alone. Unset only when neither side is known: no `apr` and no
833
+ * token_rewards. A boost that sums to 0 with token_rewards present is a known
834
+ * zero, not missing.
835
+ *
836
+ * @generated from field: optional double total_apr = 29;
837
+ */
838
+ totalApr?: number;
827
839
  constructor(data?: PartialMessage<PoolSummary>);
828
840
  static readonly runtime: typeof proto3;
829
841
  static readonly typeName = "uniswap.liquidity.v2.PoolSummary";
@@ -1486,12 +1498,28 @@ export declare class Position extends Message<Position> {
1486
1498
  * reports for the same wallet.
1487
1499
  *
1488
1500
  * Empty for V2 (no campaigns), and empty when the lookup degrades — rewards
1489
- * never fail a positions read. Populated by GetWalletPositions; GetPosition
1490
- * leaves it empty for now.
1501
+ * never fail a positions read. Populated by both GetWalletPositions and
1502
+ * GetPosition.
1491
1503
  *
1492
1504
  * @generated from field: repeated uniswap.liquidity.v2.PositionReward rewards = 38;
1493
1505
  */
1494
1506
  rewards: PositionReward[];
1507
+ /**
1508
+ * What this position earns all-in: the pool's 24h fee APR plus every reward
1509
+ * token's boost — `apr_1d` + the sum of rewards[].boosted_pool_apr. Percent.
1510
+ *
1511
+ * apr_1d is the window used because it's the one data-api's own total_apr sums
1512
+ * (the pool_stats `apr` column); clients showing the 7d/30d window should add
1513
+ * the boost to that window themselves.
1514
+ *
1515
+ * A missing side counts as 0, so an uncampaigned position reports its fee APR
1516
+ * alone and a position whose pool stats haven't published reports its boost
1517
+ * alone. Unset only when neither side is known: no apr_1d and no rewards. A
1518
+ * boost that sums to 0 with rewards present is a known zero, not missing.
1519
+ *
1520
+ * @generated from field: optional double total_apr = 39;
1521
+ */
1522
+ totalApr?: number;
1495
1523
  constructor(data?: PartialMessage<Position>);
1496
1524
  static readonly runtime: typeof proto3;
1497
1525
  static readonly typeName = "uniswap.liquidity.v2.Position";
@@ -1035,6 +1035,7 @@ PoolSummary.fields = proto3.util.newFieldList(() => [
1035
1035
  { no: 26, name: "tvl_usd_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1036
1036
  { no: 27, name: "volume_usd_1d_change", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1037
1037
  { no: 28, name: "token_rewards", kind: "message", T: PoolTokenRewards, repeated: true },
1038
+ { no: 29, name: "total_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1038
1039
  ]);
1039
1040
  /**
1040
1041
  * A reward token's on-chain identity, so a client can interpret and format a
@@ -1645,8 +1646,8 @@ export class Position extends Message {
1645
1646
  * reports for the same wallet.
1646
1647
  *
1647
1648
  * Empty for V2 (no campaigns), and empty when the lookup degrades — rewards
1648
- * never fail a positions read. Populated by GetWalletPositions; GetPosition
1649
- * leaves it empty for now.
1649
+ * never fail a positions read. Populated by both GetWalletPositions and
1650
+ * GetPosition.
1650
1651
  *
1651
1652
  * @generated from field: repeated uniswap.liquidity.v2.PositionReward rewards = 38;
1652
1653
  */
@@ -1707,6 +1708,7 @@ Position.fields = proto3.util.newFieldList(() => [
1707
1708
  { no: 36, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1708
1709
  { no: 37, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1709
1710
  { no: 38, name: "rewards", kind: "message", T: PositionReward, repeated: true },
1711
+ { no: 39, name: "total_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1710
1712
  ]);
1711
1713
  /**
1712
1714
  * Keyset cursor for GetWalletPositions. position_key is the last returned
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },