@sonarwatch/portfolio-core 0.5.0 → 0.5.2
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 +21 -0
- 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.5.2](https://github.com/sonarwatch/portfolio/compare/core-0.5.1...core-0.5.2) (2023-07-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.5.1](https://github.com/sonarwatch/portfolio/compare/core-0.5.0...core-0.5.1) (2023-07-20)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
# [0.5.0](https://github.com/sonarwatch/portfolio/compare/core-0.4.49...core-0.5.0) (2023-07-20)
|
|
6
14
|
|
|
7
15
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UsdValue } from './UsdValue';
|
|
2
2
|
import { NetworkIdType } from './Network';
|
|
3
3
|
import { Yield } from './Yield';
|
|
4
|
+
import { AddressSystemType } from './Address';
|
|
4
5
|
export declare const PortfolioAssetType: {
|
|
5
6
|
readonly generic: "generic";
|
|
6
7
|
readonly token: "token";
|
|
@@ -115,3 +116,23 @@ export type PortfolioElementBorrowLend = PortfolioElementCommon & {
|
|
|
115
116
|
data: PortfolioElementBorrowLendData;
|
|
116
117
|
};
|
|
117
118
|
export type PortfolioElement = PortfolioElementSingle | PortfolioElementMultiple | PortfolioElementLiquidity | PortfolioElementBorrowLend;
|
|
119
|
+
export type FetcherResult = {
|
|
120
|
+
owner: string;
|
|
121
|
+
fetcherId: string;
|
|
122
|
+
networdkId: NetworkIdType;
|
|
123
|
+
duration: number;
|
|
124
|
+
elements: PortfolioElement[];
|
|
125
|
+
};
|
|
126
|
+
export type FetcherReport = {
|
|
127
|
+
id: string;
|
|
128
|
+
status: 'succeeded' | 'failed';
|
|
129
|
+
duration?: number;
|
|
130
|
+
error?: string;
|
|
131
|
+
};
|
|
132
|
+
export type FetchersResult = {
|
|
133
|
+
date: number;
|
|
134
|
+
owner: string;
|
|
135
|
+
addressSystem: AddressSystemType;
|
|
136
|
+
fetcherReports: FetcherReport[];
|
|
137
|
+
elements: PortfolioElement[];
|
|
138
|
+
};
|
package/src/Portfolio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAKa,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAcE,QAAA,oBAAoB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAC"}
|