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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.2.127"
3
+ version = "0.2.128"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.127",
3
+ "version": "0.2.128",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -28,37 +28,39 @@ export function create_transaction_with_multiple_payments(public_keys: Array<any
28
28
  /**
29
29
  * @param {bigint} num
30
30
  * @param {bigint} deposit
31
- * @param {string} data
31
+ * @param {Uint8Array} tx_msg
32
32
  * @param {bigint} fee
33
33
  * @param {string} recipient_public_key
34
34
  * @param {string} nft_type
35
35
  * @returns {Promise<WasmTransaction>}
36
36
  */
37
- export function create_bound_transaction(num: bigint, deposit: bigint, data: string, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
37
+ export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
38
38
  /**
39
39
  * @param {bigint} amt
40
40
  * @param {string} slip1_utxo_key
41
41
  * @param {string} slip2_utxo_key
42
42
  * @param {string} slip3_utxo_key
43
- * @param {string} data
44
43
  * @param {string} recipient_public_key
44
+ * @param {Uint8Array} tx_msg
45
45
  * @returns {Promise<WasmTransaction>}
46
46
  */
47
- export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, data: string, recipient_public_key: string): Promise<WasmTransaction>;
47
+ export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, recipient_public_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
48
48
  /**
49
49
  * @param {string} slip1_utxo_key
50
50
  * @param {string} slip2_utxo_key
51
51
  * @param {string} slip3_utxo_key
52
52
  * @param {number} left_count
53
53
  * @param {number} right_count
54
+ * @param {Uint8Array} tx_msg
54
55
  * @returns {Promise<WasmTransaction>}
55
56
  */
56
- export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, left_count: number, right_count: number): Promise<WasmTransaction>;
57
+ export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, left_count: number, right_count: number, tx_msg: Uint8Array): Promise<WasmTransaction>;
57
58
  /**
58
59
  * @param {string} nft_id_hex
60
+ * @param {Uint8Array} tx_msg
59
61
  * @returns {Promise<WasmTransaction>}
60
62
  */
61
- export function create_merge_bound_transaction(nft_id_hex: string): Promise<WasmTransaction>;
63
+ export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
62
64
  /**
63
65
  * @returns {Promise<Array<any>>}
64
66
  */
package/pkg/node/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-b236679e260be222/js/msg_handler.js`);
5
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-06b4ba4a5bfe6615/js/msg_handler.js`);
5
+ const { TextEncoder, TextDecoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -10,23 +10,7 @@ heap.push(undefined, null, true, false);
10
10
 
11
11
  function getObject(idx) { return heap[idx]; }
12
12
 
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
-
29
- cachedTextDecoder.decode();
13
+ let WASM_VECTOR_LEN = 0;
30
14
 
31
15
  let cachedUint8Memory0 = null;
32
16
 
@@ -37,22 +21,6 @@ function getUint8Memory0() {
37
21
  return cachedUint8Memory0;
38
22
  }
39
23
 
40
- function getStringFromWasm0(ptr, len) {
41
- ptr = ptr >>> 0;
42
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
- }
44
-
45
- function addHeapObject(obj) {
46
- if (heap_next === heap.length) heap.push(heap.length + 1);
47
- const idx = heap_next;
48
- heap_next = heap[idx];
49
-
50
- heap[idx] = obj;
51
- return idx;
52
- }
53
-
54
- let WASM_VECTOR_LEN = 0;
55
-
56
24
  let cachedTextEncoder = new TextEncoder('utf-8');
57
25
 
58
26
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -120,6 +88,38 @@ function getInt32Memory0() {
120
88
  return cachedInt32Memory0;
121
89
  }
122
90
 
91
+ let heap_next = heap.length;
92
+
93
+ function dropObject(idx) {
94
+ if (idx < 132) return;
95
+ heap[idx] = heap_next;
96
+ heap_next = idx;
97
+ }
98
+
99
+ function takeObject(idx) {
100
+ const ret = getObject(idx);
101
+ dropObject(idx);
102
+ return ret;
103
+ }
104
+
105
+ function addHeapObject(obj) {
106
+ if (heap_next === heap.length) heap.push(heap.length + 1);
107
+ const idx = heap_next;
108
+ heap_next = heap[idx];
109
+
110
+ heap[idx] = obj;
111
+ return idx;
112
+ }
113
+
114
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
115
+
116
+ cachedTextDecoder.decode();
117
+
118
+ function getStringFromWasm0(ptr, len) {
119
+ ptr = ptr >>> 0;
120
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
121
+ }
122
+
123
123
  let cachedFloat64Memory0 = null;
124
124
 
125
125
  function getFloat64Memory0() {
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_38(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5b81f38714849c11(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h437aeb043649771e(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  function handleError(f, args) {
@@ -290,16 +290,14 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
290
290
  /**
291
291
  * @param {bigint} num
292
292
  * @param {bigint} deposit
293
- * @param {string} data
293
+ * @param {Uint8Array} tx_msg
294
294
  * @param {bigint} fee
295
295
  * @param {string} recipient_public_key
296
296
  * @param {string} nft_type
297
297
  * @returns {Promise<WasmTransaction>}
298
298
  */
299
- module.exports.create_bound_transaction = function(num, deposit, data, fee, recipient_public_key, nft_type) {
300
- const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
301
- const len0 = WASM_VECTOR_LEN;
302
- const ret = wasm.create_bound_transaction(num, deposit, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
299
+ module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
300
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
303
301
  return takeObject(ret);
304
302
  };
305
303
 
@@ -308,14 +306,12 @@ module.exports.create_bound_transaction = function(num, deposit, data, fee, reci
308
306
  * @param {string} slip1_utxo_key
309
307
  * @param {string} slip2_utxo_key
310
308
  * @param {string} slip3_utxo_key
311
- * @param {string} data
312
309
  * @param {string} recipient_public_key
310
+ * @param {Uint8Array} tx_msg
313
311
  * @returns {Promise<WasmTransaction>}
314
312
  */
315
- module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, data, recipient_public_key) {
316
- const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
- const len0 = WASM_VECTOR_LEN;
318
- 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));
313
+ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
314
+ 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));
319
315
  return takeObject(ret);
320
316
  };
321
317
 
@@ -325,21 +321,23 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
325
321
  * @param {string} slip3_utxo_key
326
322
  * @param {number} left_count
327
323
  * @param {number} right_count
324
+ * @param {Uint8Array} tx_msg
328
325
  * @returns {Promise<WasmTransaction>}
329
326
  */
330
- module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count) {
331
- const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count);
327
+ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
328
+ 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));
332
329
  return takeObject(ret);
333
330
  };
334
331
 
335
332
  /**
336
333
  * @param {string} nft_id_hex
334
+ * @param {Uint8Array} tx_msg
337
335
  * @returns {Promise<WasmTransaction>}
338
336
  */
339
- module.exports.create_merge_bound_transaction = function(nft_id_hex) {
337
+ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
340
338
  const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
341
339
  const len0 = WASM_VECTOR_LEN;
342
- const ret = wasm.create_merge_bound_transaction(ptr0, len0);
340
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
343
341
  return takeObject(ret);
344
342
  };
345
343
 
@@ -725,7 +723,7 @@ module.exports.get_congestion_stats = function() {
725
723
  };
726
724
 
727
725
  function __wbg_adapter_426(arg0, arg1, arg2, arg3) {
728
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h181ffbb7749dfc48(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
726
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e7bb10b7401ce1b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
729
727
  }
730
728
 
731
729
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2604,10 +2602,29 @@ class WasmWalletSlip {
2604
2602
  }
2605
2603
  module.exports.WasmWalletSlip = WasmWalletSlip;
2606
2604
 
2605
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2606
+ const obj = getObject(arg1);
2607
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2608
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2609
+ var len1 = WASM_VECTOR_LEN;
2610
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2611
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2612
+ };
2613
+
2607
2614
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2608
2615
  takeObject(arg0);
2609
2616
  };
2610
2617
 
2618
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2619
+ const ret = BigInt.asUintN(64, arg0);
2620
+ return addHeapObject(ret);
2621
+ };
2622
+
2623
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2624
+ const ret = WasmNFT.__wrap(arg0);
2625
+ return addHeapObject(ret);
2626
+ };
2627
+
2611
2628
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2612
2629
  const ret = getStringFromWasm0(arg0, arg1);
2613
2630
  return addHeapObject(ret);
@@ -2618,13 +2635,13 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2618
2635
  return addHeapObject(ret);
2619
2636
  };
2620
2637
 
2621
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2622
- const ret = WasmWalletSlip.__wrap(arg0);
2638
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2639
+ const ret = WasmWallet.__wrap(arg0);
2623
2640
  return addHeapObject(ret);
2624
2641
  };
2625
2642
 
2626
- module.exports.__wbg_wasmblock_new = function(arg0) {
2627
- const ret = WasmBlock.__wrap(arg0);
2643
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2644
+ const ret = WasmPeer.__wrap(arg0);
2628
2645
  return addHeapObject(ret);
2629
2646
  };
2630
2647
 
@@ -2633,54 +2650,51 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2633
2650
  return addHeapObject(ret);
2634
2651
  };
2635
2652
 
2636
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2637
- const ret = BigInt.asUintN(64, arg0);
2653
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2654
+ const ret = WasmBlockchain.__wrap(arg0);
2638
2655
  return addHeapObject(ret);
2639
2656
  };
2640
2657
 
2641
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2642
- const obj = getObject(arg1);
2643
- const ret = typeof(obj) === 'string' ? obj : undefined;
2644
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2645
- var len1 = WASM_VECTOR_LEN;
2646
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2647
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2658
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2659
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2660
+ return addHeapObject(ret);
2648
2661
  };
2649
2662
 
2650
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2651
- const ret = WasmPeer.__wrap(arg0);
2663
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2664
+ const ret = WasmWalletSlip.__wrap(arg0);
2652
2665
  return addHeapObject(ret);
2653
2666
  };
2654
2667
 
2655
- module.exports.__wbg_wasmnft_new = function(arg0) {
2656
- const ret = WasmNFT.__wrap(arg0);
2668
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2669
+ const ret = WasmBlock.__wrap(arg0);
2657
2670
  return addHeapObject(ret);
2658
2671
  };
2659
2672
 
2660
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2661
- const ret = WasmBlockchain.__wrap(arg0);
2662
- return addHeapObject(ret);
2673
+ module.exports.__wbindgen_is_object = function(arg0) {
2674
+ const val = getObject(arg0);
2675
+ const ret = typeof(val) === 'object' && val !== null;
2676
+ return ret;
2663
2677
  };
2664
2678
 
2665
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2666
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2667
- return addHeapObject(ret);
2679
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2680
+ const ret = getObject(arg0) === undefined;
2681
+ return ret;
2668
2682
  };
2669
2683
 
2670
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2671
- const ret = WasmWallet.__wrap(arg0);
2672
- return addHeapObject(ret);
2684
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2685
+ const ret = getObject(arg0) in getObject(arg1);
2686
+ return ret;
2673
2687
  };
2674
2688
 
2675
- module.exports.__wbg_sendmessage_b85452e3cdd153cf = function(arg0, arg1) {
2689
+ module.exports.__wbg_sendmessage_8b35687ef65eb921 = function(arg0, arg1) {
2676
2690
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2677
2691
  };
2678
2692
 
2679
- module.exports.__wbg_sendmessagetoall_f6a39bcf9a5e0b32 = function(arg0, arg1) {
2693
+ module.exports.__wbg_sendmessagetoall_065cbff864d1aa42 = function(arg0, arg1) {
2680
2694
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2681
2695
  };
2682
2696
 
2683
- module.exports.__wbg_connecttopeer_a5d44efd1e2d8f22 = function() { return handleError(function (arg0, arg1, arg2) {
2697
+ module.exports.__wbg_connecttopeer_4b43d6ce718d6379 = function() { return handleError(function (arg0, arg1, arg2) {
2684
2698
  let deferred0_0;
2685
2699
  let deferred0_1;
2686
2700
  try {
@@ -2693,12 +2707,12 @@ module.exports.__wbg_connecttopeer_a5d44efd1e2d8f22 = function() { return handle
2693
2707
  }
2694
2708
  }, arguments) };
2695
2709
 
2696
- module.exports.__wbg_disconnectfrompeer_66743ca019ddcdda = function() { return handleError(function (arg0) {
2710
+ module.exports.__wbg_disconnectfrompeer_e436f196d782c410 = function() { return handleError(function (arg0) {
2697
2711
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2698
2712
  return addHeapObject(ret);
2699
2713
  }, arguments) };
2700
2714
 
2701
- module.exports.__wbg_fetchblockfrompeer_ab7f69475538b630 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2715
+ module.exports.__wbg_fetchblockfrompeer_11346cd3d480faec = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2702
2716
  let deferred0_0;
2703
2717
  let deferred0_1;
2704
2718
  try {
@@ -2711,7 +2725,7 @@ module.exports.__wbg_fetchblockfrompeer_ab7f69475538b630 = function() { return h
2711
2725
  }
2712
2726
  }, arguments) };
2713
2727
 
2714
- module.exports.__wbg_writevalue_289d0261e60992a8 = function(arg0, arg1, arg2) {
2728
+ module.exports.__wbg_writevalue_3c3191589d909a3f = function(arg0, arg1, arg2) {
2715
2729
  let deferred0_0;
2716
2730
  let deferred0_1;
2717
2731
  try {
@@ -2723,7 +2737,7 @@ module.exports.__wbg_writevalue_289d0261e60992a8 = function(arg0, arg1, arg2) {
2723
2737
  }
2724
2738
  };
2725
2739
 
2726
- module.exports.__wbg_appendvalue_66c6e8fcda2a1e45 = function(arg0, arg1, arg2) {
2740
+ module.exports.__wbg_appendvalue_03971a14d12acf46 = function(arg0, arg1, arg2) {
2727
2741
  let deferred0_0;
2728
2742
  let deferred0_1;
2729
2743
  try {
@@ -2735,7 +2749,7 @@ module.exports.__wbg_appendvalue_66c6e8fcda2a1e45 = function(arg0, arg1, arg2) {
2735
2749
  }
2736
2750
  };
2737
2751
 
2738
- module.exports.__wbg_flushdata_df9315b38926f06c = function(arg0, arg1) {
2752
+ module.exports.__wbg_flushdata_0438dd64c633333f = function(arg0, arg1) {
2739
2753
  let deferred0_0;
2740
2754
  let deferred0_1;
2741
2755
  try {
@@ -2747,7 +2761,7 @@ module.exports.__wbg_flushdata_df9315b38926f06c = function(arg0, arg1) {
2747
2761
  }
2748
2762
  };
2749
2763
 
2750
- module.exports.__wbg_readvalue_2d38f98bdad1dafd = function() { return handleError(function (arg0, arg1) {
2764
+ module.exports.__wbg_readvalue_b262203f08b6ab37 = function() { return handleError(function (arg0, arg1) {
2751
2765
  let deferred0_0;
2752
2766
  let deferred0_1;
2753
2767
  try {
@@ -2760,12 +2774,12 @@ module.exports.__wbg_readvalue_2d38f98bdad1dafd = function() { return handleErro
2760
2774
  }
2761
2775
  }, arguments) };
2762
2776
 
2763
- module.exports.__wbg_loadblockfilelist_cbe23157a825fcca = function() { return handleError(function () {
2777
+ module.exports.__wbg_loadblockfilelist_dfa57eceeb50c4bd = function() { return handleError(function () {
2764
2778
  const ret = MsgHandler.load_block_file_list();
2765
2779
  return addHeapObject(ret);
2766
2780
  }, arguments) };
2767
2781
 
2768
- module.exports.__wbg_isexistingfile_3b7043169f752b55 = function() { return handleError(function (arg0, arg1) {
2782
+ module.exports.__wbg_isexistingfile_84e3f369122c9efc = function() { return handleError(function (arg0, arg1) {
2769
2783
  let deferred0_0;
2770
2784
  let deferred0_1;
2771
2785
  try {
@@ -2778,7 +2792,7 @@ module.exports.__wbg_isexistingfile_3b7043169f752b55 = function() { return handl
2778
2792
  }
2779
2793
  }, arguments) };
2780
2794
 
2781
- module.exports.__wbg_removevalue_b7f3a46f9e7ed087 = function() { return handleError(function (arg0, arg1) {
2795
+ module.exports.__wbg_removevalue_543300f81c465071 = function() { return handleError(function (arg0, arg1) {
2782
2796
  let deferred0_0;
2783
2797
  let deferred0_1;
2784
2798
  try {
@@ -2791,7 +2805,7 @@ module.exports.__wbg_removevalue_b7f3a46f9e7ed087 = function() { return handleEr
2791
2805
  }
2792
2806
  }, arguments) };
2793
2807
 
2794
- module.exports.__wbg_ensureblockdirectoryexists_7977d52f158b50e1 = function() { return handleError(function (arg0, arg1) {
2808
+ module.exports.__wbg_ensureblockdirectoryexists_f8e6dc40f16557ba = function() { return handleError(function (arg0, arg1) {
2795
2809
  let deferred0_0;
2796
2810
  let deferred0_1;
2797
2811
  try {
@@ -2803,19 +2817,19 @@ module.exports.__wbg_ensureblockdirectoryexists_7977d52f158b50e1 = function() {
2803
2817
  }
2804
2818
  }, arguments) };
2805
2819
 
2806
- module.exports.__wbg_processapicall_e684f9881f2bef9f = function(arg0, arg1, arg2) {
2820
+ module.exports.__wbg_processapicall_771874ead19e0b3c = function(arg0, arg1, arg2) {
2807
2821
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2808
2822
  };
2809
2823
 
2810
- module.exports.__wbg_processapisuccess_fc9abe50961af716 = function(arg0, arg1, arg2) {
2824
+ module.exports.__wbg_processapisuccess_f6439668e076f104 = function(arg0, arg1, arg2) {
2811
2825
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2812
2826
  };
2813
2827
 
2814
- module.exports.__wbg_processapierror_81c1efa81dbee5b3 = function(arg0, arg1, arg2) {
2828
+ module.exports.__wbg_processapierror_631ff764e1196c24 = function(arg0, arg1, arg2) {
2815
2829
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2816
2830
  };
2817
2831
 
2818
- module.exports.__wbg_sendinterfaceevent_36a7a49abeeb6fa5 = function(arg0, arg1, arg2, arg3, arg4) {
2832
+ module.exports.__wbg_sendinterfaceevent_b5802327d54b9435 = function(arg0, arg1, arg2, arg3, arg4) {
2819
2833
  let deferred0_0;
2820
2834
  let deferred0_1;
2821
2835
  let deferred1_0;
@@ -2832,7 +2846,7 @@ module.exports.__wbg_sendinterfaceevent_36a7a49abeeb6fa5 = function(arg0, arg1,
2832
2846
  }
2833
2847
  };
2834
2848
 
2835
- module.exports.__wbg_sendblocksuccess_767bc0e697e38c39 = function(arg0, arg1, arg2) {
2849
+ module.exports.__wbg_sendblocksuccess_204d11c18cceffcd = function(arg0, arg1, arg2) {
2836
2850
  let deferred0_0;
2837
2851
  let deferred0_1;
2838
2852
  try {
@@ -2844,11 +2858,11 @@ module.exports.__wbg_sendblocksuccess_767bc0e697e38c39 = function(arg0, arg1, ar
2844
2858
  }
2845
2859
  };
2846
2860
 
2847
- module.exports.__wbg_sendwalletupdate_dbcce5eb82c46011 = function() {
2861
+ module.exports.__wbg_sendwalletupdate_6165f8a63470c7d9 = function() {
2848
2862
  MsgHandler.send_wallet_update();
2849
2863
  };
2850
2864
 
2851
- module.exports.__wbg_sendnewversionalert_3f20e912ad80b653 = function(arg0, arg1, arg2) {
2865
+ module.exports.__wbg_sendnewversionalert_d625b39d560bb121 = function(arg0, arg1, arg2) {
2852
2866
  let deferred0_0;
2853
2867
  let deferred0_1;
2854
2868
  try {
@@ -2860,23 +2874,23 @@ module.exports.__wbg_sendnewversionalert_3f20e912ad80b653 = function(arg0, arg1,
2860
2874
  }
2861
2875
  };
2862
2876
 
2863
- module.exports.__wbg_sendblockfetchstatusevent_cfd332b6a22eb097 = function(arg0) {
2877
+ module.exports.__wbg_sendblockfetchstatusevent_86cd63c73bca51f6 = function(arg0) {
2864
2878
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2865
2879
  };
2866
2880
 
2867
- module.exports.__wbg_sendnewchaindetectedevent_8d6268a09ccea94a = function() {
2881
+ module.exports.__wbg_sendnewchaindetectedevent_9738ea961e848abb = function() {
2868
2882
  MsgHandler.send_new_chain_detected_event();
2869
2883
  };
2870
2884
 
2871
- module.exports.__wbg_savewallet_c25c79ad91e0ca2b = function() {
2885
+ module.exports.__wbg_savewallet_d6cff76e05b53d57 = function() {
2872
2886
  MsgHandler.save_wallet();
2873
2887
  };
2874
2888
 
2875
- module.exports.__wbg_loadwallet_b393e8966fe28791 = function() {
2889
+ module.exports.__wbg_loadwallet_b2b3d11065978815 = function() {
2876
2890
  MsgHandler.load_wallet();
2877
2891
  };
2878
2892
 
2879
- module.exports.__wbg_getmyservices_893255fa9060501c = function() {
2893
+ module.exports.__wbg_getmyservices_400193e0e10d0970 = function() {
2880
2894
  const ret = MsgHandler.get_my_services();
2881
2895
  _assertClass(ret, WasmPeerServiceList);
2882
2896
  var ptr1 = ret.__destroy_into_raw();
@@ -2888,20 +2902,9 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2888
2902
  return addHeapObject(ret);
2889
2903
  };
2890
2904
 
2891
- module.exports.__wbindgen_is_object = function(arg0) {
2892
- const val = getObject(arg0);
2893
- const ret = typeof(val) === 'object' && val !== null;
2894
- return ret;
2895
- };
2896
-
2897
- module.exports.__wbindgen_is_undefined = function(arg0) {
2898
- const ret = getObject(arg0) === undefined;
2899
- return ret;
2900
- };
2901
-
2902
- module.exports.__wbindgen_in = function(arg0, arg1) {
2903
- const ret = getObject(arg0) in getObject(arg1);
2904
- return ret;
2905
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2906
+ const ret = WasmHop.__wrap(arg0);
2907
+ return addHeapObject(ret);
2905
2908
  };
2906
2909
 
2907
2910
  module.exports.__wbg_wasmpeerservice_new = function(arg0) {
@@ -2909,11 +2912,6 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2909
2912
  return addHeapObject(ret);
2910
2913
  };
2911
2914
 
2912
- module.exports.__wbg_wasmhop_new = function(arg0) {
2913
- const ret = WasmHop.__wrap(arg0);
2914
- return addHeapObject(ret);
2915
- };
2916
-
2917
2915
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2918
2916
  const ret = getObject(arg0) == getObject(arg1);
2919
2917
  return ret;
@@ -2952,10 +2950,6 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2952
2950
  return ret;
2953
2951
  };
2954
2952
 
2955
- module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2956
- queueMicrotask(getObject(arg0));
2957
- };
2958
-
2959
2953
  module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
2960
2954
  const ret = getObject(arg0).queueMicrotask;
2961
2955
  return addHeapObject(ret);
@@ -2966,6 +2960,10 @@ module.exports.__wbindgen_is_function = function(arg0) {
2966
2960
  return ret;
2967
2961
  };
2968
2962
 
2963
+ module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2964
+ queueMicrotask(getObject(arg0));
2965
+ };
2966
+
2969
2967
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
2970
2968
  const ret = new Error();
2971
2969
  return addHeapObject(ret);
@@ -3280,8 +3278,8 @@ module.exports.__wbindgen_memory = function() {
3280
3278
  return addHeapObject(ret);
3281
3279
  };
3282
3280
 
3283
- module.exports.__wbindgen_closure_wrapper1518 = function(arg0, arg1, arg2) {
3284
- const ret = makeMutClosure(arg0, arg1, 543, __wbg_adapter_38);
3281
+ module.exports.__wbindgen_closure_wrapper1512 = function(arg0, arg1, arg2) {
3282
+ const ret = makeMutClosure(arg0, arg1, 535, __wbg_adapter_38);
3285
3283
  return addHeapObject(ret);
3286
3284
  };
3287
3285
 
Binary file