bitmask-core 1.0.7-beta.18 → 1.1.7-beta.0
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 +47 -47
- package/bitmask_core.js +297 -297
- package/bitmask_core_bg.wasm +0 -0
- package/bitmask_core_bg.wasm.d.ts +26 -26
- package/package.json +1 -1
- package/bitmask_core_bg.js +0 -2525
package/bitmask_core.d.ts
CHANGED
|
@@ -49,31 +49,12 @@ export function encode_hex(bytes: Uint8Array): string;
|
|
|
49
49
|
export function encode_base64(bytes: Uint8Array): string;
|
|
50
50
|
export function decode_hex(string: string): Uint8Array;
|
|
51
51
|
export function decode_base64(string: string): Uint8Array;
|
|
52
|
-
export function create_wallet(username: string, password: string): Promise<any>;
|
|
53
|
-
export function auth(username: string, password: string): Promise<any>;
|
|
54
|
-
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
55
|
-
export function get_balance(token: string): Promise<any>;
|
|
56
|
-
export function get_txs(token: string): Promise<any>;
|
|
57
|
-
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
58
|
-
export function check_payment(payment_hash: string): Promise<any>;
|
|
59
|
-
export function swap_btc_ln(token: string, ln_address?: string | null): Promise<any>;
|
|
60
|
-
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
61
|
-
export function get_network(): Promise<any>;
|
|
62
|
-
export function switch_network(network_str: string): Promise<any>;
|
|
63
|
-
export function get_env(key: string): Promise<any>;
|
|
64
|
-
export function set_env(key: string, value: string): Promise<any>;
|
|
65
|
-
export function sleep(ms: number): Promise<any>;
|
|
66
52
|
export function fund_rgb_vault(sk: string, fee_rate: number, secrets: any, broadcast: boolean, fund_value: bigint | null | undefined, coordinator_fee: boolean): Promise<any>;
|
|
67
53
|
export function transfer_sats(sk: string, address: string, sats: bigint, fee_rate: number, secrets: any): Promise<any>;
|
|
68
54
|
export function get_btc_wallet(sk: string): Promise<any>;
|
|
69
55
|
export function backup_btc_data(nostr_hex_sk: string): Promise<any>;
|
|
70
56
|
export function recover_funds_from_bad_wallets(seed: string, pass_phrase: string, recover_address: string): Promise<any>;
|
|
71
57
|
export function restore_btc_data(nostr_hex_sk: string): Promise<any>;
|
|
72
|
-
export function convert_contract_amount_raw(decimal: string, precision: number): string;
|
|
73
|
-
export function convert_contract_amount_string(amount: bigint, precision: number): string;
|
|
74
|
-
export function parse_contract_amount(amount: string): any;
|
|
75
|
-
export function parse_contract_amount_precision(amount: string, precision: number): string;
|
|
76
|
-
export function version(): any;
|
|
77
58
|
export function hash_password(password: string): string;
|
|
78
59
|
export function new_mnemonic(password: string): Promise<any>;
|
|
79
60
|
export function save_mnemonic(seed: string, password: string): Promise<any>;
|
|
@@ -91,6 +72,27 @@ export function drain_wallet(destination: string, descriptor: string, change_des
|
|
|
91
72
|
export function bump_fee(txid: string, fee_rate: number, descriptor: string, change_descriptor: string | null | undefined, broadcast: boolean): Promise<any>;
|
|
92
73
|
export function psbt_sign_and_publish_file(request: any): Promise<any>;
|
|
93
74
|
export function psbt_publish_file(request: any): Promise<any>;
|
|
75
|
+
export function create_wallet(username: string, password: string): Promise<any>;
|
|
76
|
+
export function auth(username: string, password: string): Promise<any>;
|
|
77
|
+
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
78
|
+
export function get_balance(token: string): Promise<any>;
|
|
79
|
+
export function get_txs(token: string): Promise<any>;
|
|
80
|
+
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
81
|
+
export function check_payment(payment_hash: string): Promise<any>;
|
|
82
|
+
export function swap_btc_ln(token: string, ln_address?: string | null): Promise<any>;
|
|
83
|
+
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
84
|
+
export function get_network(): Promise<any>;
|
|
85
|
+
export function switch_network(network_str: string): Promise<any>;
|
|
86
|
+
export function get_env(key: string): Promise<any>;
|
|
87
|
+
export function set_env(key: string, value: string): Promise<any>;
|
|
88
|
+
export function sleep(ms: number): Promise<any>;
|
|
89
|
+
export function new_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
90
|
+
export function update_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
91
|
+
export function convert_contract_amount_raw(decimal: string, precision: number): string;
|
|
92
|
+
export function convert_contract_amount_string(amount: bigint, precision: number): string;
|
|
93
|
+
export function parse_contract_amount(amount: string): any;
|
|
94
|
+
export function parse_contract_amount_precision(amount: string, precision: number): string;
|
|
95
|
+
export function version(): any;
|
|
94
96
|
export function create_watcher(nostr_hex_sk: string, request: any): Promise<any>;
|
|
95
97
|
export function recover_watcher(nostr_hex_sk: string, request: any): Promise<any>;
|
|
96
98
|
export function destroy_watcher(nostr_hex_sk: string): Promise<any>;
|
|
@@ -99,8 +101,6 @@ export function check_watcher(nostr_hex_sk: string): Promise<any>;
|
|
|
99
101
|
export function watcher_next_address(nostr_hex_sk: string, request: string): Promise<any>;
|
|
100
102
|
export function watcher_next_utxo(nostr_hex_sk: string, request: string): Promise<any>;
|
|
101
103
|
export function watcher_unspent_utxos(nostr_hex_sk: string, request: string): Promise<any>;
|
|
102
|
-
export function new_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
103
|
-
export function update_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
104
104
|
|
|
105
105
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
106
106
|
|
|
@@ -151,31 +151,12 @@ export interface InitOutput {
|
|
|
151
151
|
readonly encode_base64: (a: number, b: number) => [number, number];
|
|
152
152
|
readonly decode_hex: (a: number, b: number) => [number, number, number, number];
|
|
153
153
|
readonly decode_base64: (a: number, b: number) => [number, number, number, number];
|
|
154
|
-
readonly create_wallet: (a: number, b: number, c: number, d: number) => any;
|
|
155
|
-
readonly auth: (a: number, b: number, c: number, d: number) => any;
|
|
156
|
-
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
157
|
-
readonly get_balance: (a: number, b: number) => any;
|
|
158
|
-
readonly get_txs: (a: number, b: number) => any;
|
|
159
|
-
readonly pay_invoice: (a: number, b: number, c: number, d: number) => any;
|
|
160
|
-
readonly check_payment: (a: number, b: number) => any;
|
|
161
|
-
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => any;
|
|
162
|
-
readonly swap_ln_btc: (a: number, b: number, c: bigint, d: number, e: number) => any;
|
|
163
|
-
readonly get_network: () => any;
|
|
164
|
-
readonly switch_network: (a: number, b: number) => any;
|
|
165
|
-
readonly get_env: (a: number, b: number) => any;
|
|
166
|
-
readonly set_env: (a: number, b: number, c: number, d: number) => any;
|
|
167
|
-
readonly sleep: (a: number) => any;
|
|
168
154
|
readonly fund_rgb_vault: (a: number, b: number, c: number, d: any, e: number, f: number, g: bigint, h: number) => any;
|
|
169
155
|
readonly transfer_sats: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: any) => any;
|
|
170
156
|
readonly get_btc_wallet: (a: number, b: number) => any;
|
|
171
157
|
readonly backup_btc_data: (a: number, b: number) => any;
|
|
172
158
|
readonly recover_funds_from_bad_wallets: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
173
159
|
readonly restore_btc_data: (a: number, b: number) => any;
|
|
174
|
-
readonly convert_contract_amount_raw: (a: number, b: number, c: number) => [number, number];
|
|
175
|
-
readonly convert_contract_amount_string: (a: bigint, b: number) => [number, number];
|
|
176
|
-
readonly parse_contract_amount: (a: number, b: number) => any;
|
|
177
|
-
readonly parse_contract_amount_precision: (a: number, b: number, c: number) => [number, number];
|
|
178
|
-
readonly version: () => any;
|
|
179
160
|
readonly hash_password: (a: number, b: number) => [number, number];
|
|
180
161
|
readonly new_mnemonic: (a: number, b: number) => any;
|
|
181
162
|
readonly save_mnemonic: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -193,6 +174,27 @@ export interface InitOutput {
|
|
|
193
174
|
readonly bump_fee: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
194
175
|
readonly psbt_sign_and_publish_file: (a: any) => any;
|
|
195
176
|
readonly psbt_publish_file: (a: any) => any;
|
|
177
|
+
readonly create_wallet: (a: number, b: number, c: number, d: number) => any;
|
|
178
|
+
readonly auth: (a: number, b: number, c: number, d: number) => any;
|
|
179
|
+
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
180
|
+
readonly get_balance: (a: number, b: number) => any;
|
|
181
|
+
readonly get_txs: (a: number, b: number) => any;
|
|
182
|
+
readonly pay_invoice: (a: number, b: number, c: number, d: number) => any;
|
|
183
|
+
readonly check_payment: (a: number, b: number) => any;
|
|
184
|
+
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => any;
|
|
185
|
+
readonly swap_ln_btc: (a: number, b: number, c: bigint, d: number, e: number) => any;
|
|
186
|
+
readonly get_network: () => any;
|
|
187
|
+
readonly switch_network: (a: number, b: number) => any;
|
|
188
|
+
readonly get_env: (a: number, b: number) => any;
|
|
189
|
+
readonly set_env: (a: number, b: number, c: number, d: number) => any;
|
|
190
|
+
readonly sleep: (a: number) => any;
|
|
191
|
+
readonly new_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
192
|
+
readonly update_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
193
|
+
readonly convert_contract_amount_raw: (a: number, b: number, c: number) => [number, number];
|
|
194
|
+
readonly convert_contract_amount_string: (a: bigint, b: number) => [number, number];
|
|
195
|
+
readonly parse_contract_amount: (a: number, b: number) => any;
|
|
196
|
+
readonly parse_contract_amount_precision: (a: number, b: number, c: number) => [number, number];
|
|
197
|
+
readonly version: () => any;
|
|
196
198
|
readonly create_watcher: (a: number, b: number, c: any) => any;
|
|
197
199
|
readonly recover_watcher: (a: number, b: number, c: any) => any;
|
|
198
200
|
readonly destroy_watcher: (a: number, b: number) => any;
|
|
@@ -201,8 +203,6 @@ export interface InitOutput {
|
|
|
201
203
|
readonly watcher_next_address: (a: number, b: number, c: number, d: number) => any;
|
|
202
204
|
readonly watcher_next_utxo: (a: number, b: number, c: number, d: number) => any;
|
|
203
205
|
readonly watcher_unspent_utxos: (a: number, b: number, c: number, d: number) => any;
|
|
204
|
-
readonly new_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
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;
|
|
207
207
|
readonly rustsecp256k1_v0_9_2_context_destroy: (a: number) => void;
|
|
208
208
|
readonly rustsecp256k1_v0_9_2_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
@@ -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 closure1125_externref_shim: (a: number, b: number, c: any) => void;
|
|
232
|
+
readonly closure2754_externref_shim: (a: number, b: number, c: any) => void;
|
|
233
|
+
readonly closure2785_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 closure3965_externref_shim: (a: number, b: number, c: any) => void;
|
|
236
|
+
readonly closure4257_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
237
237
|
readonly __wbindgen_start: () => void;
|
|
238
238
|
}
|
|
239
239
|
|