@sonarwatch/portfolio-core 0.5.1 → 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 CHANGED
@@ -2,6 +2,10 @@
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
+
5
9
  ## [0.5.1](https://github.com/sonarwatch/portfolio/compare/core-0.5.0...core-0.5.1) (2023-07-20)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-core",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@ethersproject/address": "^5.7.0",
@@ -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
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIa,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"}
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"}