saito-wasm 0.2.128 → 0.2.129

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.128"
3
+ version = "0.2.129"
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.128",
3
+ "version": "0.2.129",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -533,6 +533,21 @@ export class WasmBlockchain {
533
533
  * @returns {Promise<void>}
534
534
  */
535
535
  set_safe_to_prune_transaction(block_id: bigint): Promise<void>;
536
+ /**
537
+ * @returns {Promise<bigint>}
538
+ */
539
+ get_prune_after_blocks(): Promise<bigint>;
540
+ /**
541
+ * @returns {Promise<bigint>}
542
+ */
543
+ get_block_confirmation_limit(): Promise<bigint>;
544
+ /**
545
+ * @param {Function} reorg_cb
546
+ * @param {Function} add_block_cb
547
+ * @param {Function} confirm_cb
548
+ * @returns {Promise<void>}
549
+ */
550
+ register_callback(reorg_cb: Function, add_block_cb: Function, confirm_cb: Function): Promise<void>;
536
551
  }
537
552
  /**
538
553
  */
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-06b4ba4a5bfe6615/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-e6f56d091907b570/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -10,7 +10,23 @@ heap.push(undefined, null, true, false);
10
10
 
11
11
  function getObject(idx) { return heap[idx]; }
12
12
 
13
- let WASM_VECTOR_LEN = 0;
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();
14
30
 
15
31
  let cachedUint8Memory0 = null;
16
32
 
@@ -21,6 +37,22 @@ function getUint8Memory0() {
21
37
  return cachedUint8Memory0;
22
38
  }
23
39
 
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
+
24
56
  let cachedTextEncoder = new TextEncoder('utf-8');
25
57
 
26
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -88,38 +120,6 @@ function getInt32Memory0() {
88
120
  return cachedInt32Memory0;
89
121
  }
90
122
 
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() {
@@ -722,7 +722,7 @@ module.exports.get_congestion_stats = function() {
722
722
  return takeObject(ret);
723
723
  };
724
724
 
725
- function __wbg_adapter_426(arg0, arg1, arg2, arg3) {
725
+ function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
726
726
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e7bb10b7401ce1b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
727
727
  }
728
728
 
@@ -1403,6 +1403,30 @@ class WasmBlockchain {
1403
1403
  const ret = wasm.wasmblockchain_set_safe_to_prune_transaction(this.__wbg_ptr, block_id);
1404
1404
  return takeObject(ret);
1405
1405
  }
1406
+ /**
1407
+ * @returns {Promise<bigint>}
1408
+ */
1409
+ get_prune_after_blocks() {
1410
+ const ret = wasm.wasmblockchain_get_prune_after_blocks(this.__wbg_ptr);
1411
+ return takeObject(ret);
1412
+ }
1413
+ /**
1414
+ * @returns {Promise<bigint>}
1415
+ */
1416
+ get_block_confirmation_limit() {
1417
+ const ret = wasm.wasmblockchain_get_block_confirmation_limit(this.__wbg_ptr);
1418
+ return takeObject(ret);
1419
+ }
1420
+ /**
1421
+ * @param {Function} reorg_cb
1422
+ * @param {Function} add_block_cb
1423
+ * @param {Function} confirm_cb
1424
+ * @returns {Promise<void>}
1425
+ */
1426
+ register_callback(reorg_cb, add_block_cb, confirm_cb) {
1427
+ const ret = wasm.wasmblockchain_register_callback(this.__wbg_ptr, addHeapObject(reorg_cb), addHeapObject(add_block_cb), addHeapObject(confirm_cb));
1428
+ return takeObject(ret);
1429
+ }
1406
1430
  }
1407
1431
  module.exports.WasmBlockchain = WasmBlockchain;
1408
1432
 
@@ -2602,41 +2626,41 @@ class WasmWalletSlip {
2602
2626
  }
2603
2627
  module.exports.WasmWalletSlip = WasmWalletSlip;
2604
2628
 
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;
2629
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2630
+ const ret = WasmTransaction.__wrap(arg0);
2631
+ return addHeapObject(ret);
2612
2632
  };
2613
2633
 
2614
2634
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2615
2635
  takeObject(arg0);
2616
2636
  };
2617
2637
 
2618
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2619
- const ret = BigInt.asUintN(64, arg0);
2638
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2639
+ const ret = getStringFromWasm0(arg0, arg1);
2620
2640
  return addHeapObject(ret);
2621
2641
  };
2622
2642
 
2623
- module.exports.__wbg_wasmnft_new = function(arg0) {
2624
- const ret = WasmNFT.__wrap(arg0);
2643
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2644
+ const ret = BigInt.asUintN(64, arg0);
2625
2645
  return addHeapObject(ret);
2626
2646
  };
2627
2647
 
2628
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2629
- const ret = getStringFromWasm0(arg0, arg1);
2630
- return addHeapObject(ret);
2648
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2649
+ const obj = getObject(arg1);
2650
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2651
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2652
+ var len1 = WASM_VECTOR_LEN;
2653
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2654
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2631
2655
  };
2632
2656
 
2633
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2634
- const ret = WasmTransaction.__wrap(arg0);
2657
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2658
+ const ret = getObject(arg0);
2635
2659
  return addHeapObject(ret);
2636
2660
  };
2637
2661
 
2638
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2639
- const ret = WasmWallet.__wrap(arg0);
2662
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2663
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2640
2664
  return addHeapObject(ret);
2641
2665
  };
2642
2666
 
@@ -2645,18 +2669,18 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2645
2669
  return addHeapObject(ret);
2646
2670
  };
2647
2671
 
2648
- module.exports.__wbg_wasmslip_new = function(arg0) {
2649
- const ret = WasmSlip.__wrap(arg0);
2672
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2673
+ const ret = WasmWallet.__wrap(arg0);
2650
2674
  return addHeapObject(ret);
2651
2675
  };
2652
2676
 
2653
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2654
- const ret = WasmBlockchain.__wrap(arg0);
2677
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2678
+ const ret = WasmNFT.__wrap(arg0);
2655
2679
  return addHeapObject(ret);
2656
2680
  };
2657
2681
 
2658
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2659
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2682
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2683
+ const ret = WasmBlock.__wrap(arg0);
2660
2684
  return addHeapObject(ret);
2661
2685
  };
2662
2686
 
@@ -2665,36 +2689,25 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2665
2689
  return addHeapObject(ret);
2666
2690
  };
2667
2691
 
2668
- module.exports.__wbg_wasmblock_new = function(arg0) {
2669
- const ret = WasmBlock.__wrap(arg0);
2692
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2693
+ const ret = WasmBlockchain.__wrap(arg0);
2670
2694
  return addHeapObject(ret);
2671
2695
  };
2672
2696
 
2673
- module.exports.__wbindgen_is_object = function(arg0) {
2674
- const val = getObject(arg0);
2675
- const ret = typeof(val) === 'object' && val !== null;
2676
- return ret;
2677
- };
2678
-
2679
- module.exports.__wbindgen_is_undefined = function(arg0) {
2680
- const ret = getObject(arg0) === undefined;
2681
- return ret;
2682
- };
2683
-
2684
- module.exports.__wbindgen_in = function(arg0, arg1) {
2685
- const ret = getObject(arg0) in getObject(arg1);
2686
- return ret;
2697
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2698
+ const ret = WasmSlip.__wrap(arg0);
2699
+ return addHeapObject(ret);
2687
2700
  };
2688
2701
 
2689
- module.exports.__wbg_sendmessage_8b35687ef65eb921 = function(arg0, arg1) {
2702
+ module.exports.__wbg_sendmessage_87838f249f0c3d14 = function(arg0, arg1) {
2690
2703
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2691
2704
  };
2692
2705
 
2693
- module.exports.__wbg_sendmessagetoall_065cbff864d1aa42 = function(arg0, arg1) {
2706
+ module.exports.__wbg_sendmessagetoall_bf514bc6ff26f36c = function(arg0, arg1) {
2694
2707
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2695
2708
  };
2696
2709
 
2697
- module.exports.__wbg_connecttopeer_4b43d6ce718d6379 = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ module.exports.__wbg_connecttopeer_a9963c3dc97bce09 = function() { return handleError(function (arg0, arg1, arg2) {
2698
2711
  let deferred0_0;
2699
2712
  let deferred0_1;
2700
2713
  try {
@@ -2707,12 +2720,12 @@ module.exports.__wbg_connecttopeer_4b43d6ce718d6379 = function() { return handle
2707
2720
  }
2708
2721
  }, arguments) };
2709
2722
 
2710
- module.exports.__wbg_disconnectfrompeer_e436f196d782c410 = function() { return handleError(function (arg0) {
2723
+ module.exports.__wbg_disconnectfrompeer_c61e738a7a82bfd0 = function() { return handleError(function (arg0) {
2711
2724
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2712
2725
  return addHeapObject(ret);
2713
2726
  }, arguments) };
2714
2727
 
2715
- module.exports.__wbg_fetchblockfrompeer_11346cd3d480faec = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2728
+ module.exports.__wbg_fetchblockfrompeer_4e543ef5ce56fa3f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2716
2729
  let deferred0_0;
2717
2730
  let deferred0_1;
2718
2731
  try {
@@ -2725,7 +2738,7 @@ module.exports.__wbg_fetchblockfrompeer_11346cd3d480faec = function() { return h
2725
2738
  }
2726
2739
  }, arguments) };
2727
2740
 
2728
- module.exports.__wbg_writevalue_3c3191589d909a3f = function(arg0, arg1, arg2) {
2741
+ module.exports.__wbg_writevalue_702910e991275585 = function(arg0, arg1, arg2) {
2729
2742
  let deferred0_0;
2730
2743
  let deferred0_1;
2731
2744
  try {
@@ -2737,7 +2750,7 @@ module.exports.__wbg_writevalue_3c3191589d909a3f = function(arg0, arg1, arg2) {
2737
2750
  }
2738
2751
  };
2739
2752
 
2740
- module.exports.__wbg_appendvalue_03971a14d12acf46 = function(arg0, arg1, arg2) {
2753
+ module.exports.__wbg_appendvalue_e7576d8543db584d = function(arg0, arg1, arg2) {
2741
2754
  let deferred0_0;
2742
2755
  let deferred0_1;
2743
2756
  try {
@@ -2749,7 +2762,7 @@ module.exports.__wbg_appendvalue_03971a14d12acf46 = function(arg0, arg1, arg2) {
2749
2762
  }
2750
2763
  };
2751
2764
 
2752
- module.exports.__wbg_flushdata_0438dd64c633333f = function(arg0, arg1) {
2765
+ module.exports.__wbg_flushdata_894272baa7f1ae20 = function(arg0, arg1) {
2753
2766
  let deferred0_0;
2754
2767
  let deferred0_1;
2755
2768
  try {
@@ -2761,7 +2774,7 @@ module.exports.__wbg_flushdata_0438dd64c633333f = function(arg0, arg1) {
2761
2774
  }
2762
2775
  };
2763
2776
 
2764
- module.exports.__wbg_readvalue_b262203f08b6ab37 = function() { return handleError(function (arg0, arg1) {
2777
+ module.exports.__wbg_readvalue_f3f1db859fd88fe4 = function() { return handleError(function (arg0, arg1) {
2765
2778
  let deferred0_0;
2766
2779
  let deferred0_1;
2767
2780
  try {
@@ -2774,12 +2787,12 @@ module.exports.__wbg_readvalue_b262203f08b6ab37 = function() { return handleErro
2774
2787
  }
2775
2788
  }, arguments) };
2776
2789
 
2777
- module.exports.__wbg_loadblockfilelist_dfa57eceeb50c4bd = function() { return handleError(function () {
2790
+ module.exports.__wbg_loadblockfilelist_2ad96a8f1352c314 = function() { return handleError(function () {
2778
2791
  const ret = MsgHandler.load_block_file_list();
2779
2792
  return addHeapObject(ret);
2780
2793
  }, arguments) };
2781
2794
 
2782
- module.exports.__wbg_isexistingfile_84e3f369122c9efc = function() { return handleError(function (arg0, arg1) {
2795
+ module.exports.__wbg_isexistingfile_7c790d77eb3e5a52 = function() { return handleError(function (arg0, arg1) {
2783
2796
  let deferred0_0;
2784
2797
  let deferred0_1;
2785
2798
  try {
@@ -2792,7 +2805,7 @@ module.exports.__wbg_isexistingfile_84e3f369122c9efc = function() { return handl
2792
2805
  }
2793
2806
  }, arguments) };
2794
2807
 
2795
- module.exports.__wbg_removevalue_543300f81c465071 = function() { return handleError(function (arg0, arg1) {
2808
+ module.exports.__wbg_removevalue_0c9dc712af8231e7 = function() { return handleError(function (arg0, arg1) {
2796
2809
  let deferred0_0;
2797
2810
  let deferred0_1;
2798
2811
  try {
@@ -2805,7 +2818,7 @@ module.exports.__wbg_removevalue_543300f81c465071 = function() { return handleEr
2805
2818
  }
2806
2819
  }, arguments) };
2807
2820
 
2808
- module.exports.__wbg_ensureblockdirectoryexists_f8e6dc40f16557ba = function() { return handleError(function (arg0, arg1) {
2821
+ module.exports.__wbg_ensureblockdirectoryexists_261503a47e8d756d = function() { return handleError(function (arg0, arg1) {
2809
2822
  let deferred0_0;
2810
2823
  let deferred0_1;
2811
2824
  try {
@@ -2817,19 +2830,19 @@ module.exports.__wbg_ensureblockdirectoryexists_f8e6dc40f16557ba = function() {
2817
2830
  }
2818
2831
  }, arguments) };
2819
2832
 
2820
- module.exports.__wbg_processapicall_771874ead19e0b3c = function(arg0, arg1, arg2) {
2833
+ module.exports.__wbg_processapicall_e4f40b883901814a = function(arg0, arg1, arg2) {
2821
2834
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2822
2835
  };
2823
2836
 
2824
- module.exports.__wbg_processapisuccess_f6439668e076f104 = function(arg0, arg1, arg2) {
2837
+ module.exports.__wbg_processapisuccess_32323c446312c1d5 = function(arg0, arg1, arg2) {
2825
2838
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2826
2839
  };
2827
2840
 
2828
- module.exports.__wbg_processapierror_631ff764e1196c24 = function(arg0, arg1, arg2) {
2841
+ module.exports.__wbg_processapierror_1670a3aa7f0d2140 = function(arg0, arg1, arg2) {
2829
2842
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2830
2843
  };
2831
2844
 
2832
- module.exports.__wbg_sendinterfaceevent_b5802327d54b9435 = function(arg0, arg1, arg2, arg3, arg4) {
2845
+ module.exports.__wbg_sendinterfaceevent_605a3ff9efcc875c = function(arg0, arg1, arg2, arg3, arg4) {
2833
2846
  let deferred0_0;
2834
2847
  let deferred0_1;
2835
2848
  let deferred1_0;
@@ -2846,7 +2859,7 @@ module.exports.__wbg_sendinterfaceevent_b5802327d54b9435 = function(arg0, arg1,
2846
2859
  }
2847
2860
  };
2848
2861
 
2849
- module.exports.__wbg_sendblocksuccess_204d11c18cceffcd = function(arg0, arg1, arg2) {
2862
+ module.exports.__wbg_sendblocksuccess_f28bb5c6cb0635af = function(arg0, arg1, arg2) {
2850
2863
  let deferred0_0;
2851
2864
  let deferred0_1;
2852
2865
  try {
@@ -2858,11 +2871,11 @@ module.exports.__wbg_sendblocksuccess_204d11c18cceffcd = function(arg0, arg1, ar
2858
2871
  }
2859
2872
  };
2860
2873
 
2861
- module.exports.__wbg_sendwalletupdate_6165f8a63470c7d9 = function() {
2874
+ module.exports.__wbg_sendwalletupdate_dee01a332cecc875 = function() {
2862
2875
  MsgHandler.send_wallet_update();
2863
2876
  };
2864
2877
 
2865
- module.exports.__wbg_sendnewversionalert_d625b39d560bb121 = function(arg0, arg1, arg2) {
2878
+ module.exports.__wbg_sendnewversionalert_704e59d267783089 = function(arg0, arg1, arg2) {
2866
2879
  let deferred0_0;
2867
2880
  let deferred0_1;
2868
2881
  try {
@@ -2874,41 +2887,57 @@ module.exports.__wbg_sendnewversionalert_d625b39d560bb121 = function(arg0, arg1,
2874
2887
  }
2875
2888
  };
2876
2889
 
2877
- module.exports.__wbg_sendblockfetchstatusevent_86cd63c73bca51f6 = function(arg0) {
2890
+ module.exports.__wbg_sendblockfetchstatusevent_b294238aee45b10c = function(arg0) {
2878
2891
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2879
2892
  };
2880
2893
 
2881
- module.exports.__wbg_sendnewchaindetectedevent_9738ea961e848abb = function() {
2894
+ module.exports.__wbg_sendnewchaindetectedevent_844acb3a60f7a13f = function() {
2882
2895
  MsgHandler.send_new_chain_detected_event();
2883
2896
  };
2884
2897
 
2885
- module.exports.__wbg_savewallet_d6cff76e05b53d57 = function() {
2898
+ module.exports.__wbg_savewallet_dec2f3042fa28a7c = function() {
2886
2899
  MsgHandler.save_wallet();
2887
2900
  };
2888
2901
 
2889
- module.exports.__wbg_loadwallet_b2b3d11065978815 = function() {
2902
+ module.exports.__wbg_loadwallet_e61655b6fee4c4ec = function() {
2890
2903
  MsgHandler.load_wallet();
2891
2904
  };
2892
2905
 
2893
- module.exports.__wbg_getmyservices_400193e0e10d0970 = function() {
2906
+ module.exports.__wbg_getmyservices_42dc20ce6a0c89c2 = function() {
2894
2907
  const ret = MsgHandler.get_my_services();
2895
2908
  _assertClass(ret, WasmPeerServiceList);
2896
2909
  var ptr1 = ret.__destroy_into_raw();
2897
2910
  return ptr1;
2898
2911
  };
2899
2912
 
2900
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2901
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2913
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2914
+ const ret = WasmPeerService.__wrap(arg0);
2902
2915
  return addHeapObject(ret);
2903
2916
  };
2904
2917
 
2918
+ module.exports.__wbindgen_is_object = function(arg0) {
2919
+ const val = getObject(arg0);
2920
+ const ret = typeof(val) === 'object' && val !== null;
2921
+ return ret;
2922
+ };
2923
+
2924
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2925
+ const ret = getObject(arg0) === undefined;
2926
+ return ret;
2927
+ };
2928
+
2929
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2930
+ const ret = getObject(arg0) in getObject(arg1);
2931
+ return ret;
2932
+ };
2933
+
2905
2934
  module.exports.__wbg_wasmhop_new = function(arg0) {
2906
2935
  const ret = WasmHop.__wrap(arg0);
2907
2936
  return addHeapObject(ret);
2908
2937
  };
2909
2938
 
2910
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2911
- const ret = WasmPeerService.__wrap(arg0);
2939
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2940
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2912
2941
  return addHeapObject(ret);
2913
2942
  };
2914
2943
 
@@ -2930,11 +2959,6 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
2930
2959
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
2931
2960
  };
2932
2961
 
2933
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2934
- const ret = getObject(arg0);
2935
- return addHeapObject(ret);
2936
- };
2937
-
2938
2962
  module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
2939
2963
  const ret = getObject(arg0)[getObject(arg1)];
2940
2964
  return addHeapObject(ret);
@@ -3163,6 +3187,16 @@ module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(fun
3163
3187
  return addHeapObject(ret);
3164
3188
  }, arguments) };
3165
3189
 
3190
+ module.exports.__wbg_call_8e7cb608789c2528 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3191
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
3192
+ return addHeapObject(ret);
3193
+ }, arguments) };
3194
+
3195
+ module.exports.__wbg_call_938992c832f74314 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3196
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
3197
+ return addHeapObject(ret);
3198
+ }, arguments) };
3199
+
3166
3200
  module.exports.__wbg_now_3014639a94423537 = function() {
3167
3201
  const ret = Date.now();
3168
3202
  return ret;
@@ -3180,7 +3214,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
3180
3214
  const a = state0.a;
3181
3215
  state0.a = 0;
3182
3216
  try {
3183
- return __wbg_adapter_426(a, state0.b, arg0, arg1);
3217
+ return __wbg_adapter_433(a, state0.b, arg0, arg1);
3184
3218
  } finally {
3185
3219
  state0.a = a;
3186
3220
  }
@@ -3278,8 +3312,8 @@ module.exports.__wbindgen_memory = function() {
3278
3312
  return addHeapObject(ret);
3279
3313
  };
3280
3314
 
3281
- module.exports.__wbindgen_closure_wrapper1512 = function(arg0, arg1, arg2) {
3282
- const ret = makeMutClosure(arg0, arg1, 535, __wbg_adapter_38);
3315
+ module.exports.__wbindgen_closure_wrapper1534 = function(arg0, arg1, arg2) {
3316
+ const ret = makeMutClosure(arg0, arg1, 548, __wbg_adapter_38);
3283
3317
  return addHeapObject(ret);
3284
3318
  };
3285
3319
 
Binary file