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/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));