@sonarwatch/portfolio-core 0.16.65 → 0.16.67
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 +19 -0
- package/package.json +1 -1
- package/src/Portfolio.d.ts +8 -2
- package/src/Portfolio.js.map +1 -1
- package/src/TokenYield.d.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.16.67](https://github.com/sonarwatch/portfolio/compare/core-0.16.66...core-0.16.67) (2025-09-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **plugins:** PortfolioAssetTokenData.yields as array ([8a76658](https://github.com/sonarwatch/portfolio/commit/8a76658eeb79b3fab84612abca89f79f133a0c19))
|
|
11
|
+
* **plugins:** tokenYields as array ([560da16](https://github.com/sonarwatch/portfolio/commit/560da168e722a2fa07d4e8adc4c80860af1a2612))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.16.66](https://github.com/sonarwatch/portfolio/compare/core-0.16.65...core-0.16.66) (2025-09-05)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **plugins:** add Borrow Token to sourceRef for jup lend ([a576a67](https://github.com/sonarwatch/portfolio/commit/a576a67f9e4dfb55da68683f9aadc35724eaa279))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
5
24
|
## [0.16.65](https://github.com/sonarwatch/portfolio/compare/core-0.16.64...core-0.16.65) (2025-08-29)
|
|
6
25
|
|
|
7
26
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -81,6 +81,12 @@ export type PortfolioAssetTokenData = {
|
|
|
81
81
|
address: string;
|
|
82
82
|
amount: number;
|
|
83
83
|
price: UsdValue;
|
|
84
|
+
yields?: Yield[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated will soon be replaced by PortfolioAssetTokenDataSupport (search YIELD_COMPAT)
|
|
88
|
+
*/
|
|
89
|
+
export type PortfolioAssetTokenDataSupport = PortfolioAssetTokenData & {
|
|
84
90
|
yield?: Yield;
|
|
85
91
|
};
|
|
86
92
|
/**
|
|
@@ -88,7 +94,7 @@ export type PortfolioAssetTokenData = {
|
|
|
88
94
|
*/
|
|
89
95
|
export type PortfolioAssetToken = PortfolioAssetCommon & {
|
|
90
96
|
type: 'token';
|
|
91
|
-
data:
|
|
97
|
+
data: PortfolioAssetTokenDataSupport;
|
|
92
98
|
};
|
|
93
99
|
/**
|
|
94
100
|
* Represents the data of a collectible portfolio asset.
|
|
@@ -132,7 +138,7 @@ export type ProxyInfo = {
|
|
|
132
138
|
id: string;
|
|
133
139
|
address: string;
|
|
134
140
|
};
|
|
135
|
-
export type SourceRefName = 'Pool' | 'Farm' | 'Market' | 'Vault' | 'Lending Market' | 'Strategy' | 'NFT Mint' | 'Reserve' | 'Proposal' | 'Distributor' | 'Locker' | 'Custody' | 'Pair';
|
|
141
|
+
export type SourceRefName = 'Pool' | 'Farm' | 'Market' | 'Vault' | 'Lending Market' | 'Strategy' | 'NFT Mint' | 'Reserve' | 'Proposal' | 'Distributor' | 'Locker' | 'Custody' | 'Pair' | 'Borrow Token' | 'Collateral Token';
|
|
136
142
|
/**
|
|
137
143
|
* Represents references to on-chain accounts.
|
|
138
144
|
*/
|
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;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;
|
|
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;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;AA2PX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
package/src/TokenYield.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ export declare const tokenYieldTtl: number;
|
|
|
4
4
|
export type TokenYield = {
|
|
5
5
|
address: string;
|
|
6
6
|
networkId: NetworkIdType;
|
|
7
|
-
|
|
7
|
+
yields: Yield[];
|
|
8
8
|
timestamp: number;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated will soon be replaced by TokenYield (search YIELD_COMPAT)
|
|
12
|
+
*/
|
|
13
|
+
export type TokenYieldSupport = TokenYield & {
|
|
14
|
+
yield: Yield;
|
|
15
|
+
};
|