saito-wasm 0.2.127 → 0.2.128

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/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-b236679e260be222/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-06b4ba4a5bfe6615/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -8,23 +8,7 @@ heap.push(undefined, null, true, false);
8
8
 
9
9
  function getObject(idx) { return heap[idx]; }
10
10
 
11
- let heap_next = heap.length;
12
-
13
- function dropObject(idx) {
14
- if (idx < 132) return;
15
- heap[idx] = heap_next;
16
- heap_next = idx;
17
- }
18
-
19
- function takeObject(idx) {
20
- const ret = getObject(idx);
21
- dropObject(idx);
22
- return ret;
23
- }
24
-
25
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
-
27
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
11
+ let WASM_VECTOR_LEN = 0;
28
12
 
29
13
  let cachedUint8Memory0 = null;
30
14
 
@@ -35,22 +19,6 @@ function getUint8Memory0() {
35
19
  return cachedUint8Memory0;
36
20
  }
37
21
 
38
- function getStringFromWasm0(ptr, len) {
39
- ptr = ptr >>> 0;
40
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
- }
42
-
43
- function addHeapObject(obj) {
44
- if (heap_next === heap.length) heap.push(heap.length + 1);
45
- const idx = heap_next;
46
- heap_next = heap[idx];
47
-
48
- heap[idx] = obj;
49
- return idx;
50
- }
51
-
52
- let WASM_VECTOR_LEN = 0;
53
-
54
22
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
55
23
 
56
24
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,6 +86,38 @@ function getInt32Memory0() {
118
86
  return cachedInt32Memory0;
119
87
  }
120
88
 
89
+ let heap_next = heap.length;
90
+
91
+ function dropObject(idx) {
92
+ if (idx < 132) return;
93
+ heap[idx] = heap_next;
94
+ heap_next = idx;
95
+ }
96
+
97
+ function takeObject(idx) {
98
+ const ret = getObject(idx);
99
+ dropObject(idx);
100
+ return ret;
101
+ }
102
+
103
+ function addHeapObject(obj) {
104
+ if (heap_next === heap.length) heap.push(heap.length + 1);
105
+ const idx = heap_next;
106
+ heap_next = heap[idx];
107
+
108
+ heap[idx] = obj;
109
+ return idx;
110
+ }
111
+
112
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
113
+
114
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
115
+
116
+ function getStringFromWasm0(ptr, len) {
117
+ ptr = ptr >>> 0;
118
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
119
+ }
120
+
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_38(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5b81f38714849c11(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h437aeb043649771e(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function handleError(f, args) {
@@ -288,16 +288,14 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
288
288
  /**
289
289
  * @param {bigint} num
290
290
  * @param {bigint} deposit
291
- * @param {string} data
291
+ * @param {Uint8Array} tx_msg
292
292
  * @param {bigint} fee
293
293
  * @param {string} recipient_public_key
294
294
  * @param {string} nft_type
295
295
  * @returns {Promise<WasmTransaction>}
296
296
  */
297
- export function create_bound_transaction(num, deposit, data, fee, recipient_public_key, nft_type) {
298
- const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
299
- const len0 = WASM_VECTOR_LEN;
300
- const ret = wasm.create_bound_transaction(num, deposit, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
297
+ export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
298
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
301
299
  return takeObject(ret);
302
300
  }
303
301
 
@@ -306,14 +304,12 @@ export function create_bound_transaction(num, deposit, data, fee, recipient_publ
306
304
  * @param {string} slip1_utxo_key
307
305
  * @param {string} slip2_utxo_key
308
306
  * @param {string} slip3_utxo_key
309
- * @param {string} data
310
307
  * @param {string} recipient_public_key
308
+ * @param {Uint8Array} tx_msg
311
309
  * @returns {Promise<WasmTransaction>}
312
310
  */
313
- export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, data, recipient_public_key) {
314
- const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
315
- const len0 = WASM_VECTOR_LEN;
316
- const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), ptr0, len0, addHeapObject(recipient_public_key));
311
+ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
312
+ const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
317
313
  return takeObject(ret);
318
314
  }
319
315
 
@@ -323,21 +319,23 @@ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_ke
323
319
  * @param {string} slip3_utxo_key
324
320
  * @param {number} left_count
325
321
  * @param {number} right_count
322
+ * @param {Uint8Array} tx_msg
326
323
  * @returns {Promise<WasmTransaction>}
327
324
  */
328
- export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count) {
329
- const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count);
325
+ export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
326
+ const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
330
327
  return takeObject(ret);
331
328
  }
332
329
 
333
330
  /**
334
331
  * @param {string} nft_id_hex
332
+ * @param {Uint8Array} tx_msg
335
333
  * @returns {Promise<WasmTransaction>}
336
334
  */
337
- export function create_merge_bound_transaction(nft_id_hex) {
335
+ export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
338
336
  const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
339
337
  const len0 = WASM_VECTOR_LEN;
340
- const ret = wasm.create_merge_bound_transaction(ptr0, len0);
338
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
341
339
  return takeObject(ret);
342
340
  }
343
341
 
@@ -723,7 +721,7 @@ export function get_congestion_stats() {
723
721
  }
724
722
 
725
723
  function __wbg_adapter_426(arg0, arg1, arg2, arg3) {
726
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h181ffbb7749dfc48(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
724
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e7bb10b7401ce1b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
727
725
  }
728
726
 
729
727
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2620,47 +2618,43 @@ async function __wbg_load(module, imports) {
2620
2618
  function __wbg_get_imports() {
2621
2619
  const imports = {};
2622
2620
  imports.wbg = {};
2621
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2622
+ const obj = getObject(arg1);
2623
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2624
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2625
+ var len1 = WASM_VECTOR_LEN;
2626
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2627
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2628
+ };
2623
2629
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2624
2630
  takeObject(arg0);
2625
2631
  };
2626
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2627
- const ret = getStringFromWasm0(arg0, arg1);
2628
- return addHeapObject(ret);
2629
- };
2630
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2631
- const ret = WasmTransaction.__wrap(arg0);
2632
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2633
+ const ret = BigInt.asUintN(64, arg0);
2632
2634
  return addHeapObject(ret);
2633
2635
  };
2634
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2635
- const ret = WasmWalletSlip.__wrap(arg0);
2636
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2637
+ const ret = WasmNFT.__wrap(arg0);
2636
2638
  return addHeapObject(ret);
2637
2639
  };
2638
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2639
- const ret = WasmBlock.__wrap(arg0);
2640
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2641
+ const ret = getStringFromWasm0(arg0, arg1);
2640
2642
  return addHeapObject(ret);
2641
2643
  };
2642
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2643
- const ret = WasmSlip.__wrap(arg0);
2644
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2645
+ const ret = WasmTransaction.__wrap(arg0);
2644
2646
  return addHeapObject(ret);
2645
2647
  };
2646
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2647
- const ret = BigInt.asUintN(64, arg0);
2648
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2649
+ const ret = WasmWallet.__wrap(arg0);
2648
2650
  return addHeapObject(ret);
2649
2651
  };
2650
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2651
- const obj = getObject(arg1);
2652
- const ret = typeof(obj) === 'string' ? obj : undefined;
2653
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2654
- var len1 = WASM_VECTOR_LEN;
2655
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2656
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2657
- };
2658
2652
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2659
2653
  const ret = WasmPeer.__wrap(arg0);
2660
2654
  return addHeapObject(ret);
2661
2655
  };
2662
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2663
- const ret = WasmNFT.__wrap(arg0);
2656
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2657
+ const ret = WasmSlip.__wrap(arg0);
2664
2658
  return addHeapObject(ret);
2665
2659
  };
2666
2660
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
@@ -2671,17 +2665,34 @@ function __wbg_get_imports() {
2671
2665
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2672
2666
  return addHeapObject(ret);
2673
2667
  };
2674
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2675
- const ret = WasmWallet.__wrap(arg0);
2668
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2669
+ const ret = WasmWalletSlip.__wrap(arg0);
2676
2670
  return addHeapObject(ret);
2677
2671
  };
2678
- imports.wbg.__wbg_sendmessage_b85452e3cdd153cf = function(arg0, arg1) {
2672
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2673
+ const ret = WasmBlock.__wrap(arg0);
2674
+ return addHeapObject(ret);
2675
+ };
2676
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2677
+ const val = getObject(arg0);
2678
+ const ret = typeof(val) === 'object' && val !== null;
2679
+ return ret;
2680
+ };
2681
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2682
+ const ret = getObject(arg0) === undefined;
2683
+ return ret;
2684
+ };
2685
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2686
+ const ret = getObject(arg0) in getObject(arg1);
2687
+ return ret;
2688
+ };
2689
+ imports.wbg.__wbg_sendmessage_8b35687ef65eb921 = function(arg0, arg1) {
2679
2690
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2680
2691
  };
2681
- imports.wbg.__wbg_sendmessagetoall_f6a39bcf9a5e0b32 = function(arg0, arg1) {
2692
+ imports.wbg.__wbg_sendmessagetoall_065cbff864d1aa42 = function(arg0, arg1) {
2682
2693
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2683
2694
  };
2684
- imports.wbg.__wbg_connecttopeer_a5d44efd1e2d8f22 = function() { return handleError(function (arg0, arg1, arg2) {
2695
+ imports.wbg.__wbg_connecttopeer_4b43d6ce718d6379 = function() { return handleError(function (arg0, arg1, arg2) {
2685
2696
  let deferred0_0;
2686
2697
  let deferred0_1;
2687
2698
  try {
@@ -2693,11 +2704,11 @@ function __wbg_get_imports() {
2693
2704
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2694
2705
  }
2695
2706
  }, arguments) };
2696
- imports.wbg.__wbg_disconnectfrompeer_66743ca019ddcdda = function() { return handleError(function (arg0) {
2707
+ imports.wbg.__wbg_disconnectfrompeer_e436f196d782c410 = function() { return handleError(function (arg0) {
2697
2708
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2698
2709
  return addHeapObject(ret);
2699
2710
  }, arguments) };
2700
- imports.wbg.__wbg_fetchblockfrompeer_ab7f69475538b630 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2711
+ imports.wbg.__wbg_fetchblockfrompeer_11346cd3d480faec = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2701
2712
  let deferred0_0;
2702
2713
  let deferred0_1;
2703
2714
  try {
@@ -2709,7 +2720,7 @@ function __wbg_get_imports() {
2709
2720
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2710
2721
  }
2711
2722
  }, arguments) };
2712
- imports.wbg.__wbg_writevalue_289d0261e60992a8 = function(arg0, arg1, arg2) {
2723
+ imports.wbg.__wbg_writevalue_3c3191589d909a3f = function(arg0, arg1, arg2) {
2713
2724
  let deferred0_0;
2714
2725
  let deferred0_1;
2715
2726
  try {
@@ -2720,7 +2731,7 @@ function __wbg_get_imports() {
2720
2731
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2721
2732
  }
2722
2733
  };
2723
- imports.wbg.__wbg_appendvalue_66c6e8fcda2a1e45 = function(arg0, arg1, arg2) {
2734
+ imports.wbg.__wbg_appendvalue_03971a14d12acf46 = function(arg0, arg1, arg2) {
2724
2735
  let deferred0_0;
2725
2736
  let deferred0_1;
2726
2737
  try {
@@ -2731,7 +2742,7 @@ function __wbg_get_imports() {
2731
2742
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2732
2743
  }
2733
2744
  };
2734
- imports.wbg.__wbg_flushdata_df9315b38926f06c = function(arg0, arg1) {
2745
+ imports.wbg.__wbg_flushdata_0438dd64c633333f = function(arg0, arg1) {
2735
2746
  let deferred0_0;
2736
2747
  let deferred0_1;
2737
2748
  try {
@@ -2742,7 +2753,7 @@ function __wbg_get_imports() {
2742
2753
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2743
2754
  }
2744
2755
  };
2745
- imports.wbg.__wbg_readvalue_2d38f98bdad1dafd = function() { return handleError(function (arg0, arg1) {
2756
+ imports.wbg.__wbg_readvalue_b262203f08b6ab37 = function() { return handleError(function (arg0, arg1) {
2746
2757
  let deferred0_0;
2747
2758
  let deferred0_1;
2748
2759
  try {
@@ -2754,11 +2765,11 @@ function __wbg_get_imports() {
2754
2765
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2755
2766
  }
2756
2767
  }, arguments) };
2757
- imports.wbg.__wbg_loadblockfilelist_cbe23157a825fcca = function() { return handleError(function () {
2768
+ imports.wbg.__wbg_loadblockfilelist_dfa57eceeb50c4bd = function() { return handleError(function () {
2758
2769
  const ret = MsgHandler.load_block_file_list();
2759
2770
  return addHeapObject(ret);
2760
2771
  }, arguments) };
2761
- imports.wbg.__wbg_isexistingfile_3b7043169f752b55 = function() { return handleError(function (arg0, arg1) {
2772
+ imports.wbg.__wbg_isexistingfile_84e3f369122c9efc = function() { return handleError(function (arg0, arg1) {
2762
2773
  let deferred0_0;
2763
2774
  let deferred0_1;
2764
2775
  try {
@@ -2770,7 +2781,7 @@ function __wbg_get_imports() {
2770
2781
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2771
2782
  }
2772
2783
  }, arguments) };
2773
- imports.wbg.__wbg_removevalue_b7f3a46f9e7ed087 = function() { return handleError(function (arg0, arg1) {
2784
+ imports.wbg.__wbg_removevalue_543300f81c465071 = function() { return handleError(function (arg0, arg1) {
2774
2785
  let deferred0_0;
2775
2786
  let deferred0_1;
2776
2787
  try {
@@ -2782,7 +2793,7 @@ function __wbg_get_imports() {
2782
2793
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2783
2794
  }
2784
2795
  }, arguments) };
2785
- imports.wbg.__wbg_ensureblockdirectoryexists_7977d52f158b50e1 = function() { return handleError(function (arg0, arg1) {
2796
+ imports.wbg.__wbg_ensureblockdirectoryexists_f8e6dc40f16557ba = function() { return handleError(function (arg0, arg1) {
2786
2797
  let deferred0_0;
2787
2798
  let deferred0_1;
2788
2799
  try {
@@ -2793,16 +2804,16 @@ function __wbg_get_imports() {
2793
2804
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2794
2805
  }
2795
2806
  }, arguments) };
2796
- imports.wbg.__wbg_processapicall_e684f9881f2bef9f = function(arg0, arg1, arg2) {
2807
+ imports.wbg.__wbg_processapicall_771874ead19e0b3c = function(arg0, arg1, arg2) {
2797
2808
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2798
2809
  };
2799
- imports.wbg.__wbg_processapisuccess_fc9abe50961af716 = function(arg0, arg1, arg2) {
2810
+ imports.wbg.__wbg_processapisuccess_f6439668e076f104 = function(arg0, arg1, arg2) {
2800
2811
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2801
2812
  };
2802
- imports.wbg.__wbg_processapierror_81c1efa81dbee5b3 = function(arg0, arg1, arg2) {
2813
+ imports.wbg.__wbg_processapierror_631ff764e1196c24 = function(arg0, arg1, arg2) {
2803
2814
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2804
2815
  };
2805
- imports.wbg.__wbg_sendinterfaceevent_36a7a49abeeb6fa5 = function(arg0, arg1, arg2, arg3, arg4) {
2816
+ imports.wbg.__wbg_sendinterfaceevent_b5802327d54b9435 = function(arg0, arg1, arg2, arg3, arg4) {
2806
2817
  let deferred0_0;
2807
2818
  let deferred0_1;
2808
2819
  let deferred1_0;
@@ -2818,7 +2829,7 @@ function __wbg_get_imports() {
2818
2829
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2819
2830
  }
2820
2831
  };
2821
- imports.wbg.__wbg_sendblocksuccess_767bc0e697e38c39 = function(arg0, arg1, arg2) {
2832
+ imports.wbg.__wbg_sendblocksuccess_204d11c18cceffcd = function(arg0, arg1, arg2) {
2822
2833
  let deferred0_0;
2823
2834
  let deferred0_1;
2824
2835
  try {
@@ -2829,10 +2840,10 @@ function __wbg_get_imports() {
2829
2840
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2830
2841
  }
2831
2842
  };
2832
- imports.wbg.__wbg_sendwalletupdate_dbcce5eb82c46011 = function() {
2843
+ imports.wbg.__wbg_sendwalletupdate_6165f8a63470c7d9 = function() {
2833
2844
  MsgHandler.send_wallet_update();
2834
2845
  };
2835
- imports.wbg.__wbg_sendnewversionalert_3f20e912ad80b653 = function(arg0, arg1, arg2) {
2846
+ imports.wbg.__wbg_sendnewversionalert_d625b39d560bb121 = function(arg0, arg1, arg2) {
2836
2847
  let deferred0_0;
2837
2848
  let deferred0_1;
2838
2849
  try {
@@ -2843,19 +2854,19 @@ function __wbg_get_imports() {
2843
2854
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2844
2855
  }
2845
2856
  };
2846
- imports.wbg.__wbg_sendblockfetchstatusevent_cfd332b6a22eb097 = function(arg0) {
2857
+ imports.wbg.__wbg_sendblockfetchstatusevent_86cd63c73bca51f6 = function(arg0) {
2847
2858
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2848
2859
  };
2849
- imports.wbg.__wbg_sendnewchaindetectedevent_8d6268a09ccea94a = function() {
2860
+ imports.wbg.__wbg_sendnewchaindetectedevent_9738ea961e848abb = function() {
2850
2861
  MsgHandler.send_new_chain_detected_event();
2851
2862
  };
2852
- imports.wbg.__wbg_savewallet_c25c79ad91e0ca2b = function() {
2863
+ imports.wbg.__wbg_savewallet_d6cff76e05b53d57 = function() {
2853
2864
  MsgHandler.save_wallet();
2854
2865
  };
2855
- imports.wbg.__wbg_loadwallet_b393e8966fe28791 = function() {
2866
+ imports.wbg.__wbg_loadwallet_b2b3d11065978815 = function() {
2856
2867
  MsgHandler.load_wallet();
2857
2868
  };
2858
- imports.wbg.__wbg_getmyservices_893255fa9060501c = function() {
2869
+ imports.wbg.__wbg_getmyservices_400193e0e10d0970 = function() {
2859
2870
  const ret = MsgHandler.get_my_services();
2860
2871
  _assertClass(ret, WasmPeerServiceList);
2861
2872
  var ptr1 = ret.__destroy_into_raw();
@@ -2865,27 +2876,14 @@ function __wbg_get_imports() {
2865
2876
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2866
2877
  return addHeapObject(ret);
2867
2878
  };
2868
- imports.wbg.__wbindgen_is_object = function(arg0) {
2869
- const val = getObject(arg0);
2870
- const ret = typeof(val) === 'object' && val !== null;
2871
- return ret;
2872
- };
2873
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2874
- const ret = getObject(arg0) === undefined;
2875
- return ret;
2876
- };
2877
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2878
- const ret = getObject(arg0) in getObject(arg1);
2879
- return ret;
2879
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2880
+ const ret = WasmHop.__wrap(arg0);
2881
+ return addHeapObject(ret);
2880
2882
  };
2881
2883
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2882
2884
  const ret = WasmPeerService.__wrap(arg0);
2883
2885
  return addHeapObject(ret);
2884
2886
  };
2885
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2886
- const ret = WasmHop.__wrap(arg0);
2887
- return addHeapObject(ret);
2888
- };
2889
2887
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2890
2888
  const ret = getObject(arg0) == getObject(arg1);
2891
2889
  return ret;
@@ -2918,9 +2916,6 @@ function __wbg_get_imports() {
2918
2916
  const ret = false;
2919
2917
  return ret;
2920
2918
  };
2921
- imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2922
- queueMicrotask(getObject(arg0));
2923
- };
2924
2919
  imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
2925
2920
  const ret = getObject(arg0).queueMicrotask;
2926
2921
  return addHeapObject(ret);
@@ -2929,6 +2924,9 @@ function __wbg_get_imports() {
2929
2924
  const ret = typeof(getObject(arg0)) === 'function';
2930
2925
  return ret;
2931
2926
  };
2927
+ imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2928
+ queueMicrotask(getObject(arg0));
2929
+ };
2932
2930
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
2933
2931
  const ret = new Error();
2934
2932
  return addHeapObject(ret);
@@ -3186,8 +3184,8 @@ function __wbg_get_imports() {
3186
3184
  const ret = wasm.memory;
3187
3185
  return addHeapObject(ret);
3188
3186
  };
3189
- imports.wbg.__wbindgen_closure_wrapper1518 = function(arg0, arg1, arg2) {
3190
- const ret = makeMutClosure(arg0, arg1, 543, __wbg_adapter_38);
3187
+ imports.wbg.__wbindgen_closure_wrapper1512 = function(arg0, arg1, arg2) {
3188
+ const ret = makeMutClosure(arg0, arg1, 535, __wbg_adapter_38);
3191
3189
  return addHeapObject(ret);
3192
3190
  };
3193
3191
 
Binary file