@debridge-finance/solana-utils 4.5.5 → 5.0.0

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.
@@ -10342,7 +10342,7 @@ function parseMultipleAccounts(accounts) {
10342
10342
  parsedAccount.spl = {
10343
10343
  mint: parsedSplAccount.mint,
10344
10344
  owner: parsedSplAccount.owner,
10345
- balance: Number((_b = parsedSplAccount.amount) !== null && _b !== void 0 ? _b : 0),
10345
+ balance: (_b = parsedSplAccount.amount) !== null && _b !== void 0 ? _b : BigInt(0),
10346
10346
  };
10347
10347
  }
10348
10348
  return parsedAccount;
@@ -10350,8 +10350,8 @@ function parseMultipleAccounts(accounts) {
10350
10350
  }
10351
10351
  function getSplDiff(pre, post) {
10352
10352
  var _a, _b, _c, _d, _e, _f;
10353
- const preBalance = (_a = pre === null || pre === void 0 ? void 0 : pre.balance) !== null && _a !== void 0 ? _a : 0;
10354
- const postBalance = (_b = post === null || post === void 0 ? void 0 : post.balance) !== null && _b !== void 0 ? _b : 0;
10353
+ const preBalance = (_a = pre === null || pre === void 0 ? void 0 : pre.balance) !== null && _a !== void 0 ? _a : BigInt(0);
10354
+ const postBalance = (_b = post === null || post === void 0 ? void 0 : post.balance) !== null && _b !== void 0 ? _b : BigInt(0);
10355
10355
  return {
10356
10356
  mint: (_c = pre === null || pre === void 0 ? void 0 : pre.mint) !== null && _c !== void 0 ? _c : post === null || post === void 0 ? void 0 : post.mint,
10357
10357
  owner: (_d = pre === null || pre === void 0 ? void 0 : pre.owner) !== null && _d !== void 0 ? _d : post === null || post === void 0 ? void 0 : post.owner,