@sonarwatch/portfolio-core 0.9.6 → 0.9.9
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 +12 -0
- package/package.json +1 -1
- package/src/Portfolio.d.ts +20 -1
- package/src/Portfolio.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.9.9](https://github.com/sonarwatch/portfolio/compare/core-0.9.8...core-0.9.9) (2023-12-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.9.8](https://github.com/sonarwatch/portfolio/compare/core-0.9.7...core-0.9.8) (2023-12-11)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.9.7](https://github.com/sonarwatch/portfolio/compare/core-0.9.6...core-0.9.7) (2023-12-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [0.9.6](https://github.com/sonarwatch/portfolio/compare/core-0.9.5...core-0.9.6) (2023-12-11)
|
|
6
18
|
|
|
7
19
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -15,6 +15,25 @@ export type PortfolioAssetTypeType = (typeof PortfolioAssetType)[keyof typeof Po
|
|
|
15
15
|
* Represents the label of a portfolio element.
|
|
16
16
|
*/
|
|
17
17
|
export type PortfolioElementLabel = 'Wallet' | 'Staked' | 'LiquidityPool' | 'Farming' | 'Lending' | 'Vesting' | 'Deposit' | 'Rewards' | 'Leverage';
|
|
18
|
+
export type PortfolioAssetAttributes = {
|
|
19
|
+
/**
|
|
20
|
+
* Represents the date (in ms) when the asset will be unlocked.
|
|
21
|
+
* If current date is greater than this value, the asset is unlocked.
|
|
22
|
+
*/
|
|
23
|
+
lockedUntil?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Represents the bondingPeriod (in ms).
|
|
26
|
+
*/
|
|
27
|
+
bondingPeriod?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Represents the asset is deprecated.
|
|
30
|
+
*/
|
|
31
|
+
isDeprecated?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Represents the asset can be claimed.
|
|
34
|
+
*/
|
|
35
|
+
isClaimable?: boolean;
|
|
36
|
+
};
|
|
18
37
|
/**
|
|
19
38
|
* Represents the type of a portfolio element.
|
|
20
39
|
*/
|
|
@@ -32,7 +51,7 @@ export type PortfolioAssetCommon = {
|
|
|
32
51
|
networkId: NetworkIdType;
|
|
33
52
|
type: PortfolioAssetTypeType;
|
|
34
53
|
value: UsdValue;
|
|
35
|
-
|
|
54
|
+
attributes: PortfolioAssetAttributes;
|
|
36
55
|
};
|
|
37
56
|
/**
|
|
38
57
|
* Represents the data of a generic portfolio asset.
|
package/src/Portfolio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAKA;;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":";;;AAKA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAsCX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAC"}
|