@uniswap/client-liquidity 1.4.24 → 1.4.26

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.
@@ -1237,6 +1237,16 @@ export declare class GetWalletPositionsRequest extends Message<GetWalletPosition
1237
1237
  * @generated from field: optional bool ascending = 10;
1238
1238
  */
1239
1239
  ascending?: boolean;
1240
+ /**
1241
+ * Case-insensitive substring filter over each position's token symbol/name,
1242
+ * token0/token1 address, and pool address/id. Empty/absent = no filter. Token
1243
+ * identity is only matchable once pool metadata is resolved, so a search read
1244
+ * loads the wallet's whole bounded set, enriches it, filters, then pages by
1245
+ * offset (same model as a sorted read). Composes with all other filters.
1246
+ *
1247
+ * @generated from field: optional string search = 11;
1248
+ */
1249
+ search?: string;
1240
1250
  constructor(data?: PartialMessage<GetWalletPositionsRequest>);
1241
1251
  static readonly runtime: typeof proto3;
1242
1252
  static readonly typeName = "uniswap.liquidity.v2.GetWalletPositionsRequest";
@@ -1291,6 +1291,7 @@ GetWalletPositionsRequest.fields = proto3.util.newFieldList(() => [
1291
1291
  { no: 8, name: "range_statuses", kind: "enum", T: proto3.getEnumType(RangeStatus), repeated: true },
1292
1292
  { no: 9, name: "sort_by", kind: "enum", T: proto3.getEnumType(PositionSortBy), opt: true },
1293
1293
  { no: 10, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1294
+ { no: 11, name: "search", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1294
1295
  ]);
1295
1296
  /**
1296
1297
  * @generated from message uniswap.liquidity.v2.GetWalletPositionsResponse
@@ -1267,6 +1267,59 @@ export declare class Position extends Message<Position> {
1267
1267
  * @generated from field: optional string token1_price_usd = 25;
1268
1268
  */
1269
1269
  token1PriceUsd?: string;
1270
+ /**
1271
+ * @generated from field: optional string amount0 = 26;
1272
+ */
1273
+ amount0?: string;
1274
+ /**
1275
+ * @generated from field: optional string amount1 = 27;
1276
+ */
1277
+ amount1?: string;
1278
+ /**
1279
+ * @generated from field: optional double value_usd = 28;
1280
+ */
1281
+ valueUsd?: number;
1282
+ /**
1283
+ * @generated from field: optional string token0_uncollected_fees = 29;
1284
+ */
1285
+ token0UncollectedFees?: string;
1286
+ /**
1287
+ * @generated from field: optional string token1_uncollected_fees = 30;
1288
+ */
1289
+ token1UncollectedFees?: string;
1290
+ /**
1291
+ * @generated from field: optional double uncollected_fees_usd = 31;
1292
+ */
1293
+ uncollectedFeesUsd?: number;
1294
+ /**
1295
+ * @generated from field: optional double apr_1d = 32;
1296
+ */
1297
+ apr1d?: number;
1298
+ /**
1299
+ * @generated from field: optional double apr_7d = 33;
1300
+ */
1301
+ apr7d?: number;
1302
+ /**
1303
+ * @generated from field: optional double apr_30d = 34;
1304
+ */
1305
+ apr30d?: number;
1306
+ /**
1307
+ * V2 only: raw pair reserves and LP token total supply (uint256 as decimal
1308
+ * strings), so clients can derive the wallet's underlying token amounts (and
1309
+ * USD value) from lp_shares. Unset for V3/V4, which derive amounts from
1310
+ * liquidity + tick range + current_tick/sqrt_price_x96 instead.
1311
+ *
1312
+ * @generated from field: optional string reserve0 = 35;
1313
+ */
1314
+ reserve0?: string;
1315
+ /**
1316
+ * @generated from field: optional string reserve1 = 36;
1317
+ */
1318
+ reserve1?: string;
1319
+ /**
1320
+ * @generated from field: optional string total_supply = 37;
1321
+ */
1322
+ totalSupply?: string;
1270
1323
  constructor(data?: PartialMessage<Position>);
1271
1324
  static readonly runtime: typeof proto3;
1272
1325
  static readonly typeName = "uniswap.liquidity.v2.Position";
@@ -1509,6 +1509,18 @@ Position.fields = proto3.util.newFieldList(() => [
1509
1509
  { no: 23, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1510
1510
  { no: 24, name: "token0_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1511
1511
  { no: 25, name: "token1_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1512
+ { no: 26, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1513
+ { no: 27, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1514
+ { no: 28, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1515
+ { no: 29, name: "token0_uncollected_fees", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1516
+ { no: 30, name: "token1_uncollected_fees", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1517
+ { no: 31, name: "uncollected_fees_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1518
+ { no: 32, name: "apr_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1519
+ { no: 33, name: "apr_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1520
+ { no: 34, name: "apr_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1521
+ { no: 35, name: "reserve0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1522
+ { no: 36, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1523
+ { no: 37, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1512
1524
  ]);
1513
1525
  /**
1514
1526
  * 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.24",
3
+ "version": "1.4.26",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },