bitmask-core 0.6.0-beta.1 → 0.6.0-beta.2

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 CHANGED
@@ -1,6 +1,79 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
+ * @param {string} username
5
+ * @param {string} password
6
+ * @returns {Promise<any>}
7
+ */
8
+ export function create_wallet(username: string, password: string): Promise<any>;
9
+ /**
10
+ * @param {string} username
11
+ * @param {string} password
12
+ * @returns {Promise<any>}
13
+ */
14
+ export function auth(username: string, password: string): Promise<any>;
15
+ /**
16
+ * @param {string} description
17
+ * @param {number} amount
18
+ * @param {string} token
19
+ * @returns {Promise<any>}
20
+ */
21
+ export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
22
+ /**
23
+ * @param {string} token
24
+ * @returns {Promise<any>}
25
+ */
26
+ export function get_balance(token: string): Promise<any>;
27
+ /**
28
+ * @param {string} token
29
+ * @returns {Promise<any>}
30
+ */
31
+ export function get_txs(token: string): Promise<any>;
32
+ /**
33
+ * @param {string} payment_request
34
+ * @param {string} token
35
+ * @returns {Promise<any>}
36
+ */
37
+ export function pay_invoice(payment_request: string, token: string): Promise<any>;
38
+ /**
39
+ * @param {string} payment_hash
40
+ * @returns {Promise<any>}
41
+ */
42
+ export function check_payment(payment_hash: string): Promise<any>;
43
+ /**
44
+ * @returns {Promise<any>}
45
+ */
46
+ export function get_network(): Promise<any>;
47
+ /**
48
+ * @param {string} network_str
49
+ * @returns {Promise<any>}
50
+ */
51
+ export function switch_network(network_str: string): Promise<any>;
52
+ /**
53
+ * @param {string} key
54
+ * @returns {Promise<any>}
55
+ */
56
+ export function get_env(key: string): Promise<any>;
57
+ /**
58
+ * @param {string} key
59
+ * @param {string} value
60
+ * @returns {Promise<any>}
61
+ */
62
+ export function set_env(key: string, value: string): Promise<any>;
63
+ /**
64
+ * @param {string} secret_key
65
+ * @param {string} name
66
+ * @param {Uint8Array} data
67
+ * @returns {Promise<any>}
68
+ */
69
+ export function store(secret_key: string, name: string, data: Uint8Array): Promise<any>;
70
+ /**
71
+ * @param {string} secret_key
72
+ * @param {string} name
73
+ * @returns {Promise<any>}
74
+ */
75
+ export function retrieve(secret_key: string, name: string): Promise<any>;
76
+ /**
4
77
  * @param {string} nostr_hex_sk
5
78
  * @param {string} ticker
6
79
  * @param {string} name
@@ -59,7 +132,7 @@ export function list_schemas(nostr_hex_sk: string): Promise<any>;
59
132
  * @param {any} request
60
133
  * @returns {Promise<any>}
61
134
  */
62
- export function _import(nostr_hex_sk: string, request: any): Promise<any>;
135
+ export function import_contract(nostr_hex_sk: string, request: any): Promise<any>;
63
136
  /**
64
137
  * @param {string} password
65
138
  * @param {string} encrypted_descriptors
@@ -111,76 +184,3 @@ export function fund_vault(descriptor: string, change_descriptor: string, addres
111
184
  * @returns {Promise<any>}
112
185
  */
113
186
  export function get_assets_vault(rgb_assets_descriptor_xpub: string, rgb_udas_descriptor_xpub: string): Promise<any>;
114
- /**
115
- * @param {string} secret_key
116
- * @param {string} name
117
- * @param {Uint8Array} data
118
- * @returns {Promise<any>}
119
- */
120
- export function store(secret_key: string, name: string, data: Uint8Array): Promise<any>;
121
- /**
122
- * @param {string} secret_key
123
- * @param {string} name
124
- * @returns {Promise<any>}
125
- */
126
- export function retrieve(secret_key: string, name: string): Promise<any>;
127
- /**
128
- * @returns {Promise<any>}
129
- */
130
- export function get_network(): Promise<any>;
131
- /**
132
- * @param {string} network_str
133
- * @returns {Promise<any>}
134
- */
135
- export function switch_network(network_str: string): Promise<any>;
136
- /**
137
- * @param {string} key
138
- * @returns {Promise<any>}
139
- */
140
- export function get_env(key: string): Promise<any>;
141
- /**
142
- * @param {string} key
143
- * @param {string} value
144
- * @returns {Promise<any>}
145
- */
146
- export function set_env(key: string, value: string): Promise<any>;
147
- /**
148
- * @param {string} username
149
- * @param {string} password
150
- * @returns {Promise<any>}
151
- */
152
- export function create_wallet(username: string, password: string): Promise<any>;
153
- /**
154
- * @param {string} username
155
- * @param {string} password
156
- * @returns {Promise<any>}
157
- */
158
- export function auth(username: string, password: string): Promise<any>;
159
- /**
160
- * @param {string} description
161
- * @param {number} amount
162
- * @param {string} token
163
- * @returns {Promise<any>}
164
- */
165
- export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
166
- /**
167
- * @param {string} token
168
- * @returns {Promise<any>}
169
- */
170
- export function get_balance(token: string): Promise<any>;
171
- /**
172
- * @param {string} token
173
- * @returns {Promise<any>}
174
- */
175
- export function get_txs(token: string): Promise<any>;
176
- /**
177
- * @param {string} payment_request
178
- * @param {string} token
179
- * @returns {Promise<any>}
180
- */
181
- export function pay_invoice(payment_request: string, token: string): Promise<any>;
182
- /**
183
- * @param {string} payment_hash
184
- * @returns {Promise<any>}
185
- */
186
- export function check_payment(payment_hash: string): Promise<any>;
@@ -103,6 +103,15 @@ function takeObject(idx) {
103
103
  return ret;
104
104
  }
105
105
 
106
+ function addHeapObject(obj) {
107
+ if (heap_next === heap.length) heap.push(heap.length + 1);
108
+ const idx = heap_next;
109
+ heap_next = heap[idx];
110
+
111
+ heap[idx] = obj;
112
+ return idx;
113
+ }
114
+
106
115
  const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
107
116
 
108
117
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -113,15 +122,6 @@ function getStringFromWasm0(ptr, len) {
113
122
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
114
123
  }
115
124
 
116
- function addHeapObject(obj) {
117
- if (heap_next === heap.length) heap.push(heap.length + 1);
118
- const idx = heap_next;
119
- heap_next = heap[idx];
120
-
121
- heap[idx] = obj;
122
- return idx;
123
- }
124
-
125
125
  let cachedFloat64Memory0 = null;
126
126
 
127
127
  function getFloat64Memory0() {
@@ -230,7 +230,178 @@ function makeMutClosure(arg0, arg1, dtor, f) {
230
230
  return real;
231
231
  }
232
232
  function __wbg_adapter_44(arg0, arg1, arg2) {
233
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcacd31037c41b0a2(arg0, arg1, addHeapObject(arg2));
233
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7b84be60ca8b9fd3(arg0, arg1, addHeapObject(arg2));
234
+ }
235
+
236
+ /**
237
+ * @param {string} username
238
+ * @param {string} password
239
+ * @returns {Promise<any>}
240
+ */
241
+ export function create_wallet(username, password) {
242
+ const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
243
+ const len0 = WASM_VECTOR_LEN;
244
+ const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
+ const len1 = WASM_VECTOR_LEN;
246
+ const ret = wasm.create_wallet(ptr0, len0, ptr1, len1);
247
+ return takeObject(ret);
248
+ }
249
+
250
+ /**
251
+ * @param {string} username
252
+ * @param {string} password
253
+ * @returns {Promise<any>}
254
+ */
255
+ export function auth(username, password) {
256
+ const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
257
+ const len0 = WASM_VECTOR_LEN;
258
+ const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
259
+ const len1 = WASM_VECTOR_LEN;
260
+ const ret = wasm.auth(ptr0, len0, ptr1, len1);
261
+ return takeObject(ret);
262
+ }
263
+
264
+ /**
265
+ * @param {string} description
266
+ * @param {number} amount
267
+ * @param {string} token
268
+ * @returns {Promise<any>}
269
+ */
270
+ export function ln_create_invoice(description, amount, token) {
271
+ const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
272
+ const len0 = WASM_VECTOR_LEN;
273
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
274
+ const len1 = WASM_VECTOR_LEN;
275
+ const ret = wasm.ln_create_invoice(ptr0, len0, amount, ptr1, len1);
276
+ return takeObject(ret);
277
+ }
278
+
279
+ /**
280
+ * @param {string} token
281
+ * @returns {Promise<any>}
282
+ */
283
+ export function get_balance(token) {
284
+ const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
285
+ const len0 = WASM_VECTOR_LEN;
286
+ const ret = wasm.get_balance(ptr0, len0);
287
+ return takeObject(ret);
288
+ }
289
+
290
+ /**
291
+ * @param {string} token
292
+ * @returns {Promise<any>}
293
+ */
294
+ export function get_txs(token) {
295
+ const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ const len0 = WASM_VECTOR_LEN;
297
+ const ret = wasm.get_txs(ptr0, len0);
298
+ return takeObject(ret);
299
+ }
300
+
301
+ /**
302
+ * @param {string} payment_request
303
+ * @param {string} token
304
+ * @returns {Promise<any>}
305
+ */
306
+ export function pay_invoice(payment_request, token) {
307
+ const ptr0 = passStringToWasm0(payment_request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
+ const len0 = WASM_VECTOR_LEN;
309
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
+ const len1 = WASM_VECTOR_LEN;
311
+ const ret = wasm.pay_invoice(ptr0, len0, ptr1, len1);
312
+ return takeObject(ret);
313
+ }
314
+
315
+ /**
316
+ * @param {string} payment_hash
317
+ * @returns {Promise<any>}
318
+ */
319
+ export function check_payment(payment_hash) {
320
+ const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
321
+ const len0 = WASM_VECTOR_LEN;
322
+ const ret = wasm.check_payment(ptr0, len0);
323
+ return takeObject(ret);
324
+ }
325
+
326
+ /**
327
+ * @returns {Promise<any>}
328
+ */
329
+ export function get_network() {
330
+ const ret = wasm.get_network();
331
+ return takeObject(ret);
332
+ }
333
+
334
+ /**
335
+ * @param {string} network_str
336
+ * @returns {Promise<any>}
337
+ */
338
+ export function switch_network(network_str) {
339
+ const ptr0 = passStringToWasm0(network_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
340
+ const len0 = WASM_VECTOR_LEN;
341
+ const ret = wasm.switch_network(ptr0, len0);
342
+ return takeObject(ret);
343
+ }
344
+
345
+ /**
346
+ * @param {string} key
347
+ * @returns {Promise<any>}
348
+ */
349
+ export function get_env(key) {
350
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
351
+ const len0 = WASM_VECTOR_LEN;
352
+ const ret = wasm.get_env(ptr0, len0);
353
+ return takeObject(ret);
354
+ }
355
+
356
+ /**
357
+ * @param {string} key
358
+ * @param {string} value
359
+ * @returns {Promise<any>}
360
+ */
361
+ export function set_env(key, value) {
362
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
363
+ const len0 = WASM_VECTOR_LEN;
364
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
365
+ const len1 = WASM_VECTOR_LEN;
366
+ const ret = wasm.set_env(ptr0, len0, ptr1, len1);
367
+ return takeObject(ret);
368
+ }
369
+
370
+ function passArray8ToWasm0(arg, malloc) {
371
+ const ptr = malloc(arg.length * 1);
372
+ getUint8Memory0().set(arg, ptr / 1);
373
+ WASM_VECTOR_LEN = arg.length;
374
+ return ptr;
375
+ }
376
+ /**
377
+ * @param {string} secret_key
378
+ * @param {string} name
379
+ * @param {Uint8Array} data
380
+ * @returns {Promise<any>}
381
+ */
382
+ export function store(secret_key, name, data) {
383
+ const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
384
+ const len0 = WASM_VECTOR_LEN;
385
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
386
+ const len1 = WASM_VECTOR_LEN;
387
+ const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
388
+ const len2 = WASM_VECTOR_LEN;
389
+ const ret = wasm.store(ptr0, len0, ptr1, len1, ptr2, len2);
390
+ return takeObject(ret);
391
+ }
392
+
393
+ /**
394
+ * @param {string} secret_key
395
+ * @param {string} name
396
+ * @returns {Promise<any>}
397
+ */
398
+ export function retrieve(secret_key, name) {
399
+ const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
400
+ const len0 = WASM_VECTOR_LEN;
401
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
402
+ const len1 = WASM_VECTOR_LEN;
403
+ const ret = wasm.retrieve(ptr0, len0, ptr1, len1);
404
+ return takeObject(ret);
234
405
  }
235
406
 
236
407
  /**
@@ -356,10 +527,10 @@ export function list_schemas(nostr_hex_sk) {
356
527
  * @param {any} request
357
528
  * @returns {Promise<any>}
358
529
  */
359
- export function _import(nostr_hex_sk, request) {
530
+ export function import_contract(nostr_hex_sk, request) {
360
531
  const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
361
532
  const len0 = WASM_VECTOR_LEN;
362
- const ret = wasm._import(ptr0, len0, addHeapObject(request));
533
+ const ret = wasm.import_contract(ptr0, len0, addHeapObject(request));
363
534
  return takeObject(ret);
364
535
  }
365
536
 
@@ -478,177 +649,6 @@ export function get_assets_vault(rgb_assets_descriptor_xpub, rgb_udas_descriptor
478
649
  return takeObject(ret);
479
650
  }
480
651
 
481
- function passArray8ToWasm0(arg, malloc) {
482
- const ptr = malloc(arg.length * 1);
483
- getUint8Memory0().set(arg, ptr / 1);
484
- WASM_VECTOR_LEN = arg.length;
485
- return ptr;
486
- }
487
- /**
488
- * @param {string} secret_key
489
- * @param {string} name
490
- * @param {Uint8Array} data
491
- * @returns {Promise<any>}
492
- */
493
- export function store(secret_key, name, data) {
494
- const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
495
- const len0 = WASM_VECTOR_LEN;
496
- const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
497
- const len1 = WASM_VECTOR_LEN;
498
- const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
499
- const len2 = WASM_VECTOR_LEN;
500
- const ret = wasm.store(ptr0, len0, ptr1, len1, ptr2, len2);
501
- return takeObject(ret);
502
- }
503
-
504
- /**
505
- * @param {string} secret_key
506
- * @param {string} name
507
- * @returns {Promise<any>}
508
- */
509
- export function retrieve(secret_key, name) {
510
- const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
511
- const len0 = WASM_VECTOR_LEN;
512
- const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
513
- const len1 = WASM_VECTOR_LEN;
514
- const ret = wasm.retrieve(ptr0, len0, ptr1, len1);
515
- return takeObject(ret);
516
- }
517
-
518
- /**
519
- * @returns {Promise<any>}
520
- */
521
- export function get_network() {
522
- const ret = wasm.get_network();
523
- return takeObject(ret);
524
- }
525
-
526
- /**
527
- * @param {string} network_str
528
- * @returns {Promise<any>}
529
- */
530
- export function switch_network(network_str) {
531
- const ptr0 = passStringToWasm0(network_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
532
- const len0 = WASM_VECTOR_LEN;
533
- const ret = wasm.switch_network(ptr0, len0);
534
- return takeObject(ret);
535
- }
536
-
537
- /**
538
- * @param {string} key
539
- * @returns {Promise<any>}
540
- */
541
- export function get_env(key) {
542
- const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
543
- const len0 = WASM_VECTOR_LEN;
544
- const ret = wasm.get_env(ptr0, len0);
545
- return takeObject(ret);
546
- }
547
-
548
- /**
549
- * @param {string} key
550
- * @param {string} value
551
- * @returns {Promise<any>}
552
- */
553
- export function set_env(key, value) {
554
- const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
555
- const len0 = WASM_VECTOR_LEN;
556
- const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
557
- const len1 = WASM_VECTOR_LEN;
558
- const ret = wasm.set_env(ptr0, len0, ptr1, len1);
559
- return takeObject(ret);
560
- }
561
-
562
- /**
563
- * @param {string} username
564
- * @param {string} password
565
- * @returns {Promise<any>}
566
- */
567
- export function create_wallet(username, password) {
568
- const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
569
- const len0 = WASM_VECTOR_LEN;
570
- const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
571
- const len1 = WASM_VECTOR_LEN;
572
- const ret = wasm.create_wallet(ptr0, len0, ptr1, len1);
573
- return takeObject(ret);
574
- }
575
-
576
- /**
577
- * @param {string} username
578
- * @param {string} password
579
- * @returns {Promise<any>}
580
- */
581
- export function auth(username, password) {
582
- const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
583
- const len0 = WASM_VECTOR_LEN;
584
- const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
585
- const len1 = WASM_VECTOR_LEN;
586
- const ret = wasm.auth(ptr0, len0, ptr1, len1);
587
- return takeObject(ret);
588
- }
589
-
590
- /**
591
- * @param {string} description
592
- * @param {number} amount
593
- * @param {string} token
594
- * @returns {Promise<any>}
595
- */
596
- export function ln_create_invoice(description, amount, token) {
597
- const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
598
- const len0 = WASM_VECTOR_LEN;
599
- const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
600
- const len1 = WASM_VECTOR_LEN;
601
- const ret = wasm.ln_create_invoice(ptr0, len0, amount, ptr1, len1);
602
- return takeObject(ret);
603
- }
604
-
605
- /**
606
- * @param {string} token
607
- * @returns {Promise<any>}
608
- */
609
- export function get_balance(token) {
610
- const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
611
- const len0 = WASM_VECTOR_LEN;
612
- const ret = wasm.get_balance(ptr0, len0);
613
- return takeObject(ret);
614
- }
615
-
616
- /**
617
- * @param {string} token
618
- * @returns {Promise<any>}
619
- */
620
- export function get_txs(token) {
621
- const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
622
- const len0 = WASM_VECTOR_LEN;
623
- const ret = wasm.get_txs(ptr0, len0);
624
- return takeObject(ret);
625
- }
626
-
627
- /**
628
- * @param {string} payment_request
629
- * @param {string} token
630
- * @returns {Promise<any>}
631
- */
632
- export function pay_invoice(payment_request, token) {
633
- const ptr0 = passStringToWasm0(payment_request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
634
- const len0 = WASM_VECTOR_LEN;
635
- const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
636
- const len1 = WASM_VECTOR_LEN;
637
- const ret = wasm.pay_invoice(ptr0, len0, ptr1, len1);
638
- return takeObject(ret);
639
- }
640
-
641
- /**
642
- * @param {string} payment_hash
643
- * @returns {Promise<any>}
644
- */
645
- export function check_payment(payment_hash) {
646
- const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
647
- const len0 = WASM_VECTOR_LEN;
648
- const ret = wasm.check_payment(ptr0, len0);
649
- return takeObject(ret);
650
- }
651
-
652
652
  let cachedUint32Memory0 = null;
653
653
 
654
654
  function getUint32Memory0() {
@@ -676,7 +676,7 @@ function handleError(f, args) {
676
676
  }
677
677
  }
678
678
  function __wbg_adapter_166(arg0, arg1, arg2, arg3) {
679
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h0241322dea79832f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
679
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h5827c7de3ecaf54f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
680
680
  }
681
681
 
682
682
  export function __wbindgen_string_get(arg0, arg1) {
@@ -692,26 +692,6 @@ export function __wbindgen_object_drop_ref(arg0) {
692
692
  takeObject(arg0);
693
693
  };
694
694
 
695
- export function __wbindgen_string_new(arg0, arg1) {
696
- const ret = getStringFromWasm0(arg0, arg1);
697
- return addHeapObject(ret);
698
- };
699
-
700
- export function __wbindgen_cb_drop(arg0) {
701
- const obj = takeObject(arg0).original;
702
- if (obj.cnt-- == 1) {
703
- obj.a = 0;
704
- return true;
705
- }
706
- const ret = false;
707
- return ret;
708
- };
709
-
710
- export function __wbindgen_error_new(arg0, arg1) {
711
- const ret = new Error(getStringFromWasm0(arg0, arg1));
712
- return addHeapObject(ret);
713
- };
714
-
715
695
  export function __wbindgen_is_string(arg0) {
716
696
  const ret = typeof(getObject(arg0)) === 'string';
717
697
  return ret;
@@ -748,6 +728,26 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
748
728
  return ret;
749
729
  };
750
730
 
731
+ export function __wbindgen_string_new(arg0, arg1) {
732
+ const ret = getStringFromWasm0(arg0, arg1);
733
+ return addHeapObject(ret);
734
+ };
735
+
736
+ export function __wbindgen_cb_drop(arg0) {
737
+ const obj = takeObject(arg0).original;
738
+ if (obj.cnt-- == 1) {
739
+ obj.a = 0;
740
+ return true;
741
+ }
742
+ const ret = false;
743
+ return ret;
744
+ };
745
+
746
+ export function __wbindgen_error_new(arg0, arg1) {
747
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
748
+ return addHeapObject(ret);
749
+ };
750
+
751
751
  export function __wbindgen_jsval_loose_eq(arg0, arg1) {
752
752
  const ret = getObject(arg0) == getObject(arg1);
753
753
  return ret;
@@ -831,10 +831,14 @@ export function __wbg_newwithstrandinit_c45f0dc6da26fd03() { return handleError(
831
831
  return addHeapObject(ret);
832
832
  }, arguments) };
833
833
 
834
- export function __wbg_fetch_661ffba2a4f2519c(arg0, arg1) {
835
- const ret = getObject(arg0).fetch(getObject(arg1));
834
+ export function __wbg_new_f1c3a9c2533a55b8() { return handleError(function () {
835
+ const ret = new Headers();
836
836
  return addHeapObject(ret);
837
- };
837
+ }, arguments) };
838
+
839
+ export function __wbg_append_1be1d651f9ecf2eb() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
840
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
841
+ }, arguments) };
838
842
 
839
843
  export function __wbg_signal_686bf5a4acff74a1(arg0) {
840
844
  const ret = getObject(arg0).signal;
@@ -850,6 +854,11 @@ export function __wbg_abort_5f06bf3b2954cf33(arg0) {
850
854
  getObject(arg0).abort();
851
855
  };
852
856
 
857
+ export function __wbg_fetch_661ffba2a4f2519c(arg0, arg1) {
858
+ const ret = getObject(arg0).fetch(getObject(arg1));
859
+ return addHeapObject(ret);
860
+ };
861
+
853
862
  export function __wbg_instanceof_Response_fb3a4df648c1859b(arg0) {
854
863
  let result;
855
864
  try {
@@ -889,13 +898,12 @@ export function __wbg_text_f61464d781b099f0() { return handleError(function (arg
889
898
  return addHeapObject(ret);
890
899
  }, arguments) };
891
900
 
892
- export function __wbg_new_f1c3a9c2533a55b8() { return handleError(function () {
893
- const ret = new Headers();
894
- return addHeapObject(ret);
901
+ export function __wbg_getRandomValues_3774744e221a22ad() { return handleError(function (arg0, arg1) {
902
+ getObject(arg0).getRandomValues(getObject(arg1));
895
903
  }, arguments) };
896
904
 
897
- export function __wbg_append_1be1d651f9ecf2eb() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
898
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
905
+ export function __wbg_randomFillSync_e950366c42764a07() { return handleError(function (arg0, arg1) {
906
+ getObject(arg0).randomFillSync(takeObject(arg1));
899
907
  }, arguments) };
900
908
 
901
909
  export function __wbg_crypto_70a96de3b6b73dac(arg0) {
@@ -933,14 +941,6 @@ export function __wbindgen_is_function(arg0) {
933
941
  return ret;
934
942
  };
935
943
 
936
- export function __wbg_getRandomValues_3774744e221a22ad() { return handleError(function (arg0, arg1) {
937
- getObject(arg0).getRandomValues(getObject(arg1));
938
- }, arguments) };
939
-
940
- export function __wbg_randomFillSync_e950366c42764a07() { return handleError(function (arg0, arg1) {
941
- getObject(arg0).randomFillSync(takeObject(arg1));
942
- }, arguments) };
943
-
944
944
  export function __wbg_get_27fe3dac1c4d0224(arg0, arg1) {
945
945
  const ret = getObject(arg0)[arg1 >>> 0];
946
946
  return addHeapObject(ret);
@@ -1170,8 +1170,8 @@ export function __wbindgen_memory() {
1170
1170
  return addHeapObject(ret);
1171
1171
  };
1172
1172
 
1173
- export function __wbindgen_closure_wrapper10293(arg0, arg1, arg2) {
1174
- const ret = makeMutClosure(arg0, arg1, 2517, __wbg_adapter_44);
1173
+ export function __wbindgen_closure_wrapper10310(arg0, arg1, arg2) {
1174
+ const ret = makeMutClosure(arg0, arg1, 2650, __wbg_adapter_44);
1175
1175
  return addHeapObject(ret);
1176
1176
  };
1177
1177
 
Binary file
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "Francisco Calderón <francisco@diba.io>"
7
7
  ],
8
8
  "description": "Core functionality for the BitMask wallet",
9
- "version": "0.6.0-beta.1",
9
+ "version": "0.6.0-beta.2",
10
10
  "license": "MIT",
11
11
  "repository": {
12
12
  "type": "git",