bitmask-core 1.0.7-beta.14 → 1.0.7-beta.15
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/bitmask_core.d.ts +85 -85
- package/bitmask_core.js +625 -625
- package/bitmask_core_bg.wasm +0 -0
- package/bitmask_core_bg.wasm.d.ts +45 -45
- package/package.json +1 -1
package/bitmask_core.d.ts
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function convert_contract_amount_raw(decimal: string, precision: number): string;
|
|
4
|
-
export function convert_contract_amount_string(amount: bigint, precision: number): string;
|
|
5
|
-
export function parse_contract_amount(amount: string): any;
|
|
6
|
-
export function parse_contract_amount_precision(amount: string, precision: number): string;
|
|
7
|
-
export function version(): any;
|
|
8
|
-
export function fund_rgb_vault(sk: string, fee_rate: number, secrets: any, broadcast: boolean, fund_value: bigint | null | undefined, coordinator_fee: boolean): Promise<any>;
|
|
9
|
-
export function transfer_sats(sk: string, address: string, sats: bigint, fee_rate: number, secrets: any): Promise<any>;
|
|
10
|
-
export function get_btc_wallet(sk: string): Promise<any>;
|
|
11
|
-
export function backup_btc_data(nostr_hex_sk: string): Promise<any>;
|
|
12
|
-
export function recover_funds_from_bad_wallets(seed: string, pass_phrase: string, recover_address: string): Promise<any>;
|
|
13
|
-
export function restore_btc_data(nostr_hex_sk: string): Promise<any>;
|
|
14
|
-
export function store(secret_key: string, name: string, data: Uint8Array, force: boolean, metadata?: Uint8Array | null): Promise<any>;
|
|
15
|
-
export function retrieve(secret_key: string, name: string): Promise<any>;
|
|
16
|
-
export function retrieve_metadata(secret_key: string, name: string): Promise<any>;
|
|
17
|
-
export function encode_hex(bytes: Uint8Array): string;
|
|
18
|
-
export function encode_base64(bytes: Uint8Array): string;
|
|
19
|
-
export function decode_hex(string: string): Uint8Array;
|
|
20
|
-
export function decode_base64(string: string): Uint8Array;
|
|
21
|
-
export function get_network(): Promise<any>;
|
|
22
|
-
export function switch_network(network_str: string): Promise<any>;
|
|
23
|
-
export function get_env(key: string): Promise<any>;
|
|
24
|
-
export function set_env(key: string, value: string): Promise<any>;
|
|
25
|
-
export function sleep(ms: number): Promise<any>;
|
|
26
3
|
export function hash_password(password: string): string;
|
|
27
4
|
export function new_mnemonic(password: string): Promise<any>;
|
|
28
5
|
export function save_mnemonic(seed: string, password: string): Promise<any>;
|
|
@@ -40,23 +17,6 @@ export function drain_wallet(destination: string, descriptor: string, change_des
|
|
|
40
17
|
export function bump_fee(txid: string, fee_rate: number, descriptor: string, change_descriptor: string | null | undefined, broadcast: boolean): Promise<any>;
|
|
41
18
|
export function psbt_sign_and_publish_file(request: any): Promise<any>;
|
|
42
19
|
export function psbt_publish_file(request: any): Promise<any>;
|
|
43
|
-
export function create_watcher(nostr_hex_sk: string, request: any): Promise<any>;
|
|
44
|
-
export function recover_watcher(nostr_hex_sk: string, request: any): Promise<any>;
|
|
45
|
-
export function destroy_watcher(nostr_hex_sk: string): Promise<any>;
|
|
46
|
-
export function destroy_recover_watcher(nostr_hex_sk: string): Promise<any>;
|
|
47
|
-
export function check_watcher(nostr_hex_sk: string): Promise<any>;
|
|
48
|
-
export function watcher_next_address(nostr_hex_sk: string, request: string): Promise<any>;
|
|
49
|
-
export function watcher_next_utxo(nostr_hex_sk: string, request: string): Promise<any>;
|
|
50
|
-
export function watcher_unspent_utxos(nostr_hex_sk: string, request: string): Promise<any>;
|
|
51
|
-
export function create_wallet(username: string, password: string): Promise<any>;
|
|
52
|
-
export function auth(username: string, password: string): Promise<any>;
|
|
53
|
-
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
54
|
-
export function get_balance(token: string): Promise<any>;
|
|
55
|
-
export function get_txs(token: string): Promise<any>;
|
|
56
|
-
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
57
|
-
export function check_payment(payment_hash: string): Promise<any>;
|
|
58
|
-
export function swap_btc_ln(token: string, ln_address?: string | null): Promise<any>;
|
|
59
|
-
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
60
20
|
export function get_rgb_version(): string;
|
|
61
21
|
export function get_rgb_wallet(nostr_hex_sk: string): Promise<any>;
|
|
62
22
|
export function get_btc_wallet_data(nostr_hex_sk: string): Promise<any>;
|
|
@@ -99,6 +59,46 @@ export function create_airdrop_claim(nostr_hex_sk: string, request: any): Promis
|
|
|
99
59
|
export function close_airdrop(nostr_hex_sk: string, request: any): Promise<any>;
|
|
100
60
|
export function backup_rgb_data(nostr_hex_sk: string): Promise<any>;
|
|
101
61
|
export function restore_rgb_data(nostr_hex_sk: string): Promise<any>;
|
|
62
|
+
export function convert_contract_amount_raw(decimal: string, precision: number): string;
|
|
63
|
+
export function convert_contract_amount_string(amount: bigint, precision: number): string;
|
|
64
|
+
export function parse_contract_amount(amount: string): any;
|
|
65
|
+
export function parse_contract_amount_precision(amount: string, precision: number): string;
|
|
66
|
+
export function version(): any;
|
|
67
|
+
export function get_network(): Promise<any>;
|
|
68
|
+
export function switch_network(network_str: string): Promise<any>;
|
|
69
|
+
export function get_env(key: string): Promise<any>;
|
|
70
|
+
export function set_env(key: string, value: string): Promise<any>;
|
|
71
|
+
export function sleep(ms: number): Promise<any>;
|
|
72
|
+
export function fund_rgb_vault(sk: string, fee_rate: number, secrets: any, broadcast: boolean, fund_value: bigint | null | undefined, coordinator_fee: boolean): Promise<any>;
|
|
73
|
+
export function transfer_sats(sk: string, address: string, sats: bigint, fee_rate: number, secrets: any): Promise<any>;
|
|
74
|
+
export function get_btc_wallet(sk: string): Promise<any>;
|
|
75
|
+
export function backup_btc_data(nostr_hex_sk: string): Promise<any>;
|
|
76
|
+
export function recover_funds_from_bad_wallets(seed: string, pass_phrase: string, recover_address: string): Promise<any>;
|
|
77
|
+
export function restore_btc_data(nostr_hex_sk: string): Promise<any>;
|
|
78
|
+
export function create_watcher(nostr_hex_sk: string, request: any): Promise<any>;
|
|
79
|
+
export function recover_watcher(nostr_hex_sk: string, request: any): Promise<any>;
|
|
80
|
+
export function destroy_watcher(nostr_hex_sk: string): Promise<any>;
|
|
81
|
+
export function destroy_recover_watcher(nostr_hex_sk: string): Promise<any>;
|
|
82
|
+
export function check_watcher(nostr_hex_sk: string): Promise<any>;
|
|
83
|
+
export function watcher_next_address(nostr_hex_sk: string, request: string): Promise<any>;
|
|
84
|
+
export function watcher_next_utxo(nostr_hex_sk: string, request: string): Promise<any>;
|
|
85
|
+
export function watcher_unspent_utxos(nostr_hex_sk: string, request: string): Promise<any>;
|
|
86
|
+
export function store(secret_key: string, name: string, data: Uint8Array, force: boolean, metadata?: Uint8Array | null): Promise<any>;
|
|
87
|
+
export function retrieve(secret_key: string, name: string): Promise<any>;
|
|
88
|
+
export function retrieve_metadata(secret_key: string, name: string): Promise<any>;
|
|
89
|
+
export function encode_hex(bytes: Uint8Array): string;
|
|
90
|
+
export function encode_base64(bytes: Uint8Array): string;
|
|
91
|
+
export function decode_hex(string: string): Uint8Array;
|
|
92
|
+
export function decode_base64(string: string): Uint8Array;
|
|
93
|
+
export function create_wallet(username: string, password: string): Promise<any>;
|
|
94
|
+
export function auth(username: string, password: string): Promise<any>;
|
|
95
|
+
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
96
|
+
export function get_balance(token: string): Promise<any>;
|
|
97
|
+
export function get_txs(token: string): Promise<any>;
|
|
98
|
+
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
99
|
+
export function check_payment(payment_hash: string): Promise<any>;
|
|
100
|
+
export function swap_btc_ln(token: string, ln_address?: string | null): Promise<any>;
|
|
101
|
+
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
102
102
|
export function new_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
103
103
|
export function update_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
104
104
|
|
|
@@ -106,29 +106,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
106
106
|
|
|
107
107
|
export interface InitOutput {
|
|
108
108
|
readonly memory: WebAssembly.Memory;
|
|
109
|
-
readonly convert_contract_amount_raw: (a: number, b: number, c: number) => [number, number];
|
|
110
|
-
readonly convert_contract_amount_string: (a: bigint, b: number) => [number, number];
|
|
111
|
-
readonly parse_contract_amount: (a: number, b: number) => any;
|
|
112
|
-
readonly parse_contract_amount_precision: (a: number, b: number, c: number) => [number, number];
|
|
113
|
-
readonly version: () => any;
|
|
114
|
-
readonly fund_rgb_vault: (a: number, b: number, c: number, d: any, e: number, f: number, g: bigint, h: number) => any;
|
|
115
|
-
readonly transfer_sats: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: any) => any;
|
|
116
|
-
readonly get_btc_wallet: (a: number, b: number) => any;
|
|
117
|
-
readonly backup_btc_data: (a: number, b: number) => any;
|
|
118
|
-
readonly recover_funds_from_bad_wallets: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
119
|
-
readonly restore_btc_data: (a: number, b: number) => any;
|
|
120
|
-
readonly store: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
121
|
-
readonly retrieve: (a: number, b: number, c: number, d: number) => any;
|
|
122
|
-
readonly retrieve_metadata: (a: number, b: number, c: number, d: number) => any;
|
|
123
|
-
readonly encode_hex: (a: number, b: number) => [number, number];
|
|
124
|
-
readonly encode_base64: (a: number, b: number) => [number, number];
|
|
125
|
-
readonly decode_hex: (a: number, b: number) => [number, number, number, number];
|
|
126
|
-
readonly decode_base64: (a: number, b: number) => [number, number, number, number];
|
|
127
|
-
readonly get_network: () => any;
|
|
128
|
-
readonly switch_network: (a: number, b: number) => any;
|
|
129
|
-
readonly get_env: (a: number, b: number) => any;
|
|
130
|
-
readonly set_env: (a: number, b: number, c: number, d: number) => any;
|
|
131
|
-
readonly sleep: (a: number) => any;
|
|
132
109
|
readonly hash_password: (a: number, b: number) => [number, number];
|
|
133
110
|
readonly new_mnemonic: (a: number, b: number) => any;
|
|
134
111
|
readonly save_mnemonic: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -146,23 +123,6 @@ export interface InitOutput {
|
|
|
146
123
|
readonly bump_fee: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
147
124
|
readonly psbt_sign_and_publish_file: (a: any) => any;
|
|
148
125
|
readonly psbt_publish_file: (a: any) => any;
|
|
149
|
-
readonly create_watcher: (a: number, b: number, c: any) => any;
|
|
150
|
-
readonly recover_watcher: (a: number, b: number, c: any) => any;
|
|
151
|
-
readonly destroy_watcher: (a: number, b: number) => any;
|
|
152
|
-
readonly destroy_recover_watcher: (a: number, b: number) => any;
|
|
153
|
-
readonly check_watcher: (a: number, b: number) => any;
|
|
154
|
-
readonly watcher_next_address: (a: number, b: number, c: number, d: number) => any;
|
|
155
|
-
readonly watcher_next_utxo: (a: number, b: number, c: number, d: number) => any;
|
|
156
|
-
readonly watcher_unspent_utxos: (a: number, b: number, c: number, d: number) => any;
|
|
157
|
-
readonly create_wallet: (a: number, b: number, c: number, d: number) => any;
|
|
158
|
-
readonly auth: (a: number, b: number, c: number, d: number) => any;
|
|
159
|
-
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
160
|
-
readonly get_balance: (a: number, b: number) => any;
|
|
161
|
-
readonly get_txs: (a: number, b: number) => any;
|
|
162
|
-
readonly pay_invoice: (a: number, b: number, c: number, d: number) => any;
|
|
163
|
-
readonly check_payment: (a: number, b: number) => any;
|
|
164
|
-
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => any;
|
|
165
|
-
readonly swap_ln_btc: (a: number, b: number, c: bigint, d: number, e: number) => any;
|
|
166
126
|
readonly get_rgb_version: () => [number, number];
|
|
167
127
|
readonly get_rgb_wallet: (a: number, b: number) => any;
|
|
168
128
|
readonly get_btc_wallet_data: (a: number, b: number) => any;
|
|
@@ -201,6 +161,46 @@ export interface InitOutput {
|
|
|
201
161
|
readonly close_airdrop: (a: number, b: number, c: any) => any;
|
|
202
162
|
readonly backup_rgb_data: (a: number, b: number) => any;
|
|
203
163
|
readonly restore_rgb_data: (a: number, b: number) => any;
|
|
164
|
+
readonly convert_contract_amount_raw: (a: number, b: number, c: number) => [number, number];
|
|
165
|
+
readonly convert_contract_amount_string: (a: bigint, b: number) => [number, number];
|
|
166
|
+
readonly parse_contract_amount: (a: number, b: number) => any;
|
|
167
|
+
readonly parse_contract_amount_precision: (a: number, b: number, c: number) => [number, number];
|
|
168
|
+
readonly version: () => any;
|
|
169
|
+
readonly get_network: () => any;
|
|
170
|
+
readonly switch_network: (a: number, b: number) => any;
|
|
171
|
+
readonly get_env: (a: number, b: number) => any;
|
|
172
|
+
readonly set_env: (a: number, b: number, c: number, d: number) => any;
|
|
173
|
+
readonly sleep: (a: number) => any;
|
|
174
|
+
readonly fund_rgb_vault: (a: number, b: number, c: number, d: any, e: number, f: number, g: bigint, h: number) => any;
|
|
175
|
+
readonly transfer_sats: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: any) => any;
|
|
176
|
+
readonly get_btc_wallet: (a: number, b: number) => any;
|
|
177
|
+
readonly backup_btc_data: (a: number, b: number) => any;
|
|
178
|
+
readonly recover_funds_from_bad_wallets: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
179
|
+
readonly restore_btc_data: (a: number, b: number) => any;
|
|
180
|
+
readonly create_watcher: (a: number, b: number, c: any) => any;
|
|
181
|
+
readonly recover_watcher: (a: number, b: number, c: any) => any;
|
|
182
|
+
readonly destroy_watcher: (a: number, b: number) => any;
|
|
183
|
+
readonly destroy_recover_watcher: (a: number, b: number) => any;
|
|
184
|
+
readonly check_watcher: (a: number, b: number) => any;
|
|
185
|
+
readonly watcher_next_address: (a: number, b: number, c: number, d: number) => any;
|
|
186
|
+
readonly watcher_next_utxo: (a: number, b: number, c: number, d: number) => any;
|
|
187
|
+
readonly watcher_unspent_utxos: (a: number, b: number, c: number, d: number) => any;
|
|
188
|
+
readonly store: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
189
|
+
readonly retrieve: (a: number, b: number, c: number, d: number) => any;
|
|
190
|
+
readonly retrieve_metadata: (a: number, b: number, c: number, d: number) => any;
|
|
191
|
+
readonly encode_hex: (a: number, b: number) => [number, number];
|
|
192
|
+
readonly encode_base64: (a: number, b: number) => [number, number];
|
|
193
|
+
readonly decode_hex: (a: number, b: number) => [number, number, number, number];
|
|
194
|
+
readonly decode_base64: (a: number, b: number) => [number, number, number, number];
|
|
195
|
+
readonly create_wallet: (a: number, b: number, c: number, d: number) => any;
|
|
196
|
+
readonly auth: (a: number, b: number, c: number, d: number) => any;
|
|
197
|
+
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
198
|
+
readonly get_balance: (a: number, b: number) => any;
|
|
199
|
+
readonly get_txs: (a: number, b: number) => any;
|
|
200
|
+
readonly pay_invoice: (a: number, b: number, c: number, d: number) => any;
|
|
201
|
+
readonly check_payment: (a: number, b: number) => any;
|
|
202
|
+
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => any;
|
|
203
|
+
readonly swap_ln_btc: (a: number, b: number, c: bigint, d: number, e: number) => any;
|
|
204
204
|
readonly new_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
205
205
|
readonly update_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
206
206
|
readonly rustsecp256k1_v0_9_2_context_create: (a: number) => number;
|
|
@@ -228,12 +228,12 @@ export interface InitOutput {
|
|
|
228
228
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
229
229
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
230
230
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
231
|
+
readonly closure1296_externref_shim: (a: number, b: number, c: any) => void;
|
|
232
|
+
readonly closure2730_externref_shim: (a: number, b: number, c: any) => void;
|
|
233
|
+
readonly closure2761_externref_shim: (a: number, b: number, c: any) => void;
|
|
234
234
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ceba1bc0c075797: (a: number, b: number) => void;
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
235
|
+
readonly closure3941_externref_shim: (a: number, b: number, c: any) => void;
|
|
236
|
+
readonly closure4233_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
237
237
|
readonly __wbindgen_start: () => void;
|
|
238
238
|
}
|
|
239
239
|
|