@sonarwatch/portfolio-core 0.14.139 → 0.14.141
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 +8 -0
- package/package.json +1 -1
- package/src/Portfolio.d.ts +6 -6
- package/src/Portfolio.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.14.141](https://github.com/sonarwatch/portfolio/compare/core-0.14.140...core-0.14.141) (2025-02-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.14.140](https://github.com/sonarwatch/portfolio/compare/core-0.14.139...core-0.14.140) (2025-02-27)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [0.14.139](https://github.com/sonarwatch/portfolio/compare/core-0.14.138...core-0.14.139) (2025-02-27)
|
|
6
14
|
|
|
7
15
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type PortfolioAssetTypeType = (typeof PortfolioAssetType)[keyof typeof Po
|
|
|
15
15
|
/**
|
|
16
16
|
* Represents the label of a portfolio element.
|
|
17
17
|
*/
|
|
18
|
-
export type PortfolioElementLabel = 'Wallet' | 'Staked' | 'LiquidityPool' | 'Farming' | 'Vault' | 'Lending' | 'Vesting' | 'Deposit' | 'Rewards' | 'Airdrop' | 'Margin' | 'LimitOrder' | 'DCA' | 'Leverage';
|
|
18
|
+
export type PortfolioElementLabel = 'Wallet' | 'Staked' | 'LiquidityPool' | 'Farming' | 'Vault' | 'Lending' | 'Vesting' | 'Deposit' | 'Rewards' | 'Airdrop' | 'Margin' | 'LimitOrder' | 'DCA' | 'SmartDCA' | 'Leverage';
|
|
19
19
|
export type PortfolioAssetAttributes = {
|
|
20
20
|
/**
|
|
21
21
|
* Represents the date (in ms) when the asset will be unlocked.
|
|
@@ -98,10 +98,6 @@ export type PortfolioAssetCollectibleData = {
|
|
|
98
98
|
address: string;
|
|
99
99
|
amount: number;
|
|
100
100
|
price: UsdValue;
|
|
101
|
-
/**
|
|
102
|
-
* @deprecated
|
|
103
|
-
* This params has been deprecated. Use name from PortfolioAssetCommon instead.
|
|
104
|
-
*/
|
|
105
101
|
name?: string;
|
|
106
102
|
description?: string;
|
|
107
103
|
imageUri?: string;
|
|
@@ -110,7 +106,7 @@ export type PortfolioAssetCollectibleData = {
|
|
|
110
106
|
collection?: CollectibleCollection;
|
|
111
107
|
};
|
|
112
108
|
export type CollectibleCollection = {
|
|
113
|
-
id
|
|
109
|
+
id?: string;
|
|
114
110
|
floorPrice: UsdValue;
|
|
115
111
|
name?: string;
|
|
116
112
|
};
|
|
@@ -228,6 +224,7 @@ export type PortfolioElementTradeData = {
|
|
|
228
224
|
* Expire at timestamp in ms
|
|
229
225
|
*/
|
|
230
226
|
expireAt?: number;
|
|
227
|
+
contract?: string;
|
|
231
228
|
ref?: string;
|
|
232
229
|
sourceRefs?: SourceRef[];
|
|
233
230
|
link?: string;
|
|
@@ -250,6 +247,7 @@ export type PortfolioLiquidity = {
|
|
|
250
247
|
value: UsdValue;
|
|
251
248
|
yields: Yield[];
|
|
252
249
|
name?: string;
|
|
250
|
+
contract?: string;
|
|
253
251
|
ref?: string;
|
|
254
252
|
sourceRefs?: SourceRef[];
|
|
255
253
|
link?: string;
|
|
@@ -323,6 +321,7 @@ export type PortfolioElementLeverageData = {
|
|
|
323
321
|
* Total value (total equity)
|
|
324
322
|
*/
|
|
325
323
|
value: UsdValue;
|
|
324
|
+
contract?: string;
|
|
326
325
|
ref?: string;
|
|
327
326
|
sourceRefs?: SourceRef[];
|
|
328
327
|
link?: string;
|
|
@@ -400,6 +399,7 @@ export type PortfolioElementBorrowLendData = {
|
|
|
400
399
|
* undefined means the loan has no expiration.
|
|
401
400
|
*/
|
|
402
401
|
expireOn?: number;
|
|
402
|
+
contract?: string;
|
|
403
403
|
ref?: string;
|
|
404
404
|
sourceRefs?: SourceRef[];
|
|
405
405
|
link?: string;
|
package/src/Portfolio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AA6CX;;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;AAoQX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|