@1sat/wallet-toolbox 0.0.41 → 0.0.42

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.
@@ -5,7 +5,7 @@
5
5
  * (browser extension) and 1sat-website (React app).
6
6
  */
7
7
  import { PrivateKey } from "@bsv/sdk";
8
- import { Monitor, type PermissionsManagerConfig, Wallet, WalletPermissionsManager } from "@bsv/wallet-toolbox-mobile/out/src/index.client.js";
8
+ import { Monitor, type PermissionsManagerConfig, StorageClient, Wallet, WalletPermissionsManager, WalletStorageManager } from "@bsv/wallet-toolbox-mobile/out/src/index.client.js";
9
9
  import { OneSatServices } from "../services/OneSatServices";
10
10
  import { type FullSyncResult, type FullSyncStage } from "./fullSync";
11
11
  type Chain = "main" | "test";
@@ -49,6 +49,10 @@ export interface WebWalletResult {
49
49
  destroy: () => Promise<void>;
50
50
  /** Full sync with remote backup (only available if remoteStorageUrl was provided and connected) */
51
51
  fullSync?: (onProgress?: (stage: FullSyncStage, message: string) => void) => Promise<FullSyncResult>;
52
+ /** Storage manager (for debugging/diagnostics) */
53
+ storage: WalletStorageManager;
54
+ /** Remote storage client (for debugging/diagnostics, undefined if not connected) */
55
+ remoteStorage?: StorageClient;
52
56
  }
53
57
  /**
54
58
  * Create a web wallet with storage, services, permissions, and monitor.
@@ -235,5 +235,7 @@ export async function createWebWallet(config) {
235
235
  monitor,
236
236
  destroy,
237
237
  fullSync: fullSyncFn,
238
+ storage,
239
+ remoteStorage: remoteClient,
238
240
  };
239
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/wallet-toolbox",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "BSV wallet library extending @bsv/wallet-toolbox with 1Sat Ordinals protocol support",
5
5
  "author": "1Sat Team",
6
6
  "license": "MIT",