bitmask-core 1.0.0-beta.9 → 1.0.1-beta
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/bitcoin.js +31 -16
- package/bitmask_core.d.ts +79 -79
- package/bitmask_core.js +445 -441
- package/bitmask_core_bg.js +1701 -1378
- package/bitmask_core_bg.wasm +0 -0
- package/bitmask_core_bg.wasm.d.ts +42 -42
- package/bp.js +17 -7
- package/carbonado.js +17 -7
- package/constants.d.ts +8 -3
- package/constants.js +42 -15
- package/index.js +17 -7
- package/lightning.js +17 -7
- package/nostr.js +17 -7
- package/package.json +47 -107
- package/rgb.d.ts +1 -1
- package/rgb.js +17 -7
- package/wallet.js +17 -7
- package/bitcoin.d.ts.map +0 -1
- package/bitcoin.ts +0 -317
- package/bp.d.ts.map +0 -1
- package/bp.ts +0 -72
- package/carbonado.d.ts.map +0 -1
- package/carbonado.ts +0 -34
- package/constants.d.ts.map +0 -1
- package/constants.ts +0 -112
- package/index.d.ts.map +0 -1
- package/index.ts +0 -33
- package/lightning.d.ts.map +0 -1
- package/lightning.ts +0 -165
- package/nostr.d.ts.map +0 -1
- package/nostr.ts +0 -19
- package/rgb.d.ts.map +0 -1
- package/rgb.ts +0 -710
- package/wallet.d.ts.map +0 -1
- package/wallet.ts +0 -46
package/wallet.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// RGB
|
|
4
|
-
import * as BMC from "./bitmask_core";
|
|
5
|
-
import {NextAddressResponse, NextUtxoResponse, WatcherRequest, WatcherResponse, WatcherStatusResponse} from "./rgb";
|
|
6
|
-
|
|
7
|
-
export const recoverWatcher = async (
|
|
8
|
-
nostrHexSk: string,
|
|
9
|
-
request: WatcherRequest
|
|
10
|
-
): Promise<WatcherResponse> =>
|
|
11
|
-
JSON.parse(await BMC.recover_watcher(nostrHexSk, request));
|
|
12
|
-
|
|
13
|
-
export const destroyRecover = async (
|
|
14
|
-
nostrHexSk: string,
|
|
15
|
-
): Promise<WatcherResponse> =>
|
|
16
|
-
JSON.parse(await BMC.destroy_recover_watcher(nostrHexSk));
|
|
17
|
-
|
|
18
|
-
export const createWatcher = async (
|
|
19
|
-
nostrHexSk: string,
|
|
20
|
-
request: WatcherRequest
|
|
21
|
-
): Promise<WatcherResponse> =>
|
|
22
|
-
JSON.parse(await BMC.create_watcher(nostrHexSk, request));
|
|
23
|
-
|
|
24
|
-
export const destroyWatcher = async (
|
|
25
|
-
nostrHexSk: string,
|
|
26
|
-
): Promise<WatcherResponse> =>
|
|
27
|
-
JSON.parse(await BMC.destroy_watcher(nostrHexSk));
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export const checkWatcher = async (
|
|
32
|
-
nostrHexSk: string,
|
|
33
|
-
): Promise<WatcherStatusResponse> =>
|
|
34
|
-
JSON.parse(await BMC.check_watcher(nostrHexSk));
|
|
35
|
-
|
|
36
|
-
export const nextAddress = async (
|
|
37
|
-
nostrHexSk: string,
|
|
38
|
-
request: string
|
|
39
|
-
): Promise<NextAddressResponse> =>
|
|
40
|
-
JSON.parse(await BMC.watcher_next_address(nostrHexSk, request));
|
|
41
|
-
|
|
42
|
-
export const nextUtxo = async (
|
|
43
|
-
nostrHexSk: string,
|
|
44
|
-
request: string
|
|
45
|
-
): Promise<NextUtxoResponse> =>
|
|
46
|
-
JSON.parse(await BMC.watcher_next_utxo(nostrHexSk, request));
|