@sonarwatch/portfolio-core 0.16.70 → 0.16.71
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 +11 -0
- package/package.json +1 -1
- package/src/Portfolio.d.ts +5 -7
- package/src/Portfolio.js.map +1 -1
- package/src/TokenYield.d.ts +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.16.71](https://github.com/sonarwatch/portfolio/compare/core-0.16.70...core-0.16.71) (2025-09-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **plugins:** remove TokenYieldSupport ([f4771a1](https://github.com/sonarwatch/portfolio/commit/f4771a1727f22965f433b2adbf8d55336d362f13))
|
|
11
|
+
* **plugins:** rename to assetsYield ([58310ec](https://github.com/sonarwatch/portfolio/commit/58310eca6206504558608a9d93b611a696a28adb))
|
|
12
|
+
* **plugins:** yields in multiple element, for native staking and drift mm ([772ae0d](https://github.com/sonarwatch/portfolio/commit/772ae0dbf0d9c139d7c3bc6726b185022780d4c0))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
5
16
|
## [0.16.70](https://github.com/sonarwatch/portfolio/compare/core-0.16.69...core-0.16.70) (2025-09-24)
|
|
6
17
|
|
|
7
18
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -92,18 +92,12 @@ export type PortfolioAssetTokenData = {
|
|
|
92
92
|
price: UsdValue;
|
|
93
93
|
yields?: Yield[];
|
|
94
94
|
};
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated will soon be replaced by PortfolioAssetTokenDataSupport (search YIELD_COMPAT)
|
|
97
|
-
*/
|
|
98
|
-
export type PortfolioAssetTokenDataSupport = PortfolioAssetTokenData & {
|
|
99
|
-
yield?: Yield;
|
|
100
|
-
};
|
|
101
95
|
/**
|
|
102
96
|
* Represents a token portfolio asset.
|
|
103
97
|
*/
|
|
104
98
|
export type PortfolioAssetToken = PortfolioAssetCommon & {
|
|
105
99
|
type: 'token';
|
|
106
|
-
data:
|
|
100
|
+
data: PortfolioAssetTokenData;
|
|
107
101
|
};
|
|
108
102
|
/**
|
|
109
103
|
* Represents the data of a collectible portfolio asset.
|
|
@@ -180,6 +174,10 @@ export type PortfolioElementCommon = {
|
|
|
180
174
|
*/
|
|
181
175
|
export type PortfolioElementMultipleData = {
|
|
182
176
|
assets: PortfolioAsset[];
|
|
177
|
+
/**
|
|
178
|
+
* The yields generated by the assets.
|
|
179
|
+
*/
|
|
180
|
+
assetsYields?: Yield[][];
|
|
183
181
|
ref?: string;
|
|
184
182
|
sourceRefs?: SourceRef[];
|
|
185
183
|
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":";;;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;
|
|
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;AAyPX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
package/src/TokenYield.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { NetworkIdType } from './Network';
|
|
2
2
|
import { Yield } from './Yield';
|
|
3
3
|
export declare const tokenYieldTtl: number;
|
|
4
|
+
/**
|
|
5
|
+
* Represents the yield data for yield bearing assets.
|
|
6
|
+
*/
|
|
4
7
|
export type TokenYield = {
|
|
5
8
|
address: string;
|
|
6
9
|
networkId: NetworkIdType;
|
|
7
10
|
yields: Yield[];
|
|
8
11
|
timestamp: number;
|
|
9
12
|
};
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated will soon be replaced by TokenYield (search YIELD_COMPAT)
|
|
12
|
-
*/
|
|
13
|
-
export type TokenYieldSupport = TokenYield & {
|
|
14
|
-
yield: Yield;
|
|
15
|
-
};
|