@1sat/wallet-toolbox 0.0.23 → 0.0.25
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/api/constants.js
CHANGED
|
@@ -22,7 +22,7 @@ export const ORDLOCK_SUFFIX = "615179547a75537a537a537a0079537a75527a527a7575615
|
|
|
22
22
|
export const LOCK_PREFIX = "20d37f4de0d1c735b4d51a5572df0f3d9104d1d9e99db8694fdd1b1a92e1f0dce1757601687f76a9";
|
|
23
23
|
export const LOCK_SUFFIX = "88ac7e7601207f75a9011488";
|
|
24
24
|
// Protocol IDs
|
|
25
|
-
export const ONESAT_PROTOCOL = [1, "
|
|
25
|
+
export const ONESAT_PROTOCOL = [1, "onesat"];
|
|
26
26
|
export const MESSAGE_SIGNING_PROTOCOL = [1, "message signing"];
|
|
27
27
|
// Constants
|
|
28
28
|
export const MAX_INSCRIPTION_BYTES = 100_000;
|
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, WalletPermissionsManager } from "@bsv/wallet-toolbox-mobile/out/src/index.client.js";
|
|
8
|
+
import { Monitor, type PermissionsManagerConfig, Wallet, WalletPermissionsManager } 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";
|
|
@@ -35,6 +35,8 @@ export interface WebWalletConfig {
|
|
|
35
35
|
export interface WebWalletResult {
|
|
36
36
|
/** Wallet instance with permission management */
|
|
37
37
|
wallet: WalletPermissionsManager;
|
|
38
|
+
/** Underlying wallet without permission checks (for trusted contexts like sweep-ui) */
|
|
39
|
+
rawWallet: Wallet;
|
|
38
40
|
/** 1Sat services for API access */
|
|
39
41
|
services: OneSatServices;
|
|
40
42
|
/** Monitor for transaction lifecycle (not started - call monitor.startTasks() when ready) */
|
package/dist/wallet/factory.js
CHANGED