@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.
package/dist/wallet/factory.d.ts
CHANGED
|
@@ -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.
|
package/dist/wallet/factory.js
CHANGED