bitmask-core 0.7.0-beta.8 → 0.7.0-beta.9
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 +227 -193
- package/bitmask_core.js +568 -489
- package/bitmask_core_bg.wasm +0 -0
- package/bitmask_core_bg.wasm.d.ts +34 -29
- package/package.json +1 -1
- package/rgb.d.ts +6 -1
- package/rgb.d.ts.map +1 -1
- package/rgb.js +11 -1
- package/rgb.ts +17 -1
- package/bitmask_core_bg.js +0 -1827
package/bitmask_core.d.ts
CHANGED
|
@@ -26,6 +26,184 @@ export function set_env(key: string, value: string): Promise<any>;
|
|
|
26
26
|
*/
|
|
27
27
|
export function sleep(ms: number): Promise<any>;
|
|
28
28
|
/**
|
|
29
|
+
* @param {string} secret_key
|
|
30
|
+
* @param {string} name
|
|
31
|
+
* @param {Uint8Array} data
|
|
32
|
+
* @param {boolean} force
|
|
33
|
+
* @param {Uint8Array | undefined} metadata
|
|
34
|
+
* @returns {Promise<any>}
|
|
35
|
+
*/
|
|
36
|
+
export function store(secret_key: string, name: string, data: Uint8Array, force: boolean, metadata?: Uint8Array): Promise<any>;
|
|
37
|
+
/**
|
|
38
|
+
* @param {string} secret_key
|
|
39
|
+
* @param {string} name
|
|
40
|
+
* @returns {Promise<any>}
|
|
41
|
+
*/
|
|
42
|
+
export function retrieve(secret_key: string, name: string): Promise<any>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} secret_key
|
|
45
|
+
* @param {string} name
|
|
46
|
+
* @returns {Promise<any>}
|
|
47
|
+
*/
|
|
48
|
+
export function retrieve_metadata(secret_key: string, name: string): Promise<any>;
|
|
49
|
+
/**
|
|
50
|
+
* @param {Uint8Array} bytes
|
|
51
|
+
* @returns {string}
|
|
52
|
+
*/
|
|
53
|
+
export function encode_hex(bytes: Uint8Array): string;
|
|
54
|
+
/**
|
|
55
|
+
* @param {Uint8Array} bytes
|
|
56
|
+
* @returns {string}
|
|
57
|
+
*/
|
|
58
|
+
export function encode_base64(bytes: Uint8Array): string;
|
|
59
|
+
/**
|
|
60
|
+
* @param {string} string
|
|
61
|
+
* @returns {Uint8Array}
|
|
62
|
+
*/
|
|
63
|
+
export function decode_hex(string: string): Uint8Array;
|
|
64
|
+
/**
|
|
65
|
+
* @param {string} string
|
|
66
|
+
* @returns {Uint8Array}
|
|
67
|
+
*/
|
|
68
|
+
export function decode_base64(string: string): Uint8Array;
|
|
69
|
+
/**
|
|
70
|
+
* @param {string} password
|
|
71
|
+
* @returns {string}
|
|
72
|
+
*/
|
|
73
|
+
export function hash_password(password: string): string;
|
|
74
|
+
/**
|
|
75
|
+
* @param {string} password
|
|
76
|
+
* @returns {Promise<any>}
|
|
77
|
+
*/
|
|
78
|
+
export function new_mnemonic(password: string): Promise<any>;
|
|
79
|
+
/**
|
|
80
|
+
* @param {string} hash
|
|
81
|
+
* @param {string} encrypted_descriptors
|
|
82
|
+
* @returns {Promise<any>}
|
|
83
|
+
*/
|
|
84
|
+
export function decrypt_wallet(hash: string, encrypted_descriptors: string): Promise<any>;
|
|
85
|
+
/**
|
|
86
|
+
* @param {string} hash
|
|
87
|
+
* @param {string} encrypted_descriptors
|
|
88
|
+
* @param {string} seed_password
|
|
89
|
+
* @returns {Promise<any>}
|
|
90
|
+
*/
|
|
91
|
+
export function upgrade_wallet(hash: string, encrypted_descriptors: string, seed_password: string): Promise<any>;
|
|
92
|
+
/**
|
|
93
|
+
* @param {string} hash
|
|
94
|
+
* @param {string} seed_password
|
|
95
|
+
* @returns {Promise<any>}
|
|
96
|
+
*/
|
|
97
|
+
export function new_wallet(hash: string, seed_password: string): Promise<any>;
|
|
98
|
+
/**
|
|
99
|
+
* @param {string} mnemonic
|
|
100
|
+
* @param {string} hash
|
|
101
|
+
* @param {string} seed_password
|
|
102
|
+
* @returns {Promise<any>}
|
|
103
|
+
*/
|
|
104
|
+
export function encrypt_wallet(mnemonic: string, hash: string, seed_password: string): Promise<any>;
|
|
105
|
+
/**
|
|
106
|
+
* @param {string} descriptor
|
|
107
|
+
* @param {string | undefined} change_descriptor
|
|
108
|
+
* @returns {Promise<any>}
|
|
109
|
+
*/
|
|
110
|
+
export function get_wallet_data(descriptor: string, change_descriptor?: string): Promise<any>;
|
|
111
|
+
/**
|
|
112
|
+
* @returns {Promise<any>}
|
|
113
|
+
*/
|
|
114
|
+
export function sync_wallets(): Promise<any>;
|
|
115
|
+
/**
|
|
116
|
+
* @param {string} descriptor
|
|
117
|
+
* @param {string | undefined} change_descriptor
|
|
118
|
+
* @returns {Promise<any>}
|
|
119
|
+
*/
|
|
120
|
+
export function get_new_address(descriptor: string, change_descriptor?: string): Promise<any>;
|
|
121
|
+
/**
|
|
122
|
+
* @param {string} descriptor
|
|
123
|
+
* @param {string} change_descriptor
|
|
124
|
+
* @param {string} destination
|
|
125
|
+
* @param {bigint} amount
|
|
126
|
+
* @param {number | undefined} fee_rate
|
|
127
|
+
* @returns {Promise<any>}
|
|
128
|
+
*/
|
|
129
|
+
export function send_sats(descriptor: string, change_descriptor: string, destination: string, amount: bigint, fee_rate?: number): Promise<any>;
|
|
130
|
+
/**
|
|
131
|
+
* @param {string} destination
|
|
132
|
+
* @param {string} descriptor
|
|
133
|
+
* @param {string | undefined} change_descriptor
|
|
134
|
+
* @param {number | undefined} fee_rate
|
|
135
|
+
* @returns {Promise<any>}
|
|
136
|
+
*/
|
|
137
|
+
export function drain_wallet(destination: string, descriptor: string, change_descriptor?: string, fee_rate?: number): Promise<any>;
|
|
138
|
+
/**
|
|
139
|
+
* @param {string} descriptor
|
|
140
|
+
* @param {string} change_descriptor
|
|
141
|
+
* @param {string} asset_address_1
|
|
142
|
+
* @param {string} uda_address_1
|
|
143
|
+
* @param {number | undefined} fee_rate
|
|
144
|
+
* @returns {Promise<any>}
|
|
145
|
+
*/
|
|
146
|
+
export function fund_vault(descriptor: string, change_descriptor: string, asset_address_1: string, uda_address_1: string, fee_rate?: number): Promise<any>;
|
|
147
|
+
/**
|
|
148
|
+
* @param {string} rgb_assets_descriptor_xpub
|
|
149
|
+
* @param {string} rgb_udas_descriptor_xpub
|
|
150
|
+
* @returns {Promise<any>}
|
|
151
|
+
*/
|
|
152
|
+
export function get_assets_vault(rgb_assets_descriptor_xpub: string, rgb_udas_descriptor_xpub: string): Promise<any>;
|
|
153
|
+
/**
|
|
154
|
+
* @param {string} username
|
|
155
|
+
* @param {string} password
|
|
156
|
+
* @returns {Promise<any>}
|
|
157
|
+
*/
|
|
158
|
+
export function create_wallet(username: string, password: string): Promise<any>;
|
|
159
|
+
/**
|
|
160
|
+
* @param {string} username
|
|
161
|
+
* @param {string} password
|
|
162
|
+
* @returns {Promise<any>}
|
|
163
|
+
*/
|
|
164
|
+
export function auth(username: string, password: string): Promise<any>;
|
|
165
|
+
/**
|
|
166
|
+
* @param {string} description
|
|
167
|
+
* @param {number} amount
|
|
168
|
+
* @param {string} token
|
|
169
|
+
* @returns {Promise<any>}
|
|
170
|
+
*/
|
|
171
|
+
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
172
|
+
/**
|
|
173
|
+
* @param {string} token
|
|
174
|
+
* @returns {Promise<any>}
|
|
175
|
+
*/
|
|
176
|
+
export function get_balance(token: string): Promise<any>;
|
|
177
|
+
/**
|
|
178
|
+
* @param {string} token
|
|
179
|
+
* @returns {Promise<any>}
|
|
180
|
+
*/
|
|
181
|
+
export function get_txs(token: string): Promise<any>;
|
|
182
|
+
/**
|
|
183
|
+
* @param {string} payment_request
|
|
184
|
+
* @param {string} token
|
|
185
|
+
* @returns {Promise<any>}
|
|
186
|
+
*/
|
|
187
|
+
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
188
|
+
/**
|
|
189
|
+
* @param {string} payment_hash
|
|
190
|
+
* @returns {Promise<any>}
|
|
191
|
+
*/
|
|
192
|
+
export function check_payment(payment_hash: string): Promise<any>;
|
|
193
|
+
/**
|
|
194
|
+
* @param {string} token
|
|
195
|
+
* @param {string | undefined} ln_address
|
|
196
|
+
* @returns {Promise<any>}
|
|
197
|
+
*/
|
|
198
|
+
export function swap_btc_ln(token: string, ln_address?: string): Promise<any>;
|
|
199
|
+
/**
|
|
200
|
+
* @param {string} address
|
|
201
|
+
* @param {bigint} amount
|
|
202
|
+
* @param {string} token
|
|
203
|
+
* @returns {Promise<any>}
|
|
204
|
+
*/
|
|
205
|
+
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
206
|
+
/**
|
|
29
207
|
* @param {string} pubkey
|
|
30
208
|
* @param {string} token
|
|
31
209
|
* @returns {Promise<any>}
|
|
@@ -281,183 +459,34 @@ export function get_media_metadata(media_id: string): Promise<any>;
|
|
|
281
459
|
*/
|
|
282
460
|
export function import_uda_data(request: any): Promise<any>;
|
|
283
461
|
/**
|
|
284
|
-
* @param {string} password
|
|
285
|
-
* @returns {string}
|
|
286
|
-
*/
|
|
287
|
-
export function hash_password(password: string): string;
|
|
288
|
-
/**
|
|
289
|
-
* @param {string} password
|
|
290
|
-
* @returns {Promise<any>}
|
|
291
|
-
*/
|
|
292
|
-
export function new_mnemonic(password: string): Promise<any>;
|
|
293
|
-
/**
|
|
294
|
-
* @param {string} hash
|
|
295
|
-
* @param {string} encrypted_descriptors
|
|
296
|
-
* @returns {Promise<any>}
|
|
297
|
-
*/
|
|
298
|
-
export function decrypt_wallet(hash: string, encrypted_descriptors: string): Promise<any>;
|
|
299
|
-
/**
|
|
300
|
-
* @param {string} hash
|
|
301
|
-
* @param {string} encrypted_descriptors
|
|
302
|
-
* @param {string} seed_password
|
|
303
|
-
* @returns {Promise<any>}
|
|
304
|
-
*/
|
|
305
|
-
export function upgrade_wallet(hash: string, encrypted_descriptors: string, seed_password: string): Promise<any>;
|
|
306
|
-
/**
|
|
307
|
-
* @param {string} hash
|
|
308
|
-
* @param {string} seed_password
|
|
309
|
-
* @returns {Promise<any>}
|
|
310
|
-
*/
|
|
311
|
-
export function new_wallet(hash: string, seed_password: string): Promise<any>;
|
|
312
|
-
/**
|
|
313
|
-
* @param {string} mnemonic
|
|
314
|
-
* @param {string} hash
|
|
315
|
-
* @param {string} seed_password
|
|
316
|
-
* @returns {Promise<any>}
|
|
317
|
-
*/
|
|
318
|
-
export function encrypt_wallet(mnemonic: string, hash: string, seed_password: string): Promise<any>;
|
|
319
|
-
/**
|
|
320
|
-
* @param {string} descriptor
|
|
321
|
-
* @param {string | undefined} change_descriptor
|
|
322
|
-
* @returns {Promise<any>}
|
|
323
|
-
*/
|
|
324
|
-
export function get_wallet_data(descriptor: string, change_descriptor?: string): Promise<any>;
|
|
325
|
-
/**
|
|
326
|
-
* @returns {Promise<any>}
|
|
327
|
-
*/
|
|
328
|
-
export function sync_wallets(): Promise<any>;
|
|
329
|
-
/**
|
|
330
|
-
* @param {string} descriptor
|
|
331
|
-
* @param {string | undefined} change_descriptor
|
|
332
|
-
* @returns {Promise<any>}
|
|
333
|
-
*/
|
|
334
|
-
export function get_new_address(descriptor: string, change_descriptor?: string): Promise<any>;
|
|
335
|
-
/**
|
|
336
|
-
* @param {string} descriptor
|
|
337
|
-
* @param {string} change_descriptor
|
|
338
|
-
* @param {string} destination
|
|
339
462
|
* @param {bigint} amount
|
|
340
|
-
* @param {number
|
|
341
|
-
* @returns {
|
|
342
|
-
*/
|
|
343
|
-
export function send_sats(descriptor: string, change_descriptor: string, destination: string, amount: bigint, fee_rate?: number): Promise<any>;
|
|
344
|
-
/**
|
|
345
|
-
* @param {string} destination
|
|
346
|
-
* @param {string} descriptor
|
|
347
|
-
* @param {string | undefined} change_descriptor
|
|
348
|
-
* @param {number | undefined} fee_rate
|
|
349
|
-
* @returns {Promise<any>}
|
|
350
|
-
*/
|
|
351
|
-
export function drain_wallet(destination: string, descriptor: string, change_descriptor?: string, fee_rate?: number): Promise<any>;
|
|
352
|
-
/**
|
|
353
|
-
* @param {string} descriptor
|
|
354
|
-
* @param {string} change_descriptor
|
|
355
|
-
* @param {string} asset_address_1
|
|
356
|
-
* @param {string} uda_address_1
|
|
357
|
-
* @param {number | undefined} fee_rate
|
|
358
|
-
* @returns {Promise<any>}
|
|
359
|
-
*/
|
|
360
|
-
export function fund_vault(descriptor: string, change_descriptor: string, asset_address_1: string, uda_address_1: string, fee_rate?: number): Promise<any>;
|
|
361
|
-
/**
|
|
362
|
-
* @param {string} rgb_assets_descriptor_xpub
|
|
363
|
-
* @param {string} rgb_udas_descriptor_xpub
|
|
364
|
-
* @returns {Promise<any>}
|
|
365
|
-
*/
|
|
366
|
-
export function get_assets_vault(rgb_assets_descriptor_xpub: string, rgb_udas_descriptor_xpub: string): Promise<any>;
|
|
367
|
-
/**
|
|
368
|
-
* @param {string} username
|
|
369
|
-
* @param {string} password
|
|
370
|
-
* @returns {Promise<any>}
|
|
371
|
-
*/
|
|
372
|
-
export function create_wallet(username: string, password: string): Promise<any>;
|
|
373
|
-
/**
|
|
374
|
-
* @param {string} username
|
|
375
|
-
* @param {string} password
|
|
376
|
-
* @returns {Promise<any>}
|
|
377
|
-
*/
|
|
378
|
-
export function auth(username: string, password: string): Promise<any>;
|
|
379
|
-
/**
|
|
380
|
-
* @param {string} description
|
|
381
|
-
* @param {number} amount
|
|
382
|
-
* @param {string} token
|
|
383
|
-
* @returns {Promise<any>}
|
|
384
|
-
*/
|
|
385
|
-
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
386
|
-
/**
|
|
387
|
-
* @param {string} token
|
|
388
|
-
* @returns {Promise<any>}
|
|
389
|
-
*/
|
|
390
|
-
export function get_balance(token: string): Promise<any>;
|
|
391
|
-
/**
|
|
392
|
-
* @param {string} token
|
|
393
|
-
* @returns {Promise<any>}
|
|
394
|
-
*/
|
|
395
|
-
export function get_txs(token: string): Promise<any>;
|
|
396
|
-
/**
|
|
397
|
-
* @param {string} payment_request
|
|
398
|
-
* @param {string} token
|
|
399
|
-
* @returns {Promise<any>}
|
|
400
|
-
*/
|
|
401
|
-
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
402
|
-
/**
|
|
403
|
-
* @param {string} payment_hash
|
|
404
|
-
* @returns {Promise<any>}
|
|
405
|
-
*/
|
|
406
|
-
export function check_payment(payment_hash: string): Promise<any>;
|
|
407
|
-
/**
|
|
408
|
-
* @param {string} token
|
|
409
|
-
* @param {string | undefined} ln_address
|
|
410
|
-
* @returns {Promise<any>}
|
|
463
|
+
* @param {number} precision
|
|
464
|
+
* @returns {bigint}
|
|
411
465
|
*/
|
|
412
|
-
export function
|
|
466
|
+
export function contract_amount(amount: bigint, precision: number): bigint;
|
|
413
467
|
/**
|
|
414
|
-
* @param {string} address
|
|
415
468
|
* @param {bigint} amount
|
|
416
|
-
* @param {
|
|
417
|
-
* @returns {Promise<any>}
|
|
418
|
-
*/
|
|
419
|
-
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
420
|
-
/**
|
|
421
|
-
* @param {string} secret_key
|
|
422
|
-
* @param {string} name
|
|
423
|
-
* @param {Uint8Array} data
|
|
424
|
-
* @param {boolean} force
|
|
425
|
-
* @param {Uint8Array | undefined} metadata
|
|
426
|
-
* @returns {Promise<any>}
|
|
427
|
-
*/
|
|
428
|
-
export function store(secret_key: string, name: string, data: Uint8Array, force: boolean, metadata?: Uint8Array): Promise<any>;
|
|
429
|
-
/**
|
|
430
|
-
* @param {string} secret_key
|
|
431
|
-
* @param {string} name
|
|
432
|
-
* @returns {Promise<any>}
|
|
433
|
-
*/
|
|
434
|
-
export function retrieve(secret_key: string, name: string): Promise<any>;
|
|
435
|
-
/**
|
|
436
|
-
* @param {string} secret_key
|
|
437
|
-
* @param {string} name
|
|
438
|
-
* @returns {Promise<any>}
|
|
439
|
-
*/
|
|
440
|
-
export function retrieve_metadata(secret_key: string, name: string): Promise<any>;
|
|
441
|
-
/**
|
|
442
|
-
* @param {Uint8Array} bytes
|
|
469
|
+
* @param {number} precision
|
|
443
470
|
* @returns {string}
|
|
444
471
|
*/
|
|
445
|
-
export function
|
|
472
|
+
export function contract_amount_str(amount: bigint, precision: number): string;
|
|
446
473
|
/**
|
|
447
|
-
* @param {
|
|
474
|
+
* @param {string} amount
|
|
475
|
+
* @param {number} precision
|
|
448
476
|
* @returns {string}
|
|
449
477
|
*/
|
|
450
|
-
export function
|
|
478
|
+
export function contract_amount_parse_str(amount: string, precision: number): string;
|
|
451
479
|
/**
|
|
452
|
-
* @param {string}
|
|
453
|
-
* @
|
|
480
|
+
* @param {string} amount
|
|
481
|
+
* @param {number} precision
|
|
482
|
+
* @returns {bigint}
|
|
454
483
|
*/
|
|
455
|
-
export function
|
|
484
|
+
export function contract_amount_parse_value(amount: string, precision: number): bigint;
|
|
456
485
|
/**
|
|
457
|
-
* @param {string}
|
|
458
|
-
* @returns {
|
|
486
|
+
* @param {string} amount
|
|
487
|
+
* @returns {bigint}
|
|
459
488
|
*/
|
|
460
|
-
export function
|
|
489
|
+
export function contract_amount_parse_decimal_value(amount: string): bigint;
|
|
461
490
|
|
|
462
491
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
463
492
|
|
|
@@ -468,8 +497,37 @@ export interface InitOutput {
|
|
|
468
497
|
readonly set_env: (a: number, b: number, c: number, d: number) => number;
|
|
469
498
|
readonly sleep: (a: number) => number;
|
|
470
499
|
readonly get_network: () => number;
|
|
500
|
+
readonly store: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
501
|
+
readonly retrieve: (a: number, b: number, c: number, d: number) => number;
|
|
502
|
+
readonly retrieve_metadata: (a: number, b: number, c: number, d: number) => number;
|
|
503
|
+
readonly encode_hex: (a: number, b: number, c: number) => void;
|
|
504
|
+
readonly encode_base64: (a: number, b: number, c: number) => void;
|
|
505
|
+
readonly decode_hex: (a: number, b: number, c: number) => void;
|
|
506
|
+
readonly decode_base64: (a: number, b: number, c: number) => void;
|
|
507
|
+
readonly hash_password: (a: number, b: number, c: number) => void;
|
|
508
|
+
readonly new_mnemonic: (a: number, b: number) => number;
|
|
509
|
+
readonly decrypt_wallet: (a: number, b: number, c: number, d: number) => number;
|
|
510
|
+
readonly upgrade_wallet: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
511
|
+
readonly new_wallet: (a: number, b: number, c: number, d: number) => number;
|
|
512
|
+
readonly encrypt_wallet: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
513
|
+
readonly get_wallet_data: (a: number, b: number, c: number, d: number) => number;
|
|
514
|
+
readonly get_new_address: (a: number, b: number, c: number, d: number) => number;
|
|
515
|
+
readonly send_sats: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
516
|
+
readonly drain_wallet: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
517
|
+
readonly fund_vault: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
518
|
+
readonly get_assets_vault: (a: number, b: number, c: number, d: number) => number;
|
|
519
|
+
readonly create_wallet: (a: number, b: number, c: number, d: number) => number;
|
|
520
|
+
readonly auth: (a: number, b: number, c: number, d: number) => number;
|
|
521
|
+
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
522
|
+
readonly get_balance: (a: number, b: number) => number;
|
|
523
|
+
readonly get_txs: (a: number, b: number) => number;
|
|
524
|
+
readonly pay_invoice: (a: number, b: number, c: number, d: number) => number;
|
|
525
|
+
readonly check_payment: (a: number, b: number) => number;
|
|
526
|
+
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => number;
|
|
527
|
+
readonly swap_ln_btc: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
471
528
|
readonly new_nostr_pubkey: (a: number, b: number, c: number, d: number) => number;
|
|
472
529
|
readonly update_nostr_pubkey: (a: number, b: number, c: number, d: number) => number;
|
|
530
|
+
readonly sync_wallets: () => number;
|
|
473
531
|
readonly issue_contract: (a: number, b: number, c: number) => number;
|
|
474
532
|
readonly reissue_contract: (a: number, b: number, c: number) => number;
|
|
475
533
|
readonly rgb_create_invoice: (a: number, b: number, c: number) => number;
|
|
@@ -510,37 +568,13 @@ export interface InitOutput {
|
|
|
510
568
|
readonly my_bids: (a: number, b: number) => number;
|
|
511
569
|
readonly get_consignment: (a: number, b: number) => number;
|
|
512
570
|
readonly get_media_metadata: (a: number, b: number) => number;
|
|
571
|
+
readonly contract_amount: (a: number, b: number) => number;
|
|
572
|
+
readonly contract_amount_str: (a: number, b: number, c: number) => void;
|
|
573
|
+
readonly contract_amount_parse_str: (a: number, b: number, c: number, d: number) => void;
|
|
574
|
+
readonly contract_amount_parse_value: (a: number, b: number, c: number) => number;
|
|
575
|
+
readonly contract_amount_parse_decimal_value: (a: number, b: number) => number;
|
|
513
576
|
readonly import_consignments: (a: number) => number;
|
|
514
577
|
readonly import_uda_data: (a: number) => number;
|
|
515
|
-
readonly hash_password: (a: number, b: number, c: number) => void;
|
|
516
|
-
readonly new_mnemonic: (a: number, b: number) => number;
|
|
517
|
-
readonly decrypt_wallet: (a: number, b: number, c: number, d: number) => number;
|
|
518
|
-
readonly upgrade_wallet: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
519
|
-
readonly new_wallet: (a: number, b: number, c: number, d: number) => number;
|
|
520
|
-
readonly encrypt_wallet: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
521
|
-
readonly get_wallet_data: (a: number, b: number, c: number, d: number) => number;
|
|
522
|
-
readonly get_new_address: (a: number, b: number, c: number, d: number) => number;
|
|
523
|
-
readonly send_sats: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
524
|
-
readonly drain_wallet: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
525
|
-
readonly fund_vault: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
526
|
-
readonly get_assets_vault: (a: number, b: number, c: number, d: number) => number;
|
|
527
|
-
readonly create_wallet: (a: number, b: number, c: number, d: number) => number;
|
|
528
|
-
readonly auth: (a: number, b: number, c: number, d: number) => number;
|
|
529
|
-
readonly ln_create_invoice: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
530
|
-
readonly get_balance: (a: number, b: number) => number;
|
|
531
|
-
readonly get_txs: (a: number, b: number) => number;
|
|
532
|
-
readonly pay_invoice: (a: number, b: number, c: number, d: number) => number;
|
|
533
|
-
readonly check_payment: (a: number, b: number) => number;
|
|
534
|
-
readonly swap_btc_ln: (a: number, b: number, c: number, d: number) => number;
|
|
535
|
-
readonly swap_ln_btc: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
536
|
-
readonly store: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
537
|
-
readonly retrieve: (a: number, b: number, c: number, d: number) => number;
|
|
538
|
-
readonly retrieve_metadata: (a: number, b: number, c: number, d: number) => number;
|
|
539
|
-
readonly encode_hex: (a: number, b: number, c: number) => void;
|
|
540
|
-
readonly encode_base64: (a: number, b: number, c: number) => void;
|
|
541
|
-
readonly decode_hex: (a: number, b: number, c: number) => void;
|
|
542
|
-
readonly decode_base64: (a: number, b: number, c: number) => void;
|
|
543
|
-
readonly sync_wallets: () => number;
|
|
544
578
|
readonly rustsecp256k1zkp_v0_8_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
545
579
|
readonly rustsecp256k1zkp_v0_8_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
546
580
|
readonly rustsecp256k1_v0_8_1_context_create: (a: number) => number;
|