@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 = {};
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "clean": "rm -rf ./dist"
41
41
  },
42
42
  "files": ["dist"],
43
- "version": "0.3.7",
43
+ "version": "0.3.9",
44
44
  "devDependencies": {
45
45
  "@types/bun": "latest"
46
46
  },