@perena/vault-sdk 1.0.55 → 1.0.56

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/dist/index.d.ts CHANGED
@@ -13802,8 +13802,6 @@ interface ManagerWalletReconciliation {
13802
13802
  previousNav: bigint;
13803
13803
  candidateNav: bigint;
13804
13804
  adjustedNav?: bigint;
13805
- /** Diagnostic candidate only; never publish this unless accepted is true. */
13806
- walletUpdates?: HoldingUpdatePreview[];
13807
13805
  }
13808
13806
  /**
13809
13807
  * Rebuild from sourced external amounts every pass. Never carry forward a prior
package/dist/index.js CHANGED
@@ -21179,8 +21179,7 @@ async function reconcileManagerWalletBalances({
21179
21179
  updates: accepted ? adjusted : pendingUpdates,
21180
21180
  previousNav,
21181
21181
  candidateNav,
21182
- adjustedNav,
21183
- walletUpdates: adjusted
21182
+ adjustedNav
21184
21183
  };
21185
21184
  }
21186
21185
  function managerReconciliationStateKey(state) {
@@ -21671,6 +21670,7 @@ async function readMarginfiDepositsForAuthority(connection, authority, mints2) {
21671
21670
  for (const bank of (0, import_marginfi2.parseBankPksFromMarginfiAccount)(account.data))
21672
21671
  bankKeys.set(bank.toBase58(), bank);
21673
21672
  }
21673
+ if (bankKeys.size === 0) return /* @__PURE__ */ new Map();
21674
21674
  const client = await (0, import_marginfi2.createMarginfiReadClient)(connection, [
21675
21675
  ...bankKeys.values()
21676
21676
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perena/vault-sdk",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Vault program helpers for Bankineco integrations.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -45,8 +45,6 @@
45
45
  "inspect": "tsx scripts/inspect.ts",
46
46
  "vault-data": "tsx scripts/fetchVaultData.ts",
47
47
  "idle-liquidity": "tsx scripts/runIdleLiquidityService.ts",
48
- "preview-oracle-update": "tsx scripts/previewOracleUpdate.ts",
49
- "correct-oracle-nav": "tsx scripts/correctOracleNav.ts",
50
48
  "simulate-withdraw": "tsx scripts/simulate-withdraw.ts",
51
49
  "simulate-message": "tsx scripts/simulate-message.ts",
52
50
  "run-external-liquidity-service": "tsx scripts/runExternalLiquidityService.ts",