@spirobel/monero-wallet-api 0.3.7 → 0.3.9
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.
|
@@ -30,7 +30,9 @@ export async function readStatsFile(cacheFilePath) {
|
|
|
30
30
|
if (key === "amount" ||
|
|
31
31
|
key === "pending_amount" ||
|
|
32
32
|
key === "total_amount" ||
|
|
33
|
-
key === "total_pending_amount"
|
|
33
|
+
key === "total_pending_amount" ||
|
|
34
|
+
key === "primary_address_received_amount" ||
|
|
35
|
+
key === "primary_address_pending_amount")
|
|
34
36
|
return BigInt(value);
|
|
35
37
|
return value;
|
|
36
38
|
})
|
|
@@ -267,6 +269,8 @@ export function resetStats(stats) {
|
|
|
267
269
|
stats.height = 0;
|
|
268
270
|
stats.total_spendable_amount = 0n;
|
|
269
271
|
stats.total_pending_amount = 0n;
|
|
272
|
+
stats.primary_address_received_amount = 0n;
|
|
273
|
+
stats.primary_address_pending_amount = 0n;
|
|
270
274
|
stats.found_transactions = {};
|
|
271
275
|
stats.ordered_transactions = [];
|
|
272
276
|
stats.subaddresses = {};
|