@uniswap/client-data-api 0.0.87 → 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.
@@ -131,23 +131,6 @@ export declare enum ChartPeriod {
131
131
  */
132
132
  MAX = 6
133
133
  }
134
- /**
135
- * @generated from enum data.v1.Issuer
136
- */
137
- export declare enum Issuer {
138
- /**
139
- * @generated from enum value: ISSUER_UNSPECIFIED = 0;
140
- */
141
- UNSPECIFIED = 0,
142
- /**
143
- * @generated from enum value: ISSUER_ONDO = 1;
144
- */
145
- ONDO = 1,
146
- /**
147
- * @generated from enum value: ISSUER_XSTOCK = 2;
148
- */
149
- XSTOCK = 2
150
- }
151
134
  /**
152
135
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
153
136
  */
@@ -1825,6 +1808,12 @@ export declare class BalanceComponent extends Message<BalanceComponent> {
1825
1808
  * @generated from message data.v1.ListRwasRequest
1826
1809
  */
1827
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[];
1828
1817
  constructor(data?: PartialMessage<ListRwasRequest>);
1829
1818
  static readonly runtime: typeof proto3;
1830
1819
  static readonly typeName = "data.v1.ListRwasRequest";
@@ -1860,13 +1849,13 @@ export declare class Rwa extends Message<Rwa> {
1860
1849
  */
1861
1850
  symbol: string;
1862
1851
  /**
1863
- * @generated from field: string icon = 2;
1852
+ * @generated from field: string logo_url = 2;
1864
1853
  */
1865
- icon: string;
1854
+ logoUrl: string;
1866
1855
  /**
1867
- * @generated from field: repeated data.v1.RwaToken tokens = 3;
1856
+ * @generated from field: repeated data.v1.IssuerToken issuer_tokens = 3;
1868
1857
  */
1869
- tokens: RwaToken[];
1858
+ issuerTokens: IssuerToken[];
1870
1859
  constructor(data?: PartialMessage<Rwa>);
1871
1860
  static readonly runtime: typeof proto3;
1872
1861
  static readonly typeName = "data.v1.Rwa";
@@ -1877,9 +1866,9 @@ export declare class Rwa extends Message<Rwa> {
1877
1866
  static equals(a: Rwa | PlainMessage<Rwa> | undefined, b: Rwa | PlainMessage<Rwa> | undefined): boolean;
1878
1867
  }
1879
1868
  /**
1880
- * @generated from message data.v1.RwaToken
1869
+ * @generated from message data.v1.IssuerToken
1881
1870
  */
1882
- export declare class RwaToken extends Message<RwaToken> {
1871
+ export declare class IssuerToken extends Message<IssuerToken> {
1883
1872
  /**
1884
1873
  * @generated from field: uint32 chain_id = 1;
1885
1874
  */
@@ -1889,15 +1878,15 @@ export declare class RwaToken extends Message<RwaToken> {
1889
1878
  */
1890
1879
  address: string;
1891
1880
  /**
1892
- * @generated from field: data.v1.Issuer issuer = 3;
1881
+ * @generated from field: string issuer = 3;
1893
1882
  */
1894
- issuer: Issuer;
1895
- constructor(data?: PartialMessage<RwaToken>);
1883
+ issuer: string;
1884
+ constructor(data?: PartialMessage<IssuerToken>);
1896
1885
  static readonly runtime: typeof proto3;
1897
- static readonly typeName = "data.v1.RwaToken";
1886
+ static readonly typeName = "data.v1.IssuerToken";
1898
1887
  static readonly fields: FieldList;
1899
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RwaToken;
1900
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RwaToken;
1901
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaToken;
1902
- 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;
1903
1892
  }
@@ -180,30 +180,6 @@ proto3.util.setEnumType(ChartPeriod, "data.v1.ChartPeriod", [
180
180
  { no: 5, name: "CHART_PERIOD_YEAR" },
181
181
  { no: 6, name: "CHART_PERIOD_MAX" },
182
182
  ]);
183
- /**
184
- * @generated from enum data.v1.Issuer
185
- */
186
- export var Issuer;
187
- (function (Issuer) {
188
- /**
189
- * @generated from enum value: ISSUER_UNSPECIFIED = 0;
190
- */
191
- Issuer[Issuer["UNSPECIFIED"] = 0] = "UNSPECIFIED";
192
- /**
193
- * @generated from enum value: ISSUER_ONDO = 1;
194
- */
195
- Issuer[Issuer["ONDO"] = 1] = "ONDO";
196
- /**
197
- * @generated from enum value: ISSUER_XSTOCK = 2;
198
- */
199
- Issuer[Issuer["XSTOCK"] = 2] = "XSTOCK";
200
- })(Issuer || (Issuer = {}));
201
- // Retrieve enum metadata with: proto3.getEnumType(Issuer)
202
- proto3.util.setEnumType(Issuer, "data.v1.Issuer", [
203
- { no: 0, name: "ISSUER_UNSPECIFIED" },
204
- { no: 1, name: "ISSUER_ONDO" },
205
- { no: 2, name: "ISSUER_XSTOCK" },
206
- ]);
207
183
  /**
208
184
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
209
185
  */
@@ -2455,6 +2431,12 @@ BalanceComponent.fields = proto3.util.newFieldList(() => [
2455
2431
  export class ListRwasRequest extends Message {
2456
2432
  constructor(data) {
2457
2433
  super();
2434
+ /**
2435
+ * Required, non-empty.
2436
+ *
2437
+ * @generated from field: repeated uint32 chain_ids = 1;
2438
+ */
2439
+ this.chainIds = [];
2458
2440
  proto3.util.initPartial(data, this);
2459
2441
  }
2460
2442
  static fromBinary(bytes, options) {
@@ -2472,7 +2454,9 @@ export class ListRwasRequest extends Message {
2472
2454
  }
2473
2455
  ListRwasRequest.runtime = proto3;
2474
2456
  ListRwasRequest.typeName = "data.v1.ListRwasRequest";
2475
- 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
+ ]);
2476
2460
  /**
2477
2461
  * @generated from message data.v1.ListRwasResponse
2478
2462
  */
@@ -2514,13 +2498,13 @@ export class Rwa extends Message {
2514
2498
  */
2515
2499
  this.symbol = "";
2516
2500
  /**
2517
- * @generated from field: string icon = 2;
2501
+ * @generated from field: string logo_url = 2;
2518
2502
  */
2519
- this.icon = "";
2503
+ this.logoUrl = "";
2520
2504
  /**
2521
- * @generated from field: repeated data.v1.RwaToken tokens = 3;
2505
+ * @generated from field: repeated data.v1.IssuerToken issuer_tokens = 3;
2522
2506
  */
2523
- this.tokens = [];
2507
+ this.issuerTokens = [];
2524
2508
  proto3.util.initPartial(data, this);
2525
2509
  }
2526
2510
  static fromBinary(bytes, options) {
@@ -2540,13 +2524,13 @@ Rwa.runtime = proto3;
2540
2524
  Rwa.typeName = "data.v1.Rwa";
2541
2525
  Rwa.fields = proto3.util.newFieldList(() => [
2542
2526
  { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2543
- { no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2544
- { 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 },
2545
2529
  ]);
2546
2530
  /**
2547
- * @generated from message data.v1.RwaToken
2531
+ * @generated from message data.v1.IssuerToken
2548
2532
  */
2549
- export class RwaToken extends Message {
2533
+ export class IssuerToken extends Message {
2550
2534
  constructor(data) {
2551
2535
  super();
2552
2536
  /**
@@ -2558,28 +2542,28 @@ export class RwaToken extends Message {
2558
2542
  */
2559
2543
  this.address = "";
2560
2544
  /**
2561
- * @generated from field: data.v1.Issuer issuer = 3;
2545
+ * @generated from field: string issuer = 3;
2562
2546
  */
2563
- this.issuer = Issuer.UNSPECIFIED;
2547
+ this.issuer = "";
2564
2548
  proto3.util.initPartial(data, this);
2565
2549
  }
2566
2550
  static fromBinary(bytes, options) {
2567
- return new RwaToken().fromBinary(bytes, options);
2551
+ return new IssuerToken().fromBinary(bytes, options);
2568
2552
  }
2569
2553
  static fromJson(jsonValue, options) {
2570
- return new RwaToken().fromJson(jsonValue, options);
2554
+ return new IssuerToken().fromJson(jsonValue, options);
2571
2555
  }
2572
2556
  static fromJsonString(jsonString, options) {
2573
- return new RwaToken().fromJsonString(jsonString, options);
2557
+ return new IssuerToken().fromJsonString(jsonString, options);
2574
2558
  }
2575
2559
  static equals(a, b) {
2576
- return proto3.util.equals(RwaToken, a, b);
2560
+ return proto3.util.equals(IssuerToken, a, b);
2577
2561
  }
2578
2562
  }
2579
- RwaToken.runtime = proto3;
2580
- RwaToken.typeName = "data.v1.RwaToken";
2581
- RwaToken.fields = proto3.util.newFieldList(() => [
2563
+ IssuerToken.runtime = proto3;
2564
+ IssuerToken.typeName = "data.v1.IssuerToken";
2565
+ IssuerToken.fields = proto3.util.newFieldList(() => [
2582
2566
  { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2583
2567
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2584
- { no: 3, name: "issuer", kind: "enum", T: proto3.getEnumType(Issuer) },
2568
+ { no: 3, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2585
2569
  ]);
@@ -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.87",
3
+ "version": "0.0.89",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },