@sonarwatch/portfolio-core 0.14.173 → 0.14.175
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 +3191 -3183
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/Portfolio.d.ts +7 -0
- package/src/Portfolio.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @sonarwatch/portfolio-core
|
|
2
|
-
|
|
3
|
-
This library is @sonarwatch/portfolio-core
|
|
1
|
+
# @sonarwatch/portfolio-core
|
|
2
|
+
|
|
3
|
+
This library is @sonarwatch/portfolio-core
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -162,13 +162,20 @@ export type BalanceChange = {
|
|
|
162
162
|
postBalance: number;
|
|
163
163
|
change: number;
|
|
164
164
|
};
|
|
165
|
+
export type AccountChanges = {
|
|
166
|
+
created: string[];
|
|
167
|
+
updated: string[];
|
|
168
|
+
closed: string[];
|
|
169
|
+
};
|
|
165
170
|
export type Transaction = {
|
|
166
171
|
signature: string;
|
|
167
172
|
owner: string;
|
|
168
173
|
blockTime?: number | null;
|
|
169
174
|
service?: Service;
|
|
170
175
|
balanceChanges: BalanceChange[];
|
|
176
|
+
accountChanges: AccountChanges;
|
|
171
177
|
isSigner: boolean;
|
|
178
|
+
fees?: number | null;
|
|
172
179
|
success: boolean;
|
|
173
180
|
};
|
|
174
181
|
export type SourceRefName = 'Pool' | 'Farm' | 'Market' | 'Vault' | 'Lending Market' | 'Strategy' | 'NFT Mint' | 'Reserve' | 'Proposal' | 'Distributor';
|
package/src/Portfolio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAMA;;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":";;;AAMA;;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;AA0RX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|