bitmask-core 1.0.7-beta.11 → 1.0.7-beta.13
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 +53 -51
- package/bitmask_core.js +514 -503
- package/bitmask_core_bg.wasm +0 -0
- package/bitmask_core_bg.wasm.d.ts +29 -28
- package/package.json +1 -1
package/bitmask_core.d.ts
CHANGED
|
@@ -17,8 +17,30 @@ export function drain_wallet(destination: string, descriptor: string, change_des
|
|
|
17
17
|
export function bump_fee(txid: string, fee_rate: number, descriptor: string, change_descriptor: string | null | undefined, broadcast: boolean): Promise<any>;
|
|
18
18
|
export function psbt_sign_and_publish_file(request: any): Promise<any>;
|
|
19
19
|
export function psbt_publish_file(request: any): Promise<any>;
|
|
20
|
+
export function create_wallet(username: string, password: string): Promise<any>;
|
|
21
|
+
export function auth(username: string, password: string): Promise<any>;
|
|
22
|
+
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
23
|
+
export function get_balance(token: string): Promise<any>;
|
|
24
|
+
export function get_txs(token: string): Promise<any>;
|
|
25
|
+
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
26
|
+
export function check_payment(payment_hash: string): Promise<any>;
|
|
27
|
+
export function swap_btc_ln(token: string, ln_address?: string | null): Promise<any>;
|
|
28
|
+
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
29
|
+
export function get_network(): Promise<any>;
|
|
30
|
+
export function switch_network(network_str: string): Promise<any>;
|
|
31
|
+
export function get_env(key: string): Promise<any>;
|
|
32
|
+
export function set_env(key: string, value: string): Promise<any>;
|
|
33
|
+
export function sleep(ms: number): Promise<any>;
|
|
34
|
+
export function store(secret_key: string, name: string, data: Uint8Array, force: boolean, metadata?: Uint8Array | null): Promise<any>;
|
|
35
|
+
export function retrieve(secret_key: string, name: string): Promise<any>;
|
|
36
|
+
export function retrieve_metadata(secret_key: string, name: string): Promise<any>;
|
|
37
|
+
export function encode_hex(bytes: Uint8Array): string;
|
|
38
|
+
export function encode_base64(bytes: Uint8Array): string;
|
|
39
|
+
export function decode_hex(string: string): Uint8Array;
|
|
40
|
+
export function decode_base64(string: string): Uint8Array;
|
|
20
41
|
export function get_rgb_version(): string;
|
|
21
42
|
export function get_rgb_wallet(nostr_hex_sk: string): Promise<any>;
|
|
43
|
+
export function get_btc_wallet_data(nostr_hex_sk: string): Promise<any>;
|
|
22
44
|
export function get_contract(nostr_hex_sk: string, request: string): Promise<any>;
|
|
23
45
|
export function list_contracts(nostr_hex_sk: string, arg1: boolean): Promise<any>;
|
|
24
46
|
export function import_contract(nostr_hex_sk: string, request: string): Promise<any>;
|
|
@@ -57,6 +79,8 @@ export function create_airdrop_claim(nostr_hex_sk: string, request: any): Promis
|
|
|
57
79
|
export function close_airdrop(nostr_hex_sk: string, request: any): Promise<any>;
|
|
58
80
|
export function backup_rgb_data(nostr_hex_sk: string): Promise<any>;
|
|
59
81
|
export function restore_rgb_data(nostr_hex_sk: string): Promise<any>;
|
|
82
|
+
export function new_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
83
|
+
export function update_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
60
84
|
export function fund_rgb_vault(sk: string, fee_rate: number, secrets: any, broadcast: boolean, fund_value: bigint | null | undefined, coordinator_fee: boolean): Promise<any>;
|
|
61
85
|
export function transfer_sats(sk: string, address: string, sats: bigint, fee_rate: number, secrets: any): Promise<any>;
|
|
62
86
|
export function get_btc_wallet(sk: string): Promise<any>;
|
|
@@ -71,34 +95,11 @@ export function check_watcher(nostr_hex_sk: string): Promise<any>;
|
|
|
71
95
|
export function watcher_next_address(nostr_hex_sk: string, request: string): Promise<any>;
|
|
72
96
|
export function watcher_next_utxo(nostr_hex_sk: string, request: string): Promise<any>;
|
|
73
97
|
export function watcher_unspent_utxos(nostr_hex_sk: string, request: string): Promise<any>;
|
|
74
|
-
export function store(secret_key: string, name: string, data: Uint8Array, force: boolean, metadata?: Uint8Array | null): Promise<any>;
|
|
75
|
-
export function retrieve(secret_key: string, name: string): Promise<any>;
|
|
76
|
-
export function retrieve_metadata(secret_key: string, name: string): Promise<any>;
|
|
77
|
-
export function encode_hex(bytes: Uint8Array): string;
|
|
78
|
-
export function encode_base64(bytes: Uint8Array): string;
|
|
79
|
-
export function decode_hex(string: string): Uint8Array;
|
|
80
|
-
export function decode_base64(string: string): Uint8Array;
|
|
81
|
-
export function new_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
82
|
-
export function update_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
83
98
|
export function convert_contract_amount_raw(decimal: string, precision: number): string;
|
|
84
99
|
export function convert_contract_amount_string(amount: bigint, precision: number): string;
|
|
85
100
|
export function parse_contract_amount(amount: string): any;
|
|
86
101
|
export function parse_contract_amount_precision(amount: string, precision: number): string;
|
|
87
102
|
export function version(): any;
|
|
88
|
-
export function get_network(): Promise<any>;
|
|
89
|
-
export function switch_network(network_str: string): Promise<any>;
|
|
90
|
-
export function get_env(key: string): Promise<any>;
|
|
91
|
-
export function set_env(key: string, value: string): Promise<any>;
|
|
92
|
-
export function sleep(ms: number): Promise<any>;
|
|
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
103
|
|
|
103
104
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
104
105
|
|
|
@@ -121,8 +122,30 @@ export interface InitOutput {
|
|
|
121
122
|
readonly bump_fee: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
122
123
|
readonly psbt_sign_and_publish_file: (a: any) => any;
|
|
123
124
|
readonly psbt_publish_file: (a: any) => any;
|
|
125
|
+
readonly create_wallet: (a: number, b: number, c: number, d: number) => any;
|
|
126
|
+
readonly auth: (a: number, b: number, c: number, d: number) => any;
|
|
127
|
+
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
128
|
+
readonly get_balance: (a: number, b: number) => any;
|
|
129
|
+
readonly get_txs: (a: number, b: number) => any;
|
|
130
|
+
readonly pay_invoice: (a: number, b: number, c: number, d: number) => any;
|
|
131
|
+
readonly check_payment: (a: number, b: number) => any;
|
|
132
|
+
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => any;
|
|
133
|
+
readonly swap_ln_btc: (a: number, b: number, c: bigint, d: number, e: number) => any;
|
|
134
|
+
readonly get_network: () => any;
|
|
135
|
+
readonly switch_network: (a: number, b: number) => any;
|
|
136
|
+
readonly get_env: (a: number, b: number) => any;
|
|
137
|
+
readonly set_env: (a: number, b: number, c: number, d: number) => any;
|
|
138
|
+
readonly sleep: (a: number) => any;
|
|
139
|
+
readonly store: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
140
|
+
readonly retrieve: (a: number, b: number, c: number, d: number) => any;
|
|
141
|
+
readonly retrieve_metadata: (a: number, b: number, c: number, d: number) => any;
|
|
142
|
+
readonly encode_hex: (a: number, b: number) => [number, number];
|
|
143
|
+
readonly encode_base64: (a: number, b: number) => [number, number];
|
|
144
|
+
readonly decode_hex: (a: number, b: number) => [number, number, number, number];
|
|
145
|
+
readonly decode_base64: (a: number, b: number) => [number, number, number, number];
|
|
124
146
|
readonly get_rgb_version: () => [number, number];
|
|
125
147
|
readonly get_rgb_wallet: (a: number, b: number) => any;
|
|
148
|
+
readonly get_btc_wallet_data: (a: number, b: number) => any;
|
|
126
149
|
readonly get_contract: (a: number, b: number, c: number, d: number) => any;
|
|
127
150
|
readonly list_contracts: (a: number, b: number, c: number) => any;
|
|
128
151
|
readonly import_contract: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -157,6 +180,8 @@ export interface InitOutput {
|
|
|
157
180
|
readonly close_airdrop: (a: number, b: number, c: any) => any;
|
|
158
181
|
readonly backup_rgb_data: (a: number, b: number) => any;
|
|
159
182
|
readonly restore_rgb_data: (a: number, b: number) => any;
|
|
183
|
+
readonly new_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
184
|
+
readonly update_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
160
185
|
readonly fund_rgb_vault: (a: number, b: number, c: number, d: any, e: number, f: number, g: bigint, h: number) => any;
|
|
161
186
|
readonly transfer_sats: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: any) => any;
|
|
162
187
|
readonly get_btc_wallet: (a: number, b: number) => any;
|
|
@@ -171,34 +196,11 @@ export interface InitOutput {
|
|
|
171
196
|
readonly watcher_next_address: (a: number, b: number, c: number, d: number) => any;
|
|
172
197
|
readonly watcher_next_utxo: (a: number, b: number, c: number, d: number) => any;
|
|
173
198
|
readonly watcher_unspent_utxos: (a: number, b: number, c: number, d: number) => any;
|
|
174
|
-
readonly store: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
175
|
-
readonly retrieve: (a: number, b: number, c: number, d: number) => any;
|
|
176
|
-
readonly retrieve_metadata: (a: number, b: number, c: number, d: number) => any;
|
|
177
|
-
readonly encode_hex: (a: number, b: number) => [number, number];
|
|
178
|
-
readonly encode_base64: (a: number, b: number) => [number, number];
|
|
179
|
-
readonly decode_hex: (a: number, b: number) => [number, number, number, number];
|
|
180
|
-
readonly decode_base64: (a: number, b: number) => [number, number, number, number];
|
|
181
|
-
readonly new_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
182
|
-
readonly update_nostr_pubkey: (a: number, b: number, c: number, d: number) => any;
|
|
183
199
|
readonly convert_contract_amount_raw: (a: number, b: number, c: number) => [number, number];
|
|
184
200
|
readonly convert_contract_amount_string: (a: bigint, b: number) => [number, number];
|
|
185
201
|
readonly parse_contract_amount: (a: number, b: number) => any;
|
|
186
202
|
readonly parse_contract_amount_precision: (a: number, b: number, c: number) => [number, number];
|
|
187
203
|
readonly version: () => any;
|
|
188
|
-
readonly get_network: () => any;
|
|
189
|
-
readonly switch_network: (a: number, b: number) => any;
|
|
190
|
-
readonly get_env: (a: number, b: number) => any;
|
|
191
|
-
readonly set_env: (a: number, b: number, c: number, d: number) => any;
|
|
192
|
-
readonly sleep: (a: number) => any;
|
|
193
|
-
readonly create_wallet: (a: number, b: number, c: number, d: number) => any;
|
|
194
|
-
readonly auth: (a: number, b: number, c: number, d: number) => any;
|
|
195
|
-
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
196
|
-
readonly get_balance: (a: number, b: number) => any;
|
|
197
|
-
readonly get_txs: (a: number, b: number) => any;
|
|
198
|
-
readonly pay_invoice: (a: number, b: number, c: number, d: number) => any;
|
|
199
|
-
readonly check_payment: (a: number, b: number) => any;
|
|
200
|
-
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => any;
|
|
201
|
-
readonly swap_ln_btc: (a: number, b: number, c: bigint, d: number, e: number) => any;
|
|
202
204
|
readonly rustsecp256k1_v0_9_2_context_create: (a: number) => number;
|
|
203
205
|
readonly rustsecp256k1_v0_9_2_context_destroy: (a: number) => void;
|
|
204
206
|
readonly rustsecp256k1_v0_9_2_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
@@ -224,12 +226,12 @@ export interface InitOutput {
|
|
|
224
226
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
225
227
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
226
228
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
229
|
+
readonly closure1782_externref_shim: (a: number, b: number, c: any) => void;
|
|
230
|
+
readonly closure2713_externref_shim: (a: number, b: number, c: any) => void;
|
|
231
|
+
readonly closure2744_externref_shim: (a: number, b: number, c: any) => void;
|
|
230
232
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ceba1bc0c075797: (a: number, b: number) => void;
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
+
readonly closure3924_externref_shim: (a: number, b: number, c: any) => void;
|
|
234
|
+
readonly closure4216_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
233
235
|
readonly __wbindgen_start: () => void;
|
|
234
236
|
}
|
|
235
237
|
|