lwk_node 0.14.0 → 0.14.1

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/lwk_wasm.js CHANGED
@@ -24,22 +24,6 @@ function getStringFromWasm0(ptr, len) {
24
24
  return decodeText(ptr, len);
25
25
  }
26
26
 
27
- function logError(f, args) {
28
- try {
29
- return f.apply(this, args);
30
- } catch (e) {
31
- let error = (function () {
32
- try {
33
- return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
34
- } catch(_) {
35
- return "<failed to stringify thrown value>";
36
- }
37
- }());
38
- console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
39
- throw e;
40
- }
41
- }
42
-
43
27
  let WASM_VECTOR_LEN = 0;
44
28
 
45
29
  const cachedTextEncoder = new TextEncoder();
@@ -57,8 +41,6 @@ if (!('encodeInto' in cachedTextEncoder)) {
57
41
 
58
42
  function passStringToWasm0(arg, malloc, realloc) {
59
43
 
60
- if (typeof(arg) !== 'string') throw new Error(`expected a string argument, found ${typeof(arg)}`);
61
-
62
44
  if (realloc === undefined) {
63
45
  const buf = cachedTextEncoder.encode(arg);
64
46
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -87,7 +69,7 @@ function passStringToWasm0(arg, malloc, realloc) {
87
69
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
88
70
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
89
71
  const ret = cachedTextEncoder.encodeInto(arg, view);
90
- if (ret.read !== arg.length) throw new Error('failed to pass whole string');
72
+
91
73
  offset += ret.written;
92
74
  ptr = realloc(ptr, len, offset, 1) >>> 0;
93
75
  }
@@ -120,16 +102,6 @@ function handleError(f, args) {
120
102
  }
121
103
  }
122
104
 
123
- function _assertNum(n) {
124
- if (typeof(n) !== 'number') throw new Error(`expected a number argument, found ${typeof(n)}`);
125
- }
126
-
127
- function _assertBoolean(n) {
128
- if (typeof(n) !== 'boolean') {
129
- throw new Error(`expected a boolean argument, found ${typeof(n)}`);
130
- }
131
- }
132
-
133
105
  function getArrayU8FromWasm0(ptr, len) {
134
106
  ptr = ptr >>> 0;
135
107
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -238,6 +210,17 @@ function makeMutClosure(arg0, arg1, dtor, f) {
238
210
  return real;
239
211
  }
240
212
 
213
+ function getArrayJsValueFromWasm0(ptr, len) {
214
+ ptr = ptr >>> 0;
215
+ const mem = getDataViewMemory0();
216
+ const result = [];
217
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
218
+ result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
219
+ }
220
+ wasm.__externref_drop_slice(ptr, len);
221
+ return result;
222
+ }
223
+
241
224
  function takeFromExternrefTable0(idx) {
242
225
  const value = wasm.__wbindgen_export_4.get(idx);
243
226
  wasm.__externref_table_dealloc(idx);
@@ -265,50 +248,6 @@ function passArray32ToWasm0(arg, malloc) {
265
248
  WASM_VECTOR_LEN = arg.length;
266
249
  return ptr;
267
250
  }
268
-
269
- function getArrayU32FromWasm0(ptr, len) {
270
- ptr = ptr >>> 0;
271
- return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
272
- }
273
-
274
- function getArrayJsValueFromWasm0(ptr, len) {
275
- ptr = ptr >>> 0;
276
- const mem = getDataViewMemory0();
277
- const result = [];
278
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
279
- result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
280
- }
281
- wasm.__externref_drop_slice(ptr, len);
282
- return result;
283
- }
284
-
285
- function _assertBigInt(n) {
286
- if (typeof(n) !== 'bigint') throw new Error(`expected a bigint argument, found ${typeof(n)}`);
287
- }
288
-
289
- function passArray8ToWasm0(arg, malloc) {
290
- const ptr = malloc(arg.length * 1, 1) >>> 0;
291
- getUint8ArrayMemory0().set(arg, ptr / 1);
292
- WASM_VECTOR_LEN = arg.length;
293
- return ptr;
294
- }
295
- /**
296
- * @returns {Promise<HIDDevice>}
297
- */
298
- exports.searchLedgerDevice = function() {
299
- const ret = wasm.searchLedgerDevice();
300
- return ret;
301
- };
302
-
303
- function passArrayJsValueToWasm0(array, malloc) {
304
- const ptr = malloc(array.length * 4, 4) >>> 0;
305
- for (let i = 0; i < array.length; i++) {
306
- const add = addToExternrefTable0(array[i]);
307
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
308
- }
309
- WASM_VECTOR_LEN = array.length;
310
- return ptr;
311
- }
312
251
  /**
313
252
  * Convert the given string to a QR code image uri
314
253
  *
@@ -326,9 +265,6 @@ exports.stringToQr = function(str, pixel_per_module) {
326
265
  try {
327
266
  const ptr0 = passStringToWasm0(str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
328
267
  const len0 = WASM_VECTOR_LEN;
329
- if (!isLikeNone(pixel_per_module)) {
330
- _assertNum(pixel_per_module);
331
- }
332
268
  const ret = wasm.stringToQr(ptr0, len0, isLikeNone(pixel_per_module) ? 0xFFFFFF : pixel_per_module);
333
269
  var ptr2 = ret[0];
334
270
  var len2 = ret[1];
@@ -344,58 +280,56 @@ exports.stringToQr = function(str, pixel_per_module) {
344
280
  }
345
281
  };
346
282
 
347
- function __wbg_adapter_6(arg0, arg1, arg2) {
348
- _assertNum(arg0);
349
- _assertNum(arg1);
350
- wasm.closure693_externref_shim(arg0, arg1, arg2);
283
+ function passArrayJsValueToWasm0(array, malloc) {
284
+ const ptr = malloc(array.length * 4, 4) >>> 0;
285
+ for (let i = 0; i < array.length; i++) {
286
+ const add = addToExternrefTable0(array[i]);
287
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
288
+ }
289
+ WASM_VECTOR_LEN = array.length;
290
+ return ptr;
351
291
  }
292
+ /**
293
+ * @returns {Promise<HIDDevice>}
294
+ */
295
+ exports.searchLedgerDevice = function() {
296
+ const ret = wasm.searchLedgerDevice();
297
+ return ret;
298
+ };
352
299
 
353
- function __wbg_adapter_11(arg0, arg1, arg2) {
354
- _assertNum(arg0);
355
- _assertNum(arg1);
356
- wasm.closure1041_externref_shim(arg0, arg1, arg2);
300
+ function passArray8ToWasm0(arg, malloc) {
301
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
302
+ getUint8ArrayMemory0().set(arg, ptr / 1);
303
+ WASM_VECTOR_LEN = arg.length;
304
+ return ptr;
357
305
  }
358
306
 
359
- function __wbg_adapter_14(arg0, arg1, arg2) {
360
- _assertNum(arg0);
361
- _assertNum(arg1);
362
- wasm.closure1043_externref_shim(arg0, arg1, arg2);
307
+ function getArrayU32FromWasm0(ptr, len) {
308
+ ptr = ptr >>> 0;
309
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
363
310
  }
364
-
365
- function __wbg_adapter_17(arg0, arg1, arg2) {
366
- _assertNum(arg0);
367
- _assertNum(arg1);
368
- wasm.closure1040_externref_shim(arg0, arg1, arg2);
311
+ function __wbg_adapter_12(arg0, arg1, arg2) {
312
+ wasm.closure1333_externref_shim(arg0, arg1, arg2);
369
313
  }
370
314
 
371
- function __wbg_adapter_20(arg0, arg1, arg2) {
372
- _assertNum(arg0);
373
- _assertNum(arg1);
374
- wasm.closure1738_externref_shim(arg0, arg1, arg2);
315
+ function __wbg_adapter_19(arg0, arg1) {
316
+ wasm.wasm_bindgen__convert__closures_____invoke__h912986096667d3cb(arg0, arg1);
375
317
  }
376
318
 
377
- function __wbg_adapter_31(arg0, arg1) {
378
- _assertNum(arg0);
379
- _assertNum(arg1);
380
- wasm.wasm_bindgen__convert__closures_____invoke__h4cad9f93310b4e9d(arg0, arg1);
319
+ function __wbg_adapter_22(arg0, arg1) {
320
+ wasm.wasm_bindgen__convert__closures_____invoke__h05232c3defb8be20(arg0, arg1);
381
321
  }
382
322
 
383
- function __wbg_adapter_34(arg0, arg1) {
384
- _assertNum(arg0);
385
- _assertNum(arg1);
386
- wasm.wasm_bindgen__convert__closures_____invoke__hb401156f39c9949f(arg0, arg1);
323
+ function __wbg_adapter_25(arg0, arg1, arg2) {
324
+ wasm.closure1963_externref_shim(arg0, arg1, arg2);
387
325
  }
388
326
 
389
- function __wbg_adapter_37(arg0, arg1, arg2) {
390
- _assertNum(arg0);
391
- _assertNum(arg1);
392
- wasm.closure1042_externref_shim(arg0, arg1, arg2);
327
+ function __wbg_adapter_30(arg0, arg1, arg2) {
328
+ wasm.closure793_externref_shim(arg0, arg1, arg2);
393
329
  }
394
330
 
395
- function __wbg_adapter_652(arg0, arg1, arg2, arg3) {
396
- _assertNum(arg0);
397
- _assertNum(arg1);
398
- wasm.closure2756_externref_shim(arg0, arg1, arg2, arg3);
331
+ function __wbg_adapter_647(arg0, arg1, arg2, arg3) {
332
+ wasm.closure2737_externref_shim(arg0, arg1, arg2, arg3);
399
333
  }
400
334
 
401
335
  /**
@@ -476,9 +410,6 @@ class Address {
476
410
  const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
477
411
  const len0 = WASM_VECTOR_LEN;
478
412
  _assertClass(network, Network);
479
- if (network.__wbg_ptr === 0) {
480
- throw new Error('Attempt to use a moved value');
481
- }
482
413
  const ret = wasm.address_parse(ptr0, len0, network.__wbg_ptr);
483
414
  if (ret[2]) {
484
415
  throw takeFromExternrefTable0(ret[1]);
@@ -490,8 +421,6 @@ class Address {
490
421
  * @returns {Script}
491
422
  */
492
423
  scriptPubkey() {
493
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
494
- _assertNum(this.__wbg_ptr);
495
424
  const ret = wasm.address_scriptPubkey(this.__wbg_ptr);
496
425
  return Script.__wrap(ret);
497
426
  }
@@ -500,8 +429,6 @@ class Address {
500
429
  * @returns {boolean}
501
430
  */
502
431
  isBlinded() {
503
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
504
- _assertNum(this.__wbg_ptr);
505
432
  const ret = wasm.address_isBlinded(this.__wbg_ptr);
506
433
  return ret !== 0;
507
434
  }
@@ -510,8 +437,6 @@ class Address {
510
437
  * @returns {boolean}
511
438
  */
512
439
  isMainnet() {
513
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
514
- _assertNum(this.__wbg_ptr);
515
440
  const ret = wasm.address_isMainnet(this.__wbg_ptr);
516
441
  return ret !== 0;
517
442
  }
@@ -520,8 +445,6 @@ class Address {
520
445
  * @returns {Address}
521
446
  */
522
447
  toUnconfidential() {
523
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
524
- _assertNum(this.__wbg_ptr);
525
448
  const ret = wasm.address_toUnconfidential(this.__wbg_ptr);
526
449
  return Address.__wrap(ret);
527
450
  }
@@ -534,8 +457,6 @@ class Address {
534
457
  let deferred1_0;
535
458
  let deferred1_1;
536
459
  try {
537
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
538
- _assertNum(this.__wbg_ptr);
539
460
  const ret = wasm.address_toString(this.__wbg_ptr);
540
461
  deferred1_0 = ret[0];
541
462
  deferred1_1 = ret[1];
@@ -559,11 +480,6 @@ class Address {
559
480
  let deferred2_0;
560
481
  let deferred2_1;
561
482
  try {
562
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
563
- _assertNum(this.__wbg_ptr);
564
- if (!isLikeNone(pixel_per_module)) {
565
- _assertNum(pixel_per_module);
566
- }
567
483
  const ret = wasm.address_QRCodeUri(this.__wbg_ptr, isLikeNone(pixel_per_module) ? 0xFFFFFF : pixel_per_module);
568
484
  var ptr1 = ret[0];
569
485
  var len1 = ret[1];
@@ -586,8 +502,6 @@ class Address {
586
502
  let deferred2_0;
587
503
  let deferred2_1;
588
504
  try {
589
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
590
- _assertNum(this.__wbg_ptr);
591
505
  const ret = wasm.address_QRCodeText(this.__wbg_ptr);
592
506
  var ptr1 = ret[0];
593
507
  var len1 = ret[1];
@@ -617,10 +531,6 @@ const AddressResultFinalization = (typeof FinalizationRegistry === 'undefined')
617
531
  */
618
532
  class AddressResult {
619
533
 
620
- constructor() {
621
- throw new Error('cannot invoke `new` directly');
622
- }
623
-
624
534
  static __wrap(ptr) {
625
535
  ptr = ptr >>> 0;
626
536
  const obj = Object.create(AddressResult.prototype);
@@ -645,8 +555,6 @@ class AddressResult {
645
555
  * @returns {Address}
646
556
  */
647
557
  address() {
648
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
649
- _assertNum(this.__wbg_ptr);
650
558
  const ret = wasm.addressresult_address(this.__wbg_ptr);
651
559
  return Address.__wrap(ret);
652
560
  }
@@ -655,8 +563,6 @@ class AddressResult {
655
563
  * @returns {number}
656
564
  */
657
565
  index() {
658
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
659
- _assertNum(this.__wbg_ptr);
660
566
  const ret = wasm.addressresult_index(this.__wbg_ptr);
661
567
  return ret >>> 0;
662
568
  }
@@ -692,10 +598,6 @@ const Amp0Finalization = (typeof FinalizationRegistry === 'undefined')
692
598
  */
693
599
  class Amp0 {
694
600
 
695
- constructor() {
696
- throw new Error('cannot invoke `new` directly');
697
- }
698
-
699
601
  static __wrap(ptr) {
700
602
  ptr = ptr >>> 0;
701
603
  const obj = Object.create(Amp0.prototype);
@@ -725,9 +627,6 @@ class Amp0 {
725
627
  */
726
628
  static newWithNetwork(network, username, password, amp_id) {
727
629
  _assertClass(network, Network);
728
- if (network.__wbg_ptr === 0) {
729
- throw new Error('Attempt to use a moved value');
730
- }
731
630
  const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
732
631
  const len0 = WASM_VECTOR_LEN;
733
632
  const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -778,8 +677,6 @@ class Amp0 {
778
677
  * @returns {number}
779
678
  */
780
679
  lastIndex() {
781
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
782
- _assertNum(this.__wbg_ptr);
783
680
  const ret = wasm.amp0_lastIndex(this.__wbg_ptr);
784
681
  return ret >>> 0;
785
682
  }
@@ -791,8 +688,6 @@ class Amp0 {
791
688
  let deferred1_0;
792
689
  let deferred1_1;
793
690
  try {
794
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
795
- _assertNum(this.__wbg_ptr);
796
691
  const ret = wasm.amp0_ampId(this.__wbg_ptr);
797
692
  deferred1_0 = ret[0];
798
693
  deferred1_1 = ret[1];
@@ -809,11 +704,6 @@ class Amp0 {
809
704
  * @returns {Promise<AddressResult>}
810
705
  */
811
706
  address(index) {
812
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
813
- _assertNum(this.__wbg_ptr);
814
- if (!isLikeNone(index)) {
815
- _assertNum(index);
816
- }
817
707
  const ret = wasm.amp0_address(this.__wbg_ptr, isLikeNone(index) ? 0x100000001 : (index) >>> 0);
818
708
  return ret;
819
709
  }
@@ -822,8 +712,6 @@ class Amp0 {
822
712
  * @returns {Wollet}
823
713
  */
824
714
  wollet() {
825
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
826
- _assertNum(this.__wbg_ptr);
827
715
  const ret = wasm.amp0_wollet(this.__wbg_ptr);
828
716
  if (ret[2]) {
829
717
  throw takeFromExternrefTable0(ret[1]);
@@ -836,12 +724,7 @@ class Amp0 {
836
724
  * @returns {Promise<Transaction>}
837
725
  */
838
726
  sign(amp0pset) {
839
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
840
- _assertNum(this.__wbg_ptr);
841
727
  _assertClass(amp0pset, Amp0Pset);
842
- if (amp0pset.__wbg_ptr === 0) {
843
- throw new Error('Attempt to use a moved value');
844
- }
845
728
  const ret = wasm.amp0_sign(this.__wbg_ptr, amp0pset.__wbg_ptr);
846
729
  return ret;
847
730
  }
@@ -884,13 +767,7 @@ class Amp0Connected {
884
767
  */
885
768
  constructor(network, signer_data) {
886
769
  _assertClass(network, Network);
887
- if (network.__wbg_ptr === 0) {
888
- throw new Error('Attempt to use a moved value');
889
- }
890
770
  _assertClass(signer_data, Amp0SignerData);
891
- if (signer_data.__wbg_ptr === 0) {
892
- throw new Error('Attempt to use a moved value');
893
- }
894
771
  const ret = wasm.amp0connected_new(network.__wbg_ptr, signer_data.__wbg_ptr);
895
772
  return ret;
896
773
  }
@@ -901,8 +778,6 @@ class Amp0Connected {
901
778
  * @returns {Promise<string>}
902
779
  */
903
780
  getChallenge() {
904
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
905
- _assertNum(this.__wbg_ptr);
906
781
  const ret = wasm.amp0connected_getChallenge(this.__wbg_ptr);
907
782
  return ret;
908
783
  }
@@ -915,9 +790,7 @@ class Amp0Connected {
915
790
  * @returns {Promise<Amp0LoggedIn>}
916
791
  */
917
792
  login(sig) {
918
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
919
793
  const ptr = this.__destroy_into_raw();
920
- _assertNum(ptr);
921
794
  const ptr0 = passStringToWasm0(sig, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
922
795
  const len0 = WASM_VECTOR_LEN;
923
796
  const ret = wasm.amp0connected_login(ptr, ptr0, len0);
@@ -936,10 +809,6 @@ const Amp0LoggedInFinalization = (typeof FinalizationRegistry === 'undefined')
936
809
  */
937
810
  class Amp0LoggedIn {
938
811
 
939
- constructor() {
940
- throw new Error('cannot invoke `new` directly');
941
- }
942
-
943
812
  static __wrap(ptr) {
944
813
  ptr = ptr >>> 0;
945
814
  const obj = Object.create(Amp0LoggedIn.prototype);
@@ -964,8 +833,6 @@ class Amp0LoggedIn {
964
833
  * @returns {string[]}
965
834
  */
966
835
  getAmpIds() {
967
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
968
- _assertNum(this.__wbg_ptr);
969
836
  const ret = wasm.amp0loggedin_getAmpIds(this.__wbg_ptr);
970
837
  if (ret[3]) {
971
838
  throw takeFromExternrefTable0(ret[2]);
@@ -982,8 +849,6 @@ class Amp0LoggedIn {
982
849
  * @returns {number}
983
850
  */
984
851
  nextAccount() {
985
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
986
- _assertNum(this.__wbg_ptr);
987
852
  const ret = wasm.amp0loggedin_nextAccount(this.__wbg_ptr);
988
853
  if (ret[2]) {
989
854
  throw takeFromExternrefTable0(ret[1]);
@@ -1000,9 +865,6 @@ class Amp0LoggedIn {
1000
865
  * @returns {Promise<string>}
1001
866
  */
1002
867
  createAmp0Account(pointer, account_xpub) {
1003
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1004
- _assertNum(this.__wbg_ptr);
1005
- _assertNum(pointer);
1006
868
  const ptr0 = passStringToWasm0(account_xpub, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1007
869
  const len0 = WASM_VECTOR_LEN;
1008
870
  const ret = wasm.amp0loggedin_createAmp0Account(this.__wbg_ptr, pointer, ptr0, len0);
@@ -1015,8 +877,6 @@ class Amp0LoggedIn {
1015
877
  * @returns {Promise<void>}
1016
878
  */
1017
879
  createWatchOnly(username, password) {
1018
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1019
- _assertNum(this.__wbg_ptr);
1020
880
  const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1021
881
  const len0 = WASM_VECTOR_LEN;
1022
882
  const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1068,9 +928,6 @@ class Amp0Pset {
1068
928
  */
1069
929
  constructor(pset, blinding_nonces) {
1070
930
  _assertClass(pset, Pset);
1071
- if (pset.__wbg_ptr === 0) {
1072
- throw new Error('Attempt to use a moved value');
1073
- }
1074
931
  var ptr0 = pset.__destroy_into_raw();
1075
932
  const ptr1 = passArrayJsValueToWasm0(blinding_nonces, wasm.__wbindgen_malloc);
1076
933
  const len1 = WASM_VECTOR_LEN;
@@ -1087,8 +944,6 @@ class Amp0Pset {
1087
944
  * @returns {Pset}
1088
945
  */
1089
946
  pset() {
1090
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1091
- _assertNum(this.__wbg_ptr);
1092
947
  const ret = wasm.amp0pset_pset(this.__wbg_ptr);
1093
948
  return Pset.__wrap(ret);
1094
949
  }
@@ -1097,8 +952,6 @@ class Amp0Pset {
1097
952
  * @returns {string[]}
1098
953
  */
1099
954
  blindingNonces() {
1100
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1101
- _assertNum(this.__wbg_ptr);
1102
955
  const ret = wasm.amp0pset_blindingNonces(this.__wbg_ptr);
1103
956
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
1104
957
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -1115,10 +968,6 @@ const Amp0SignerDataFinalization = (typeof FinalizationRegistry === 'undefined')
1115
968
 
1116
969
  class Amp0SignerData {
1117
970
 
1118
- constructor() {
1119
- throw new Error('cannot invoke `new` directly');
1120
- }
1121
-
1122
971
  static __wrap(ptr) {
1123
972
  ptr = ptr >>> 0;
1124
973
  const obj = Object.create(Amp0SignerData.prototype);
@@ -1151,10 +1000,6 @@ const Amp2Finalization = (typeof FinalizationRegistry === 'undefined')
1151
1000
  */
1152
1001
  class Amp2 {
1153
1002
 
1154
- constructor() {
1155
- throw new Error('cannot invoke `new` directly');
1156
- }
1157
-
1158
1003
  static __wrap(ptr) {
1159
1004
  ptr = ptr >>> 0;
1160
1005
  const obj = Object.create(Amp2.prototype);
@@ -1188,8 +1033,6 @@ class Amp2 {
1188
1033
  * @returns {Amp2Descriptor}
1189
1034
  */
1190
1035
  descriptorFromStr(keyorigin_xpub) {
1191
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1192
- _assertNum(this.__wbg_ptr);
1193
1036
  const ptr0 = passStringToWasm0(keyorigin_xpub, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1194
1037
  const len0 = WASM_VECTOR_LEN;
1195
1038
  const ret = wasm.amp2_descriptorFromStr(this.__wbg_ptr, ptr0, len0);
@@ -1204,12 +1047,7 @@ class Amp2 {
1204
1047
  * @returns {Promise<string>}
1205
1048
  */
1206
1049
  register(desc) {
1207
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1208
- _assertNum(this.__wbg_ptr);
1209
1050
  _assertClass(desc, Amp2Descriptor);
1210
- if (desc.__wbg_ptr === 0) {
1211
- throw new Error('Attempt to use a moved value');
1212
- }
1213
1051
  const ret = wasm.amp2_register(this.__wbg_ptr, desc.__wbg_ptr);
1214
1052
  return ret;
1215
1053
  }
@@ -1219,12 +1057,7 @@ class Amp2 {
1219
1057
  * @returns {Promise<Pset>}
1220
1058
  */
1221
1059
  cosign(pset) {
1222
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1223
- _assertNum(this.__wbg_ptr);
1224
1060
  _assertClass(pset, Pset);
1225
- if (pset.__wbg_ptr === 0) {
1226
- throw new Error('Attempt to use a moved value');
1227
- }
1228
1061
  const ret = wasm.amp2_cosign(this.__wbg_ptr, pset.__wbg_ptr);
1229
1062
  return ret;
1230
1063
  }
@@ -1241,10 +1074,6 @@ const Amp2DescriptorFinalization = (typeof FinalizationRegistry === 'undefined')
1241
1074
  */
1242
1075
  class Amp2Descriptor {
1243
1076
 
1244
- constructor() {
1245
- throw new Error('cannot invoke `new` directly');
1246
- }
1247
-
1248
1077
  static __wrap(ptr) {
1249
1078
  ptr = ptr >>> 0;
1250
1079
  const obj = Object.create(Amp2Descriptor.prototype);
@@ -1269,8 +1098,6 @@ class Amp2Descriptor {
1269
1098
  * @returns {WolletDescriptor}
1270
1099
  */
1271
1100
  descriptor() {
1272
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1273
- _assertNum(this.__wbg_ptr);
1274
1101
  const ret = wasm.amp2descriptor_descriptor(this.__wbg_ptr);
1275
1102
  return WolletDescriptor.__wrap(ret);
1276
1103
  }
@@ -1282,8 +1109,6 @@ class Amp2Descriptor {
1282
1109
  let deferred1_0;
1283
1110
  let deferred1_1;
1284
1111
  try {
1285
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1286
- _assertNum(this.__wbg_ptr);
1287
1112
  const ret = wasm.amp2descriptor_toString(this.__wbg_ptr);
1288
1113
  deferred1_0 = ret[0];
1289
1114
  deferred1_1 = ret[1];
@@ -1305,10 +1130,6 @@ const AssetAmountFinalization = (typeof FinalizationRegistry === 'undefined')
1305
1130
  */
1306
1131
  class AssetAmount {
1307
1132
 
1308
- constructor() {
1309
- throw new Error('cannot invoke `new` directly');
1310
- }
1311
-
1312
1133
  static __wrap(ptr) {
1313
1134
  ptr = ptr >>> 0;
1314
1135
  const obj = Object.create(AssetAmount.prototype);
@@ -1332,8 +1153,6 @@ class AssetAmount {
1332
1153
  * @returns {bigint}
1333
1154
  */
1334
1155
  amount() {
1335
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1336
- _assertNum(this.__wbg_ptr);
1337
1156
  const ret = wasm.assetamount_amount(this.__wbg_ptr);
1338
1157
  return BigInt.asUintN(64, ret);
1339
1158
  }
@@ -1341,8 +1160,6 @@ class AssetAmount {
1341
1160
  * @returns {AssetId}
1342
1161
  */
1343
1162
  asset() {
1344
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1345
- _assertNum(this.__wbg_ptr);
1346
1163
  const ret = wasm.assetamount_asset(this.__wbg_ptr);
1347
1164
  return AssetId.__wrap(ret);
1348
1165
  }
@@ -1404,8 +1221,6 @@ class AssetId {
1404
1221
  let deferred1_0;
1405
1222
  let deferred1_1;
1406
1223
  try {
1407
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1408
- _assertNum(this.__wbg_ptr);
1409
1224
  const ret = wasm.assetid_toString(this.__wbg_ptr);
1410
1225
  deferred1_0 = ret[0];
1411
1226
  deferred1_1 = ret[1];
@@ -1427,10 +1242,6 @@ const AssetIdsFinalization = (typeof FinalizationRegistry === 'undefined')
1427
1242
  */
1428
1243
  class AssetIds {
1429
1244
 
1430
- constructor() {
1431
- throw new Error('cannot invoke `new` directly');
1432
- }
1433
-
1434
1245
  static __wrap(ptr) {
1435
1246
  ptr = ptr >>> 0;
1436
1247
  const obj = Object.create(AssetIds.prototype);
@@ -1469,8 +1280,6 @@ class AssetIds {
1469
1280
  let deferred1_0;
1470
1281
  let deferred1_1;
1471
1282
  try {
1472
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1473
- _assertNum(this.__wbg_ptr);
1474
1283
  const ret = wasm.assetids_toString(this.__wbg_ptr);
1475
1284
  deferred1_0 = ret[0];
1476
1285
  deferred1_1 = ret[1];
@@ -1494,10 +1303,6 @@ const AssetMetaFinalization = (typeof FinalizationRegistry === 'undefined')
1494
1303
  */
1495
1304
  class AssetMeta {
1496
1305
 
1497
- constructor() {
1498
- throw new Error('cannot invoke `new` directly');
1499
- }
1500
-
1501
1306
  static __wrap(ptr) {
1502
1307
  ptr = ptr >>> 0;
1503
1308
  const obj = Object.create(AssetMeta.prototype);
@@ -1522,8 +1327,6 @@ class AssetMeta {
1522
1327
  * @returns {Contract}
1523
1328
  */
1524
1329
  contract() {
1525
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1526
- _assertNum(this.__wbg_ptr);
1527
1330
  const ret = wasm.assetmeta_contract(this.__wbg_ptr);
1528
1331
  return Contract.__wrap(ret);
1529
1332
  }
@@ -1532,8 +1335,6 @@ class AssetMeta {
1532
1335
  * @returns {Transaction}
1533
1336
  */
1534
1337
  tx() {
1535
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1536
- _assertNum(this.__wbg_ptr);
1537
1338
  const ret = wasm.assetmeta_tx(this.__wbg_ptr);
1538
1339
  return Transaction.__wrap(ret);
1539
1340
  }
@@ -1551,10 +1352,6 @@ const BalanceFinalization = (typeof FinalizationRegistry === 'undefined')
1551
1352
  */
1552
1353
  class Balance {
1553
1354
 
1554
- constructor() {
1555
- throw new Error('cannot invoke `new` directly');
1556
- }
1557
-
1558
1355
  static __wrap(ptr) {
1559
1356
  ptr = ptr >>> 0;
1560
1357
  const obj = Object.create(Balance.prototype);
@@ -1582,8 +1379,6 @@ class Balance {
1582
1379
  * @returns {any}
1583
1380
  */
1584
1381
  toJSON() {
1585
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1586
- _assertNum(this.__wbg_ptr);
1587
1382
  const ret = wasm.balance_toJSON(this.__wbg_ptr);
1588
1383
  if (ret[2]) {
1589
1384
  throw takeFromExternrefTable0(ret[1]);
@@ -1595,8 +1390,6 @@ class Balance {
1595
1390
  * @returns {any}
1596
1391
  */
1597
1392
  entries() {
1598
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1599
- _assertNum(this.__wbg_ptr);
1600
1393
  const ret = wasm.balance_entries(this.__wbg_ptr);
1601
1394
  if (ret[2]) {
1602
1395
  throw takeFromExternrefTable0(ret[1]);
@@ -1611,8 +1404,6 @@ class Balance {
1611
1404
  let deferred1_0;
1612
1405
  let deferred1_1;
1613
1406
  try {
1614
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1615
- _assertNum(this.__wbg_ptr);
1616
1407
  const ret = wasm.balance_toString(this.__wbg_ptr);
1617
1408
  deferred1_0 = ret[0];
1618
1409
  deferred1_1 = ret[1];
@@ -1634,10 +1425,6 @@ const BipFinalization = (typeof FinalizationRegistry === 'undefined')
1634
1425
  */
1635
1426
  class Bip {
1636
1427
 
1637
- constructor() {
1638
- throw new Error('cannot invoke `new` directly');
1639
- }
1640
-
1641
1428
  static __wrap(ptr) {
1642
1429
  ptr = ptr >>> 0;
1643
1430
  const obj = Object.create(Bip.prototype);
@@ -1689,8 +1476,6 @@ class Bip {
1689
1476
  let deferred1_0;
1690
1477
  let deferred1_1;
1691
1478
  try {
1692
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1693
- _assertNum(this.__wbg_ptr);
1694
1479
  const ret = wasm.bip_toString(this.__wbg_ptr);
1695
1480
  deferred1_0 = ret[0];
1696
1481
  deferred1_1 = ret[1];
@@ -1712,10 +1497,6 @@ const BoltzSessionFinalization = (typeof FinalizationRegistry === 'undefined')
1712
1497
  */
1713
1498
  class BoltzSession {
1714
1499
 
1715
- constructor() {
1716
- throw new Error('cannot invoke `new` directly');
1717
- }
1718
-
1719
1500
  static __wrap(ptr) {
1720
1501
  ptr = ptr >>> 0;
1721
1502
  const obj = Object.create(BoltzSession.prototype);
@@ -1743,8 +1524,6 @@ class BoltzSession {
1743
1524
  let deferred2_0;
1744
1525
  let deferred2_1;
1745
1526
  try {
1746
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1747
- _assertNum(this.__wbg_ptr);
1748
1527
  const ret = wasm.boltzsession_rescueFile(this.__wbg_ptr);
1749
1528
  var ptr1 = ret[0];
1750
1529
  var len1 = ret[1];
@@ -1766,16 +1545,8 @@ class BoltzSession {
1766
1545
  * @returns {Promise<PreparePayResponse>}
1767
1546
  */
1768
1547
  preparePay(lightning_payment, refund_address) {
1769
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1770
- _assertNum(this.__wbg_ptr);
1771
1548
  _assertClass(lightning_payment, LightningPayment);
1772
- if (lightning_payment.__wbg_ptr === 0) {
1773
- throw new Error('Attempt to use a moved value');
1774
- }
1775
1549
  _assertClass(refund_address, Address);
1776
- if (refund_address.__wbg_ptr === 0) {
1777
- throw new Error('Attempt to use a moved value');
1778
- }
1779
1550
  const ret = wasm.boltzsession_preparePay(this.__wbg_ptr, lightning_payment.__wbg_ptr, refund_address.__wbg_ptr);
1780
1551
  return ret;
1781
1552
  }
@@ -1787,15 +1558,9 @@ class BoltzSession {
1787
1558
  * @returns {Promise<InvoiceResponse>}
1788
1559
  */
1789
1560
  invoice(amount, description, claim_address) {
1790
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1791
- _assertNum(this.__wbg_ptr);
1792
- _assertBigInt(amount);
1793
1561
  var ptr0 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1794
1562
  var len0 = WASM_VECTOR_LEN;
1795
1563
  _assertClass(claim_address, Address);
1796
- if (claim_address.__wbg_ptr === 0) {
1797
- throw new Error('Attempt to use a moved value');
1798
- }
1799
1564
  const ret = wasm.boltzsession_invoice(this.__wbg_ptr, amount, ptr0, len0, claim_address.__wbg_ptr);
1800
1565
  return ret;
1801
1566
  }
@@ -1805,8 +1570,6 @@ class BoltzSession {
1805
1570
  * @returns {Promise<PreparePayResponse>}
1806
1571
  */
1807
1572
  restorePreparePay(data) {
1808
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1809
- _assertNum(this.__wbg_ptr);
1810
1573
  const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1811
1574
  const len0 = WASM_VECTOR_LEN;
1812
1575
  const ret = wasm.boltzsession_restorePreparePay(this.__wbg_ptr, ptr0, len0);
@@ -1818,8 +1581,6 @@ class BoltzSession {
1818
1581
  * @returns {Promise<InvoiceResponse>}
1819
1582
  */
1820
1583
  restoreInvoice(data) {
1821
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1822
- _assertNum(this.__wbg_ptr);
1823
1584
  const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1824
1585
  const len0 = WASM_VECTOR_LEN;
1825
1586
  const ret = wasm.boltzsession_restoreInvoice(this.__wbg_ptr, ptr0, len0);
@@ -1866,13 +1627,7 @@ class BoltzSessionBuilder {
1866
1627
  */
1867
1628
  constructor(network, esplora_client) {
1868
1629
  _assertClass(network, Network);
1869
- if (network.__wbg_ptr === 0) {
1870
- throw new Error('Attempt to use a moved value');
1871
- }
1872
1630
  _assertClass(esplora_client, EsploraClient);
1873
- if (esplora_client.__wbg_ptr === 0) {
1874
- throw new Error('Attempt to use a moved value');
1875
- }
1876
1631
  const ret = wasm.boltzsessionbuilder_new(network.__wbg_ptr, esplora_client.__wbg_ptr);
1877
1632
  if (ret[2]) {
1878
1633
  throw takeFromExternrefTable0(ret[1]);
@@ -1889,10 +1644,7 @@ class BoltzSessionBuilder {
1889
1644
  * @returns {BoltzSessionBuilder}
1890
1645
  */
1891
1646
  createSwapTimeout(timeout_seconds) {
1892
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1893
1647
  const ptr = this.__destroy_into_raw();
1894
- _assertNum(ptr);
1895
- _assertBigInt(timeout_seconds);
1896
1648
  const ret = wasm.boltzsessionbuilder_createSwapTimeout(ptr, timeout_seconds);
1897
1649
  return BoltzSessionBuilder.__wrap(ret);
1898
1650
  }
@@ -1904,10 +1656,7 @@ class BoltzSessionBuilder {
1904
1656
  * @returns {BoltzSessionBuilder}
1905
1657
  */
1906
1658
  timeoutAdvance(timeout_seconds) {
1907
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1908
1659
  const ptr = this.__destroy_into_raw();
1909
- _assertNum(ptr);
1910
- _assertBigInt(timeout_seconds);
1911
1660
  const ret = wasm.boltzsessionbuilder_timeoutAdvance(ptr, timeout_seconds);
1912
1661
  return BoltzSessionBuilder.__wrap(ret);
1913
1662
  }
@@ -1919,13 +1668,8 @@ class BoltzSessionBuilder {
1919
1668
  * @returns {BoltzSessionBuilder}
1920
1669
  */
1921
1670
  mnemonic(mnemonic) {
1922
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1923
1671
  const ptr = this.__destroy_into_raw();
1924
- _assertNum(ptr);
1925
1672
  _assertClass(mnemonic, Mnemonic);
1926
- if (mnemonic.__wbg_ptr === 0) {
1927
- throw new Error('Attempt to use a moved value');
1928
- }
1929
1673
  const ret = wasm.boltzsessionbuilder_mnemonic(ptr, mnemonic.__wbg_ptr);
1930
1674
  return BoltzSessionBuilder.__wrap(ret);
1931
1675
  }
@@ -1940,10 +1684,7 @@ class BoltzSessionBuilder {
1940
1684
  * @returns {BoltzSessionBuilder}
1941
1685
  */
1942
1686
  polling(polling) {
1943
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1944
1687
  const ptr = this.__destroy_into_raw();
1945
- _assertNum(ptr);
1946
- _assertBoolean(polling);
1947
1688
  const ret = wasm.boltzsessionbuilder_polling(ptr, polling);
1948
1689
  return BoltzSessionBuilder.__wrap(ret);
1949
1690
  }
@@ -1957,10 +1698,7 @@ class BoltzSessionBuilder {
1957
1698
  * @returns {BoltzSessionBuilder}
1958
1699
  */
1959
1700
  nextIndexToUse(next_index_to_use) {
1960
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1961
1701
  const ptr = this.__destroy_into_raw();
1962
- _assertNum(ptr);
1963
- _assertNum(next_index_to_use);
1964
1702
  const ret = wasm.boltzsessionbuilder_nextIndexToUse(ptr, next_index_to_use);
1965
1703
  return BoltzSessionBuilder.__wrap(ret);
1966
1704
  }
@@ -1970,9 +1708,7 @@ class BoltzSessionBuilder {
1970
1708
  * @returns {BoltzSessionBuilder}
1971
1709
  */
1972
1710
  referralId(referral_id) {
1973
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1974
1711
  const ptr = this.__destroy_into_raw();
1975
- _assertNum(ptr);
1976
1712
  const ptr0 = passStringToWasm0(referral_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1977
1713
  const len0 = WASM_VECTOR_LEN;
1978
1714
  const ret = wasm.boltzsessionbuilder_referralId(ptr, ptr0, len0);
@@ -1984,9 +1720,7 @@ class BoltzSessionBuilder {
1984
1720
  * @returns {BoltzSessionBuilder}
1985
1721
  */
1986
1722
  bitcoinElectrumClient(bitcoin_electrum_client) {
1987
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1988
1723
  const ptr = this.__destroy_into_raw();
1989
- _assertNum(ptr);
1990
1724
  const ptr0 = passStringToWasm0(bitcoin_electrum_client, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1991
1725
  const len0 = WASM_VECTOR_LEN;
1992
1726
  const ret = wasm.boltzsessionbuilder_bitcoinElectrumClient(ptr, ptr0, len0);
@@ -2008,10 +1742,7 @@ class BoltzSessionBuilder {
2008
1742
  * @returns {BoltzSessionBuilder}
2009
1743
  */
2010
1744
  randomPreimages(random_preimages) {
2011
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2012
1745
  const ptr = this.__destroy_into_raw();
2013
- _assertNum(ptr);
2014
- _assertBoolean(random_preimages);
2015
1746
  const ret = wasm.boltzsessionbuilder_randomPreimages(ptr, random_preimages);
2016
1747
  return BoltzSessionBuilder.__wrap(ret);
2017
1748
  }
@@ -2020,9 +1751,7 @@ class BoltzSessionBuilder {
2020
1751
  * @returns {Promise<BoltzSession>}
2021
1752
  */
2022
1753
  build() {
2023
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2024
1754
  const ptr = this.__destroy_into_raw();
2025
- _assertNum(ptr);
2026
1755
  const ret = wasm.boltzsessionbuilder_build(ptr);
2027
1756
  return ret;
2028
1757
  }
@@ -2074,10 +1803,8 @@ class Contract {
2074
1803
  const len1 = WASM_VECTOR_LEN;
2075
1804
  const ptr2 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2076
1805
  const len2 = WASM_VECTOR_LEN;
2077
- _assertNum(precision);
2078
1806
  const ptr3 = passStringToWasm0(ticker, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2079
1807
  const len3 = WASM_VECTOR_LEN;
2080
- _assertNum(version);
2081
1808
  const ret = wasm.contract_new(ptr0, len0, ptr1, len1, ptr2, len2, precision, ptr3, len3, version);
2082
1809
  if (ret[2]) {
2083
1810
  throw takeFromExternrefTable0(ret[1]);
@@ -2094,8 +1821,6 @@ class Contract {
2094
1821
  let deferred1_0;
2095
1822
  let deferred1_1;
2096
1823
  try {
2097
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2098
- _assertNum(this.__wbg_ptr);
2099
1824
  const ret = wasm.contract_toString(this.__wbg_ptr);
2100
1825
  deferred1_0 = ret[0];
2101
1826
  deferred1_1 = ret[1];
@@ -2112,8 +1837,6 @@ class Contract {
2112
1837
  let deferred1_0;
2113
1838
  let deferred1_1;
2114
1839
  try {
2115
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2116
- _assertNum(this.__wbg_ptr);
2117
1840
  const ret = wasm.contract_domain(this.__wbg_ptr);
2118
1841
  deferred1_0 = ret[0];
2119
1842
  deferred1_1 = ret[1];
@@ -2130,8 +1853,6 @@ class Contract {
2130
1853
  * @returns {Contract}
2131
1854
  */
2132
1855
  clone() {
2133
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2134
- _assertNum(this.__wbg_ptr);
2135
1856
  const ret = wasm.contract_clone(this.__wbg_ptr);
2136
1857
  return Contract.__wrap(ret);
2137
1858
  }
@@ -2186,8 +1907,6 @@ class CurrencyCode {
2186
1907
  let deferred1_0;
2187
1908
  let deferred1_1;
2188
1909
  try {
2189
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2190
- _assertNum(this.__wbg_ptr);
2191
1910
  const ret = wasm.currencycode_name(this.__wbg_ptr);
2192
1911
  deferred1_0 = ret[0];
2193
1912
  deferred1_1 = ret[1];
@@ -2203,8 +1922,6 @@ class CurrencyCode {
2203
1922
  let deferred1_0;
2204
1923
  let deferred1_1;
2205
1924
  try {
2206
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2207
- _assertNum(this.__wbg_ptr);
2208
1925
  const ret = wasm.currencycode_alpha3(this.__wbg_ptr);
2209
1926
  deferred1_0 = ret[0];
2210
1927
  deferred1_1 = ret[1];
@@ -2217,8 +1934,6 @@ class CurrencyCode {
2217
1934
  * @returns {number}
2218
1935
  */
2219
1936
  exp() {
2220
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2221
- _assertNum(this.__wbg_ptr);
2222
1937
  const ret = wasm.currencycode_exp(this.__wbg_ptr);
2223
1938
  return ret;
2224
1939
  }
@@ -2267,14 +1982,8 @@ class EsploraClient {
2267
1982
  */
2268
1983
  constructor(network, url, waterfalls, concurrency, utxo_only) {
2269
1984
  _assertClass(network, Network);
2270
- if (network.__wbg_ptr === 0) {
2271
- throw new Error('Attempt to use a moved value');
2272
- }
2273
1985
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2274
1986
  const len0 = WASM_VECTOR_LEN;
2275
- _assertBoolean(waterfalls);
2276
- _assertNum(concurrency);
2277
- _assertBoolean(utxo_only);
2278
1987
  const ret = wasm.esploraclient_new(network.__wbg_ptr, ptr0, len0, waterfalls, concurrency, utxo_only);
2279
1988
  if (ret[2]) {
2280
1989
  throw takeFromExternrefTable0(ret[1]);
@@ -2298,12 +2007,7 @@ class EsploraClient {
2298
2007
  * @returns {Promise<Update | undefined>}
2299
2008
  */
2300
2009
  fullScan(wollet) {
2301
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2302
- _assertNum(this.__wbg_ptr);
2303
2010
  _assertClass(wollet, Wollet);
2304
- if (wollet.__wbg_ptr === 0) {
2305
- throw new Error('Attempt to use a moved value');
2306
- }
2307
2011
  const ret = wasm.esploraclient_fullScan(this.__wbg_ptr, wollet.__wbg_ptr);
2308
2012
  return ret;
2309
2013
  }
@@ -2327,13 +2031,7 @@ class EsploraClient {
2327
2031
  * @returns {Promise<Update | undefined>}
2328
2032
  */
2329
2033
  fullScanToIndex(wollet, index) {
2330
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2331
- _assertNum(this.__wbg_ptr);
2332
2034
  _assertClass(wollet, Wollet);
2333
- if (wollet.__wbg_ptr === 0) {
2334
- throw new Error('Attempt to use a moved value');
2335
- }
2336
- _assertNum(index);
2337
2035
  const ret = wasm.esploraclient_fullScanToIndex(this.__wbg_ptr, wollet.__wbg_ptr, index);
2338
2036
  return ret;
2339
2037
  }
@@ -2343,12 +2041,7 @@ class EsploraClient {
2343
2041
  * @returns {Promise<Txid>}
2344
2042
  */
2345
2043
  broadcastTx(tx) {
2346
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2347
- _assertNum(this.__wbg_ptr);
2348
2044
  _assertClass(tx, Transaction);
2349
- if (tx.__wbg_ptr === 0) {
2350
- throw new Error('Attempt to use a moved value');
2351
- }
2352
2045
  const ret = wasm.esploraclient_broadcastTx(this.__wbg_ptr, tx.__wbg_ptr);
2353
2046
  return ret;
2354
2047
  }
@@ -2358,12 +2051,7 @@ class EsploraClient {
2358
2051
  * @returns {Promise<Txid>}
2359
2052
  */
2360
2053
  broadcast(pset) {
2361
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2362
- _assertNum(this.__wbg_ptr);
2363
2054
  _assertClass(pset, Pset);
2364
- if (pset.__wbg_ptr === 0) {
2365
- throw new Error('Attempt to use a moved value');
2366
- }
2367
2055
  const ret = wasm.esploraclient_broadcast(this.__wbg_ptr, pset.__wbg_ptr);
2368
2056
  return ret;
2369
2057
  }
@@ -2373,8 +2061,6 @@ class EsploraClient {
2373
2061
  * @returns {Promise<void>}
2374
2062
  */
2375
2063
  setWaterfallsServerRecipient(recipient) {
2376
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2377
- _assertNum(this.__wbg_ptr);
2378
2064
  const ptr0 = passStringToWasm0(recipient, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2379
2065
  const len0 = WASM_VECTOR_LEN;
2380
2066
  const ret = wasm.esploraclient_setWaterfallsServerRecipient(this.__wbg_ptr, ptr0, len0);
@@ -2397,12 +2083,7 @@ class EsploraClient {
2397
2083
  * @returns {Promise<LastUsedIndexResponse>}
2398
2084
  */
2399
2085
  lastUsedIndex(descriptor) {
2400
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2401
- _assertNum(this.__wbg_ptr);
2402
2086
  _assertClass(descriptor, WolletDescriptor);
2403
- if (descriptor.__wbg_ptr === 0) {
2404
- throw new Error('Attempt to use a moved value');
2405
- }
2406
2087
  const ret = wasm.esploraclient_lastUsedIndex(this.__wbg_ptr, descriptor.__wbg_ptr);
2407
2088
  return ret;
2408
2089
  }
@@ -2419,10 +2100,6 @@ const ExchangeRatesFinalization = (typeof FinalizationRegistry === 'undefined')
2419
2100
  */
2420
2101
  class ExchangeRates {
2421
2102
 
2422
- constructor() {
2423
- throw new Error('cannot invoke `new` directly');
2424
- }
2425
-
2426
2103
  static __wrap(ptr) {
2427
2104
  ptr = ptr >>> 0;
2428
2105
  const obj = Object.create(ExchangeRates.prototype);
@@ -2447,8 +2124,6 @@ class ExchangeRates {
2447
2124
  * @returns {number}
2448
2125
  */
2449
2126
  median() {
2450
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2451
- _assertNum(this.__wbg_ptr);
2452
2127
  const ret = wasm.exchangerates_median(this.__wbg_ptr);
2453
2128
  return ret;
2454
2129
  }
@@ -2459,8 +2134,6 @@ class ExchangeRates {
2459
2134
  * @returns {any}
2460
2135
  */
2461
2136
  results() {
2462
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2463
- _assertNum(this.__wbg_ptr);
2464
2137
  const ret = wasm.exchangerates_results(this.__wbg_ptr);
2465
2138
  if (ret[2]) {
2466
2139
  throw takeFromExternrefTable0(ret[1]);
@@ -2472,8 +2145,6 @@ class ExchangeRates {
2472
2145
  * @returns {number}
2473
2146
  */
2474
2147
  resultsCount() {
2475
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2476
- _assertNum(this.__wbg_ptr);
2477
2148
  const ret = wasm.exchangerates_resultsCount(this.__wbg_ptr);
2478
2149
  return ret >>> 0;
2479
2150
  }
@@ -2485,8 +2156,6 @@ class ExchangeRates {
2485
2156
  let deferred2_0;
2486
2157
  let deferred2_1;
2487
2158
  try {
2488
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2489
- _assertNum(this.__wbg_ptr);
2490
2159
  const ret = wasm.exchangerates_serialize(this.__wbg_ptr);
2491
2160
  var ptr1 = ret[0];
2492
2161
  var len1 = ret[1];
@@ -2514,10 +2183,6 @@ const InvoiceResponseFinalization = (typeof FinalizationRegistry === 'undefined'
2514
2183
  */
2515
2184
  class InvoiceResponse {
2516
2185
 
2517
- constructor() {
2518
- throw new Error('cannot invoke `new` directly');
2519
- }
2520
-
2521
2186
  static __wrap(ptr) {
2522
2187
  ptr = ptr >>> 0;
2523
2188
  const obj = Object.create(InvoiceResponse.prototype);
@@ -2545,8 +2210,6 @@ class InvoiceResponse {
2545
2210
  let deferred2_0;
2546
2211
  let deferred2_1;
2547
2212
  try {
2548
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2549
- _assertNum(this.__wbg_ptr);
2550
2213
  const ret = wasm.invoiceresponse_serialize(this.__wbg_ptr);
2551
2214
  var ptr1 = ret[0];
2552
2215
  var len1 = ret[1];
@@ -2569,8 +2232,6 @@ class InvoiceResponse {
2569
2232
  let deferred1_0;
2570
2233
  let deferred1_1;
2571
2234
  try {
2572
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2573
- _assertNum(this.__wbg_ptr);
2574
2235
  const ret = wasm.invoiceresponse_bolt11Invoice(this.__wbg_ptr);
2575
2236
  deferred1_0 = ret[0];
2576
2237
  deferred1_1 = ret[1];
@@ -2586,8 +2247,6 @@ class InvoiceResponse {
2586
2247
  let deferred1_0;
2587
2248
  let deferred1_1;
2588
2249
  try {
2589
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2590
- _assertNum(this.__wbg_ptr);
2591
2250
  const ret = wasm.invoiceresponse_swapId(this.__wbg_ptr);
2592
2251
  deferred1_0 = ret[0];
2593
2252
  deferred1_1 = ret[1];
@@ -2604,8 +2263,6 @@ class InvoiceResponse {
2604
2263
  * @returns {bigint | undefined}
2605
2264
  */
2606
2265
  fee() {
2607
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2608
- _assertNum(this.__wbg_ptr);
2609
2266
  const ret = wasm.invoiceresponse_fee(this.__wbg_ptr);
2610
2267
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
2611
2268
  }
@@ -2615,9 +2272,7 @@ class InvoiceResponse {
2615
2272
  * @returns {Promise<boolean>}
2616
2273
  */
2617
2274
  completePay() {
2618
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2619
2275
  const ptr = this.__destroy_into_raw();
2620
- _assertNum(ptr);
2621
2276
  const ret = wasm.invoiceresponse_completePay(ptr);
2622
2277
  return ret;
2623
2278
  }
@@ -2634,10 +2289,6 @@ const IssuanceFinalization = (typeof FinalizationRegistry === 'undefined')
2634
2289
  */
2635
2290
  class Issuance {
2636
2291
 
2637
- constructor() {
2638
- throw new Error('cannot invoke `new` directly');
2639
- }
2640
-
2641
2292
  static __wrap(ptr) {
2642
2293
  ptr = ptr >>> 0;
2643
2294
  const obj = Object.create(Issuance.prototype);
@@ -2662,8 +2313,6 @@ class Issuance {
2662
2313
  * @returns {AssetId | undefined}
2663
2314
  */
2664
2315
  asset() {
2665
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2666
- _assertNum(this.__wbg_ptr);
2667
2316
  const ret = wasm.issuance_asset(this.__wbg_ptr);
2668
2317
  return ret === 0 ? undefined : AssetId.__wrap(ret);
2669
2318
  }
@@ -2672,8 +2321,6 @@ class Issuance {
2672
2321
  * @returns {AssetId | undefined}
2673
2322
  */
2674
2323
  token() {
2675
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2676
- _assertNum(this.__wbg_ptr);
2677
2324
  const ret = wasm.issuance_token(this.__wbg_ptr);
2678
2325
  return ret === 0 ? undefined : AssetId.__wrap(ret);
2679
2326
  }
@@ -2682,8 +2329,6 @@ class Issuance {
2682
2329
  * @returns {number | undefined}
2683
2330
  */
2684
2331
  prevVout() {
2685
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2686
- _assertNum(this.__wbg_ptr);
2687
2332
  const ret = wasm.issuance_prevVout(this.__wbg_ptr);
2688
2333
  return ret === 0x100000001 ? undefined : ret;
2689
2334
  }
@@ -2692,8 +2337,6 @@ class Issuance {
2692
2337
  * @returns {Txid | undefined}
2693
2338
  */
2694
2339
  prevTxid() {
2695
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2696
- _assertNum(this.__wbg_ptr);
2697
2340
  const ret = wasm.issuance_prevTxid(this.__wbg_ptr);
2698
2341
  return ret === 0 ? undefined : Txid.__wrap(ret);
2699
2342
  }
@@ -2702,8 +2345,6 @@ class Issuance {
2702
2345
  * @returns {boolean}
2703
2346
  */
2704
2347
  isIssuance() {
2705
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2706
- _assertNum(this.__wbg_ptr);
2707
2348
  const ret = wasm.issuance_isIssuance(this.__wbg_ptr);
2708
2349
  return ret !== 0;
2709
2350
  }
@@ -2712,8 +2353,6 @@ class Issuance {
2712
2353
  * @returns {boolean}
2713
2354
  */
2714
2355
  isReissuance() {
2715
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2716
- _assertNum(this.__wbg_ptr);
2717
2356
  const ret = wasm.issuance_isReissuance(this.__wbg_ptr);
2718
2357
  return ret !== 0;
2719
2358
  }
@@ -2759,10 +2398,6 @@ class Jade {
2759
2398
  */
2760
2399
  constructor(network, filter) {
2761
2400
  _assertClass(network, Network);
2762
- if (network.__wbg_ptr === 0) {
2763
- throw new Error('Attempt to use a moved value');
2764
- }
2765
- _assertBoolean(filter);
2766
2401
  const ret = wasm.jade_from_serial(network.__wbg_ptr, filter);
2767
2402
  return ret;
2768
2403
  }
@@ -2770,8 +2405,6 @@ class Jade {
2770
2405
  * @returns {Promise<any>}
2771
2406
  */
2772
2407
  getVersion() {
2773
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2774
- _assertNum(this.__wbg_ptr);
2775
2408
  const ret = wasm.jade_getVersion(this.__wbg_ptr);
2776
2409
  return ret;
2777
2410
  }
@@ -2779,8 +2412,6 @@ class Jade {
2779
2412
  * @returns {Promise<Xpub>}
2780
2413
  */
2781
2414
  getMasterXpub() {
2782
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2783
- _assertNum(this.__wbg_ptr);
2784
2415
  const ret = wasm.jade_getMasterXpub(this.__wbg_ptr);
2785
2416
  return ret;
2786
2417
  }
@@ -2791,12 +2422,7 @@ class Jade {
2791
2422
  * @returns {Promise<string>}
2792
2423
  */
2793
2424
  getReceiveAddressSingle(variant, path) {
2794
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2795
- _assertNum(this.__wbg_ptr);
2796
2425
  _assertClass(variant, Singlesig);
2797
- if (variant.__wbg_ptr === 0) {
2798
- throw new Error('Attempt to use a moved value');
2799
- }
2800
2426
  var ptr0 = variant.__destroy_into_raw();
2801
2427
  const ptr1 = passArray32ToWasm0(path, wasm.__wbindgen_malloc);
2802
2428
  const len1 = WASM_VECTOR_LEN;
@@ -2815,8 +2441,6 @@ class Jade {
2815
2441
  * @returns {Promise<string>}
2816
2442
  */
2817
2443
  getReceiveAddressMulti(multisig_name, path) {
2818
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2819
- _assertNum(this.__wbg_ptr);
2820
2444
  const ptr0 = passStringToWasm0(multisig_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2821
2445
  const len0 = WASM_VECTOR_LEN;
2822
2446
  const ptr1 = passArray32ToWasm0(path, wasm.__wbindgen_malloc);
@@ -2830,12 +2454,7 @@ class Jade {
2830
2454
  * @returns {Promise<Pset>}
2831
2455
  */
2832
2456
  sign(pset) {
2833
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2834
- _assertNum(this.__wbg_ptr);
2835
2457
  _assertClass(pset, Pset);
2836
- if (pset.__wbg_ptr === 0) {
2837
- throw new Error('Attempt to use a moved value');
2838
- }
2839
2458
  var ptr0 = pset.__destroy_into_raw();
2840
2459
  const ret = wasm.jade_sign(this.__wbg_ptr, ptr0);
2841
2460
  return ret;
@@ -2844,8 +2463,6 @@ class Jade {
2844
2463
  * @returns {Promise<WolletDescriptor>}
2845
2464
  */
2846
2465
  wpkh() {
2847
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2848
- _assertNum(this.__wbg_ptr);
2849
2466
  const ret = wasm.jade_wpkh(this.__wbg_ptr);
2850
2467
  return ret;
2851
2468
  }
@@ -2853,8 +2470,6 @@ class Jade {
2853
2470
  * @returns {Promise<WolletDescriptor>}
2854
2471
  */
2855
2472
  shWpkh() {
2856
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2857
- _assertNum(this.__wbg_ptr);
2858
2473
  const ret = wasm.jade_shWpkh(this.__wbg_ptr);
2859
2474
  return ret;
2860
2475
  }
@@ -2863,8 +2478,6 @@ class Jade {
2863
2478
  * @returns {Promise<WolletDescriptor>}
2864
2479
  */
2865
2480
  multi(name) {
2866
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2867
- _assertNum(this.__wbg_ptr);
2868
2481
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2869
2482
  const len0 = WASM_VECTOR_LEN;
2870
2483
  const ret = wasm.jade_multi(this.__wbg_ptr, ptr0, len0);
@@ -2874,8 +2487,6 @@ class Jade {
2874
2487
  * @returns {Promise<any>}
2875
2488
  */
2876
2489
  getRegisteredMultisigs() {
2877
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2878
- _assertNum(this.__wbg_ptr);
2879
2490
  const ret = wasm.jade_getRegisteredMultisigs(this.__wbg_ptr);
2880
2491
  return ret;
2881
2492
  }
@@ -2884,12 +2495,7 @@ class Jade {
2884
2495
  * @returns {Promise<string>}
2885
2496
  */
2886
2497
  keyoriginXpub(bip) {
2887
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2888
- _assertNum(this.__wbg_ptr);
2889
2498
  _assertClass(bip, Bip);
2890
- if (bip.__wbg_ptr === 0) {
2891
- throw new Error('Attempt to use a moved value');
2892
- }
2893
2499
  const ret = wasm.jade_keyoriginXpub(this.__wbg_ptr, bip.__wbg_ptr);
2894
2500
  return ret;
2895
2501
  }
@@ -2899,14 +2505,9 @@ class Jade {
2899
2505
  * @returns {Promise<boolean>}
2900
2506
  */
2901
2507
  registerDescriptor(name, desc) {
2902
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2903
- _assertNum(this.__wbg_ptr);
2904
2508
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2905
2509
  const len0 = WASM_VECTOR_LEN;
2906
2510
  _assertClass(desc, WolletDescriptor);
2907
- if (desc.__wbg_ptr === 0) {
2908
- throw new Error('Attempt to use a moved value');
2909
- }
2910
2511
  const ret = wasm.jade_registerDescriptor(this.__wbg_ptr, ptr0, len0, desc.__wbg_ptr);
2911
2512
  return ret;
2912
2513
  }
@@ -2951,9 +2552,6 @@ class JadeWebSocket {
2951
2552
  */
2952
2553
  constructor(network, url) {
2953
2554
  _assertClass(network, Network);
2954
- if (network.__wbg_ptr === 0) {
2955
- throw new Error('Attempt to use a moved value');
2956
- }
2957
2555
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2958
2556
  const len0 = WASM_VECTOR_LEN;
2959
2557
  const ret = wasm.jadewebsocket_from_websocket(network.__wbg_ptr, ptr0, len0);
@@ -2963,8 +2561,6 @@ class JadeWebSocket {
2963
2561
  * @returns {Promise<any>}
2964
2562
  */
2965
2563
  getVersion() {
2966
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2967
- _assertNum(this.__wbg_ptr);
2968
2564
  const ret = wasm.jadewebsocket_getVersion(this.__wbg_ptr);
2969
2565
  return ret;
2970
2566
  }
@@ -2972,8 +2568,6 @@ class JadeWebSocket {
2972
2568
  * @returns {Promise<Xpub>}
2973
2569
  */
2974
2570
  getMasterXpub() {
2975
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2976
- _assertNum(this.__wbg_ptr);
2977
2571
  const ret = wasm.jadewebsocket_getMasterXpub(this.__wbg_ptr);
2978
2572
  return ret;
2979
2573
  }
@@ -2984,12 +2578,7 @@ class JadeWebSocket {
2984
2578
  * @returns {Promise<string>}
2985
2579
  */
2986
2580
  getReceiveAddressSingle(variant, path) {
2987
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
2988
- _assertNum(this.__wbg_ptr);
2989
2581
  _assertClass(variant, Singlesig);
2990
- if (variant.__wbg_ptr === 0) {
2991
- throw new Error('Attempt to use a moved value');
2992
- }
2993
2582
  var ptr0 = variant.__destroy_into_raw();
2994
2583
  const ptr1 = passArray32ToWasm0(path, wasm.__wbindgen_malloc);
2995
2584
  const len1 = WASM_VECTOR_LEN;
@@ -3008,8 +2597,6 @@ class JadeWebSocket {
3008
2597
  * @returns {Promise<string>}
3009
2598
  */
3010
2599
  getReceiveAddressMulti(multisig_name, path) {
3011
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3012
- _assertNum(this.__wbg_ptr);
3013
2600
  const ptr0 = passStringToWasm0(multisig_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3014
2601
  const len0 = WASM_VECTOR_LEN;
3015
2602
  const ptr1 = passArray32ToWasm0(path, wasm.__wbindgen_malloc);
@@ -3023,12 +2610,7 @@ class JadeWebSocket {
3023
2610
  * @returns {Promise<Pset>}
3024
2611
  */
3025
2612
  sign(pset) {
3026
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3027
- _assertNum(this.__wbg_ptr);
3028
2613
  _assertClass(pset, Pset);
3029
- if (pset.__wbg_ptr === 0) {
3030
- throw new Error('Attempt to use a moved value');
3031
- }
3032
2614
  var ptr0 = pset.__destroy_into_raw();
3033
2615
  const ret = wasm.jadewebsocket_sign(this.__wbg_ptr, ptr0);
3034
2616
  return ret;
@@ -3037,8 +2619,6 @@ class JadeWebSocket {
3037
2619
  * @returns {Promise<WolletDescriptor>}
3038
2620
  */
3039
2621
  wpkh() {
3040
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3041
- _assertNum(this.__wbg_ptr);
3042
2622
  const ret = wasm.jadewebsocket_wpkh(this.__wbg_ptr);
3043
2623
  return ret;
3044
2624
  }
@@ -3046,8 +2626,6 @@ class JadeWebSocket {
3046
2626
  * @returns {Promise<WolletDescriptor>}
3047
2627
  */
3048
2628
  shWpkh() {
3049
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3050
- _assertNum(this.__wbg_ptr);
3051
2629
  const ret = wasm.jadewebsocket_shWpkh(this.__wbg_ptr);
3052
2630
  return ret;
3053
2631
  }
@@ -3056,8 +2634,6 @@ class JadeWebSocket {
3056
2634
  * @returns {Promise<WolletDescriptor>}
3057
2635
  */
3058
2636
  multi(name) {
3059
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3060
- _assertNum(this.__wbg_ptr);
3061
2637
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3062
2638
  const len0 = WASM_VECTOR_LEN;
3063
2639
  const ret = wasm.jadewebsocket_multi(this.__wbg_ptr, ptr0, len0);
@@ -3067,8 +2643,6 @@ class JadeWebSocket {
3067
2643
  * @returns {Promise<any>}
3068
2644
  */
3069
2645
  getRegisteredMultisigs() {
3070
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3071
- _assertNum(this.__wbg_ptr);
3072
2646
  const ret = wasm.jadewebsocket_getRegisteredMultisigs(this.__wbg_ptr);
3073
2647
  return ret;
3074
2648
  }
@@ -3077,12 +2651,7 @@ class JadeWebSocket {
3077
2651
  * @returns {Promise<string>}
3078
2652
  */
3079
2653
  keyoriginXpub(bip) {
3080
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3081
- _assertNum(this.__wbg_ptr);
3082
2654
  _assertClass(bip, Bip);
3083
- if (bip.__wbg_ptr === 0) {
3084
- throw new Error('Attempt to use a moved value');
3085
- }
3086
2655
  const ret = wasm.jadewebsocket_keyoriginXpub(this.__wbg_ptr, bip.__wbg_ptr);
3087
2656
  return ret;
3088
2657
  }
@@ -3092,14 +2661,9 @@ class JadeWebSocket {
3092
2661
  * @returns {Promise<boolean>}
3093
2662
  */
3094
2663
  registerDescriptor(name, desc) {
3095
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3096
- _assertNum(this.__wbg_ptr);
3097
2664
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3098
2665
  const len0 = WASM_VECTOR_LEN;
3099
2666
  _assertClass(desc, WolletDescriptor);
3100
- if (desc.__wbg_ptr === 0) {
3101
- throw new Error('Attempt to use a moved value');
3102
- }
3103
2667
  const ret = wasm.jadewebsocket_registerDescriptor(this.__wbg_ptr, ptr0, len0, desc.__wbg_ptr);
3104
2668
  return ret;
3105
2669
  }
@@ -3120,10 +2684,6 @@ const LastUsedIndexResponseFinalization = (typeof FinalizationRegistry === 'unde
3120
2684
  */
3121
2685
  class LastUsedIndexResponse {
3122
2686
 
3123
- constructor() {
3124
- throw new Error('cannot invoke `new` directly');
3125
- }
3126
-
3127
2687
  static __wrap(ptr) {
3128
2688
  ptr = ptr >>> 0;
3129
2689
  const obj = Object.create(LastUsedIndexResponse.prototype);
@@ -3148,8 +2708,6 @@ class LastUsedIndexResponse {
3148
2708
  * @returns {number | undefined}
3149
2709
  */
3150
2710
  get external() {
3151
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3152
- _assertNum(this.__wbg_ptr);
3153
2711
  const ret = wasm.lastusedindexresponse_external(this.__wbg_ptr);
3154
2712
  return ret === 0x100000001 ? undefined : ret;
3155
2713
  }
@@ -3158,8 +2716,6 @@ class LastUsedIndexResponse {
3158
2716
  * @returns {number | undefined}
3159
2717
  */
3160
2718
  get internal() {
3161
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3162
- _assertNum(this.__wbg_ptr);
3163
2719
  const ret = wasm.lastusedindexresponse_internal(this.__wbg_ptr);
3164
2720
  return ret === 0x100000001 ? undefined : ret;
3165
2721
  }
@@ -3168,8 +2724,6 @@ class LastUsedIndexResponse {
3168
2724
  * @returns {string | undefined}
3169
2725
  */
3170
2726
  get tip() {
3171
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3172
- _assertNum(this.__wbg_ptr);
3173
2727
  const ret = wasm.lastusedindexresponse_tip(this.__wbg_ptr);
3174
2728
  let v1;
3175
2729
  if (ret[0] !== 0) {
@@ -3207,9 +2761,6 @@ class LedgerWeb {
3207
2761
  */
3208
2762
  constructor(hid_device, network) {
3209
2763
  _assertClass(network, Network);
3210
- if (network.__wbg_ptr === 0) {
3211
- throw new Error('Attempt to use a moved value');
3212
- }
3213
2764
  const ret = wasm.ledgerweb_new(hid_device, network.__wbg_ptr);
3214
2765
  this.__wbg_ptr = ret >>> 0;
3215
2766
  LedgerWebFinalization.register(this, this.__wbg_ptr, this);
@@ -3219,8 +2770,6 @@ class LedgerWeb {
3219
2770
  * @returns {Promise<string>}
3220
2771
  */
3221
2772
  getVersion() {
3222
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3223
- _assertNum(this.__wbg_ptr);
3224
2773
  const ret = wasm.ledgerweb_getVersion(this.__wbg_ptr);
3225
2774
  return ret;
3226
2775
  }
@@ -3229,8 +2778,6 @@ class LedgerWeb {
3229
2778
  * @returns {Promise<string>}
3230
2779
  */
3231
2780
  deriveXpub(path) {
3232
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3233
- _assertNum(this.__wbg_ptr);
3234
2781
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3235
2782
  const len0 = WASM_VECTOR_LEN;
3236
2783
  const ret = wasm.ledgerweb_deriveXpub(this.__wbg_ptr, ptr0, len0);
@@ -3240,8 +2787,6 @@ class LedgerWeb {
3240
2787
  * @returns {Promise<string>}
3241
2788
  */
3242
2789
  slip77MasterBlindingKey() {
3243
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3244
- _assertNum(this.__wbg_ptr);
3245
2790
  const ret = wasm.ledgerweb_slip77MasterBlindingKey(this.__wbg_ptr);
3246
2791
  return ret;
3247
2792
  }
@@ -3249,8 +2794,6 @@ class LedgerWeb {
3249
2794
  * @returns {Promise<string>}
3250
2795
  */
3251
2796
  fingerprint() {
3252
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3253
- _assertNum(this.__wbg_ptr);
3254
2797
  const ret = wasm.ledgerweb_fingerprint(this.__wbg_ptr);
3255
2798
  return ret;
3256
2799
  }
@@ -3259,8 +2802,6 @@ class LedgerWeb {
3259
2802
  * @returns {Promise<WolletDescriptor>}
3260
2803
  */
3261
2804
  wpkhSlip77Descriptor() {
3262
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3263
- _assertNum(this.__wbg_ptr);
3264
2805
  const ret = wasm.ledgerweb_wpkhSlip77Descriptor(this.__wbg_ptr);
3265
2806
  return ret;
3266
2807
  }
@@ -3270,12 +2811,7 @@ class LedgerWeb {
3270
2811
  * @returns {Promise<Pset>}
3271
2812
  */
3272
2813
  sign(pset) {
3273
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3274
- _assertNum(this.__wbg_ptr);
3275
2814
  _assertClass(pset, Pset);
3276
- if (pset.__wbg_ptr === 0) {
3277
- throw new Error('Attempt to use a moved value');
3278
- }
3279
2815
  var ptr0 = pset.__destroy_into_raw();
3280
2816
  const ret = wasm.ledgerweb_sign(this.__wbg_ptr, ptr0);
3281
2817
  return ret;
@@ -3286,9 +2822,6 @@ class LedgerWeb {
3286
2822
  * @returns {Promise<string>}
3287
2823
  */
3288
2824
  getReceiveAddressSingle(index) {
3289
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3290
- _assertNum(this.__wbg_ptr);
3291
- _assertNum(index);
3292
2825
  const ret = wasm.ledgerweb_getReceiveAddressSingle(this.__wbg_ptr, index);
3293
2826
  return ret;
3294
2827
  }
@@ -3339,8 +2872,6 @@ class LightningPayment {
3339
2872
  let deferred1_0;
3340
2873
  let deferred1_1;
3341
2874
  try {
3342
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3343
- _assertNum(this.__wbg_ptr);
3344
2875
  const ret = wasm.lightningpayment_toString(this.__wbg_ptr);
3345
2876
  deferred1_0 = ret[0];
3346
2877
  deferred1_1 = ret[1];
@@ -3358,11 +2889,6 @@ class LightningPayment {
3358
2889
  let deferred2_0;
3359
2890
  let deferred2_1;
3360
2891
  try {
3361
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3362
- _assertNum(this.__wbg_ptr);
3363
- if (!isLikeNone(pixel_per_module)) {
3364
- _assertNum(pixel_per_module);
3365
- }
3366
2892
  const ret = wasm.lightningpayment_toUriQr(this.__wbg_ptr, isLikeNone(pixel_per_module) ? 0xFFFFFF : pixel_per_module);
3367
2893
  var ptr1 = ret[0];
3368
2894
  var len1 = ret[1];
@@ -3390,10 +2916,6 @@ const MagicRoutingHintFinalization = (typeof FinalizationRegistry === 'undefined
3390
2916
  */
3391
2917
  class MagicRoutingHint {
3392
2918
 
3393
- constructor() {
3394
- throw new Error('cannot invoke `new` directly');
3395
- }
3396
-
3397
2919
  static __wrap(ptr) {
3398
2920
  ptr = ptr >>> 0;
3399
2921
  const obj = Object.create(MagicRoutingHint.prototype);
@@ -3421,8 +2943,6 @@ class MagicRoutingHint {
3421
2943
  let deferred1_0;
3422
2944
  let deferred1_1;
3423
2945
  try {
3424
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3425
- _assertNum(this.__wbg_ptr);
3426
2946
  const ret = wasm.magicroutinghint_address(this.__wbg_ptr);
3427
2947
  deferred1_0 = ret[0];
3428
2948
  deferred1_1 = ret[1];
@@ -3436,8 +2956,6 @@ class MagicRoutingHint {
3436
2956
  * @returns {bigint}
3437
2957
  */
3438
2958
  amount() {
3439
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3440
- _assertNum(this.__wbg_ptr);
3441
2959
  const ret = wasm.magicroutinghint_amount(this.__wbg_ptr);
3442
2960
  return BigInt.asUintN(64, ret);
3443
2961
  }
@@ -3449,8 +2967,6 @@ class MagicRoutingHint {
3449
2967
  let deferred1_0;
3450
2968
  let deferred1_1;
3451
2969
  try {
3452
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3453
- _assertNum(this.__wbg_ptr);
3454
2970
  const ret = wasm.magicroutinghint_uri(this.__wbg_ptr);
3455
2971
  deferred1_0 = ret[0];
3456
2972
  deferred1_1 = ret[1];
@@ -3519,8 +3035,6 @@ class Mnemonic {
3519
3035
  let deferred1_0;
3520
3036
  let deferred1_1;
3521
3037
  try {
3522
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3523
- _assertNum(this.__wbg_ptr);
3524
3038
  const ret = wasm.mnemonic_toString(this.__wbg_ptr);
3525
3039
  deferred1_0 = ret[0];
3526
3040
  deferred1_1 = ret[1];
@@ -3549,7 +3063,6 @@ class Mnemonic {
3549
3063
  * @returns {Mnemonic}
3550
3064
  */
3551
3065
  static fromRandom(word_count) {
3552
- _assertNum(word_count);
3553
3066
  const ret = wasm.mnemonic_fromRandom(word_count);
3554
3067
  if (ret[2]) {
3555
3068
  throw takeFromExternrefTable0(ret[1]);
@@ -3569,10 +3082,6 @@ const NetworkFinalization = (typeof FinalizationRegistry === 'undefined')
3569
3082
  */
3570
3083
  class Network {
3571
3084
 
3572
- constructor() {
3573
- throw new Error('cannot invoke `new` directly');
3574
- }
3575
-
3576
3085
  static __wrap(ptr) {
3577
3086
  ptr = ptr >>> 0;
3578
3087
  const obj = Object.create(Network.prototype);
@@ -3615,9 +3124,6 @@ class Network {
3615
3124
  */
3616
3125
  static regtest(policy_asset) {
3617
3126
  _assertClass(policy_asset, AssetId);
3618
- if (policy_asset.__wbg_ptr === 0) {
3619
- throw new Error('Attempt to use a moved value');
3620
- }
3621
3127
  const ret = wasm.network_regtest(policy_asset.__wbg_ptr);
3622
3128
  return Network.__wrap(ret);
3623
3129
  }
@@ -3634,8 +3140,6 @@ class Network {
3634
3140
  * @returns {EsploraClient}
3635
3141
  */
3636
3142
  defaultEsploraClient() {
3637
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3638
- _assertNum(this.__wbg_ptr);
3639
3143
  const ret = wasm.network_defaultEsploraClient(this.__wbg_ptr);
3640
3144
  return EsploraClient.__wrap(ret);
3641
3145
  }
@@ -3644,8 +3148,6 @@ class Network {
3644
3148
  * @returns {boolean}
3645
3149
  */
3646
3150
  isMainnet() {
3647
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3648
- _assertNum(this.__wbg_ptr);
3649
3151
  const ret = wasm.network_isMainnet(this.__wbg_ptr);
3650
3152
  return ret !== 0;
3651
3153
  }
@@ -3654,8 +3156,6 @@ class Network {
3654
3156
  * @returns {boolean}
3655
3157
  */
3656
3158
  isTestnet() {
3657
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3658
- _assertNum(this.__wbg_ptr);
3659
3159
  const ret = wasm.network_isTestnet(this.__wbg_ptr);
3660
3160
  return ret !== 0;
3661
3161
  }
@@ -3664,8 +3164,6 @@ class Network {
3664
3164
  * @returns {boolean}
3665
3165
  */
3666
3166
  isRegtest() {
3667
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3668
- _assertNum(this.__wbg_ptr);
3669
3167
  const ret = wasm.network_isRegtest(this.__wbg_ptr);
3670
3168
  return ret !== 0;
3671
3169
  }
@@ -3677,8 +3175,6 @@ class Network {
3677
3175
  let deferred1_0;
3678
3176
  let deferred1_1;
3679
3177
  try {
3680
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3681
- _assertNum(this.__wbg_ptr);
3682
3178
  const ret = wasm.network_toString(this.__wbg_ptr);
3683
3179
  deferred1_0 = ret[0];
3684
3180
  deferred1_1 = ret[1];
@@ -3692,8 +3188,6 @@ class Network {
3692
3188
  * @returns {AssetId}
3693
3189
  */
3694
3190
  policyAsset() {
3695
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3696
- _assertNum(this.__wbg_ptr);
3697
3191
  const ret = wasm.network_policyAsset(this.__wbg_ptr);
3698
3192
  return AssetId.__wrap(ret);
3699
3193
  }
@@ -3702,8 +3196,6 @@ class Network {
3702
3196
  * @returns {TxBuilder}
3703
3197
  */
3704
3198
  txBuilder() {
3705
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3706
- _assertNum(this.__wbg_ptr);
3707
3199
  const ret = wasm.network_txBuilder(this.__wbg_ptr);
3708
3200
  return TxBuilder.__wrap(ret);
3709
3201
  }
@@ -3715,8 +3207,6 @@ class Network {
3715
3207
  let deferred1_0;
3716
3208
  let deferred1_1;
3717
3209
  try {
3718
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3719
- _assertNum(this.__wbg_ptr);
3720
3210
  const ret = wasm.network_defaultExplorerUrl(this.__wbg_ptr);
3721
3211
  deferred1_0 = ret[0];
3722
3212
  deferred1_1 = ret[1];
@@ -3739,10 +3229,6 @@ const OptionWalletTxOutFinalization = (typeof FinalizationRegistry === 'undefine
3739
3229
  */
3740
3230
  class OptionWalletTxOut {
3741
3231
 
3742
- constructor() {
3743
- throw new Error('cannot invoke `new` directly');
3744
- }
3745
-
3746
3232
  static __wrap(ptr) {
3747
3233
  ptr = ptr >>> 0;
3748
3234
  const obj = Object.create(OptionWalletTxOut.prototype);
@@ -3767,8 +3253,6 @@ class OptionWalletTxOut {
3767
3253
  * @returns {WalletTxOut | undefined}
3768
3254
  */
3769
3255
  get() {
3770
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3771
- _assertNum(this.__wbg_ptr);
3772
3256
  const ret = wasm.optionwallettxout_get(this.__wbg_ptr);
3773
3257
  return ret === 0 ? undefined : WalletTxOut.__wrap(ret);
3774
3258
  }
@@ -3831,8 +3315,6 @@ class OutPoint {
3831
3315
  * @returns {Txid}
3832
3316
  */
3833
3317
  txid() {
3834
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3835
- _assertNum(this.__wbg_ptr);
3836
3318
  const ret = wasm.outpoint_txid(this.__wbg_ptr);
3837
3319
  return Txid.__wrap(ret);
3838
3320
  }
@@ -3841,8 +3323,6 @@ class OutPoint {
3841
3323
  * @returns {number}
3842
3324
  */
3843
3325
  vout() {
3844
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3845
- _assertNum(this.__wbg_ptr);
3846
3326
  const ret = wasm.outpoint_vout(this.__wbg_ptr);
3847
3327
  return ret >>> 0;
3848
3328
  }
@@ -3885,13 +3365,7 @@ class PosConfig {
3885
3365
  */
3886
3366
  constructor(descriptor, currency) {
3887
3367
  _assertClass(descriptor, WolletDescriptor);
3888
- if (descriptor.__wbg_ptr === 0) {
3889
- throw new Error('Attempt to use a moved value');
3890
- }
3891
3368
  _assertClass(currency, CurrencyCode);
3892
- if (currency.__wbg_ptr === 0) {
3893
- throw new Error('Attempt to use a moved value');
3894
- }
3895
3369
  const ret = wasm.posconfig_new(descriptor.__wbg_ptr, currency.__wbg_ptr);
3896
3370
  this.__wbg_ptr = ret >>> 0;
3897
3371
  PosConfigFinalization.register(this, this.__wbg_ptr, this);
@@ -3907,19 +3381,7 @@ class PosConfig {
3907
3381
  */
3908
3382
  static withOptions(descriptor, currency, show_gear, show_description) {
3909
3383
  _assertClass(descriptor, WolletDescriptor);
3910
- if (descriptor.__wbg_ptr === 0) {
3911
- throw new Error('Attempt to use a moved value');
3912
- }
3913
3384
  _assertClass(currency, CurrencyCode);
3914
- if (currency.__wbg_ptr === 0) {
3915
- throw new Error('Attempt to use a moved value');
3916
- }
3917
- if (!isLikeNone(show_gear)) {
3918
- _assertBoolean(show_gear);
3919
- }
3920
- if (!isLikeNone(show_description)) {
3921
- _assertBoolean(show_description);
3922
- }
3923
3385
  const ret = wasm.posconfig_withOptions(descriptor.__wbg_ptr, currency.__wbg_ptr, isLikeNone(show_gear) ? 0xFFFFFF : show_gear ? 1 : 0, isLikeNone(show_description) ? 0xFFFFFF : show_description ? 1 : 0);
3924
3386
  return PosConfig.__wrap(ret);
3925
3387
  }
@@ -3945,8 +3407,6 @@ class PosConfig {
3945
3407
  let deferred2_0;
3946
3408
  let deferred2_1;
3947
3409
  try {
3948
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3949
- _assertNum(this.__wbg_ptr);
3950
3410
  const ret = wasm.posconfig_encode(this.__wbg_ptr);
3951
3411
  var ptr1 = ret[0];
3952
3412
  var len1 = ret[1];
@@ -3966,8 +3426,6 @@ class PosConfig {
3966
3426
  * @returns {WolletDescriptor}
3967
3427
  */
3968
3428
  get descriptor() {
3969
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3970
- _assertNum(this.__wbg_ptr);
3971
3429
  const ret = wasm.posconfig_descriptor(this.__wbg_ptr);
3972
3430
  return WolletDescriptor.__wrap(ret);
3973
3431
  }
@@ -3976,8 +3434,6 @@ class PosConfig {
3976
3434
  * @returns {CurrencyCode}
3977
3435
  */
3978
3436
  get currency() {
3979
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3980
- _assertNum(this.__wbg_ptr);
3981
3437
  const ret = wasm.posconfig_currency(this.__wbg_ptr);
3982
3438
  return CurrencyCode.__wrap(ret);
3983
3439
  }
@@ -3986,8 +3442,6 @@ class PosConfig {
3986
3442
  * @returns {boolean | undefined}
3987
3443
  */
3988
3444
  get showGear() {
3989
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
3990
- _assertNum(this.__wbg_ptr);
3991
3445
  const ret = wasm.posconfig_show_gear(this.__wbg_ptr);
3992
3446
  return ret === 0xFFFFFF ? undefined : ret !== 0;
3993
3447
  }
@@ -3996,8 +3450,6 @@ class PosConfig {
3996
3450
  * @returns {boolean | undefined}
3997
3451
  */
3998
3452
  get showDescription() {
3999
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4000
- _assertNum(this.__wbg_ptr);
4001
3453
  const ret = wasm.posconfig_show_description(this.__wbg_ptr);
4002
3454
  return ret === 0xFFFFFF ? undefined : ret !== 0;
4003
3455
  }
@@ -4009,8 +3461,6 @@ class PosConfig {
4009
3461
  let deferred1_0;
4010
3462
  let deferred1_1;
4011
3463
  try {
4012
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4013
- _assertNum(this.__wbg_ptr);
4014
3464
  const ret = wasm.posconfig_toString(this.__wbg_ptr);
4015
3465
  deferred1_0 = ret[0];
4016
3466
  deferred1_1 = ret[1];
@@ -4051,7 +3501,6 @@ class Precision {
4051
3501
  * @param {number} precision
4052
3502
  */
4053
3503
  constructor(precision) {
4054
- _assertNum(precision);
4055
3504
  const ret = wasm.precision_new(precision);
4056
3505
  if (ret[2]) {
4057
3506
  throw takeFromExternrefTable0(ret[1]);
@@ -4071,9 +3520,6 @@ class Precision {
4071
3520
  let deferred1_0;
4072
3521
  let deferred1_1;
4073
3522
  try {
4074
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4075
- _assertNum(this.__wbg_ptr);
4076
- _assertBigInt(sats);
4077
3523
  const ret = wasm.precision_satsToString(this.__wbg_ptr, sats);
4078
3524
  deferred1_0 = ret[0];
4079
3525
  deferred1_1 = ret[1];
@@ -4090,8 +3536,6 @@ class Precision {
4090
3536
  * @returns {bigint}
4091
3537
  */
4092
3538
  stringToSats(sats) {
4093
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4094
- _assertNum(this.__wbg_ptr);
4095
3539
  const ptr0 = passStringToWasm0(sats, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4096
3540
  const len0 = WASM_VECTOR_LEN;
4097
3541
  const ret = wasm.precision_stringToSats(this.__wbg_ptr, ptr0, len0);
@@ -4111,10 +3555,6 @@ const PreparePayResponseFinalization = (typeof FinalizationRegistry === 'undefin
4111
3555
 
4112
3556
  class PreparePayResponse {
4113
3557
 
4114
- constructor() {
4115
- throw new Error('cannot invoke `new` directly');
4116
- }
4117
-
4118
3558
  static __wrap(ptr) {
4119
3559
  ptr = ptr >>> 0;
4120
3560
  const obj = Object.create(PreparePayResponse.prototype);
@@ -4142,8 +3582,6 @@ class PreparePayResponse {
4142
3582
  let deferred2_0;
4143
3583
  let deferred2_1;
4144
3584
  try {
4145
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4146
- _assertNum(this.__wbg_ptr);
4147
3585
  const ret = wasm.preparepayresponse_serialize(this.__wbg_ptr);
4148
3586
  var ptr1 = ret[0];
4149
3587
  var len1 = ret[1];
@@ -4165,8 +3603,6 @@ class PreparePayResponse {
4165
3603
  let deferred1_0;
4166
3604
  let deferred1_1;
4167
3605
  try {
4168
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4169
- _assertNum(this.__wbg_ptr);
4170
3606
  const ret = wasm.preparepayresponse_swapId(this.__wbg_ptr);
4171
3607
  deferred1_0 = ret[0];
4172
3608
  deferred1_1 = ret[1];
@@ -4182,8 +3618,6 @@ class PreparePayResponse {
4182
3618
  let deferred1_0;
4183
3619
  let deferred1_1;
4184
3620
  try {
4185
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4186
- _assertNum(this.__wbg_ptr);
4187
3621
  const ret = wasm.preparepayresponse_uri(this.__wbg_ptr);
4188
3622
  deferred1_0 = ret[0];
4189
3623
  deferred1_1 = ret[1];
@@ -4196,8 +3630,6 @@ class PreparePayResponse {
4196
3630
  * @returns {Address}
4197
3631
  */
4198
3632
  uriAddress() {
4199
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4200
- _assertNum(this.__wbg_ptr);
4201
3633
  const ret = wasm.preparepayresponse_uriAddress(this.__wbg_ptr);
4202
3634
  if (ret[2]) {
4203
3635
  throw takeFromExternrefTable0(ret[1]);
@@ -4208,8 +3640,6 @@ class PreparePayResponse {
4208
3640
  * @returns {bigint}
4209
3641
  */
4210
3642
  uriAmount() {
4211
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4212
- _assertNum(this.__wbg_ptr);
4213
3643
  const ret = wasm.preparepayresponse_uriAmount(this.__wbg_ptr);
4214
3644
  return BigInt.asUintN(64, ret);
4215
3645
  }
@@ -4221,8 +3651,6 @@ class PreparePayResponse {
4221
3651
  * @returns {bigint | undefined}
4222
3652
  */
4223
3653
  fee() {
4224
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4225
- _assertNum(this.__wbg_ptr);
4226
3654
  const ret = wasm.preparepayresponse_fee(this.__wbg_ptr);
4227
3655
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
4228
3656
  }
@@ -4230,9 +3658,7 @@ class PreparePayResponse {
4230
3658
  * @returns {Promise<boolean>}
4231
3659
  */
4232
3660
  completePay() {
4233
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4234
3661
  const ptr = this.__destroy_into_raw();
4235
- _assertNum(ptr);
4236
3662
  const ret = wasm.preparepayresponse_completePay(ptr);
4237
3663
  return ret;
4238
3664
  }
@@ -4280,12 +3706,7 @@ class PricesFetcher {
4280
3706
  * @returns {Promise<ExchangeRates>}
4281
3707
  */
4282
3708
  rates(currency) {
4283
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4284
- _assertNum(this.__wbg_ptr);
4285
3709
  _assertClass(currency, CurrencyCode);
4286
- if (currency.__wbg_ptr === 0) {
4287
- throw new Error('Attempt to use a moved value');
4288
- }
4289
3710
  const ret = wasm.pricesfetcher_rates(this.__wbg_ptr, currency.__wbg_ptr);
4290
3711
  return ret;
4291
3712
  }
@@ -4302,10 +3723,6 @@ const PricesFetcherBuilderFinalization = (typeof FinalizationRegistry === 'undef
4302
3723
  */
4303
3724
  class PricesFetcherBuilder {
4304
3725
 
4305
- constructor() {
4306
- throw new Error('cannot invoke `new` directly');
4307
- }
4308
-
4309
3726
  __destroy_into_raw() {
4310
3727
  const ptr = this.__wbg_ptr;
4311
3728
  this.__wbg_ptr = 0;
@@ -4373,8 +3790,6 @@ class Pset {
4373
3790
  let deferred1_0;
4374
3791
  let deferred1_1;
4375
3792
  try {
4376
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4377
- _assertNum(this.__wbg_ptr);
4378
3793
  const ret = wasm.pset_toString(this.__wbg_ptr);
4379
3794
  deferred1_0 = ret[0];
4380
3795
  deferred1_1 = ret[1];
@@ -4389,8 +3804,6 @@ class Pset {
4389
3804
  * @returns {Transaction}
4390
3805
  */
4391
3806
  extractTx() {
4392
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4393
- _assertNum(this.__wbg_ptr);
4394
3807
  const ret = wasm.pset_extractTx(this.__wbg_ptr);
4395
3808
  if (ret[2]) {
4396
3809
  throw takeFromExternrefTable0(ret[1]);
@@ -4402,12 +3815,7 @@ class Pset {
4402
3815
  * @param {Pset} other
4403
3816
  */
4404
3817
  combine(other) {
4405
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4406
- _assertNum(this.__wbg_ptr);
4407
3818
  _assertClass(other, Pset);
4408
- if (other.__wbg_ptr === 0) {
4409
- throw new Error('Attempt to use a moved value');
4410
- }
4411
3819
  var ptr0 = other.__destroy_into_raw();
4412
3820
  const ret = wasm.pset_combine(this.__wbg_ptr, ptr0);
4413
3821
  if (ret[1]) {
@@ -4419,8 +3827,6 @@ class Pset {
4419
3827
  * @returns {PsetInput[]}
4420
3828
  */
4421
3829
  inputs() {
4422
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4423
- _assertNum(this.__wbg_ptr);
4424
3830
  const ret = wasm.pset_inputs(this.__wbg_ptr);
4425
3831
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4426
3832
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4431,8 +3837,6 @@ class Pset {
4431
3837
  * @returns {PsetOutput[]}
4432
3838
  */
4433
3839
  outputs() {
4434
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4435
- _assertNum(this.__wbg_ptr);
4436
3840
  const ret = wasm.pset_outputs(this.__wbg_ptr);
4437
3841
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4438
3842
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4455,10 +3859,6 @@ const PsetBalanceFinalization = (typeof FinalizationRegistry === 'undefined')
4455
3859
  */
4456
3860
  class PsetBalance {
4457
3861
 
4458
- constructor() {
4459
- throw new Error('cannot invoke `new` directly');
4460
- }
4461
-
4462
3862
  static __wrap(ptr) {
4463
3863
  ptr = ptr >>> 0;
4464
3864
  const obj = Object.create(PsetBalance.prototype);
@@ -4482,8 +3882,6 @@ class PsetBalance {
4482
3882
  * @returns {bigint}
4483
3883
  */
4484
3884
  fee() {
4485
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4486
- _assertNum(this.__wbg_ptr);
4487
3885
  const ret = wasm.psetbalance_fee(this.__wbg_ptr);
4488
3886
  return BigInt.asUintN(64, ret);
4489
3887
  }
@@ -4492,8 +3890,6 @@ class PsetBalance {
4492
3890
  * @returns {Balance}
4493
3891
  */
4494
3892
  balances() {
4495
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4496
- _assertNum(this.__wbg_ptr);
4497
3893
  const ret = wasm.psetbalance_balances(this.__wbg_ptr);
4498
3894
  return Balance.__wrap(ret);
4499
3895
  }
@@ -4501,8 +3897,6 @@ class PsetBalance {
4501
3897
  * @returns {Recipient[]}
4502
3898
  */
4503
3899
  recipients() {
4504
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4505
- _assertNum(this.__wbg_ptr);
4506
3900
  const ret = wasm.psetbalance_recipients(this.__wbg_ptr);
4507
3901
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4508
3902
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4525,10 +3919,6 @@ const PsetDetailsFinalization = (typeof FinalizationRegistry === 'undefined')
4525
3919
  */
4526
3920
  class PsetDetails {
4527
3921
 
4528
- constructor() {
4529
- throw new Error('cannot invoke `new` directly');
4530
- }
4531
-
4532
3922
  static __wrap(ptr) {
4533
3923
  ptr = ptr >>> 0;
4534
3924
  const obj = Object.create(PsetDetails.prototype);
@@ -4554,8 +3944,6 @@ class PsetDetails {
4554
3944
  * @returns {PsetBalance}
4555
3945
  */
4556
3946
  balance() {
4557
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4558
- _assertNum(this.__wbg_ptr);
4559
3947
  const ret = wasm.psetdetails_balance(this.__wbg_ptr);
4560
3948
  return PsetBalance.__wrap(ret);
4561
3949
  }
@@ -4564,8 +3952,6 @@ class PsetDetails {
4564
3952
  * @returns {PsetSignatures[]}
4565
3953
  */
4566
3954
  signatures() {
4567
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4568
- _assertNum(this.__wbg_ptr);
4569
3955
  const ret = wasm.psetdetails_signatures(this.__wbg_ptr);
4570
3956
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4571
3957
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4576,8 +3962,6 @@ class PsetDetails {
4576
3962
  * @returns {string[]}
4577
3963
  */
4578
3964
  fingerprintsMissing() {
4579
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4580
- _assertNum(this.__wbg_ptr);
4581
3965
  const ret = wasm.psetdetails_fingerprintsMissing(this.__wbg_ptr);
4582
3966
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4583
3967
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4588,8 +3972,6 @@ class PsetDetails {
4588
3972
  * @returns {string[]}
4589
3973
  */
4590
3974
  fingerprintsHas() {
4591
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4592
- _assertNum(this.__wbg_ptr);
4593
3975
  const ret = wasm.psetdetails_fingerprintsHas(this.__wbg_ptr);
4594
3976
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4595
3977
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4600,8 +3982,6 @@ class PsetDetails {
4600
3982
  * @returns {Issuance[]}
4601
3983
  */
4602
3984
  inputsIssuances() {
4603
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4604
- _assertNum(this.__wbg_ptr);
4605
3985
  const ret = wasm.psetdetails_inputsIssuances(this.__wbg_ptr);
4606
3986
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4607
3987
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -4620,10 +4000,6 @@ const PsetInputFinalization = (typeof FinalizationRegistry === 'undefined')
4620
4000
  */
4621
4001
  class PsetInput {
4622
4002
 
4623
- constructor() {
4624
- throw new Error('cannot invoke `new` directly');
4625
- }
4626
-
4627
4003
  static __wrap(ptr) {
4628
4004
  ptr = ptr >>> 0;
4629
4005
  const obj = Object.create(PsetInput.prototype);
@@ -4648,8 +4024,6 @@ class PsetInput {
4648
4024
  * @returns {Txid}
4649
4025
  */
4650
4026
  previousTxid() {
4651
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4652
- _assertNum(this.__wbg_ptr);
4653
4027
  const ret = wasm.psetinput_previousTxid(this.__wbg_ptr);
4654
4028
  return Txid.__wrap(ret);
4655
4029
  }
@@ -4658,8 +4032,6 @@ class PsetInput {
4658
4032
  * @returns {number}
4659
4033
  */
4660
4034
  previousVout() {
4661
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4662
- _assertNum(this.__wbg_ptr);
4663
4035
  const ret = wasm.psetinput_previousVout(this.__wbg_ptr);
4664
4036
  return ret >>> 0;
4665
4037
  }
@@ -4668,8 +4040,6 @@ class PsetInput {
4668
4040
  * @returns {AssetId | undefined}
4669
4041
  */
4670
4042
  issuanceAsset() {
4671
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4672
- _assertNum(this.__wbg_ptr);
4673
4043
  const ret = wasm.psetinput_issuanceAsset(this.__wbg_ptr);
4674
4044
  return ret === 0 ? undefined : AssetId.__wrap(ret);
4675
4045
  }
@@ -4678,8 +4048,6 @@ class PsetInput {
4678
4048
  * @returns {AssetId | undefined}
4679
4049
  */
4680
4050
  issuanceToken() {
4681
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4682
- _assertNum(this.__wbg_ptr);
4683
4051
  const ret = wasm.psetinput_issuanceToken(this.__wbg_ptr);
4684
4052
  return ret === 0 ? undefined : AssetId.__wrap(ret);
4685
4053
  }
@@ -4696,10 +4064,6 @@ const PsetOutputFinalization = (typeof FinalizationRegistry === 'undefined')
4696
4064
  */
4697
4065
  class PsetOutput {
4698
4066
 
4699
- constructor() {
4700
- throw new Error('cannot invoke `new` directly');
4701
- }
4702
-
4703
4067
  static __wrap(ptr) {
4704
4068
  ptr = ptr >>> 0;
4705
4069
  const obj = Object.create(PsetOutput.prototype);
@@ -4723,8 +4087,6 @@ class PsetOutput {
4723
4087
  * @returns {Script}
4724
4088
  */
4725
4089
  scriptPubkey() {
4726
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4727
- _assertNum(this.__wbg_ptr);
4728
4090
  const ret = wasm.psetoutput_scriptPubkey(this.__wbg_ptr);
4729
4091
  return Script.__wrap(ret);
4730
4092
  }
@@ -4741,10 +4103,6 @@ const PsetSignaturesFinalization = (typeof FinalizationRegistry === 'undefined')
4741
4103
  */
4742
4104
  class PsetSignatures {
4743
4105
 
4744
- constructor() {
4745
- throw new Error('cannot invoke `new` directly');
4746
- }
4747
-
4748
4106
  static __wrap(ptr) {
4749
4107
  ptr = ptr >>> 0;
4750
4108
  const obj = Object.create(PsetSignatures.prototype);
@@ -4769,8 +4127,6 @@ class PsetSignatures {
4769
4127
  * @returns {any}
4770
4128
  */
4771
4129
  hasSignature() {
4772
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4773
- _assertNum(this.__wbg_ptr);
4774
4130
  const ret = wasm.psetsignatures_hasSignature(this.__wbg_ptr);
4775
4131
  return ret;
4776
4132
  }
@@ -4778,8 +4134,6 @@ class PsetSignatures {
4778
4134
  * @returns {any}
4779
4135
  */
4780
4136
  missingSignature() {
4781
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4782
- _assertNum(this.__wbg_ptr);
4783
4137
  const ret = wasm.psetsignatures_missingSignature(this.__wbg_ptr);
4784
4138
  return ret;
4785
4139
  }
@@ -4796,10 +4150,6 @@ const RecipientFinalization = (typeof FinalizationRegistry === 'undefined')
4796
4150
  */
4797
4151
  class Recipient {
4798
4152
 
4799
- constructor() {
4800
- throw new Error('cannot invoke `new` directly');
4801
- }
4802
-
4803
4153
  static __wrap(ptr) {
4804
4154
  ptr = ptr >>> 0;
4805
4155
  const obj = Object.create(Recipient.prototype);
@@ -4823,8 +4173,6 @@ class Recipient {
4823
4173
  * @returns {AssetId | undefined}
4824
4174
  */
4825
4175
  asset() {
4826
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4827
- _assertNum(this.__wbg_ptr);
4828
4176
  const ret = wasm.recipient_asset(this.__wbg_ptr);
4829
4177
  return ret === 0 ? undefined : AssetId.__wrap(ret);
4830
4178
  }
@@ -4832,8 +4180,6 @@ class Recipient {
4832
4180
  * @returns {bigint | undefined}
4833
4181
  */
4834
4182
  value() {
4835
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4836
- _assertNum(this.__wbg_ptr);
4837
4183
  const ret = wasm.recipient_value(this.__wbg_ptr);
4838
4184
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
4839
4185
  }
@@ -4841,8 +4187,6 @@ class Recipient {
4841
4187
  * @returns {Address | undefined}
4842
4188
  */
4843
4189
  address() {
4844
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4845
- _assertNum(this.__wbg_ptr);
4846
4190
  const ret = wasm.recipient_address(this.__wbg_ptr);
4847
4191
  return ret === 0 ? undefined : Address.__wrap(ret);
4848
4192
  }
@@ -4850,8 +4194,6 @@ class Recipient {
4850
4194
  * @returns {number}
4851
4195
  */
4852
4196
  vout() {
4853
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4854
- _assertNum(this.__wbg_ptr);
4855
4197
  const ret = wasm.recipient_vout(this.__wbg_ptr);
4856
4198
  return ret >>> 0;
4857
4199
  }
@@ -4868,10 +4210,6 @@ const RegistryFinalization = (typeof FinalizationRegistry === 'undefined')
4868
4210
  */
4869
4211
  class Registry {
4870
4212
 
4871
- constructor() {
4872
- throw new Error('cannot invoke `new` directly');
4873
- }
4874
-
4875
4213
  static __wrap(ptr) {
4876
4214
  ptr = ptr >>> 0;
4877
4215
  const obj = Object.create(Registry.prototype);
@@ -4903,9 +4241,6 @@ class Registry {
4903
4241
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4904
4242
  const len0 = WASM_VECTOR_LEN;
4905
4243
  _assertClass(asset_ids, AssetIds);
4906
- if (asset_ids.__wbg_ptr === 0) {
4907
- throw new Error('Attempt to use a moved value');
4908
- }
4909
4244
  const ret = wasm.registry_new(ptr0, len0, asset_ids.__wbg_ptr);
4910
4245
  return ret;
4911
4246
  }
@@ -4919,13 +4254,7 @@ class Registry {
4919
4254
  */
4920
4255
  static defaultForNetwork(network, asset_ids) {
4921
4256
  _assertClass(network, Network);
4922
- if (network.__wbg_ptr === 0) {
4923
- throw new Error('Attempt to use a moved value');
4924
- }
4925
4257
  _assertClass(asset_ids, AssetIds);
4926
- if (asset_ids.__wbg_ptr === 0) {
4927
- throw new Error('Attempt to use a moved value');
4928
- }
4929
4258
  const ret = wasm.registry_defaultForNetwork(network.__wbg_ptr, asset_ids.__wbg_ptr);
4930
4259
  return ret;
4931
4260
  }
@@ -4938,9 +4267,6 @@ class Registry {
4938
4267
  */
4939
4268
  static defaultHardcodedForNetwork(network) {
4940
4269
  _assertClass(network, Network);
4941
- if (network.__wbg_ptr === 0) {
4942
- throw new Error('Attempt to use a moved value');
4943
- }
4944
4270
  const ret = wasm.registry_defaultHardcodedForNetwork(network.__wbg_ptr);
4945
4271
  if (ret[2]) {
4946
4272
  throw takeFromExternrefTable0(ret[1]);
@@ -4954,16 +4280,8 @@ class Registry {
4954
4280
  * @returns {Promise<AssetMeta>}
4955
4281
  */
4956
4282
  fetchWithTx(asset_id, client) {
4957
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4958
- _assertNum(this.__wbg_ptr);
4959
4283
  _assertClass(asset_id, AssetId);
4960
- if (asset_id.__wbg_ptr === 0) {
4961
- throw new Error('Attempt to use a moved value');
4962
- }
4963
4284
  _assertClass(client, EsploraClient);
4964
- if (client.__wbg_ptr === 0) {
4965
- throw new Error('Attempt to use a moved value');
4966
- }
4967
4285
  const ret = wasm.registry_fetchWithTx(this.__wbg_ptr, asset_id.__wbg_ptr, client.__wbg_ptr);
4968
4286
  return ret;
4969
4287
  }
@@ -4973,12 +4291,7 @@ class Registry {
4973
4291
  * @returns {Promise<void>}
4974
4292
  */
4975
4293
  post(data) {
4976
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4977
- _assertNum(this.__wbg_ptr);
4978
4294
  _assertClass(data, RegistryPost);
4979
- if (data.__wbg_ptr === 0) {
4980
- throw new Error('Attempt to use a moved value');
4981
- }
4982
4295
  const ret = wasm.registry_post(this.__wbg_ptr, data.__wbg_ptr);
4983
4296
  return ret;
4984
4297
  }
@@ -4988,12 +4301,7 @@ class Registry {
4988
4301
  * @returns {RegistryData | undefined}
4989
4302
  */
4990
4303
  get(asset_id) {
4991
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
4992
- _assertNum(this.__wbg_ptr);
4993
4304
  _assertClass(asset_id, AssetId);
4994
- if (asset_id.__wbg_ptr === 0) {
4995
- throw new Error('Attempt to use a moved value');
4996
- }
4997
4305
  const ret = wasm.registry_get(this.__wbg_ptr, asset_id.__wbg_ptr);
4998
4306
  return ret === 0 ? undefined : RegistryData.__wrap(ret);
4999
4307
  }
@@ -5004,12 +4312,7 @@ class Registry {
5004
4312
  * @returns {RegistryData | undefined}
5005
4313
  */
5006
4314
  getAssetOfToken(token_id) {
5007
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5008
- _assertNum(this.__wbg_ptr);
5009
4315
  _assertClass(token_id, AssetId);
5010
- if (token_id.__wbg_ptr === 0) {
5011
- throw new Error('Attempt to use a moved value');
5012
- }
5013
4316
  const ret = wasm.registry_getAssetOfToken(this.__wbg_ptr, token_id.__wbg_ptr);
5014
4317
  return ret === 0 ? undefined : RegistryData.__wrap(ret);
5015
4318
  }
@@ -5022,12 +4325,7 @@ class Registry {
5022
4325
  * @returns {Pset}
5023
4326
  */
5024
4327
  addContracts(pset) {
5025
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5026
- _assertNum(this.__wbg_ptr);
5027
4328
  _assertClass(pset, Pset);
5028
- if (pset.__wbg_ptr === 0) {
5029
- throw new Error('Attempt to use a moved value');
5030
- }
5031
4329
  var ptr0 = pset.__destroy_into_raw();
5032
4330
  const ret = wasm.registry_addContracts(this.__wbg_ptr, ptr0);
5033
4331
  if (ret[2]) {
@@ -5046,10 +4344,6 @@ const RegistryDataFinalization = (typeof FinalizationRegistry === 'undefined')
5046
4344
 
5047
4345
  class RegistryData {
5048
4346
 
5049
- constructor() {
5050
- throw new Error('cannot invoke `new` directly');
5051
- }
5052
-
5053
4347
  static __wrap(ptr) {
5054
4348
  ptr = ptr >>> 0;
5055
4349
  const obj = Object.create(RegistryData.prototype);
@@ -5073,8 +4367,6 @@ class RegistryData {
5073
4367
  * @returns {number}
5074
4368
  */
5075
4369
  precision() {
5076
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5077
- _assertNum(this.__wbg_ptr);
5078
4370
  const ret = wasm.registrydata_precision(this.__wbg_ptr);
5079
4371
  return ret;
5080
4372
  }
@@ -5085,8 +4377,6 @@ class RegistryData {
5085
4377
  let deferred1_0;
5086
4378
  let deferred1_1;
5087
4379
  try {
5088
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5089
- _assertNum(this.__wbg_ptr);
5090
4380
  const ret = wasm.registrydata_ticker(this.__wbg_ptr);
5091
4381
  deferred1_0 = ret[0];
5092
4382
  deferred1_1 = ret[1];
@@ -5102,8 +4392,6 @@ class RegistryData {
5102
4392
  let deferred1_0;
5103
4393
  let deferred1_1;
5104
4394
  try {
5105
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5106
- _assertNum(this.__wbg_ptr);
5107
4395
  const ret = wasm.registrydata_name(this.__wbg_ptr);
5108
4396
  deferred1_0 = ret[0];
5109
4397
  deferred1_1 = ret[1];
@@ -5119,8 +4407,6 @@ class RegistryData {
5119
4407
  let deferred1_0;
5120
4408
  let deferred1_1;
5121
4409
  try {
5122
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5123
- _assertNum(this.__wbg_ptr);
5124
4410
  const ret = wasm.registrydata_domain(this.__wbg_ptr);
5125
4411
  deferred1_0 = ret[0];
5126
4412
  deferred1_1 = ret[1];
@@ -5160,14 +4446,8 @@ class RegistryPost {
5160
4446
  */
5161
4447
  constructor(contract, asset_id) {
5162
4448
  _assertClass(contract, Contract);
5163
- if (contract.__wbg_ptr === 0) {
5164
- throw new Error('Attempt to use a moved value');
5165
- }
5166
4449
  var ptr0 = contract.__destroy_into_raw();
5167
4450
  _assertClass(asset_id, AssetId);
5168
- if (asset_id.__wbg_ptr === 0) {
5169
- throw new Error('Attempt to use a moved value');
5170
- }
5171
4451
  var ptr1 = asset_id.__destroy_into_raw();
5172
4452
  const ret = wasm.registrypost_new(ptr0, ptr1);
5173
4453
  this.__wbg_ptr = ret >>> 0;
@@ -5182,8 +4462,6 @@ class RegistryPost {
5182
4462
  let deferred1_0;
5183
4463
  let deferred1_1;
5184
4464
  try {
5185
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5186
- _assertNum(this.__wbg_ptr);
5187
4465
  const ret = wasm.registrypost_toString(this.__wbg_ptr);
5188
4466
  deferred1_0 = ret[0];
5189
4467
  deferred1_1 = ret[1];
@@ -5244,8 +4522,6 @@ class Script {
5244
4522
  * @returns {Uint8Array}
5245
4523
  */
5246
4524
  bytes() {
5247
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5248
- _assertNum(this.__wbg_ptr);
5249
4525
  const ret = wasm.script_bytes(this.__wbg_ptr);
5250
4526
  var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
5251
4527
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
@@ -5261,8 +4537,6 @@ class Script {
5261
4537
  let deferred1_0;
5262
4538
  let deferred1_1;
5263
4539
  try {
5264
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5265
- _assertNum(this.__wbg_ptr);
5266
4540
  const ret = wasm.script_asm(this.__wbg_ptr);
5267
4541
  deferred1_0 = ret[0];
5268
4542
  deferred1_1 = ret[1];
@@ -5280,8 +4554,6 @@ class Script {
5280
4554
  let deferred1_0;
5281
4555
  let deferred1_1;
5282
4556
  try {
5283
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5284
- _assertNum(this.__wbg_ptr);
5285
4557
  const ret = wasm.script_toString(this.__wbg_ptr);
5286
4558
  deferred1_0 = ret[0];
5287
4559
  deferred1_1 = ret[1];
@@ -5315,39 +4587,87 @@ class Signer {
5315
4587
  wasm.__wbg_signer_free(ptr, 0);
5316
4588
  }
5317
4589
  /**
5318
- * Creates a `Signer`
5319
- * @param {Mnemonic} mnemonic
5320
- * @param {Network} network
4590
+ * AMP0 signer data for login
4591
+ * @returns {Amp0SignerData}
5321
4592
  */
5322
- constructor(mnemonic, network) {
5323
- _assertClass(mnemonic, Mnemonic);
5324
- if (mnemonic.__wbg_ptr === 0) {
5325
- throw new Error('Attempt to use a moved value');
5326
- }
5327
- _assertClass(network, Network);
5328
- if (network.__wbg_ptr === 0) {
5329
- throw new Error('Attempt to use a moved value');
5330
- }
5331
- const ret = wasm.signer_new(mnemonic.__wbg_ptr, network.__wbg_ptr);
4593
+ amp0SignerData() {
4594
+ const ret = wasm.signer_amp0SignerData(this.__wbg_ptr);
5332
4595
  if (ret[2]) {
5333
4596
  throw takeFromExternrefTable0(ret[1]);
5334
4597
  }
5335
- this.__wbg_ptr = ret[0] >>> 0;
5336
- SignerFinalization.register(this, this.__wbg_ptr, this);
5337
- return this;
4598
+ return Amp0SignerData.__wrap(ret[0]);
5338
4599
  }
5339
4600
  /**
5340
- * Sign and consume the given PSET, returning the signed one
5341
- * @param {Pset} pset
5342
- * @returns {Pset}
4601
+ * AMP0 sign login challenge
4602
+ * @param {string} challenge
4603
+ * @returns {string}
4604
+ */
4605
+ amp0SignChallenge(challenge) {
4606
+ let deferred3_0;
4607
+ let deferred3_1;
4608
+ try {
4609
+ const ptr0 = passStringToWasm0(challenge, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4610
+ const len0 = WASM_VECTOR_LEN;
4611
+ const ret = wasm.signer_amp0SignChallenge(this.__wbg_ptr, ptr0, len0);
4612
+ var ptr2 = ret[0];
4613
+ var len2 = ret[1];
4614
+ if (ret[3]) {
4615
+ ptr2 = 0; len2 = 0;
4616
+ throw takeFromExternrefTable0(ret[2]);
4617
+ }
4618
+ deferred3_0 = ptr2;
4619
+ deferred3_1 = len2;
4620
+ return getStringFromWasm0(ptr2, len2);
4621
+ } finally {
4622
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
4623
+ }
4624
+ }
4625
+ /**
4626
+ * AMP0 account xpub
4627
+ * @param {number} account
4628
+ * @returns {string}
4629
+ */
4630
+ amp0AccountXpub(account) {
4631
+ let deferred2_0;
4632
+ let deferred2_1;
4633
+ try {
4634
+ const ret = wasm.signer_amp0AccountXpub(this.__wbg_ptr, account);
4635
+ var ptr1 = ret[0];
4636
+ var len1 = ret[1];
4637
+ if (ret[3]) {
4638
+ ptr1 = 0; len1 = 0;
4639
+ throw takeFromExternrefTable0(ret[2]);
4640
+ }
4641
+ deferred2_0 = ptr1;
4642
+ deferred2_1 = len1;
4643
+ return getStringFromWasm0(ptr1, len1);
4644
+ } finally {
4645
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
4646
+ }
4647
+ }
4648
+ /**
4649
+ * Creates a `Signer`
4650
+ * @param {Mnemonic} mnemonic
4651
+ * @param {Network} network
4652
+ */
4653
+ constructor(mnemonic, network) {
4654
+ _assertClass(mnemonic, Mnemonic);
4655
+ _assertClass(network, Network);
4656
+ const ret = wasm.signer_new(mnemonic.__wbg_ptr, network.__wbg_ptr);
4657
+ if (ret[2]) {
4658
+ throw takeFromExternrefTable0(ret[1]);
4659
+ }
4660
+ this.__wbg_ptr = ret[0] >>> 0;
4661
+ SignerFinalization.register(this, this.__wbg_ptr, this);
4662
+ return this;
4663
+ }
4664
+ /**
4665
+ * Sign and consume the given PSET, returning the signed one
4666
+ * @param {Pset} pset
4667
+ * @returns {Pset}
5343
4668
  */
5344
4669
  sign(pset) {
5345
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5346
- _assertNum(this.__wbg_ptr);
5347
4670
  _assertClass(pset, Pset);
5348
- if (pset.__wbg_ptr === 0) {
5349
- throw new Error('Attempt to use a moved value');
5350
- }
5351
4671
  var ptr0 = pset.__destroy_into_raw();
5352
4672
  const ret = wasm.signer_sign(this.__wbg_ptr, ptr0);
5353
4673
  if (ret[2]) {
@@ -5364,8 +4684,6 @@ class Signer {
5364
4684
  let deferred3_0;
5365
4685
  let deferred3_1;
5366
4686
  try {
5367
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5368
- _assertNum(this.__wbg_ptr);
5369
4687
  const ptr0 = passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5370
4688
  const len0 = WASM_VECTOR_LEN;
5371
4689
  const ret = wasm.signer_signMessage(this.__wbg_ptr, ptr0, len0);
@@ -5387,8 +4705,6 @@ class Signer {
5387
4705
  * @returns {WolletDescriptor}
5388
4706
  */
5389
4707
  wpkhSlip77Descriptor() {
5390
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5391
- _assertNum(this.__wbg_ptr);
5392
4708
  const ret = wasm.signer_wpkhSlip77Descriptor(this.__wbg_ptr);
5393
4709
  if (ret[2]) {
5394
4710
  throw takeFromExternrefTable0(ret[1]);
@@ -5400,8 +4716,6 @@ class Signer {
5400
4716
  * @returns {Xpub}
5401
4717
  */
5402
4718
  getMasterXpub() {
5403
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5404
- _assertNum(this.__wbg_ptr);
5405
4719
  const ret = wasm.signer_getMasterXpub(this.__wbg_ptr);
5406
4720
  if (ret[2]) {
5407
4721
  throw takeFromExternrefTable0(ret[1]);
@@ -5417,12 +4731,7 @@ class Signer {
5417
4731
  let deferred2_0;
5418
4732
  let deferred2_1;
5419
4733
  try {
5420
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5421
- _assertNum(this.__wbg_ptr);
5422
4734
  _assertClass(bip, Bip);
5423
- if (bip.__wbg_ptr === 0) {
5424
- throw new Error('Attempt to use a moved value');
5425
- }
5426
4735
  const ret = wasm.signer_keyoriginXpub(this.__wbg_ptr, bip.__wbg_ptr);
5427
4736
  var ptr1 = ret[0];
5428
4737
  var len1 = ret[1];
@@ -5445,8 +4754,6 @@ class Signer {
5445
4754
  let deferred2_0;
5446
4755
  let deferred2_1;
5447
4756
  try {
5448
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5449
- _assertNum(this.__wbg_ptr);
5450
4757
  const ret = wasm.signer_fingerprint(this.__wbg_ptr);
5451
4758
  var ptr1 = ret[0];
5452
4759
  var len1 = ret[1];
@@ -5466,8 +4773,6 @@ class Signer {
5466
4773
  * @returns {Mnemonic}
5467
4774
  */
5468
4775
  mnemonic() {
5469
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5470
- _assertNum(this.__wbg_ptr);
5471
4776
  const ret = wasm.signer_mnemonic(this.__wbg_ptr);
5472
4777
  return Mnemonic.__wrap(ret);
5473
4778
  }
@@ -5478,82 +4783,12 @@ class Signer {
5478
4783
  * @returns {Mnemonic}
5479
4784
  */
5480
4785
  derive_bip85_mnemonic(index, word_count) {
5481
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5482
- _assertNum(this.__wbg_ptr);
5483
- _assertNum(index);
5484
- _assertNum(word_count);
5485
4786
  const ret = wasm.signer_derive_bip85_mnemonic(this.__wbg_ptr, index, word_count);
5486
4787
  if (ret[2]) {
5487
4788
  throw takeFromExternrefTable0(ret[1]);
5488
4789
  }
5489
4790
  return Mnemonic.__wrap(ret[0]);
5490
4791
  }
5491
- /**
5492
- * AMP0 signer data for login
5493
- * @returns {Amp0SignerData}
5494
- */
5495
- amp0SignerData() {
5496
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5497
- _assertNum(this.__wbg_ptr);
5498
- const ret = wasm.signer_amp0SignerData(this.__wbg_ptr);
5499
- if (ret[2]) {
5500
- throw takeFromExternrefTable0(ret[1]);
5501
- }
5502
- return Amp0SignerData.__wrap(ret[0]);
5503
- }
5504
- /**
5505
- * AMP0 sign login challenge
5506
- * @param {string} challenge
5507
- * @returns {string}
5508
- */
5509
- amp0SignChallenge(challenge) {
5510
- let deferred3_0;
5511
- let deferred3_1;
5512
- try {
5513
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5514
- _assertNum(this.__wbg_ptr);
5515
- const ptr0 = passStringToWasm0(challenge, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5516
- const len0 = WASM_VECTOR_LEN;
5517
- const ret = wasm.signer_amp0SignChallenge(this.__wbg_ptr, ptr0, len0);
5518
- var ptr2 = ret[0];
5519
- var len2 = ret[1];
5520
- if (ret[3]) {
5521
- ptr2 = 0; len2 = 0;
5522
- throw takeFromExternrefTable0(ret[2]);
5523
- }
5524
- deferred3_0 = ptr2;
5525
- deferred3_1 = len2;
5526
- return getStringFromWasm0(ptr2, len2);
5527
- } finally {
5528
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
5529
- }
5530
- }
5531
- /**
5532
- * AMP0 account xpub
5533
- * @param {number} account
5534
- * @returns {string}
5535
- */
5536
- amp0AccountXpub(account) {
5537
- let deferred2_0;
5538
- let deferred2_1;
5539
- try {
5540
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5541
- _assertNum(this.__wbg_ptr);
5542
- _assertNum(account);
5543
- const ret = wasm.signer_amp0AccountXpub(this.__wbg_ptr, account);
5544
- var ptr1 = ret[0];
5545
- var len1 = ret[1];
5546
- if (ret[3]) {
5547
- ptr1 = 0; len1 = 0;
5548
- throw takeFromExternrefTable0(ret[2]);
5549
- }
5550
- deferred2_0 = ptr1;
5551
- deferred2_1 = len1;
5552
- return getStringFromWasm0(ptr1, len1);
5553
- } finally {
5554
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
5555
- }
5556
- }
5557
4792
  }
5558
4793
  if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
5559
4794
 
@@ -5565,10 +4800,6 @@ const SinglesigFinalization = (typeof FinalizationRegistry === 'undefined')
5565
4800
 
5566
4801
  class Singlesig {
5567
4802
 
5568
- constructor() {
5569
- throw new Error('cannot invoke `new` directly');
5570
- }
5571
-
5572
4803
  static __wrap(ptr) {
5573
4804
  ptr = ptr >>> 0;
5574
4805
  const obj = Object.create(Singlesig.prototype);
@@ -5614,10 +4845,6 @@ const TipFinalization = (typeof FinalizationRegistry === 'undefined')
5614
4845
  */
5615
4846
  class Tip {
5616
4847
 
5617
- constructor() {
5618
- throw new Error('cannot invoke `new` directly');
5619
- }
5620
-
5621
4848
  static __wrap(ptr) {
5622
4849
  ptr = ptr >>> 0;
5623
4850
  const obj = Object.create(Tip.prototype);
@@ -5641,8 +4868,6 @@ class Tip {
5641
4868
  * @returns {number}
5642
4869
  */
5643
4870
  height() {
5644
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5645
- _assertNum(this.__wbg_ptr);
5646
4871
  const ret = wasm.tip_height(this.__wbg_ptr);
5647
4872
  return ret >>> 0;
5648
4873
  }
@@ -5653,8 +4878,6 @@ class Tip {
5653
4878
  let deferred1_0;
5654
4879
  let deferred1_1;
5655
4880
  try {
5656
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5657
- _assertNum(this.__wbg_ptr);
5658
4881
  const ret = wasm.tip_hash(this.__wbg_ptr);
5659
4882
  deferred1_0 = ret[0];
5660
4883
  deferred1_1 = ret[1];
@@ -5667,8 +4890,6 @@ class Tip {
5667
4890
  * @returns {number | undefined}
5668
4891
  */
5669
4892
  timestamp() {
5670
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5671
- _assertNum(this.__wbg_ptr);
5672
4893
  const ret = wasm.tip_timestamp(this.__wbg_ptr);
5673
4894
  return ret === 0x100000001 ? undefined : ret;
5674
4895
  }
@@ -5727,8 +4948,6 @@ class Transaction {
5727
4948
  * @returns {Txid}
5728
4949
  */
5729
4950
  txid() {
5730
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5731
- _assertNum(this.__wbg_ptr);
5732
4951
  const ret = wasm.transaction_txid(this.__wbg_ptr);
5733
4952
  return Txid.__wrap(ret);
5734
4953
  }
@@ -5737,8 +4956,6 @@ class Transaction {
5737
4956
  * @returns {Uint8Array}
5738
4957
  */
5739
4958
  bytes() {
5740
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5741
- _assertNum(this.__wbg_ptr);
5742
4959
  const ret = wasm.transaction_bytes(this.__wbg_ptr);
5743
4960
  var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
5744
4961
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
@@ -5751,12 +4968,7 @@ class Transaction {
5751
4968
  * @returns {bigint}
5752
4969
  */
5753
4970
  fee(policy_asset) {
5754
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5755
- _assertNum(this.__wbg_ptr);
5756
4971
  _assertClass(policy_asset, AssetId);
5757
- if (policy_asset.__wbg_ptr === 0) {
5758
- throw new Error('Attempt to use a moved value');
5759
- }
5760
4972
  const ret = wasm.transaction_fee(this.__wbg_ptr, policy_asset.__wbg_ptr);
5761
4973
  return BigInt.asUintN(64, ret);
5762
4974
  }
@@ -5768,8 +4980,6 @@ class Transaction {
5768
4980
  let deferred1_0;
5769
4981
  let deferred1_1;
5770
4982
  try {
5771
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5772
- _assertNum(this.__wbg_ptr);
5773
4983
  const ret = wasm.transaction_toString(this.__wbg_ptr);
5774
4984
  deferred1_0 = ret[0];
5775
4985
  deferred1_1 = ret[1];
@@ -5816,9 +5026,6 @@ class TxBuilder {
5816
5026
  */
5817
5027
  constructor(network) {
5818
5028
  _assertClass(network, Network);
5819
- if (network.__wbg_ptr === 0) {
5820
- throw new Error('Attempt to use a moved value');
5821
- }
5822
5029
  const ret = wasm.txbuilder_new(network.__wbg_ptr);
5823
5030
  this.__wbg_ptr = ret >>> 0;
5824
5031
  TxBuilderFinalization.register(this, this.__wbg_ptr, this);
@@ -5830,13 +5037,8 @@ class TxBuilder {
5830
5037
  * @returns {Pset}
5831
5038
  */
5832
5039
  finish(wollet) {
5833
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5834
5040
  const ptr = this.__destroy_into_raw();
5835
- _assertNum(ptr);
5836
5041
  _assertClass(wollet, Wollet);
5837
- if (wollet.__wbg_ptr === 0) {
5838
- throw new Error('Attempt to use a moved value');
5839
- }
5840
5042
  const ret = wasm.txbuilder_finish(ptr, wollet.__wbg_ptr);
5841
5043
  if (ret[2]) {
5842
5044
  throw takeFromExternrefTable0(ret[1]);
@@ -5849,13 +5051,8 @@ class TxBuilder {
5849
5051
  * @returns {Amp0Pset}
5850
5052
  */
5851
5053
  finishForAmp0(wollet) {
5852
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5853
5054
  const ptr = this.__destroy_into_raw();
5854
- _assertNum(ptr);
5855
5055
  _assertClass(wollet, Wollet);
5856
- if (wollet.__wbg_ptr === 0) {
5857
- throw new Error('Attempt to use a moved value');
5858
- }
5859
5056
  const ret = wasm.txbuilder_finishForAmp0(ptr, wollet.__wbg_ptr);
5860
5057
  if (ret[2]) {
5861
5058
  throw takeFromExternrefTable0(ret[1]);
@@ -5868,12 +5065,7 @@ class TxBuilder {
5868
5065
  * @returns {TxBuilder}
5869
5066
  */
5870
5067
  feeRate(fee_rate) {
5871
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5872
5068
  const ptr = this.__destroy_into_raw();
5873
- _assertNum(ptr);
5874
- if (!isLikeNone(fee_rate)) {
5875
- _assertNum(fee_rate);
5876
- }
5877
5069
  const ret = wasm.txbuilder_feeRate(ptr, isLikeNone(fee_rate) ? 0x100000001 : Math.fround(fee_rate));
5878
5070
  return TxBuilder.__wrap(ret);
5879
5071
  }
@@ -5882,9 +5074,7 @@ class TxBuilder {
5882
5074
  * @returns {TxBuilder}
5883
5075
  */
5884
5076
  drainLbtcWallet() {
5885
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5886
5077
  const ptr = this.__destroy_into_raw();
5887
- _assertNum(ptr);
5888
5078
  const ret = wasm.txbuilder_drainLbtcWallet(ptr);
5889
5079
  return TxBuilder.__wrap(ret);
5890
5080
  }
@@ -5894,13 +5084,8 @@ class TxBuilder {
5894
5084
  * @returns {TxBuilder}
5895
5085
  */
5896
5086
  drainLbtcTo(address) {
5897
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5898
5087
  const ptr = this.__destroy_into_raw();
5899
- _assertNum(ptr);
5900
5088
  _assertClass(address, Address);
5901
- if (address.__wbg_ptr === 0) {
5902
- throw new Error('Attempt to use a moved value');
5903
- }
5904
5089
  var ptr0 = address.__destroy_into_raw();
5905
5090
  const ret = wasm.txbuilder_drainLbtcTo(ptr, ptr0);
5906
5091
  return TxBuilder.__wrap(ret);
@@ -5914,14 +5099,8 @@ class TxBuilder {
5914
5099
  * @returns {TxBuilder}
5915
5100
  */
5916
5101
  addLbtcRecipient(address, satoshi) {
5917
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5918
5102
  const ptr = this.__destroy_into_raw();
5919
- _assertNum(ptr);
5920
5103
  _assertClass(address, Address);
5921
- if (address.__wbg_ptr === 0) {
5922
- throw new Error('Attempt to use a moved value');
5923
- }
5924
- _assertBigInt(satoshi);
5925
5104
  const ret = wasm.txbuilder_addLbtcRecipient(ptr, address.__wbg_ptr, satoshi);
5926
5105
  if (ret[2]) {
5927
5106
  throw takeFromExternrefTable0(ret[1]);
@@ -5938,18 +5117,9 @@ class TxBuilder {
5938
5117
  * @returns {TxBuilder}
5939
5118
  */
5940
5119
  addRecipient(address, satoshi, asset) {
5941
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5942
5120
  const ptr = this.__destroy_into_raw();
5943
- _assertNum(ptr);
5944
5121
  _assertClass(address, Address);
5945
- if (address.__wbg_ptr === 0) {
5946
- throw new Error('Attempt to use a moved value');
5947
- }
5948
- _assertBigInt(satoshi);
5949
5122
  _assertClass(asset, AssetId);
5950
- if (asset.__wbg_ptr === 0) {
5951
- throw new Error('Attempt to use a moved value');
5952
- }
5953
5123
  const ret = wasm.txbuilder_addRecipient(ptr, address.__wbg_ptr, satoshi, asset.__wbg_ptr);
5954
5124
  if (ret[2]) {
5955
5125
  throw takeFromExternrefTable0(ret[1]);
@@ -5963,14 +5133,8 @@ class TxBuilder {
5963
5133
  * @returns {TxBuilder}
5964
5134
  */
5965
5135
  addBurn(satoshi, asset) {
5966
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5967
5136
  const ptr = this.__destroy_into_raw();
5968
- _assertNum(ptr);
5969
- _assertBigInt(satoshi);
5970
5137
  _assertClass(asset, AssetId);
5971
- if (asset.__wbg_ptr === 0) {
5972
- throw new Error('Attempt to use a moved value');
5973
- }
5974
5138
  const ret = wasm.txbuilder_addBurn(ptr, satoshi, asset.__wbg_ptr);
5975
5139
  return TxBuilder.__wrap(ret);
5976
5140
  }
@@ -5982,19 +5146,10 @@ class TxBuilder {
5982
5146
  * @returns {TxBuilder}
5983
5147
  */
5984
5148
  addExplicitRecipient(address, satoshi, asset) {
5985
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
5986
5149
  const ptr = this.__destroy_into_raw();
5987
- _assertNum(ptr);
5988
5150
  _assertClass(address, Address);
5989
- if (address.__wbg_ptr === 0) {
5990
- throw new Error('Attempt to use a moved value');
5991
- }
5992
5151
  var ptr0 = address.__destroy_into_raw();
5993
- _assertBigInt(satoshi);
5994
5152
  _assertClass(asset, AssetId);
5995
- if (asset.__wbg_ptr === 0) {
5996
- throw new Error('Attempt to use a moved value');
5997
- }
5998
5153
  const ret = wasm.txbuilder_addExplicitRecipient(ptr, ptr0, satoshi, asset.__wbg_ptr);
5999
5154
  if (ret[2]) {
6000
5155
  throw takeFromExternrefTable0(ret[1]);
@@ -6022,33 +5177,20 @@ class TxBuilder {
6022
5177
  * @returns {TxBuilder}
6023
5178
  */
6024
5179
  issueAsset(asset_sats, asset_receiver, token_sats, token_receiver, contract) {
6025
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6026
5180
  const ptr = this.__destroy_into_raw();
6027
- _assertNum(ptr);
6028
- _assertBigInt(asset_sats);
6029
5181
  let ptr0 = 0;
6030
5182
  if (!isLikeNone(asset_receiver)) {
6031
5183
  _assertClass(asset_receiver, Address);
6032
- if (asset_receiver.__wbg_ptr === 0) {
6033
- throw new Error('Attempt to use a moved value');
6034
- }
6035
5184
  ptr0 = asset_receiver.__destroy_into_raw();
6036
5185
  }
6037
- _assertBigInt(token_sats);
6038
5186
  let ptr1 = 0;
6039
5187
  if (!isLikeNone(token_receiver)) {
6040
5188
  _assertClass(token_receiver, Address);
6041
- if (token_receiver.__wbg_ptr === 0) {
6042
- throw new Error('Attempt to use a moved value');
6043
- }
6044
5189
  ptr1 = token_receiver.__destroy_into_raw();
6045
5190
  }
6046
5191
  let ptr2 = 0;
6047
5192
  if (!isLikeNone(contract)) {
6048
5193
  _assertClass(contract, Contract);
6049
- if (contract.__wbg_ptr === 0) {
6050
- throw new Error('Attempt to use a moved value');
6051
- }
6052
5194
  ptr2 = contract.__destroy_into_raw();
6053
5195
  }
6054
5196
  const ret = wasm.txbuilder_issueAsset(ptr, asset_sats, ptr0, token_sats, ptr1, ptr2);
@@ -6076,29 +5218,17 @@ class TxBuilder {
6076
5218
  * @returns {TxBuilder}
6077
5219
  */
6078
5220
  reissueAsset(asset_to_reissue, satoshi_to_reissue, asset_receiver, issuance_tx) {
6079
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6080
5221
  const ptr = this.__destroy_into_raw();
6081
- _assertNum(ptr);
6082
5222
  _assertClass(asset_to_reissue, AssetId);
6083
- if (asset_to_reissue.__wbg_ptr === 0) {
6084
- throw new Error('Attempt to use a moved value');
6085
- }
6086
5223
  var ptr0 = asset_to_reissue.__destroy_into_raw();
6087
- _assertBigInt(satoshi_to_reissue);
6088
5224
  let ptr1 = 0;
6089
5225
  if (!isLikeNone(asset_receiver)) {
6090
5226
  _assertClass(asset_receiver, Address);
6091
- if (asset_receiver.__wbg_ptr === 0) {
6092
- throw new Error('Attempt to use a moved value');
6093
- }
6094
5227
  ptr1 = asset_receiver.__destroy_into_raw();
6095
5228
  }
6096
5229
  let ptr2 = 0;
6097
5230
  if (!isLikeNone(issuance_tx)) {
6098
5231
  _assertClass(issuance_tx, Transaction);
6099
- if (issuance_tx.__wbg_ptr === 0) {
6100
- throw new Error('Attempt to use a moved value');
6101
- }
6102
5232
  ptr2 = issuance_tx.__destroy_into_raw();
6103
5233
  }
6104
5234
  const ret = wasm.txbuilder_reissueAsset(ptr, ptr0, satoshi_to_reissue, ptr1, ptr2);
@@ -6123,9 +5253,7 @@ class TxBuilder {
6123
5253
  * @returns {TxBuilder}
6124
5254
  */
6125
5255
  setWalletUtxos(outpoints) {
6126
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6127
5256
  const ptr = this.__destroy_into_raw();
6128
- _assertNum(ptr);
6129
5257
  const ptr0 = passArrayJsValueToWasm0(outpoints, wasm.__wbindgen_malloc);
6130
5258
  const len0 = WASM_VECTOR_LEN;
6131
5259
  const ret = wasm.txbuilder_setWalletUtxos(ptr, ptr0, len0);
@@ -6139,8 +5267,6 @@ class TxBuilder {
6139
5267
  let deferred1_0;
6140
5268
  let deferred1_1;
6141
5269
  try {
6142
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6143
- _assertNum(this.__wbg_ptr);
6144
5270
  const ret = wasm.txbuilder_toString(this.__wbg_ptr);
6145
5271
  deferred1_0 = ret[0];
6146
5272
  deferred1_1 = ret[1];
@@ -6159,24 +5285,12 @@ class TxBuilder {
6159
5285
  * @returns {TxBuilder}
6160
5286
  */
6161
5287
  liquidexMake(utxo, address, satoshi, asset_id) {
6162
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6163
5288
  const ptr = this.__destroy_into_raw();
6164
- _assertNum(ptr);
6165
5289
  _assertClass(utxo, OutPoint);
6166
- if (utxo.__wbg_ptr === 0) {
6167
- throw new Error('Attempt to use a moved value');
6168
- }
6169
5290
  var ptr0 = utxo.__destroy_into_raw();
6170
5291
  _assertClass(address, Address);
6171
- if (address.__wbg_ptr === 0) {
6172
- throw new Error('Attempt to use a moved value');
6173
- }
6174
5292
  var ptr1 = address.__destroy_into_raw();
6175
- _assertBigInt(satoshi);
6176
5293
  _assertClass(asset_id, AssetId);
6177
- if (asset_id.__wbg_ptr === 0) {
6178
- throw new Error('Attempt to use a moved value');
6179
- }
6180
5294
  var ptr2 = asset_id.__destroy_into_raw();
6181
5295
  const ret = wasm.txbuilder_liquidexMake(ptr, ptr0, ptr1, satoshi, ptr2);
6182
5296
  if (ret[2]) {
@@ -6190,9 +5304,7 @@ class TxBuilder {
6190
5304
  * @returns {TxBuilder}
6191
5305
  */
6192
5306
  liquidexTake(proposals) {
6193
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6194
5307
  const ptr = this.__destroy_into_raw();
6195
- _assertNum(ptr);
6196
5308
  const ptr0 = passArrayJsValueToWasm0(proposals, wasm.__wbindgen_malloc);
6197
5309
  const len0 = WASM_VECTOR_LEN;
6198
5310
  const ret = wasm.txbuilder_liquidexTake(ptr, ptr0, len0);
@@ -6207,10 +5319,7 @@ class TxBuilder {
6207
5319
  * @returns {TxBuilder}
6208
5320
  */
6209
5321
  addInputRangeproofs(add_rangeproofs) {
6210
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6211
5322
  const ptr = this.__destroy_into_raw();
6212
- _assertNum(ptr);
6213
- _assertBoolean(add_rangeproofs);
6214
5323
  const ret = wasm.txbuilder_addInputRangeproofs(ptr, add_rangeproofs);
6215
5324
  return TxBuilder.__wrap(ret);
6216
5325
  }
@@ -6227,10 +5336,6 @@ const TxOutSecretsFinalization = (typeof FinalizationRegistry === 'undefined')
6227
5336
  */
6228
5337
  class TxOutSecrets {
6229
5338
 
6230
- constructor() {
6231
- throw new Error('cannot invoke `new` directly');
6232
- }
6233
-
6234
5339
  static __wrap(ptr) {
6235
5340
  ptr = ptr >>> 0;
6236
5341
  const obj = Object.create(TxOutSecrets.prototype);
@@ -6255,8 +5360,6 @@ class TxOutSecrets {
6255
5360
  * @returns {AssetId}
6256
5361
  */
6257
5362
  asset() {
6258
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6259
- _assertNum(this.__wbg_ptr);
6260
5363
  const ret = wasm.txoutsecrets_asset(this.__wbg_ptr);
6261
5364
  return AssetId.__wrap(ret);
6262
5365
  }
@@ -6268,8 +5371,6 @@ class TxOutSecrets {
6268
5371
  let deferred1_0;
6269
5372
  let deferred1_1;
6270
5373
  try {
6271
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6272
- _assertNum(this.__wbg_ptr);
6273
5374
  const ret = wasm.txoutsecrets_assetBlindingFactor(this.__wbg_ptr);
6274
5375
  deferred1_0 = ret[0];
6275
5376
  deferred1_1 = ret[1];
@@ -6283,8 +5384,6 @@ class TxOutSecrets {
6283
5384
  * @returns {bigint}
6284
5385
  */
6285
5386
  value() {
6286
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6287
- _assertNum(this.__wbg_ptr);
6288
5387
  const ret = wasm.txoutsecrets_value(this.__wbg_ptr);
6289
5388
  return BigInt.asUintN(64, ret);
6290
5389
  }
@@ -6296,8 +5395,6 @@ class TxOutSecrets {
6296
5395
  let deferred1_0;
6297
5396
  let deferred1_1;
6298
5397
  try {
6299
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6300
- _assertNum(this.__wbg_ptr);
6301
5398
  const ret = wasm.txoutsecrets_valueBlindingFactor(this.__wbg_ptr);
6302
5399
  deferred1_0 = ret[0];
6303
5400
  deferred1_1 = ret[1];
@@ -6311,8 +5408,6 @@ class TxOutSecrets {
6311
5408
  * @returns {boolean}
6312
5409
  */
6313
5410
  isExplicit() {
6314
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6315
- _assertNum(this.__wbg_ptr);
6316
5411
  const ret = wasm.txoutsecrets_isExplicit(this.__wbg_ptr);
6317
5412
  return ret !== 0;
6318
5413
  }
@@ -6326,8 +5421,6 @@ class TxOutSecrets {
6326
5421
  let deferred1_0;
6327
5422
  let deferred1_1;
6328
5423
  try {
6329
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6330
- _assertNum(this.__wbg_ptr);
6331
5424
  const ret = wasm.txoutsecrets_assetCommitment(this.__wbg_ptr);
6332
5425
  deferred1_0 = ret[0];
6333
5426
  deferred1_1 = ret[1];
@@ -6346,8 +5439,6 @@ class TxOutSecrets {
6346
5439
  let deferred1_0;
6347
5440
  let deferred1_1;
6348
5441
  try {
6349
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6350
- _assertNum(this.__wbg_ptr);
6351
5442
  const ret = wasm.txoutsecrets_valueCommitment(this.__wbg_ptr);
6352
5443
  deferred1_0 = ret[0];
6353
5444
  deferred1_1 = ret[1];
@@ -6414,8 +5505,6 @@ class Txid {
6414
5505
  let deferred1_0;
6415
5506
  let deferred1_1;
6416
5507
  try {
6417
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6418
- _assertNum(this.__wbg_ptr);
6419
5508
  const ret = wasm.txid_toString(this.__wbg_ptr);
6420
5509
  deferred1_0 = ret[0];
6421
5510
  deferred1_1 = ret[1];
@@ -6446,10 +5535,6 @@ const UnvalidatedLiquidexProposalFinalization = (typeof FinalizationRegistry ===
6446
5535
  */
6447
5536
  class UnvalidatedLiquidexProposal {
6448
5537
 
6449
- constructor() {
6450
- throw new Error('cannot invoke `new` directly');
6451
- }
6452
-
6453
5538
  static __wrap(ptr) {
6454
5539
  ptr = ptr >>> 0;
6455
5540
  const obj = Object.create(UnvalidatedLiquidexProposal.prototype);
@@ -6488,9 +5573,6 @@ class UnvalidatedLiquidexProposal {
6488
5573
  */
6489
5574
  static fromPset(pset) {
6490
5575
  _assertClass(pset, Pset);
6491
- if (pset.__wbg_ptr === 0) {
6492
- throw new Error('Attempt to use a moved value');
6493
- }
6494
5576
  var ptr0 = pset.__destroy_into_raw();
6495
5577
  const ret = wasm.unvalidatedliquidexproposal_fromPset(ptr0);
6496
5578
  if (ret[2]) {
@@ -6502,9 +5584,7 @@ class UnvalidatedLiquidexProposal {
6502
5584
  * @returns {ValidatedLiquidexProposal}
6503
5585
  */
6504
5586
  insecureValidate() {
6505
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6506
5587
  const ptr = this.__destroy_into_raw();
6507
- _assertNum(ptr);
6508
5588
  const ret = wasm.unvalidatedliquidexproposal_insecureValidate(ptr);
6509
5589
  if (ret[2]) {
6510
5590
  throw takeFromExternrefTable0(ret[1]);
@@ -6516,13 +5596,8 @@ class UnvalidatedLiquidexProposal {
6516
5596
  * @returns {ValidatedLiquidexProposal}
6517
5597
  */
6518
5598
  validate(tx) {
6519
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6520
5599
  const ptr = this.__destroy_into_raw();
6521
- _assertNum(ptr);
6522
5600
  _assertClass(tx, Transaction);
6523
- if (tx.__wbg_ptr === 0) {
6524
- throw new Error('Attempt to use a moved value');
6525
- }
6526
5601
  var ptr0 = tx.__destroy_into_raw();
6527
5602
  const ret = wasm.unvalidatedliquidexproposal_validate(ptr, ptr0);
6528
5603
  if (ret[2]) {
@@ -6537,8 +5612,6 @@ class UnvalidatedLiquidexProposal {
6537
5612
  let deferred1_0;
6538
5613
  let deferred1_1;
6539
5614
  try {
6540
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6541
- _assertNum(this.__wbg_ptr);
6542
5615
  const ret = wasm.unvalidatedliquidexproposal_toString(this.__wbg_ptr);
6543
5616
  deferred1_0 = ret[0];
6544
5617
  deferred1_1 = ret[1];
@@ -6600,8 +5673,6 @@ class Update {
6600
5673
  * @returns {Uint8Array}
6601
5674
  */
6602
5675
  serialize() {
6603
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6604
- _assertNum(this.__wbg_ptr);
6605
5676
  const ret = wasm.update_serialize(this.__wbg_ptr);
6606
5677
  if (ret[3]) {
6607
5678
  throw takeFromExternrefTable0(ret[2]);
@@ -6621,12 +5692,7 @@ class Update {
6621
5692
  let deferred2_0;
6622
5693
  let deferred2_1;
6623
5694
  try {
6624
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6625
- _assertNum(this.__wbg_ptr);
6626
5695
  _assertClass(desc, WolletDescriptor);
6627
- if (desc.__wbg_ptr === 0) {
6628
- throw new Error('Attempt to use a moved value');
6629
- }
6630
5696
  const ret = wasm.update_serializeEncryptedBase64(this.__wbg_ptr, desc.__wbg_ptr);
6631
5697
  var ptr1 = ret[0];
6632
5698
  var len1 = ret[1];
@@ -6653,9 +5719,6 @@ class Update {
6653
5719
  const ptr0 = passStringToWasm0(base64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6654
5720
  const len0 = WASM_VECTOR_LEN;
6655
5721
  _assertClass(desc, WolletDescriptor);
6656
- if (desc.__wbg_ptr === 0) {
6657
- throw new Error('Attempt to use a moved value');
6658
- }
6659
5722
  const ret = wasm.update_deserializeDecryptedBase64(ptr0, len0, desc.__wbg_ptr);
6660
5723
  if (ret[2]) {
6661
5724
  throw takeFromExternrefTable0(ret[1]);
@@ -6667,8 +5730,6 @@ class Update {
6667
5730
  * @returns {boolean}
6668
5731
  */
6669
5732
  onlyTip() {
6670
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6671
- _assertNum(this.__wbg_ptr);
6672
5733
  const ret = wasm.update_onlyTip(this.__wbg_ptr);
6673
5734
  return ret !== 0;
6674
5735
  }
@@ -6677,12 +5738,7 @@ class Update {
6677
5738
  * @param {Wollet} wollet
6678
5739
  */
6679
5740
  prune(wollet) {
6680
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6681
- _assertNum(this.__wbg_ptr);
6682
5741
  _assertClass(wollet, Wollet);
6683
- if (wollet.__wbg_ptr === 0) {
6684
- throw new Error('Attempt to use a moved value');
6685
- }
6686
5742
  wasm.update_prune(this.__wbg_ptr, wollet.__wbg_ptr);
6687
5743
  }
6688
5744
  }
@@ -6698,10 +5754,6 @@ const ValidatedLiquidexProposalFinalization = (typeof FinalizationRegistry === '
6698
5754
  */
6699
5755
  class ValidatedLiquidexProposal {
6700
5756
 
6701
- constructor() {
6702
- throw new Error('cannot invoke `new` directly');
6703
- }
6704
-
6705
5757
  static __wrap(ptr) {
6706
5758
  ptr = ptr >>> 0;
6707
5759
  const obj = Object.create(ValidatedLiquidexProposal.prototype);
@@ -6732,8 +5784,6 @@ class ValidatedLiquidexProposal {
6732
5784
  * @returns {AssetAmount}
6733
5785
  */
6734
5786
  input() {
6735
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6736
- _assertNum(this.__wbg_ptr);
6737
5787
  const ret = wasm.validatedliquidexproposal_input(this.__wbg_ptr);
6738
5788
  return AssetAmount.__wrap(ret);
6739
5789
  }
@@ -6741,8 +5791,6 @@ class ValidatedLiquidexProposal {
6741
5791
  * @returns {AssetAmount}
6742
5792
  */
6743
5793
  output() {
6744
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6745
- _assertNum(this.__wbg_ptr);
6746
5794
  const ret = wasm.validatedliquidexproposal_output(this.__wbg_ptr);
6747
5795
  return AssetAmount.__wrap(ret);
6748
5796
  }
@@ -6753,8 +5801,6 @@ class ValidatedLiquidexProposal {
6753
5801
  let deferred1_0;
6754
5802
  let deferred1_1;
6755
5803
  try {
6756
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6757
- _assertNum(this.__wbg_ptr);
6758
5804
  const ret = wasm.validatedliquidexproposal_toString(this.__wbg_ptr);
6759
5805
  deferred1_0 = ret[0];
6760
5806
  deferred1_1 = ret[1];
@@ -6778,10 +5824,6 @@ const WalletTxFinalization = (typeof FinalizationRegistry === 'undefined')
6778
5824
  */
6779
5825
  class WalletTx {
6780
5826
 
6781
- constructor() {
6782
- throw new Error('cannot invoke `new` directly');
6783
- }
6784
-
6785
5827
  static __wrap(ptr) {
6786
5828
  ptr = ptr >>> 0;
6787
5829
  const obj = Object.create(WalletTx.prototype);
@@ -6806,8 +5848,6 @@ class WalletTx {
6806
5848
  * @returns {Transaction}
6807
5849
  */
6808
5850
  tx() {
6809
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6810
- _assertNum(this.__wbg_ptr);
6811
5851
  const ret = wasm.wallettx_tx(this.__wbg_ptr);
6812
5852
  return Transaction.__wrap(ret);
6813
5853
  }
@@ -6816,8 +5856,6 @@ class WalletTx {
6816
5856
  * @returns {number | undefined}
6817
5857
  */
6818
5858
  height() {
6819
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6820
- _assertNum(this.__wbg_ptr);
6821
5859
  const ret = wasm.wallettx_height(this.__wbg_ptr);
6822
5860
  return ret === 0x100000001 ? undefined : ret;
6823
5861
  }
@@ -6826,8 +5864,6 @@ class WalletTx {
6826
5864
  * @returns {Balance}
6827
5865
  */
6828
5866
  balance() {
6829
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6830
- _assertNum(this.__wbg_ptr);
6831
5867
  const ret = wasm.wallettx_balance(this.__wbg_ptr);
6832
5868
  return Balance.__wrap(ret);
6833
5869
  }
@@ -6836,8 +5872,6 @@ class WalletTx {
6836
5872
  * @returns {Txid}
6837
5873
  */
6838
5874
  txid() {
6839
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6840
- _assertNum(this.__wbg_ptr);
6841
5875
  const ret = wasm.wallettx_txid(this.__wbg_ptr);
6842
5876
  return Txid.__wrap(ret);
6843
5877
  }
@@ -6846,8 +5880,6 @@ class WalletTx {
6846
5880
  * @returns {bigint}
6847
5881
  */
6848
5882
  fee() {
6849
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6850
- _assertNum(this.__wbg_ptr);
6851
5883
  const ret = wasm.wallettx_fee(this.__wbg_ptr);
6852
5884
  return BigInt.asUintN(64, ret);
6853
5885
  }
@@ -6859,8 +5891,6 @@ class WalletTx {
6859
5891
  let deferred1_0;
6860
5892
  let deferred1_1;
6861
5893
  try {
6862
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6863
- _assertNum(this.__wbg_ptr);
6864
5894
  const ret = wasm.wallettx_txType(this.__wbg_ptr);
6865
5895
  deferred1_0 = ret[0];
6866
5896
  deferred1_1 = ret[1];
@@ -6874,8 +5904,6 @@ class WalletTx {
6874
5904
  * @returns {number | undefined}
6875
5905
  */
6876
5906
  timestamp() {
6877
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6878
- _assertNum(this.__wbg_ptr);
6879
5907
  const ret = wasm.wallettx_timestamp(this.__wbg_ptr);
6880
5908
  return ret === 0x100000001 ? undefined : ret;
6881
5909
  }
@@ -6886,8 +5914,6 @@ class WalletTx {
6886
5914
  * @returns {OptionWalletTxOut[]}
6887
5915
  */
6888
5916
  inputs() {
6889
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6890
- _assertNum(this.__wbg_ptr);
6891
5917
  const ret = wasm.wallettx_inputs(this.__wbg_ptr);
6892
5918
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
6893
5919
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -6900,8 +5926,6 @@ class WalletTx {
6900
5926
  * @returns {OptionWalletTxOut[]}
6901
5927
  */
6902
5928
  outputs() {
6903
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6904
- _assertNum(this.__wbg_ptr);
6905
5929
  const ret = wasm.wallettx_outputs(this.__wbg_ptr);
6906
5930
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
6907
5931
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
@@ -6917,8 +5941,6 @@ class WalletTx {
6917
5941
  let deferred2_0;
6918
5942
  let deferred2_1;
6919
5943
  try {
6920
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6921
- _assertNum(this.__wbg_ptr);
6922
5944
  const ptr0 = passStringToWasm0(explorer_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6923
5945
  const len0 = WASM_VECTOR_LEN;
6924
5946
  const ret = wasm.wallettx_unblindedUrl(this.__wbg_ptr, ptr0, len0);
@@ -6942,10 +5964,6 @@ const WalletTxOutFinalization = (typeof FinalizationRegistry === 'undefined')
6942
5964
  */
6943
5965
  class WalletTxOut {
6944
5966
 
6945
- constructor() {
6946
- throw new Error('cannot invoke `new` directly');
6947
- }
6948
-
6949
5967
  static __wrap(ptr) {
6950
5968
  ptr = ptr >>> 0;
6951
5969
  const obj = Object.create(WalletTxOut.prototype);
@@ -6970,8 +5988,6 @@ class WalletTxOut {
6970
5988
  * @returns {OutPoint}
6971
5989
  */
6972
5990
  outpoint() {
6973
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6974
- _assertNum(this.__wbg_ptr);
6975
5991
  const ret = wasm.wallettxout_outpoint(this.__wbg_ptr);
6976
5992
  return OutPoint.__wrap(ret);
6977
5993
  }
@@ -6980,8 +5996,6 @@ class WalletTxOut {
6980
5996
  * @returns {Script}
6981
5997
  */
6982
5998
  scriptPubkey() {
6983
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6984
- _assertNum(this.__wbg_ptr);
6985
5999
  const ret = wasm.wallettxout_scriptPubkey(this.__wbg_ptr);
6986
6000
  return Script.__wrap(ret);
6987
6001
  }
@@ -6990,8 +6004,6 @@ class WalletTxOut {
6990
6004
  * @returns {number | undefined}
6991
6005
  */
6992
6006
  height() {
6993
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
6994
- _assertNum(this.__wbg_ptr);
6995
6007
  const ret = wasm.wallettxout_height(this.__wbg_ptr);
6996
6008
  return ret === 0x100000001 ? undefined : ret;
6997
6009
  }
@@ -7000,8 +6012,6 @@ class WalletTxOut {
7000
6012
  * @returns {TxOutSecrets}
7001
6013
  */
7002
6014
  unblinded() {
7003
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7004
- _assertNum(this.__wbg_ptr);
7005
6015
  const ret = wasm.wallettxout_unblinded(this.__wbg_ptr);
7006
6016
  return TxOutSecrets.__wrap(ret);
7007
6017
  }
@@ -7010,8 +6020,6 @@ class WalletTxOut {
7010
6020
  * @returns {number}
7011
6021
  */
7012
6022
  wildcardIndex() {
7013
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7014
- _assertNum(this.__wbg_ptr);
7015
6023
  const ret = wasm.wallettxout_wildcardIndex(this.__wbg_ptr);
7016
6024
  return ret >>> 0;
7017
6025
  }
@@ -7020,8 +6028,6 @@ class WalletTxOut {
7020
6028
  * @returns {Chain}
7021
6029
  */
7022
6030
  extInt() {
7023
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7024
- _assertNum(this.__wbg_ptr);
7025
6031
  const ret = wasm.wallettxout_extInt(this.__wbg_ptr);
7026
6032
  return ret;
7027
6033
  }
@@ -7030,8 +6036,6 @@ class WalletTxOut {
7030
6036
  * @returns {Address}
7031
6037
  */
7032
6038
  address() {
7033
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7034
- _assertNum(this.__wbg_ptr);
7035
6039
  const ret = wasm.wallettxout_address(this.__wbg_ptr);
7036
6040
  return Address.__wrap(ret);
7037
6041
  }
@@ -7074,13 +6078,7 @@ class Wollet {
7074
6078
  */
7075
6079
  constructor(network, descriptor) {
7076
6080
  _assertClass(network, Network);
7077
- if (network.__wbg_ptr === 0) {
7078
- throw new Error('Attempt to use a moved value');
7079
- }
7080
6081
  _assertClass(descriptor, WolletDescriptor);
7081
- if (descriptor.__wbg_ptr === 0) {
7082
- throw new Error('Attempt to use a moved value');
7083
- }
7084
6082
  const ret = wasm.wollet_new(network.__wbg_ptr, descriptor.__wbg_ptr);
7085
6083
  if (ret[2]) {
7086
6084
  throw takeFromExternrefTable0(ret[1]);
@@ -7098,11 +6096,6 @@ class Wollet {
7098
6096
  * @returns {AddressResult}
7099
6097
  */
7100
6098
  address(index) {
7101
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7102
- _assertNum(this.__wbg_ptr);
7103
- if (!isLikeNone(index)) {
7104
- _assertNum(index);
7105
- }
7106
6099
  const ret = wasm.wollet_address(this.__wbg_ptr, isLikeNone(index) ? 0x100000001 : (index) >>> 0);
7107
6100
  if (ret[2]) {
7108
6101
  throw takeFromExternrefTable0(ret[1]);
@@ -7117,8 +6110,6 @@ class Wollet {
7117
6110
  let deferred2_0;
7118
6111
  let deferred2_1;
7119
6112
  try {
7120
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7121
- _assertNum(this.__wbg_ptr);
7122
6113
  const ret = wasm.wollet_dwid(this.__wbg_ptr);
7123
6114
  var ptr1 = ret[0];
7124
6115
  var len1 = ret[1];
@@ -7141,9 +6132,6 @@ class Wollet {
7141
6132
  * @returns {Uint32Array}
7142
6133
  */
7143
6134
  addressFullPath(index) {
7144
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7145
- _assertNum(this.__wbg_ptr);
7146
- _assertNum(index);
7147
6135
  const ret = wasm.wollet_addressFullPath(this.__wbg_ptr, index);
7148
6136
  if (ret[3]) {
7149
6137
  throw takeFromExternrefTable0(ret[2]);
@@ -7171,12 +6159,7 @@ class Wollet {
7171
6159
  * @param {Update} update
7172
6160
  */
7173
6161
  applyUpdate(update) {
7174
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7175
- _assertNum(this.__wbg_ptr);
7176
6162
  _assertClass(update, Update);
7177
- if (update.__wbg_ptr === 0) {
7178
- throw new Error('Attempt to use a moved value');
7179
- }
7180
6163
  const ret = wasm.wollet_applyUpdate(this.__wbg_ptr, update.__wbg_ptr);
7181
6164
  if (ret[1]) {
7182
6165
  throw takeFromExternrefTable0(ret[0]);
@@ -7202,12 +6185,7 @@ class Wollet {
7202
6185
  * @returns {Balance}
7203
6186
  */
7204
6187
  applyTransaction(tx) {
7205
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7206
- _assertNum(this.__wbg_ptr);
7207
6188
  _assertClass(tx, Transaction);
7208
- if (tx.__wbg_ptr === 0) {
7209
- throw new Error('Attempt to use a moved value');
7210
- }
7211
6189
  const ret = wasm.wollet_applyTransaction(this.__wbg_ptr, tx.__wbg_ptr);
7212
6190
  if (ret[2]) {
7213
6191
  throw takeFromExternrefTable0(ret[1]);
@@ -7219,8 +6197,6 @@ class Wollet {
7219
6197
  * @returns {Balance}
7220
6198
  */
7221
6199
  balance() {
7222
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7223
- _assertNum(this.__wbg_ptr);
7224
6200
  const ret = wasm.wollet_balance(this.__wbg_ptr);
7225
6201
  if (ret[2]) {
7226
6202
  throw takeFromExternrefTable0(ret[1]);
@@ -7232,8 +6208,6 @@ class Wollet {
7232
6208
  * @returns {AssetIds}
7233
6209
  */
7234
6210
  assetsOwned() {
7235
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7236
- _assertNum(this.__wbg_ptr);
7237
6211
  const ret = wasm.wollet_assetsOwned(this.__wbg_ptr);
7238
6212
  if (ret[2]) {
7239
6213
  throw takeFromExternrefTable0(ret[1]);
@@ -7245,8 +6219,6 @@ class Wollet {
7245
6219
  * @returns {WalletTx[]}
7246
6220
  */
7247
6221
  transactions() {
7248
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7249
- _assertNum(this.__wbg_ptr);
7250
6222
  const ret = wasm.wollet_transactions(this.__wbg_ptr);
7251
6223
  if (ret[3]) {
7252
6224
  throw takeFromExternrefTable0(ret[2]);
@@ -7260,8 +6232,6 @@ class Wollet {
7260
6232
  * @returns {WalletTxOut[]}
7261
6233
  */
7262
6234
  utxos() {
7263
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7264
- _assertNum(this.__wbg_ptr);
7265
6235
  const ret = wasm.wollet_utxos(this.__wbg_ptr);
7266
6236
  if (ret[3]) {
7267
6237
  throw takeFromExternrefTable0(ret[2]);
@@ -7275,8 +6245,6 @@ class Wollet {
7275
6245
  * @returns {WalletTxOut[]}
7276
6246
  */
7277
6247
  txos() {
7278
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7279
- _assertNum(this.__wbg_ptr);
7280
6248
  const ret = wasm.wollet_txos(this.__wbg_ptr);
7281
6249
  if (ret[3]) {
7282
6250
  throw takeFromExternrefTable0(ret[2]);
@@ -7291,12 +6259,7 @@ class Wollet {
7291
6259
  * @returns {Pset}
7292
6260
  */
7293
6261
  finalize(pset) {
7294
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7295
- _assertNum(this.__wbg_ptr);
7296
6262
  _assertClass(pset, Pset);
7297
- if (pset.__wbg_ptr === 0) {
7298
- throw new Error('Attempt to use a moved value');
7299
- }
7300
6263
  var ptr0 = pset.__destroy_into_raw();
7301
6264
  const ret = wasm.wollet_finalize(this.__wbg_ptr, ptr0);
7302
6265
  if (ret[2]) {
@@ -7310,12 +6273,7 @@ class Wollet {
7310
6273
  * @returns {PsetDetails}
7311
6274
  */
7312
6275
  psetDetails(pset) {
7313
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7314
- _assertNum(this.__wbg_ptr);
7315
6276
  _assertClass(pset, Pset);
7316
- if (pset.__wbg_ptr === 0) {
7317
- throw new Error('Attempt to use a moved value');
7318
- }
7319
6277
  const ret = wasm.wollet_psetDetails(this.__wbg_ptr, pset.__wbg_ptr);
7320
6278
  if (ret[2]) {
7321
6279
  throw takeFromExternrefTable0(ret[1]);
@@ -7327,8 +6285,6 @@ class Wollet {
7327
6285
  * @returns {WolletDescriptor}
7328
6286
  */
7329
6287
  descriptor() {
7330
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7331
- _assertNum(this.__wbg_ptr);
7332
6288
  const ret = wasm.wollet_descriptor(this.__wbg_ptr);
7333
6289
  if (ret[2]) {
7334
6290
  throw takeFromExternrefTable0(ret[1]);
@@ -7345,8 +6301,6 @@ class Wollet {
7345
6301
  * @returns {bigint}
7346
6302
  */
7347
6303
  status() {
7348
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7349
- _assertNum(this.__wbg_ptr);
7350
6304
  const ret = wasm.wollet_status(this.__wbg_ptr);
7351
6305
  return BigInt.asUintN(64, ret);
7352
6306
  }
@@ -7355,8 +6309,6 @@ class Wollet {
7355
6309
  * @returns {Tip}
7356
6310
  */
7357
6311
  tip() {
7358
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7359
- _assertNum(this.__wbg_ptr);
7360
6312
  const ret = wasm.wollet_tip(this.__wbg_ptr);
7361
6313
  return Tip.__wrap(ret);
7362
6314
  }
@@ -7365,8 +6317,6 @@ class Wollet {
7365
6317
  * @returns {boolean}
7366
6318
  */
7367
6319
  neverScanned() {
7368
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7369
- _assertNum(this.__wbg_ptr);
7370
6320
  const ret = wasm.wollet_neverScanned(this.__wbg_ptr);
7371
6321
  return ret !== 0;
7372
6322
  }
@@ -7375,8 +6325,6 @@ class Wollet {
7375
6325
  * @returns {boolean}
7376
6326
  */
7377
6327
  isAmp0() {
7378
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7379
- _assertNum(this.__wbg_ptr);
7380
6328
  const ret = wasm.wollet_isAmp0(this.__wbg_ptr);
7381
6329
  return ret !== 0;
7382
6330
  }
@@ -7436,8 +6384,6 @@ class WolletDescriptor {
7436
6384
  let deferred1_0;
7437
6385
  let deferred1_1;
7438
6386
  try {
7439
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7440
- _assertNum(this.__wbg_ptr);
7441
6387
  const ret = wasm.wolletdescriptor_toString(this.__wbg_ptr);
7442
6388
  deferred1_0 = ret[0];
7443
6389
  deferred1_1 = ret[1];
@@ -7455,7 +6401,6 @@ class WolletDescriptor {
7455
6401
  * @returns {WolletDescriptor}
7456
6402
  */
7457
6403
  static newMultiWshSlip77(threshold, participants) {
7458
- _assertNum(threshold);
7459
6404
  const ptr0 = passArrayJsValueToWasm0(participants, wasm.__wbindgen_malloc);
7460
6405
  const len0 = WASM_VECTOR_LEN;
7461
6406
  const ret = wasm.wolletdescriptor_newMultiWshSlip77(threshold, ptr0, len0);
@@ -7469,8 +6414,6 @@ class WolletDescriptor {
7469
6414
  * @returns {boolean}
7470
6415
  */
7471
6416
  isMainnet() {
7472
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7473
- _assertNum(this.__wbg_ptr);
7474
6417
  const ret = wasm.wolletdescriptor_isMainnet(this.__wbg_ptr);
7475
6418
  return ret !== 0;
7476
6419
  }
@@ -7479,8 +6422,6 @@ class WolletDescriptor {
7479
6422
  * @returns {boolean}
7480
6423
  */
7481
6424
  isAmp0() {
7482
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7483
- _assertNum(this.__wbg_ptr);
7484
6425
  const ret = wasm.wolletdescriptor_isAmp0(this.__wbg_ptr);
7485
6426
  return ret !== 0;
7486
6427
  }
@@ -7540,8 +6481,6 @@ class Xpub {
7540
6481
  let deferred1_0;
7541
6482
  let deferred1_1;
7542
6483
  try {
7543
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7544
- _assertNum(this.__wbg_ptr);
7545
6484
  const ret = wasm.xpub_toString(this.__wbg_ptr);
7546
6485
  deferred1_0 = ret[0];
7547
6486
  deferred1_1 = ret[1];
@@ -7559,8 +6498,6 @@ class Xpub {
7559
6498
  let deferred1_0;
7560
6499
  let deferred1_1;
7561
6500
  try {
7562
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7563
- _assertNum(this.__wbg_ptr);
7564
6501
  const ret = wasm.xpub_identifier(this.__wbg_ptr);
7565
6502
  deferred1_0 = ret[0];
7566
6503
  deferred1_1 = ret[1];
@@ -7578,8 +6515,6 @@ class Xpub {
7578
6515
  let deferred1_0;
7579
6516
  let deferred1_1;
7580
6517
  try {
7581
- if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
7582
- _assertNum(this.__wbg_ptr);
7583
6518
  const ret = wasm.xpub_fingerprint(this.__wbg_ptr);
7584
6519
  deferred1_0 = ret[0];
7585
6520
  deferred1_1 = ret[1];
@@ -7605,46 +6540,46 @@ if (Symbol.dispose) Xpub.prototype[Symbol.dispose] = Xpub.prototype.free;
7605
6540
 
7606
6541
  exports.Xpub = Xpub;
7607
6542
 
7608
- exports.__wbg_Error_e17e777aac105295 = function() { return logError(function (arg0, arg1) {
6543
+ exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
7609
6544
  const ret = Error(getStringFromWasm0(arg0, arg1));
7610
6545
  return ret;
7611
- }, arguments) };
6546
+ };
7612
6547
 
7613
- exports.__wbg_String_8f0eb39a4a4c2f66 = function() { return logError(function (arg0, arg1) {
6548
+ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
7614
6549
  const ret = String(arg1);
7615
6550
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7616
6551
  const len1 = WASM_VECTOR_LEN;
7617
6552
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7618
6553
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7619
- }, arguments) };
6554
+ };
7620
6555
 
7621
- exports.__wbg_abort_67e1b49bf6614565 = function() { return logError(function (arg0) {
6556
+ exports.__wbg_abort_67e1b49bf6614565 = function(arg0) {
7622
6557
  arg0.abort();
7623
- }, arguments) };
6558
+ };
7624
6559
 
7625
- exports.__wbg_abort_d830bf2e9aa6ec5b = function() { return logError(function (arg0, arg1) {
6560
+ exports.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
7626
6561
  arg0.abort(arg1);
7627
- }, arguments) };
6562
+ };
7628
6563
 
7629
- exports.__wbg_addressresult_new = function() { return logError(function (arg0) {
6564
+ exports.__wbg_addressresult_new = function(arg0) {
7630
6565
  const ret = AddressResult.__wrap(arg0);
7631
6566
  return ret;
7632
- }, arguments) };
6567
+ };
7633
6568
 
7634
- exports.__wbg_amp0_new = function() { return logError(function (arg0) {
6569
+ exports.__wbg_amp0_new = function(arg0) {
7635
6570
  const ret = Amp0.__wrap(arg0);
7636
6571
  return ret;
7637
- }, arguments) };
6572
+ };
7638
6573
 
7639
- exports.__wbg_amp0connected_new = function() { return logError(function (arg0) {
6574
+ exports.__wbg_amp0connected_new = function(arg0) {
7640
6575
  const ret = Amp0Connected.__wrap(arg0);
7641
6576
  return ret;
7642
- }, arguments) };
6577
+ };
7643
6578
 
7644
- exports.__wbg_amp0loggedin_new = function() { return logError(function (arg0) {
6579
+ exports.__wbg_amp0loggedin_new = function(arg0) {
7645
6580
  const ret = Amp0LoggedIn.__wrap(arg0);
7646
6581
  return ret;
7647
- }, arguments) };
6582
+ };
7648
6583
 
7649
6584
  exports.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
7650
6585
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
@@ -7655,32 +6590,30 @@ exports.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(fun
7655
6590
  return ret;
7656
6591
  }, arguments) };
7657
6592
 
7658
- exports.__wbg_assetmeta_new = function() { return logError(function (arg0) {
6593
+ exports.__wbg_assetmeta_new = function(arg0) {
7659
6594
  const ret = AssetMeta.__wrap(arg0);
7660
6595
  return ret;
7661
- }, arguments) };
6596
+ };
7662
6597
 
7663
- exports.__wbg_boltzsession_new = function() { return logError(function (arg0) {
6598
+ exports.__wbg_boltzsession_new = function(arg0) {
7664
6599
  const ret = BoltzSession.__wrap(arg0);
7665
6600
  return ret;
7666
- }, arguments) };
6601
+ };
7667
6602
 
7668
- exports.__wbg_buffer_8d40b1d762fb3c66 = function() { return logError(function (arg0) {
6603
+ exports.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) {
7669
6604
  const ret = arg0.buffer;
7670
6605
  return ret;
7671
- }, arguments) };
6606
+ };
7672
6607
 
7673
- exports.__wbg_byteLength_8ccf68e3ac59ff5e = function() { return logError(function (arg0) {
6608
+ exports.__wbg_byteLength_8ccf68e3ac59ff5e = function(arg0) {
7674
6609
  const ret = arg0.byteLength;
7675
- _assertNum(ret);
7676
6610
  return ret;
7677
- }, arguments) };
6611
+ };
7678
6612
 
7679
- exports.__wbg_byteOffset_673c717c222fef8e = function() { return logError(function (arg0) {
6613
+ exports.__wbg_byteOffset_673c717c222fef8e = function(arg0) {
7680
6614
  const ret = arg0.byteOffset;
7681
- _assertNum(ret);
7682
6615
  return ret;
7683
- }, arguments) };
6616
+ };
7684
6617
 
7685
6618
  exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
7686
6619
  const ret = arg0.call(arg1);
@@ -7697,15 +6630,15 @@ exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (
7697
6630
  return ret;
7698
6631
  }, arguments) };
7699
6632
 
7700
- exports.__wbg_clearTimeout_5a54f8841c30079a = function() { return logError(function (arg0) {
6633
+ exports.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
7701
6634
  const ret = clearTimeout(arg0);
7702
6635
  return ret;
7703
- }, arguments) };
6636
+ };
7704
6637
 
7705
- exports.__wbg_clearTimeout_7a42b49784aea641 = function() { return logError(function (arg0) {
6638
+ exports.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
7706
6639
  const ret = clearTimeout(arg0);
7707
6640
  return ret;
7708
- }, arguments) };
6641
+ };
7709
6642
 
7710
6643
  exports.__wbg_close_6437264570d2d37f = function() { return handleError(function (arg0) {
7711
6644
  arg0.close();
@@ -7715,82 +6648,74 @@ exports.__wbg_close_dadc273a120c03ec = function() { return handleError(function
7715
6648
  arg0.close(arg1, getStringFromWasm0(arg2, arg3));
7716
6649
  }, arguments) };
7717
6650
 
7718
- exports.__wbg_code_177e3bed72688e58 = function() { return logError(function (arg0) {
6651
+ exports.__wbg_code_177e3bed72688e58 = function(arg0) {
7719
6652
  const ret = arg0.code;
7720
- _assertNum(ret);
7721
6653
  return ret;
7722
- }, arguments) };
6654
+ };
7723
6655
 
7724
- exports.__wbg_crypto_574e78ad8b13b65f = function() { return logError(function (arg0) {
6656
+ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
7725
6657
  const ret = arg0.crypto;
7726
6658
  return ret;
7727
- }, arguments) };
6659
+ };
7728
6660
 
7729
- exports.__wbg_data_8cd553c9786c9361 = function() { return logError(function (arg0) {
6661
+ exports.__wbg_data_8cd553c9786c9361 = function(arg0) {
7730
6662
  const ret = arg0.data;
7731
6663
  return ret;
7732
- }, arguments) };
6664
+ };
7733
6665
 
7734
- exports.__wbg_data_9ab529722bcc4e6c = function() { return logError(function (arg0) {
6666
+ exports.__wbg_data_9ab529722bcc4e6c = function(arg0) {
7735
6667
  const ret = arg0.data;
7736
6668
  return ret;
7737
- }, arguments) };
6669
+ };
7738
6670
 
7739
- exports.__wbg_done_75ed0ee6dd243d9d = function() { return logError(function (arg0) {
6671
+ exports.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
7740
6672
  const ret = arg0.done;
7741
- _assertBoolean(ret);
7742
6673
  return ret;
7743
- }, arguments) };
6674
+ };
7744
6675
 
7745
- exports.__wbg_exchangerates_new = function() { return logError(function (arg0) {
6676
+ exports.__wbg_exchangerates_new = function(arg0) {
7746
6677
  const ret = ExchangeRates.__wrap(arg0);
7747
6678
  return ret;
7748
- }, arguments) };
6679
+ };
7749
6680
 
7750
- exports.__wbg_fetch_74a3e84ebd2c9a0e = function() { return logError(function (arg0) {
6681
+ exports.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
7751
6682
  const ret = fetch(arg0);
7752
6683
  return ret;
7753
- }, arguments) };
6684
+ };
7754
6685
 
7755
- exports.__wbg_fetch_87aed7f306ec6d63 = function() { return logError(function (arg0, arg1) {
6686
+ exports.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
7756
6687
  const ret = arg0.fetch(arg1);
7757
6688
  return ret;
7758
- }, arguments) };
7759
-
7760
- exports.__wbg_from_88bc52ce20ba6318 = function() { return logError(function (arg0) {
7761
- const ret = Array.from(arg0);
7762
- return ret;
7763
- }, arguments) };
6689
+ };
7764
6690
 
7765
- exports.__wbg_getDevices_abebcc7be30632a7 = function() { return logError(function (arg0) {
6691
+ exports.__wbg_getDevices_abebcc7be30632a7 = function(arg0) {
7766
6692
  const ret = arg0.getDevices();
7767
6693
  return ret;
7768
- }, arguments) };
6694
+ };
7769
6695
 
7770
- exports.__wbg_getPorts_3a0fce782d01e063 = function() { return logError(function (arg0) {
6696
+ exports.__wbg_getPorts_3a0fce782d01e063 = function(arg0) {
7771
6697
  const ret = arg0.getPorts();
7772
6698
  return ret;
7773
- }, arguments) };
6699
+ };
7774
6700
 
7775
6701
  exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
7776
6702
  arg0.getRandomValues(arg1);
7777
6703
  }, arguments) };
7778
6704
 
7779
- exports.__wbg_getUint8_083c6ed87b45a86a = function() { return logError(function (arg0, arg1) {
6705
+ exports.__wbg_getUint8_083c6ed87b45a86a = function(arg0, arg1) {
7780
6706
  const ret = arg0.getUint8(arg1 >>> 0);
7781
- _assertNum(ret);
7782
6707
  return ret;
7783
- }, arguments) };
6708
+ };
7784
6709
 
7785
6710
  exports.__wbg_getWriter_03d7689e275ac6a4 = function() { return handleError(function (arg0) {
7786
6711
  const ret = arg0.getWriter();
7787
6712
  return ret;
7788
6713
  }, arguments) };
7789
6714
 
7790
- exports.__wbg_get_0da715ceaecea5c8 = function() { return logError(function (arg0, arg1) {
6715
+ exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
7791
6716
  const ret = arg0[arg1 >>> 0];
7792
6717
  return ret;
7793
- }, arguments) };
6718
+ };
7794
6719
 
7795
6720
  exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
7796
6721
  const ret = Reflect.get(arg0, arg1);
@@ -7799,21 +6724,20 @@ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (a
7799
6724
 
7800
6725
  exports.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
7801
6726
  const ret = Reflect.has(arg0, arg1);
7802
- _assertBoolean(ret);
7803
6727
  return ret;
7804
6728
  }, arguments) };
7805
6729
 
7806
- exports.__wbg_headers_29fec3c72865cd75 = function() { return logError(function (arg0) {
6730
+ exports.__wbg_headers_29fec3c72865cd75 = function(arg0) {
7807
6731
  const ret = arg0.headers;
7808
6732
  return ret;
7809
- }, arguments) };
6733
+ };
7810
6734
 
7811
- exports.__wbg_hid_fc50a7126d53c63c = function() { return logError(function (arg0) {
6735
+ exports.__wbg_hid_fc50a7126d53c63c = function(arg0) {
7812
6736
  const ret = arg0.hid;
7813
6737
  return ret;
7814
- }, arguments) };
6738
+ };
7815
6739
 
7816
- exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function() { return logError(function (arg0) {
6740
+ exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
7817
6741
  let result;
7818
6742
  try {
7819
6743
  result = arg0 instanceof ArrayBuffer;
@@ -7821,11 +6745,10 @@ exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function() { return logE
7821
6745
  result = false;
7822
6746
  }
7823
6747
  const ret = result;
7824
- _assertBoolean(ret);
7825
6748
  return ret;
7826
- }, arguments) };
6749
+ };
7827
6750
 
7828
- exports.__wbg_instanceof_Blob_3db67efd3f1b960f = function() { return logError(function (arg0) {
6751
+ exports.__wbg_instanceof_Blob_3db67efd3f1b960f = function(arg0) {
7829
6752
  let result;
7830
6753
  try {
7831
6754
  result = arg0 instanceof Blob;
@@ -7833,11 +6756,10 @@ exports.__wbg_instanceof_Blob_3db67efd3f1b960f = function() { return logError(fu
7833
6756
  result = false;
7834
6757
  }
7835
6758
  const ret = result;
7836
- _assertBoolean(ret);
7837
6759
  return ret;
7838
- }, arguments) };
6760
+ };
7839
6761
 
7840
- exports.__wbg_instanceof_HidDevice_ab5b9b1c208f5539 = function() { return logError(function (arg0) {
6762
+ exports.__wbg_instanceof_HidDevice_ab5b9b1c208f5539 = function(arg0) {
7841
6763
  let result;
7842
6764
  try {
7843
6765
  result = arg0 instanceof HIDDevice;
@@ -7845,11 +6767,10 @@ exports.__wbg_instanceof_HidDevice_ab5b9b1c208f5539 = function() { return logErr
7845
6767
  result = false;
7846
6768
  }
7847
6769
  const ret = result;
7848
- _assertBoolean(ret);
7849
6770
  return ret;
7850
- }, arguments) };
6771
+ };
7851
6772
 
7852
- exports.__wbg_instanceof_Response_50fde2cd696850bf = function() { return logError(function (arg0) {
6773
+ exports.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
7853
6774
  let result;
7854
6775
  try {
7855
6776
  result = arg0 instanceof Response;
@@ -7857,11 +6778,10 @@ exports.__wbg_instanceof_Response_50fde2cd696850bf = function() { return logErro
7857
6778
  result = false;
7858
6779
  }
7859
6780
  const ret = result;
7860
- _assertBoolean(ret);
7861
6781
  return ret;
7862
- }, arguments) };
6782
+ };
7863
6783
 
7864
- exports.__wbg_instanceof_SerialPort_5f6213e35dce8b2a = function() { return logError(function (arg0) {
6784
+ exports.__wbg_instanceof_SerialPort_5f6213e35dce8b2a = function(arg0) {
7865
6785
  let result;
7866
6786
  try {
7867
6787
  result = arg0 instanceof SerialPort;
@@ -7869,11 +6789,10 @@ exports.__wbg_instanceof_SerialPort_5f6213e35dce8b2a = function() { return logEr
7869
6789
  result = false;
7870
6790
  }
7871
6791
  const ret = result;
7872
- _assertBoolean(ret);
7873
6792
  return ret;
7874
- }, arguments) };
6793
+ };
7875
6794
 
7876
- exports.__wbg_instanceof_Window_12d20d558ef92592 = function() { return logError(function (arg0) {
6795
+ exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
7877
6796
  let result;
7878
6797
  try {
7879
6798
  result = arg0 instanceof Window;
@@ -7881,95 +6800,91 @@ exports.__wbg_instanceof_Window_12d20d558ef92592 = function() { return logError(
7881
6800
  result = false;
7882
6801
  }
7883
6802
  const ret = result;
7884
- _assertBoolean(ret);
7885
6803
  return ret;
7886
- }, arguments) };
6804
+ };
7887
6805
 
7888
- exports.__wbg_invoiceresponse_new = function() { return logError(function (arg0) {
6806
+ exports.__wbg_invoiceresponse_new = function(arg0) {
7889
6807
  const ret = InvoiceResponse.__wrap(arg0);
7890
6808
  return ret;
7891
- }, arguments) };
6809
+ };
7892
6810
 
7893
- exports.__wbg_isArray_030cce220591fb41 = function() { return logError(function (arg0) {
6811
+ exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
7894
6812
  const ret = Array.isArray(arg0);
7895
- _assertBoolean(ret);
7896
6813
  return ret;
7897
- }, arguments) };
6814
+ };
7898
6815
 
7899
- exports.__wbg_issuance_new = function() { return logError(function (arg0) {
6816
+ exports.__wbg_issuance_new = function(arg0) {
7900
6817
  const ret = Issuance.__wrap(arg0);
7901
6818
  return ret;
7902
- }, arguments) };
6819
+ };
7903
6820
 
7904
- exports.__wbg_iterator_f370b34483c71a1c = function() { return logError(function () {
6821
+ exports.__wbg_iterator_f370b34483c71a1c = function() {
7905
6822
  const ret = Symbol.iterator;
7906
6823
  return ret;
7907
- }, arguments) };
6824
+ };
7908
6825
 
7909
- exports.__wbg_jade_new = function() { return logError(function (arg0) {
6826
+ exports.__wbg_jade_new = function(arg0) {
7910
6827
  const ret = Jade.__wrap(arg0);
7911
6828
  return ret;
7912
- }, arguments) };
6829
+ };
7913
6830
 
7914
- exports.__wbg_jadewebsocket_new = function() { return logError(function (arg0) {
6831
+ exports.__wbg_jadewebsocket_new = function(arg0) {
7915
6832
  const ret = JadeWebSocket.__wrap(arg0);
7916
6833
  return ret;
7917
- }, arguments) };
6834
+ };
7918
6835
 
7919
- exports.__wbg_lastusedindexresponse_new = function() { return logError(function (arg0) {
6836
+ exports.__wbg_lastusedindexresponse_new = function(arg0) {
7920
6837
  const ret = LastUsedIndexResponse.__wrap(arg0);
7921
6838
  return ret;
7922
- }, arguments) };
6839
+ };
7923
6840
 
7924
- exports.__wbg_length_186546c51cd61acd = function() { return logError(function (arg0) {
6841
+ exports.__wbg_length_186546c51cd61acd = function(arg0) {
7925
6842
  const ret = arg0.length;
7926
- _assertNum(ret);
7927
6843
  return ret;
7928
- }, arguments) };
6844
+ };
7929
6845
 
7930
- exports.__wbg_length_6bb7e81f9d7713e4 = function() { return logError(function (arg0) {
6846
+ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
7931
6847
  const ret = arg0.length;
7932
- _assertNum(ret);
7933
6848
  return ret;
7934
- }, arguments) };
6849
+ };
7935
6850
 
7936
- exports.__wbg_log_f3e6493e9347cf91 = function() { return logError(function (arg0, arg1) {
6851
+ exports.__wbg_log_d1e4a0ea206b998f = function(arg0, arg1) {
7937
6852
  console.log(getStringFromWasm0(arg0, arg1));
7938
- }, arguments) };
6853
+ };
7939
6854
 
7940
- exports.__wbg_magicroutinghint_new = function() { return logError(function (arg0) {
6855
+ exports.__wbg_magicroutinghint_new = function(arg0) {
7941
6856
  const ret = MagicRoutingHint.__wrap(arg0);
7942
6857
  return ret;
7943
- }, arguments) };
6858
+ };
7944
6859
 
7945
- exports.__wbg_msCrypto_a61aeb35a24c1329 = function() { return logError(function (arg0) {
6860
+ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
7946
6861
  const ret = arg0.msCrypto;
7947
6862
  return ret;
7948
- }, arguments) };
6863
+ };
7949
6864
 
7950
- exports.__wbg_navigator_65d5ad763926b868 = function() { return logError(function (arg0) {
6865
+ exports.__wbg_navigator_65d5ad763926b868 = function(arg0) {
7951
6866
  const ret = arg0.navigator;
7952
6867
  return ret;
7953
- }, arguments) };
6868
+ };
7954
6869
 
7955
- exports.__wbg_new_19c25a3f2fa63a02 = function() { return logError(function () {
6870
+ exports.__wbg_new_19c25a3f2fa63a02 = function() {
7956
6871
  const ret = new Object();
7957
6872
  return ret;
7958
- }, arguments) };
6873
+ };
7959
6874
 
7960
- exports.__wbg_new_1f3a344cf3123716 = function() { return logError(function () {
6875
+ exports.__wbg_new_1f3a344cf3123716 = function() {
7961
6876
  const ret = new Array();
7962
6877
  return ret;
7963
- }, arguments) };
6878
+ };
7964
6879
 
7965
- exports.__wbg_new_2e3c58a15f39f5f9 = function() { return logError(function (arg0, arg1) {
6880
+ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
7966
6881
  try {
7967
6882
  var state0 = {a: arg0, b: arg1};
7968
6883
  var cb0 = (arg0, arg1) => {
7969
6884
  const a = state0.a;
7970
6885
  state0.a = 0;
7971
6886
  try {
7972
- return __wbg_adapter_652(a, state0.b, arg0, arg1);
6887
+ return __wbg_adapter_647(a, state0.b, arg0, arg1);
7973
6888
  } finally {
7974
6889
  state0.a = a;
7975
6890
  }
@@ -7979,17 +6894,17 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function() { return logError(function (arg0
7979
6894
  } finally {
7980
6895
  state0.a = state0.b = 0;
7981
6896
  }
7982
- }, arguments) };
6897
+ };
7983
6898
 
7984
- exports.__wbg_new_2ff1f68f3676ea53 = function() { return logError(function () {
6899
+ exports.__wbg_new_2ff1f68f3676ea53 = function() {
7985
6900
  const ret = new Map();
7986
6901
  return ret;
7987
- }, arguments) };
6902
+ };
7988
6903
 
7989
- exports.__wbg_new_638ebfaedbf32a5e = function() { return logError(function (arg0) {
6904
+ exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
7990
6905
  const ret = new Uint8Array(arg0);
7991
6906
  return ret;
7992
- }, arguments) };
6907
+ };
7993
6908
 
7994
6909
  exports.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
7995
6910
  const ret = new AbortController();
@@ -8001,10 +6916,10 @@ exports.__wbg_new_9033836f0fffb971 = function() { return handleError(function (a
8001
6916
  return ret;
8002
6917
  }, arguments) };
8003
6918
 
8004
- exports.__wbg_new_da9dc54c5db29dfa = function() { return logError(function (arg0, arg1) {
6919
+ exports.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) {
8005
6920
  const ret = new Error(getStringFromWasm0(arg0, arg1));
8006
6921
  return ret;
8007
- }, arguments) };
6922
+ };
8008
6923
 
8009
6924
  exports.__wbg_new_e213f63d18b0de01 = function() { return handleError(function (arg0, arg1) {
8010
6925
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
@@ -8016,20 +6931,20 @@ exports.__wbg_new_f6e53210afea8e45 = function() { return handleError(function ()
8016
6931
  return ret;
8017
6932
  }, arguments) };
8018
6933
 
8019
- exports.__wbg_newfromslice_074c56947bd43469 = function() { return logError(function (arg0, arg1) {
6934
+ exports.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
8020
6935
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
8021
6936
  return ret;
8022
- }, arguments) };
6937
+ };
8023
6938
 
8024
- exports.__wbg_newnoargs_254190557c45b4ec = function() { return logError(function (arg0, arg1) {
6939
+ exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
8025
6940
  const ret = new Function(getStringFromWasm0(arg0, arg1));
8026
6941
  return ret;
8027
- }, arguments) };
6942
+ };
8028
6943
 
8029
- exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function() { return logError(function (arg0) {
6944
+ exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
8030
6945
  const ret = new Uint8Array(arg0 >>> 0);
8031
6946
  return ret;
8032
- }, arguments) };
6947
+ };
8033
6948
 
8034
6949
  exports.__wbg_newwithstr_4fbb4e3ba652aee4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
8035
6950
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
@@ -8046,174 +6961,170 @@ exports.__wbg_newwithstrsequence_f7e2d4848dd49d98 = function() { return handleEr
8046
6961
  return ret;
8047
6962
  }, arguments) };
8048
6963
 
8049
- exports.__wbg_next_5b3530e612fde77d = function() { return logError(function (arg0) {
6964
+ exports.__wbg_next_5b3530e612fde77d = function(arg0) {
8050
6965
  const ret = arg0.next;
8051
6966
  return ret;
8052
- }, arguments) };
6967
+ };
8053
6968
 
8054
6969
  exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
8055
6970
  const ret = arg0.next();
8056
6971
  return ret;
8057
6972
  }, arguments) };
8058
6973
 
8059
- exports.__wbg_node_905d3e251edff8a2 = function() { return logError(function (arg0) {
6974
+ exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
8060
6975
  const ret = arg0.node;
8061
6976
  return ret;
8062
- }, arguments) };
6977
+ };
8063
6978
 
8064
- exports.__wbg_now_1e80617bcee43265 = function() { return logError(function () {
6979
+ exports.__wbg_now_1e80617bcee43265 = function() {
8065
6980
  const ret = Date.now();
8066
6981
  return ret;
8067
- }, arguments) };
6982
+ };
8068
6983
 
8069
- exports.__wbg_now_886b39d7ec380719 = function() { return logError(function (arg0) {
6984
+ exports.__wbg_now_886b39d7ec380719 = function(arg0) {
8070
6985
  const ret = arg0.now();
8071
6986
  return ret;
8072
- }, arguments) };
6987
+ };
8073
6988
 
8074
- exports.__wbg_open_28c0958dd0e03186 = function() { return logError(function (arg0) {
6989
+ exports.__wbg_open_28c0958dd0e03186 = function(arg0) {
8075
6990
  const ret = arg0.open();
8076
6991
  return ret;
8077
- }, arguments) };
6992
+ };
8078
6993
 
8079
- exports.__wbg_open_65ec985b581cbed8 = function() { return logError(function (arg0, arg1) {
6994
+ exports.__wbg_open_65ec985b581cbed8 = function(arg0, arg1) {
8080
6995
  const ret = arg0.open(arg1);
8081
6996
  return ret;
8082
- }, arguments) };
6997
+ };
8083
6998
 
8084
- exports.__wbg_opened_fc99ed1e3c1035f0 = function() { return logError(function (arg0) {
6999
+ exports.__wbg_opened_fc99ed1e3c1035f0 = function(arg0) {
8085
7000
  const ret = arg0.opened;
8086
- _assertBoolean(ret);
8087
7001
  return ret;
8088
- }, arguments) };
7002
+ };
8089
7003
 
8090
- exports.__wbg_optionwallettxout_new = function() { return logError(function (arg0) {
7004
+ exports.__wbg_optionwallettxout_new = function(arg0) {
8091
7005
  const ret = OptionWalletTxOut.__wrap(arg0);
8092
7006
  return ret;
8093
- }, arguments) };
7007
+ };
8094
7008
 
8095
- exports.__wbg_outpoint_unwrap = function() { return logError(function (arg0) {
7009
+ exports.__wbg_outpoint_unwrap = function(arg0) {
8096
7010
  const ret = OutPoint.__unwrap(arg0);
8097
- _assertNum(ret);
8098
7011
  return ret;
8099
- }, arguments) };
7012
+ };
8100
7013
 
8101
- exports.__wbg_performance_a221af8decc752fb = function() { return logError(function (arg0) {
7014
+ exports.__wbg_performance_a221af8decc752fb = function(arg0) {
8102
7015
  const ret = arg0.performance;
8103
7016
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
8104
- }, arguments) };
7017
+ };
8105
7018
 
8106
- exports.__wbg_preparepayresponse_new = function() { return logError(function (arg0) {
7019
+ exports.__wbg_preparepayresponse_new = function(arg0) {
8107
7020
  const ret = PreparePayResponse.__wrap(arg0);
8108
7021
  return ret;
8109
- }, arguments) };
7022
+ };
8110
7023
 
8111
- exports.__wbg_process_dc0fbacc7c1c06f7 = function() { return logError(function (arg0) {
7024
+ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
8112
7025
  const ret = arg0.process;
8113
7026
  return ret;
8114
- }, arguments) };
7027
+ };
8115
7028
 
8116
- exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function() { return logError(function (arg0, arg1, arg2) {
7029
+ exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
8117
7030
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
8118
- }, arguments) };
7031
+ };
8119
7032
 
8120
- exports.__wbg_pset_new = function() { return logError(function (arg0) {
7033
+ exports.__wbg_pset_new = function(arg0) {
8121
7034
  const ret = Pset.__wrap(arg0);
8122
7035
  return ret;
8123
- }, arguments) };
7036
+ };
8124
7037
 
8125
- exports.__wbg_psetinput_new = function() { return logError(function (arg0) {
7038
+ exports.__wbg_psetinput_new = function(arg0) {
8126
7039
  const ret = PsetInput.__wrap(arg0);
8127
7040
  return ret;
8128
- }, arguments) };
7041
+ };
8129
7042
 
8130
- exports.__wbg_psetoutput_new = function() { return logError(function (arg0) {
7043
+ exports.__wbg_psetoutput_new = function(arg0) {
8131
7044
  const ret = PsetOutput.__wrap(arg0);
8132
7045
  return ret;
8133
- }, arguments) };
7046
+ };
8134
7047
 
8135
- exports.__wbg_psetsignatures_new = function() { return logError(function (arg0) {
7048
+ exports.__wbg_psetsignatures_new = function(arg0) {
8136
7049
  const ret = PsetSignatures.__wrap(arg0);
8137
7050
  return ret;
8138
- }, arguments) };
7051
+ };
8139
7052
 
8140
- exports.__wbg_push_330b2eb93e4e1212 = function() { return logError(function (arg0, arg1) {
7053
+ exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
8141
7054
  const ret = arg0.push(arg1);
8142
- _assertNum(ret);
8143
7055
  return ret;
8144
- }, arguments) };
7056
+ };
8145
7057
 
8146
- exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function() { return logError(function (arg0) {
7058
+ exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
8147
7059
  queueMicrotask(arg0);
8148
- }, arguments) };
7060
+ };
8149
7061
 
8150
- exports.__wbg_queueMicrotask_4488407636f5bf24 = function() { return logError(function (arg0) {
7062
+ exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
8151
7063
  const ret = arg0.queueMicrotask;
8152
7064
  return ret;
8153
- }, arguments) };
7065
+ };
8154
7066
 
8155
7067
  exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
8156
7068
  arg0.randomFillSync(arg1);
8157
7069
  }, arguments) };
8158
7070
 
8159
- exports.__wbg_read_bc925c758aa4d897 = function() { return logError(function (arg0) {
7071
+ exports.__wbg_read_bc925c758aa4d897 = function(arg0) {
8160
7072
  const ret = arg0.read();
8161
7073
  return ret;
8162
- }, arguments) };
7074
+ };
8163
7075
 
8164
- exports.__wbg_readable_d8d52c48b16a493f = function() { return logError(function (arg0) {
7076
+ exports.__wbg_readable_d8d52c48b16a493f = function(arg0) {
8165
7077
  const ret = arg0.readable;
8166
7078
  return ret;
8167
- }, arguments) };
7079
+ };
8168
7080
 
8169
- exports.__wbg_readyState_b0d20ca4531d3797 = function() { return logError(function (arg0) {
7081
+ exports.__wbg_readyState_b0d20ca4531d3797 = function(arg0) {
8170
7082
  const ret = arg0.readyState;
8171
- _assertNum(ret);
8172
7083
  return ret;
8173
- }, arguments) };
7084
+ };
8174
7085
 
8175
- exports.__wbg_reason_97efd955be6394bd = function() { return logError(function (arg0, arg1) {
7086
+ exports.__wbg_reason_97efd955be6394bd = function(arg0, arg1) {
8176
7087
  const ret = arg1.reason;
8177
7088
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8178
7089
  const len1 = WASM_VECTOR_LEN;
8179
7090
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
8180
7091
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
8181
- }, arguments) };
7092
+ };
8182
7093
 
8183
- exports.__wbg_recipient_new = function() { return logError(function (arg0) {
7094
+ exports.__wbg_recipient_new = function(arg0) {
8184
7095
  const ret = Recipient.__wrap(arg0);
8185
7096
  return ret;
8186
- }, arguments) };
7097
+ };
8187
7098
 
8188
- exports.__wbg_registry_new = function() { return logError(function (arg0) {
7099
+ exports.__wbg_registry_new = function(arg0) {
8189
7100
  const ret = Registry.__wrap(arg0);
8190
7101
  return ret;
8191
- }, arguments) };
7102
+ };
8192
7103
 
8193
- exports.__wbg_requestDevice_225891d9a80a7b19 = function() { return logError(function (arg0, arg1) {
7104
+ exports.__wbg_requestDevice_225891d9a80a7b19 = function(arg0, arg1) {
8194
7105
  const ret = arg0.requestDevice(arg1);
8195
7106
  return ret;
8196
- }, arguments) };
7107
+ };
8197
7108
 
8198
- exports.__wbg_requestPort_07a56c2addedc9d1 = function() { return logError(function (arg0) {
7109
+ exports.__wbg_requestPort_07a56c2addedc9d1 = function(arg0) {
8199
7110
  const ret = arg0.requestPort();
8200
7111
  return ret;
8201
- }, arguments) };
7112
+ };
8202
7113
 
8203
- exports.__wbg_requestPort_379ba5dd17575815 = function() { return logError(function (arg0, arg1) {
7114
+ exports.__wbg_requestPort_379ba5dd17575815 = function(arg0, arg1) {
8204
7115
  const ret = arg0.requestPort(arg1);
8205
7116
  return ret;
8206
- }, arguments) };
7117
+ };
8207
7118
 
8208
7119
  exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
8209
7120
  const ret = module.require;
8210
7121
  return ret;
8211
7122
  }, arguments) };
8212
7123
 
8213
- exports.__wbg_resolve_4055c623acdd6a1b = function() { return logError(function (arg0) {
7124
+ exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
8214
7125
  const ret = Promise.resolve(arg0);
8215
7126
  return ret;
8216
- }, arguments) };
7127
+ };
8217
7128
 
8218
7129
  exports.__wbg_sendReport_c8d0c7c3c3abf30a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
8219
7130
  const ret = arg0.sendReport(arg1, getArrayU8FromWasm0(arg2, arg3));
@@ -8232,222 +7143,218 @@ exports.__wbg_send_bdda9fac7465e036 = function() { return handleError(function (
8232
7143
  arg0.send(getStringFromWasm0(arg1, arg2));
8233
7144
  }, arguments) };
8234
7145
 
8235
- exports.__wbg_serial_a0dde47bbd77e1b3 = function() { return logError(function (arg0) {
7146
+ exports.__wbg_serial_a0dde47bbd77e1b3 = function(arg0) {
8236
7147
  const ret = arg0.serial;
8237
7148
  return ret;
8238
- }, arguments) };
7149
+ };
8239
7150
 
8240
7151
  exports.__wbg_setTimeout_2966518f28aef92e = function() { return handleError(function (arg0, arg1, arg2) {
8241
7152
  const ret = arg0.setTimeout(arg1, arg2);
8242
- _assertNum(ret);
8243
7153
  return ret;
8244
7154
  }, arguments) };
8245
7155
 
8246
- exports.__wbg_setTimeout_7bb3429662ab1e70 = function() { return logError(function (arg0, arg1) {
7156
+ exports.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
8247
7157
  const ret = setTimeout(arg0, arg1);
8248
7158
  return ret;
8249
- }, arguments) };
7159
+ };
8250
7160
 
8251
7161
  exports.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
8252
7162
  const ret = setTimeout(arg0, arg1);
8253
7163
  return ret;
8254
7164
  }, arguments) };
8255
7165
 
8256
- exports.__wbg_set_1353b2a5e96bc48c = function() { return logError(function (arg0, arg1, arg2) {
7166
+ exports.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) {
8257
7167
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
8258
- }, arguments) };
7168
+ };
8259
7169
 
8260
- exports.__wbg_set_3f1d0b984ed272ed = function() { return logError(function (arg0, arg1, arg2) {
7170
+ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
8261
7171
  arg0[arg1] = arg2;
8262
- }, arguments) };
7172
+ };
8263
7173
 
8264
7174
  exports.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
8265
7175
  const ret = Reflect.set(arg0, arg1, arg2);
8266
- _assertBoolean(ret);
8267
7176
  return ret;
8268
7177
  }, arguments) };
8269
7178
 
8270
- exports.__wbg_set_90f6c0f7bd8c0415 = function() { return logError(function (arg0, arg1, arg2) {
7179
+ exports.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
8271
7180
  arg0[arg1 >>> 0] = arg2;
8272
- }, arguments) };
7181
+ };
8273
7182
 
8274
- exports.__wbg_set_b7f1cf4fae26fe2a = function() { return logError(function (arg0, arg1, arg2) {
7183
+ exports.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
8275
7184
  const ret = arg0.set(arg1, arg2);
8276
7185
  return ret;
8277
- }, arguments) };
7186
+ };
8278
7187
 
8279
- exports.__wbg_setbaudrate_88a136cc0a6d4b97 = function() { return logError(function (arg0, arg1) {
7188
+ exports.__wbg_setbaudrate_88a136cc0a6d4b97 = function(arg0, arg1) {
8280
7189
  arg0.baudRate = arg1 >>> 0;
8281
- }, arguments) };
7190
+ };
8282
7191
 
8283
- exports.__wbg_setbinaryType_37f3cd35d7775a47 = function() { return logError(function (arg0, arg1) {
7192
+ exports.__wbg_setbinaryType_37f3cd35d7775a47 = function(arg0, arg1) {
8284
7193
  arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
8285
- }, arguments) };
7194
+ };
8286
7195
 
8287
- exports.__wbg_setbody_c8460bdf44147df8 = function() { return logError(function (arg0, arg1) {
7196
+ exports.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
8288
7197
  arg0.body = arg1;
8289
- }, arguments) };
7198
+ };
8290
7199
 
8291
- exports.__wbg_setcache_90ca4ad8a8ad40d3 = function() { return logError(function (arg0, arg1) {
7200
+ exports.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
8292
7201
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
8293
- }, arguments) };
7202
+ };
8294
7203
 
8295
- exports.__wbg_setcredentials_9cd60d632c9d5dfc = function() { return logError(function (arg0, arg1) {
7204
+ exports.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
8296
7205
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
8297
- }, arguments) };
7206
+ };
8298
7207
 
8299
- exports.__wbg_setfilters_58b1e783022cd737 = function() { return logError(function (arg0, arg1) {
7208
+ exports.__wbg_setfilters_58b1e783022cd737 = function(arg0, arg1) {
8300
7209
  arg0.filters = arg1;
8301
- }, arguments) };
7210
+ };
8302
7211
 
8303
- exports.__wbg_setfilters_a0bf46d04ea0dd78 = function() { return logError(function (arg0, arg1) {
7212
+ exports.__wbg_setfilters_a0bf46d04ea0dd78 = function(arg0, arg1) {
8304
7213
  arg0.filters = arg1;
8305
- }, arguments) };
7214
+ };
8306
7215
 
8307
- exports.__wbg_setheaders_0052283e2f3503d1 = function() { return logError(function (arg0, arg1) {
7216
+ exports.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
8308
7217
  arg0.headers = arg1;
8309
- }, arguments) };
7218
+ };
8310
7219
 
8311
- exports.__wbg_setmethod_9b504d5b855b329c = function() { return logError(function (arg0, arg1, arg2) {
7220
+ exports.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
8312
7221
  arg0.method = getStringFromWasm0(arg1, arg2);
8313
- }, arguments) };
7222
+ };
8314
7223
 
8315
- exports.__wbg_setmode_a23e1a2ad8b512f8 = function() { return logError(function (arg0, arg1) {
7224
+ exports.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
8316
7225
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
8317
- }, arguments) };
7226
+ };
8318
7227
 
8319
- exports.__wbg_setname_832b43d4602cb930 = function() { return logError(function (arg0, arg1, arg2) {
7228
+ exports.__wbg_setname_832b43d4602cb930 = function(arg0, arg1, arg2) {
8320
7229
  arg0.name = getStringFromWasm0(arg1, arg2);
8321
- }, arguments) };
7230
+ };
8322
7231
 
8323
- exports.__wbg_setonclose_159c0332c2d91b09 = function() { return logError(function (arg0, arg1) {
7232
+ exports.__wbg_setonclose_159c0332c2d91b09 = function(arg0, arg1) {
8324
7233
  arg0.onclose = arg1;
8325
- }, arguments) };
7234
+ };
8326
7235
 
8327
- exports.__wbg_setonerror_5d9bff045f909e89 = function() { return logError(function (arg0, arg1) {
7236
+ exports.__wbg_setonerror_5d9bff045f909e89 = function(arg0, arg1) {
8328
7237
  arg0.onerror = arg1;
8329
- }, arguments) };
7238
+ };
8330
7239
 
8331
- exports.__wbg_setoninputreport_5d827d5c7285b78f = function() { return logError(function (arg0, arg1) {
7240
+ exports.__wbg_setoninputreport_5d827d5c7285b78f = function(arg0, arg1) {
8332
7241
  arg0.oninputreport = arg1;
8333
- }, arguments) };
7242
+ };
8334
7243
 
8335
- exports.__wbg_setonmessage_5e486f326638a9da = function() { return logError(function (arg0, arg1) {
7244
+ exports.__wbg_setonmessage_5e486f326638a9da = function(arg0, arg1) {
8336
7245
  arg0.onmessage = arg1;
8337
- }, arguments) };
7246
+ };
8338
7247
 
8339
- exports.__wbg_setonopen_3e43af381c2901f8 = function() { return logError(function (arg0, arg1) {
7248
+ exports.__wbg_setonopen_3e43af381c2901f8 = function(arg0, arg1) {
8340
7249
  arg0.onopen = arg1;
8341
- }, arguments) };
7250
+ };
8342
7251
 
8343
- exports.__wbg_setsignal_8c45ad1247a74809 = function() { return logError(function (arg0, arg1) {
7252
+ exports.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
8344
7253
  arg0.signal = arg1;
8345
- }, arguments) };
7254
+ };
8346
7255
 
8347
- exports.__wbg_signal_da4d466ce86118b5 = function() { return logError(function (arg0) {
7256
+ exports.__wbg_signal_da4d466ce86118b5 = function(arg0) {
8348
7257
  const ret = arg0.signal;
8349
7258
  return ret;
8350
- }, arguments) };
7259
+ };
8351
7260
 
8352
- exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() { return logError(function () {
7261
+ exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
8353
7262
  const ret = typeof global === 'undefined' ? null : global;
8354
7263
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
8355
- }, arguments) };
7264
+ };
8356
7265
 
8357
- exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() { return logError(function () {
7266
+ exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
8358
7267
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
8359
7268
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
8360
- }, arguments) };
7269
+ };
8361
7270
 
8362
- exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() { return logError(function () {
7271
+ exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
8363
7272
  const ret = typeof self === 'undefined' ? null : self;
8364
7273
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
8365
- }, arguments) };
7274
+ };
8366
7275
 
8367
- exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() { return logError(function () {
7276
+ exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
8368
7277
  const ret = typeof window === 'undefined' ? null : window;
8369
7278
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
8370
- }, arguments) };
7279
+ };
8371
7280
 
8372
- exports.__wbg_status_3fea3036088621d6 = function() { return logError(function (arg0) {
7281
+ exports.__wbg_status_3fea3036088621d6 = function(arg0) {
8373
7282
  const ret = arg0.status;
8374
- _assertNum(ret);
8375
7283
  return ret;
8376
- }, arguments) };
7284
+ };
8377
7285
 
8378
7286
  exports.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
8379
7287
  const ret = JSON.stringify(arg0);
8380
7288
  return ret;
8381
7289
  }, arguments) };
8382
7290
 
8383
- exports.__wbg_subarray_70fd07feefe14294 = function() { return logError(function (arg0, arg1, arg2) {
7291
+ exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
8384
7292
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
8385
7293
  return ret;
8386
- }, arguments) };
7294
+ };
8387
7295
 
8388
7296
  exports.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
8389
7297
  const ret = arg0.text();
8390
7298
  return ret;
8391
7299
  }, arguments) };
8392
7300
 
8393
- exports.__wbg_then_b33a773d723afa3e = function() { return logError(function (arg0, arg1, arg2) {
7301
+ exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
8394
7302
  const ret = arg0.then(arg1, arg2);
8395
7303
  return ret;
8396
- }, arguments) };
7304
+ };
8397
7305
 
8398
- exports.__wbg_then_e22500defe16819f = function() { return logError(function (arg0, arg1) {
7306
+ exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
8399
7307
  const ret = arg0.then(arg1);
8400
7308
  return ret;
8401
- }, arguments) };
7309
+ };
8402
7310
 
8403
- exports.__wbg_transaction_new = function() { return logError(function (arg0) {
7311
+ exports.__wbg_transaction_new = function(arg0) {
8404
7312
  const ret = Transaction.__wrap(arg0);
8405
7313
  return ret;
8406
- }, arguments) };
7314
+ };
8407
7315
 
8408
- exports.__wbg_txid_new = function() { return logError(function (arg0) {
7316
+ exports.__wbg_txid_new = function(arg0) {
8409
7317
  const ret = Txid.__wrap(arg0);
8410
7318
  return ret;
8411
- }, arguments) };
7319
+ };
8412
7320
 
8413
- exports.__wbg_update_new = function() { return logError(function (arg0) {
7321
+ exports.__wbg_update_new = function(arg0) {
8414
7322
  const ret = Update.__wrap(arg0);
8415
7323
  return ret;
8416
- }, arguments) };
7324
+ };
8417
7325
 
8418
- exports.__wbg_url_e5720dfacf77b05e = function() { return logError(function (arg0, arg1) {
7326
+ exports.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
8419
7327
  const ret = arg1.url;
8420
7328
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8421
7329
  const len1 = WASM_VECTOR_LEN;
8422
7330
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
8423
7331
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
8424
- }, arguments) };
7332
+ };
8425
7333
 
8426
- exports.__wbg_validatedliquidexproposal_unwrap = function() { return logError(function (arg0) {
7334
+ exports.__wbg_validatedliquidexproposal_unwrap = function(arg0) {
8427
7335
  const ret = ValidatedLiquidexProposal.__unwrap(arg0);
8428
- _assertNum(ret);
8429
7336
  return ret;
8430
- }, arguments) };
7337
+ };
8431
7338
 
8432
- exports.__wbg_value_dd9372230531eade = function() { return logError(function (arg0) {
7339
+ exports.__wbg_value_dd9372230531eade = function(arg0) {
8433
7340
  const ret = arg0.value;
8434
7341
  return ret;
8435
- }, arguments) };
7342
+ };
8436
7343
 
8437
- exports.__wbg_versions_c01dfd4722a88165 = function() { return logError(function (arg0) {
7344
+ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
8438
7345
  const ret = arg0.versions;
8439
7346
  return ret;
8440
- }, arguments) };
7347
+ };
8441
7348
 
8442
- exports.__wbg_wallettx_new = function() { return logError(function (arg0) {
7349
+ exports.__wbg_wallettx_new = function(arg0) {
8443
7350
  const ret = WalletTx.__wrap(arg0);
8444
7351
  return ret;
8445
- }, arguments) };
7352
+ };
8446
7353
 
8447
- exports.__wbg_wallettxout_new = function() { return logError(function (arg0) {
7354
+ exports.__wbg_wallettxout_new = function(arg0) {
8448
7355
  const ret = WalletTxOut.__wrap(arg0);
8449
7356
  return ret;
8450
- }, arguments) };
7357
+ };
8451
7358
 
8452
7359
  exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
8453
7360
  const obj = arg0.original;
@@ -8456,7 +7363,6 @@ exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
8456
7363
  return true;
8457
7364
  }
8458
7365
  const ret = false;
8459
- _assertBoolean(ret);
8460
7366
  return ret;
8461
7367
  };
8462
7368
 
@@ -8470,26 +7376,22 @@ exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
8470
7376
 
8471
7377
  exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
8472
7378
  const ret = typeof(arg0) === 'function';
8473
- _assertBoolean(ret);
8474
7379
  return ret;
8475
7380
  };
8476
7381
 
8477
7382
  exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
8478
7383
  const val = arg0;
8479
7384
  const ret = typeof(val) === 'object' && val !== null;
8480
- _assertBoolean(ret);
8481
7385
  return ret;
8482
7386
  };
8483
7387
 
8484
7388
  exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
8485
7389
  const ret = typeof(arg0) === 'string';
8486
- _assertBoolean(ret);
8487
7390
  return ret;
8488
7391
  };
8489
7392
 
8490
7393
  exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
8491
7394
  const ret = arg0 === undefined;
8492
- _assertBoolean(ret);
8493
7395
  return ret;
8494
7396
  };
8495
7397
 
@@ -8506,103 +7408,103 @@ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
8506
7408
  throw new Error(getStringFromWasm0(arg0, arg1));
8507
7409
  };
8508
7410
 
8509
- exports.__wbg_wolletdescriptor_new = function() { return logError(function (arg0) {
7411
+ exports.__wbg_wolletdescriptor_new = function(arg0) {
8510
7412
  const ret = WolletDescriptor.__wrap(arg0);
8511
7413
  return ret;
8512
- }, arguments) };
7414
+ };
8513
7415
 
8514
- exports.__wbg_writable_3d863701c7ab161b = function() { return logError(function (arg0) {
7416
+ exports.__wbg_writable_3d863701c7ab161b = function(arg0) {
8515
7417
  const ret = arg0.writable;
8516
7418
  return ret;
8517
- }, arguments) };
7419
+ };
8518
7420
 
8519
- exports.__wbg_write_2e39e04a4c8c9e9d = function() { return logError(function (arg0, arg1) {
7421
+ exports.__wbg_write_2e39e04a4c8c9e9d = function(arg0, arg1) {
8520
7422
  const ret = arg0.write(arg1);
8521
7423
  return ret;
8522
- }, arguments) };
7424
+ };
8523
7425
 
8524
- exports.__wbg_xpub_new = function() { return logError(function (arg0) {
7426
+ exports.__wbg_xpub_new = function(arg0) {
8525
7427
  const ret = Xpub.__wrap(arg0);
8526
7428
  return ret;
8527
- }, arguments) };
8528
-
8529
- exports.__wbindgen_cast_0c5e7ae44b547949 = function() { return logError(function (arg0, arg1) {
8530
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1737, function: Function { arguments: [Externref], shim_idx: 1738, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8531
- const ret = makeMutClosure(arg0, arg1, 1737, __wbg_adapter_20);
8532
- return ret;
8533
- }, arguments) };
7429
+ };
8534
7430
 
8535
- exports.__wbindgen_cast_2241b6af4c4b2941 = function() { return logError(function (arg0, arg1) {
7431
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
8536
7432
  // Cast intrinsic for `Ref(String) -> Externref`.
8537
7433
  const ret = getStringFromWasm0(arg0, arg1);
8538
7434
  return ret;
8539
- }, arguments) };
7435
+ };
8540
7436
 
8541
- exports.__wbindgen_cast_24c7bfc3df32382e = function() { return logError(function (arg0, arg1) {
8542
- // Cast intrinsic for `Closure(Closure { dtor_idx: 950, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1040, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8543
- const ret = makeMutClosure(arg0, arg1, 950, __wbg_adapter_17);
7437
+ exports.__wbindgen_cast_226189b342a397fe = function(arg0, arg1) {
7438
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1332, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7439
+ const ret = makeMutClosure(arg0, arg1, 1332, __wbg_adapter_12);
8544
7440
  return ret;
8545
- }, arguments) };
7441
+ };
8546
7442
 
8547
- exports.__wbindgen_cast_2f3e68b56501bba7 = function() { return logError(function (arg0, arg1) {
8548
- // Cast intrinsic for `Closure(Closure { dtor_idx: 94, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 693, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8549
- const ret = makeMutClosure(arg0, arg1, 94, __wbg_adapter_6);
7443
+ exports.__wbindgen_cast_29502e455aa89f54 = function(arg0, arg1) {
7444
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1470, function: Function { arguments: [], shim_idx: 1471, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7445
+ const ret = makeMutClosure(arg0, arg1, 1470, __wbg_adapter_19);
8550
7446
  return ret;
8551
- }, arguments) };
7447
+ };
8552
7448
 
8553
- exports.__wbindgen_cast_4625c577ab2ec9ee = function() { return logError(function (arg0) {
7449
+ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
8554
7450
  // Cast intrinsic for `U64 -> Externref`.
8555
7451
  const ret = BigInt.asUintN(64, arg0);
8556
7452
  return ret;
8557
- }, arguments) };
7453
+ };
8558
7454
 
8559
- exports.__wbindgen_cast_6fe6f73395ea758e = function() { return logError(function (arg0, arg1) {
8560
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1708, function: Function { arguments: [], shim_idx: 1709, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8561
- const ret = makeMutClosure(arg0, arg1, 1708, __wbg_adapter_34);
7455
+ exports.__wbindgen_cast_64946e166c77d13b = function(arg0, arg1) {
7456
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1332, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7457
+ const ret = makeMutClosure(arg0, arg1, 1332, __wbg_adapter_12);
8562
7458
  return ret;
8563
- }, arguments) };
7459
+ };
8564
7460
 
8565
- exports.__wbindgen_cast_74255cb982bb2730 = function() { return logError(function (arg0, arg1) {
8566
- // Cast intrinsic for `Closure(Closure { dtor_idx: 953, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1041, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8567
- const ret = makeMutClosure(arg0, arg1, 953, __wbg_adapter_11);
7461
+ exports.__wbindgen_cast_8498ce9f6d02ec68 = function(arg0, arg1) {
7462
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1952, function: Function { arguments: [Externref], shim_idx: 1963, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7463
+ const ret = makeMutClosure(arg0, arg1, 1952, __wbg_adapter_25);
8568
7464
  return ret;
8569
- }, arguments) };
7465
+ };
8570
7466
 
8571
- exports.__wbindgen_cast_89b76bba8c1fd965 = function() { return logError(function (arg0, arg1) {
8572
- // Cast intrinsic for `Closure(Closure { dtor_idx: 951, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1043, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8573
- const ret = makeMutClosure(arg0, arg1, 951, __wbg_adapter_14);
7467
+ exports.__wbindgen_cast_8e4b3b9f090f0e9f = function(arg0, arg1) {
7468
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 836, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 793, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7469
+ const ret = makeMutClosure(arg0, arg1, 836, __wbg_adapter_30);
8574
7470
  return ret;
8575
- }, arguments) };
7471
+ };
8576
7472
 
8577
- exports.__wbindgen_cast_9ae0607507abb057 = function() { return logError(function (arg0) {
7473
+ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
8578
7474
  // Cast intrinsic for `I64 -> Externref`.
8579
7475
  const ret = arg0;
8580
7476
  return ret;
8581
- }, arguments) };
7477
+ };
8582
7478
 
8583
- exports.__wbindgen_cast_9bdba074b0ca57d6 = function() { return logError(function (arg0, arg1) {
8584
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1267, function: Function { arguments: [], shim_idx: 1268, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8585
- const ret = makeMutClosure(arg0, arg1, 1267, __wbg_adapter_31);
7479
+ exports.__wbindgen_cast_a5eca9837d7a56d8 = function(arg0, arg1) {
7480
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1332, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7481
+ const ret = makeMutClosure(arg0, arg1, 1332, __wbg_adapter_12);
8586
7482
  return ret;
8587
- }, arguments) };
7483
+ };
7484
+
7485
+ exports.__wbindgen_cast_c7181fb9120fd364 = function(arg0, arg1) {
7486
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1332, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7487
+ const ret = makeMutClosure(arg0, arg1, 1332, __wbg_adapter_12);
7488
+ return ret;
7489
+ };
7490
+
7491
+ exports.__wbindgen_cast_c8d7b74f3f2593d8 = function(arg0, arg1) {
7492
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1915, function: Function { arguments: [], shim_idx: 1916, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7493
+ const ret = makeMutClosure(arg0, arg1, 1915, __wbg_adapter_22);
7494
+ return ret;
7495
+ };
8588
7496
 
8589
- exports.__wbindgen_cast_cb9088102bce6b30 = function() { return logError(function (arg0, arg1) {
7497
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
8590
7498
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
8591
7499
  const ret = getArrayU8FromWasm0(arg0, arg1);
8592
7500
  return ret;
8593
- }, arguments) };
7501
+ };
8594
7502
 
8595
- exports.__wbindgen_cast_d6cd19b81560fd6e = function() { return logError(function (arg0) {
7503
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
8596
7504
  // Cast intrinsic for `F64 -> Externref`.
8597
7505
  const ret = arg0;
8598
7506
  return ret;
8599
- }, arguments) };
8600
-
8601
- exports.__wbindgen_cast_d90ebf3c46360a8b = function() { return logError(function (arg0, arg1) {
8602
- // Cast intrinsic for `Closure(Closure { dtor_idx: 952, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1042, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8603
- const ret = makeMutClosure(arg0, arg1, 952, __wbg_adapter_37);
8604
- return ret;
8605
- }, arguments) };
7507
+ };
8606
7508
 
8607
7509
  exports.__wbindgen_init_externref_table = function() {
8608
7510
  const table = wasm.__wbindgen_export_4;