@sonarwatch/portfolio-core 0.16.74 → 0.16.75

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.16.75](https://github.com/sonarwatch/portfolio/compare/core-0.16.74...core-0.16.75) (2025-10-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * add optional LP token fields to PortfolioLiquidity type ([4a31ef7](https://github.com/sonarwatch/portfolio/commit/4a31ef7532a9999431243f0fe6561f3cba999550))
11
+
12
+
13
+
5
14
  ## [0.16.74](https://github.com/sonarwatch/portfolio/compare/core-0.16.73...core-0.16.74) (2025-10-08)
6
15
 
7
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-core",
3
- "version": "0.16.74",
3
+ "version": "0.16.75",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "repository": {
@@ -228,6 +228,13 @@ export type PortfolioElementTrade = PortfolioElementCommon & {
228
228
  type: 'trade';
229
229
  data: PortfolioElementTradeData;
230
230
  };
231
+ /**
232
+ * Represents the LP of a liquidity.
233
+ */
234
+ export type LiquidityLp = {
235
+ mint: string;
236
+ amount: number;
237
+ };
231
238
  /**
232
239
  * Represents a liquidity.
233
240
  */
@@ -237,6 +244,7 @@ export type PortfolioLiquidity = {
237
244
  rewardAssets: PortfolioAsset[];
238
245
  rewardAssetsValue: UsdValue;
239
246
  value: UsdValue;
247
+ lp?: LiquidityLp;
240
248
  yields: Yield[];
241
249
  name?: string;
242
250
  contract?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAsDX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AA0PX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
1
+ {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAsDX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAmQX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}