@uniswap/client-data-api 0.0.88 → 0.0.89

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.
@@ -1808,6 +1808,12 @@ export declare class BalanceComponent extends Message<BalanceComponent> {
1808
1808
  * @generated from message data.v1.ListRwasRequest
1809
1809
  */
1810
1810
  export declare class ListRwasRequest extends Message<ListRwasRequest> {
1811
+ /**
1812
+ * Required, non-empty.
1813
+ *
1814
+ * @generated from field: repeated uint32 chain_ids = 1;
1815
+ */
1816
+ chainIds: number[];
1811
1817
  constructor(data?: PartialMessage<ListRwasRequest>);
1812
1818
  static readonly runtime: typeof proto3;
1813
1819
  static readonly typeName = "data.v1.ListRwasRequest";
@@ -1843,13 +1849,13 @@ export declare class Rwa extends Message<Rwa> {
1843
1849
  */
1844
1850
  symbol: string;
1845
1851
  /**
1846
- * @generated from field: string icon = 2;
1852
+ * @generated from field: string logo_url = 2;
1847
1853
  */
1848
- icon: string;
1854
+ logoUrl: string;
1849
1855
  /**
1850
- * @generated from field: repeated data.v1.RwaToken tokens = 3;
1856
+ * @generated from field: repeated data.v1.IssuerToken issuer_tokens = 3;
1851
1857
  */
1852
- tokens: RwaToken[];
1858
+ issuerTokens: IssuerToken[];
1853
1859
  constructor(data?: PartialMessage<Rwa>);
1854
1860
  static readonly runtime: typeof proto3;
1855
1861
  static readonly typeName = "data.v1.Rwa";
@@ -1860,9 +1866,9 @@ export declare class Rwa extends Message<Rwa> {
1860
1866
  static equals(a: Rwa | PlainMessage<Rwa> | undefined, b: Rwa | PlainMessage<Rwa> | undefined): boolean;
1861
1867
  }
1862
1868
  /**
1863
- * @generated from message data.v1.RwaToken
1869
+ * @generated from message data.v1.IssuerToken
1864
1870
  */
1865
- export declare class RwaToken extends Message<RwaToken> {
1871
+ export declare class IssuerToken extends Message<IssuerToken> {
1866
1872
  /**
1867
1873
  * @generated from field: uint32 chain_id = 1;
1868
1874
  */
@@ -1875,12 +1881,12 @@ export declare class RwaToken extends Message<RwaToken> {
1875
1881
  * @generated from field: string issuer = 3;
1876
1882
  */
1877
1883
  issuer: string;
1878
- constructor(data?: PartialMessage<RwaToken>);
1884
+ constructor(data?: PartialMessage<IssuerToken>);
1879
1885
  static readonly runtime: typeof proto3;
1880
- static readonly typeName = "data.v1.RwaToken";
1886
+ static readonly typeName = "data.v1.IssuerToken";
1881
1887
  static readonly fields: FieldList;
1882
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RwaToken;
1883
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RwaToken;
1884
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaToken;
1885
- static equals(a: RwaToken | PlainMessage<RwaToken> | undefined, b: RwaToken | PlainMessage<RwaToken> | undefined): boolean;
1888
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssuerToken;
1889
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssuerToken;
1890
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssuerToken;
1891
+ static equals(a: IssuerToken | PlainMessage<IssuerToken> | undefined, b: IssuerToken | PlainMessage<IssuerToken> | undefined): boolean;
1886
1892
  }
@@ -2431,6 +2431,12 @@ BalanceComponent.fields = proto3.util.newFieldList(() => [
2431
2431
  export class ListRwasRequest extends Message {
2432
2432
  constructor(data) {
2433
2433
  super();
2434
+ /**
2435
+ * Required, non-empty.
2436
+ *
2437
+ * @generated from field: repeated uint32 chain_ids = 1;
2438
+ */
2439
+ this.chainIds = [];
2434
2440
  proto3.util.initPartial(data, this);
2435
2441
  }
2436
2442
  static fromBinary(bytes, options) {
@@ -2448,7 +2454,9 @@ export class ListRwasRequest extends Message {
2448
2454
  }
2449
2455
  ListRwasRequest.runtime = proto3;
2450
2456
  ListRwasRequest.typeName = "data.v1.ListRwasRequest";
2451
- ListRwasRequest.fields = proto3.util.newFieldList(() => []);
2457
+ ListRwasRequest.fields = proto3.util.newFieldList(() => [
2458
+ { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
2459
+ ]);
2452
2460
  /**
2453
2461
  * @generated from message data.v1.ListRwasResponse
2454
2462
  */
@@ -2490,13 +2498,13 @@ export class Rwa extends Message {
2490
2498
  */
2491
2499
  this.symbol = "";
2492
2500
  /**
2493
- * @generated from field: string icon = 2;
2501
+ * @generated from field: string logo_url = 2;
2494
2502
  */
2495
- this.icon = "";
2503
+ this.logoUrl = "";
2496
2504
  /**
2497
- * @generated from field: repeated data.v1.RwaToken tokens = 3;
2505
+ * @generated from field: repeated data.v1.IssuerToken issuer_tokens = 3;
2498
2506
  */
2499
- this.tokens = [];
2507
+ this.issuerTokens = [];
2500
2508
  proto3.util.initPartial(data, this);
2501
2509
  }
2502
2510
  static fromBinary(bytes, options) {
@@ -2516,13 +2524,13 @@ Rwa.runtime = proto3;
2516
2524
  Rwa.typeName = "data.v1.Rwa";
2517
2525
  Rwa.fields = proto3.util.newFieldList(() => [
2518
2526
  { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2519
- { no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2520
- { no: 3, name: "tokens", kind: "message", T: RwaToken, repeated: true },
2527
+ { no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2528
+ { no: 3, name: "issuer_tokens", kind: "message", T: IssuerToken, repeated: true },
2521
2529
  ]);
2522
2530
  /**
2523
- * @generated from message data.v1.RwaToken
2531
+ * @generated from message data.v1.IssuerToken
2524
2532
  */
2525
- export class RwaToken extends Message {
2533
+ export class IssuerToken extends Message {
2526
2534
  constructor(data) {
2527
2535
  super();
2528
2536
  /**
@@ -2540,21 +2548,21 @@ export class RwaToken extends Message {
2540
2548
  proto3.util.initPartial(data, this);
2541
2549
  }
2542
2550
  static fromBinary(bytes, options) {
2543
- return new RwaToken().fromBinary(bytes, options);
2551
+ return new IssuerToken().fromBinary(bytes, options);
2544
2552
  }
2545
2553
  static fromJson(jsonValue, options) {
2546
- return new RwaToken().fromJson(jsonValue, options);
2554
+ return new IssuerToken().fromJson(jsonValue, options);
2547
2555
  }
2548
2556
  static fromJsonString(jsonString, options) {
2549
- return new RwaToken().fromJsonString(jsonString, options);
2557
+ return new IssuerToken().fromJsonString(jsonString, options);
2550
2558
  }
2551
2559
  static equals(a, b) {
2552
- return proto3.util.equals(RwaToken, a, b);
2560
+ return proto3.util.equals(IssuerToken, a, b);
2553
2561
  }
2554
2562
  }
2555
- RwaToken.runtime = proto3;
2556
- RwaToken.typeName = "data.v1.RwaToken";
2557
- RwaToken.fields = proto3.util.newFieldList(() => [
2563
+ IssuerToken.runtime = proto3;
2564
+ IssuerToken.typeName = "data.v1.IssuerToken";
2565
+ IssuerToken.fields = proto3.util.newFieldList(() => [
2558
2566
  { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2559
2567
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2560
2568
  { no: 3, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -187,14 +187,20 @@ export declare class EarnPosition extends Message<EarnPosition> {
187
187
  status: EarnPositionStatus;
188
188
  /**
189
189
  * Lifetime PnL in underlying-asset units (signed BigInt as string):
190
- * current_assets_raw + Σ(withdrawals) − Σ(deposits). Transfers in/out
191
- * are ignored. Populated by GetEarnPosition only.
190
+ * current_assets_raw + Σ(withdrawals) − Σ(deposits) across the wallet's
191
+ * entire history with this vault. Survives full withdraw + redeposit
192
+ * cycles, unlike Morpho's holding-period pnl. Transfers in/out are
193
+ * ignored (Option 1 — see lifetime earnings design doc). Populated by
194
+ * GetEarnPosition; left empty by ListEarnPositions to keep list traffic
195
+ * cheap.
192
196
  *
193
197
  * @generated from field: optional string lifetime_pnl_raw = 6;
194
198
  */
195
199
  lifetimePnlRaw?: string;
196
200
  /**
197
- * lifetime_pnl_raw valued at the underlying's current USD price.
201
+ * USD valuation of lifetime_pnl_raw, priced at the underlying's current
202
+ * USD price (matches Morpho's pnlUsd semantics). Undefined when the
203
+ * underlying has no usable USD price or the position is empty.
198
204
  *
199
205
  * @generated from field: optional double lifetime_pnl_usd = 7;
200
206
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },