saito-wasm 0.2.142 → 0.2.143

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.142"
3
+ version = "0.2.143"
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.142",
3
+ "version": "0.2.143",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
package/pkg/node/index.js CHANGED
@@ -1,27 +1,9 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-7f1590bb0ca208d9/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ce2df217f29fd051/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
8
-
9
- cachedTextDecoder.decode();
10
-
11
- let cachedUint8Memory0 = null;
12
-
13
- function getUint8Memory0() {
14
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
15
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
16
- }
17
- return cachedUint8Memory0;
18
- }
19
-
20
- function getStringFromWasm0(ptr, len) {
21
- ptr = ptr >>> 0;
22
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
23
- }
24
-
25
7
  const heap = new Array(128).fill(undefined);
26
8
 
27
9
  heap.push(undefined, null, true, false);
@@ -51,6 +33,24 @@ function takeObject(idx) {
51
33
  return ret;
52
34
  }
53
35
 
36
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
+
38
+ cachedTextDecoder.decode();
39
+
40
+ let cachedUint8Memory0 = null;
41
+
42
+ function getUint8Memory0() {
43
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
44
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
45
+ }
46
+ return cachedUint8Memory0;
47
+ }
48
+
49
+ function getStringFromWasm0(ptr, len) {
50
+ ptr = ptr >>> 0;
51
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
+ }
53
+
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -2625,8 +2625,8 @@ class WasmWalletSlip {
2625
2625
  }
2626
2626
  module.exports.WasmWalletSlip = WasmWalletSlip;
2627
2627
 
2628
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2629
- const ret = getStringFromWasm0(arg0, arg1);
2628
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2629
+ const ret = BigInt.asUintN(64, arg0);
2630
2630
  return addHeapObject(ret);
2631
2631
  };
2632
2632
 
@@ -2634,13 +2634,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2634
2634
  takeObject(arg0);
2635
2635
  };
2636
2636
 
2637
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2638
- const ret = getObject(arg0);
2637
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2638
+ const ret = WasmBlockchain.__wrap(arg0);
2639
2639
  return addHeapObject(ret);
2640
2640
  };
2641
2641
 
2642
- module.exports.__wbg_wasmslip_new = function(arg0) {
2643
- const ret = WasmSlip.__wrap(arg0);
2642
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2643
+ const ret = getStringFromWasm0(arg0, arg1);
2644
2644
  return addHeapObject(ret);
2645
2645
  };
2646
2646
 
@@ -2649,13 +2649,18 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2649
2649
  return addHeapObject(ret);
2650
2650
  };
2651
2651
 
2652
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2653
- const ret = BigInt.asUintN(64, arg0);
2652
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2653
+ const ret = WasmWallet.__wrap(arg0);
2654
2654
  return addHeapObject(ret);
2655
2655
  };
2656
2656
 
2657
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2658
- const ret = WasmWalletSlip.__wrap(arg0);
2657
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2658
+ const ret = WasmPeer.__wrap(arg0);
2659
+ return addHeapObject(ret);
2660
+ };
2661
+
2662
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2663
+ const ret = getObject(arg0);
2659
2664
  return addHeapObject(ret);
2660
2665
  };
2661
2666
 
@@ -2668,13 +2673,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2668
2673
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2669
2674
  };
2670
2675
 
2671
- module.exports.__wbg_wasmnft_new = function(arg0) {
2672
- const ret = WasmNFT.__wrap(arg0);
2676
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2677
+ const ret = WasmSlip.__wrap(arg0);
2673
2678
  return addHeapObject(ret);
2674
2679
  };
2675
2680
 
2676
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2677
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2681
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2682
+ const ret = WasmWalletSlip.__wrap(arg0);
2678
2683
  return addHeapObject(ret);
2679
2684
  };
2680
2685
 
@@ -2683,18 +2688,13 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
2683
2688
  return addHeapObject(ret);
2684
2689
  };
2685
2690
 
2686
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2687
- const ret = WasmBlockchain.__wrap(arg0);
2688
- return addHeapObject(ret);
2689
- };
2690
-
2691
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2692
- const ret = WasmWallet.__wrap(arg0);
2691
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2692
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2693
2693
  return addHeapObject(ret);
2694
2694
  };
2695
2695
 
2696
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2697
- const ret = WasmPeer.__wrap(arg0);
2696
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2697
+ const ret = WasmNFT.__wrap(arg0);
2698
2698
  return addHeapObject(ret);
2699
2699
  };
2700
2700
 
@@ -2724,15 +2724,15 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
2724
2724
  return addHeapObject(ret);
2725
2725
  };
2726
2726
 
2727
- module.exports.__wbg_sendmessage_497cf7bc714a7aa7 = function(arg0, arg1) {
2727
+ module.exports.__wbg_sendmessage_0090885a89a596c4 = function(arg0, arg1) {
2728
2728
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2729
2729
  };
2730
2730
 
2731
- module.exports.__wbg_sendmessagetoall_f604e79d15e5606a = function(arg0, arg1) {
2731
+ module.exports.__wbg_sendmessagetoall_2f3bd553719e6ed5 = function(arg0, arg1) {
2732
2732
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2733
2733
  };
2734
2734
 
2735
- module.exports.__wbg_connecttopeer_592040d89fff7159 = function() { return handleError(function (arg0, arg1, arg2) {
2735
+ module.exports.__wbg_connecttopeer_2804afab6228a667 = function() { return handleError(function (arg0, arg1, arg2) {
2736
2736
  let deferred0_0;
2737
2737
  let deferred0_1;
2738
2738
  try {
@@ -2745,12 +2745,12 @@ module.exports.__wbg_connecttopeer_592040d89fff7159 = function() { return handle
2745
2745
  }
2746
2746
  }, arguments) };
2747
2747
 
2748
- module.exports.__wbg_disconnectfrompeer_5cda7b572ecaaa41 = function() { return handleError(function (arg0) {
2748
+ module.exports.__wbg_disconnectfrompeer_ff422aa805ce65f2 = function() { return handleError(function (arg0) {
2749
2749
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2750
2750
  return addHeapObject(ret);
2751
2751
  }, arguments) };
2752
2752
 
2753
- module.exports.__wbg_fetchblockfrompeer_733d7c7993ee83ed = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2753
+ module.exports.__wbg_fetchblockfrompeer_f7764eff1f4cf53a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2754
2754
  let deferred0_0;
2755
2755
  let deferred0_1;
2756
2756
  try {
@@ -2763,7 +2763,7 @@ module.exports.__wbg_fetchblockfrompeer_733d7c7993ee83ed = function() { return h
2763
2763
  }
2764
2764
  }, arguments) };
2765
2765
 
2766
- module.exports.__wbg_writevalue_6be3a61825d63a15 = function(arg0, arg1, arg2) {
2766
+ module.exports.__wbg_writevalue_3c13e364ad751c49 = function(arg0, arg1, arg2) {
2767
2767
  let deferred0_0;
2768
2768
  let deferred0_1;
2769
2769
  try {
@@ -2775,7 +2775,7 @@ module.exports.__wbg_writevalue_6be3a61825d63a15 = function(arg0, arg1, arg2) {
2775
2775
  }
2776
2776
  };
2777
2777
 
2778
- module.exports.__wbg_appendvalue_722e04edfa987ff9 = function(arg0, arg1, arg2) {
2778
+ module.exports.__wbg_appendvalue_bd5c1eeec4e50b7e = function(arg0, arg1, arg2) {
2779
2779
  let deferred0_0;
2780
2780
  let deferred0_1;
2781
2781
  try {
@@ -2787,7 +2787,7 @@ module.exports.__wbg_appendvalue_722e04edfa987ff9 = function(arg0, arg1, arg2) {
2787
2787
  }
2788
2788
  };
2789
2789
 
2790
- module.exports.__wbg_flushdata_b2d7addd7c076383 = function(arg0, arg1) {
2790
+ module.exports.__wbg_flushdata_c5c5756f676f2295 = function(arg0, arg1) {
2791
2791
  let deferred0_0;
2792
2792
  let deferred0_1;
2793
2793
  try {
@@ -2799,7 +2799,7 @@ module.exports.__wbg_flushdata_b2d7addd7c076383 = function(arg0, arg1) {
2799
2799
  }
2800
2800
  };
2801
2801
 
2802
- module.exports.__wbg_readvalue_6689c88f4cfd963b = function() { return handleError(function (arg0, arg1) {
2802
+ module.exports.__wbg_readvalue_e11e9cff569027fe = function() { return handleError(function (arg0, arg1) {
2803
2803
  let deferred0_0;
2804
2804
  let deferred0_1;
2805
2805
  try {
@@ -2812,12 +2812,12 @@ module.exports.__wbg_readvalue_6689c88f4cfd963b = function() { return handleErro
2812
2812
  }
2813
2813
  }, arguments) };
2814
2814
 
2815
- module.exports.__wbg_loadblockfilelist_27774b552a1e19e9 = function() { return handleError(function () {
2815
+ module.exports.__wbg_loadblockfilelist_68a1a55fc01f5c15 = function() { return handleError(function () {
2816
2816
  const ret = MsgHandler.load_block_file_list();
2817
2817
  return addHeapObject(ret);
2818
2818
  }, arguments) };
2819
2819
 
2820
- module.exports.__wbg_isexistingfile_5eb95bb7f59369b7 = function() { return handleError(function (arg0, arg1) {
2820
+ module.exports.__wbg_isexistingfile_44951b9166d4ded2 = function() { return handleError(function (arg0, arg1) {
2821
2821
  let deferred0_0;
2822
2822
  let deferred0_1;
2823
2823
  try {
@@ -2830,7 +2830,7 @@ module.exports.__wbg_isexistingfile_5eb95bb7f59369b7 = function() { return handl
2830
2830
  }
2831
2831
  }, arguments) };
2832
2832
 
2833
- module.exports.__wbg_removevalue_71bbacce3785b90b = function() { return handleError(function (arg0, arg1) {
2833
+ module.exports.__wbg_removevalue_ae2e19d6831e694f = function() { return handleError(function (arg0, arg1) {
2834
2834
  let deferred0_0;
2835
2835
  let deferred0_1;
2836
2836
  try {
@@ -2843,7 +2843,7 @@ module.exports.__wbg_removevalue_71bbacce3785b90b = function() { return handleEr
2843
2843
  }
2844
2844
  }, arguments) };
2845
2845
 
2846
- module.exports.__wbg_ensureblockdirectoryexists_99ad88fd41b26bf2 = function() { return handleError(function (arg0, arg1) {
2846
+ module.exports.__wbg_ensureblockdirectoryexists_faa3b4af0e4e8f7e = function() { return handleError(function (arg0, arg1) {
2847
2847
  let deferred0_0;
2848
2848
  let deferred0_1;
2849
2849
  try {
@@ -2855,19 +2855,19 @@ module.exports.__wbg_ensureblockdirectoryexists_99ad88fd41b26bf2 = function() {
2855
2855
  }
2856
2856
  }, arguments) };
2857
2857
 
2858
- module.exports.__wbg_processapicall_3bf357721e143307 = function(arg0, arg1, arg2) {
2858
+ module.exports.__wbg_processapicall_7e25be598188b8df = function(arg0, arg1, arg2) {
2859
2859
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2860
2860
  };
2861
2861
 
2862
- module.exports.__wbg_processapisuccess_48cc42b8a3668aa8 = function(arg0, arg1, arg2) {
2862
+ module.exports.__wbg_processapisuccess_a3976990373fee72 = function(arg0, arg1, arg2) {
2863
2863
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2864
2864
  };
2865
2865
 
2866
- module.exports.__wbg_processapierror_014fba792b70f2b4 = function(arg0, arg1, arg2) {
2866
+ module.exports.__wbg_processapierror_6612d2c41341fc03 = function(arg0, arg1, arg2) {
2867
2867
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2868
2868
  };
2869
2869
 
2870
- module.exports.__wbg_sendinterfaceevent_af48f2a7113d1f34 = function(arg0, arg1, arg2, arg3, arg4) {
2870
+ module.exports.__wbg_sendinterfaceevent_2d90bba676f057ce = function(arg0, arg1, arg2, arg3, arg4) {
2871
2871
  let deferred0_0;
2872
2872
  let deferred0_1;
2873
2873
  let deferred1_0;
@@ -2884,7 +2884,7 @@ module.exports.__wbg_sendinterfaceevent_af48f2a7113d1f34 = function(arg0, arg1,
2884
2884
  }
2885
2885
  };
2886
2886
 
2887
- module.exports.__wbg_sendblocksuccess_256d0e0c93cde0d7 = function(arg0, arg1, arg2) {
2887
+ module.exports.__wbg_sendblocksuccess_e9cb95a75798cb0e = function(arg0, arg1, arg2) {
2888
2888
  let deferred0_0;
2889
2889
  let deferred0_1;
2890
2890
  try {
@@ -2896,11 +2896,11 @@ module.exports.__wbg_sendblocksuccess_256d0e0c93cde0d7 = function(arg0, arg1, ar
2896
2896
  }
2897
2897
  };
2898
2898
 
2899
- module.exports.__wbg_sendwalletupdate_6134af0f6adc59bb = function() {
2899
+ module.exports.__wbg_sendwalletupdate_e6c91e4bbc293fa3 = function() {
2900
2900
  MsgHandler.send_wallet_update();
2901
2901
  };
2902
2902
 
2903
- module.exports.__wbg_sendnewversionalert_fbce7c25f848b7b4 = function(arg0, arg1, arg2) {
2903
+ module.exports.__wbg_sendnewversionalert_b22f0f76739f3403 = function(arg0, arg1, arg2) {
2904
2904
  let deferred0_0;
2905
2905
  let deferred0_1;
2906
2906
  try {
@@ -2912,23 +2912,23 @@ module.exports.__wbg_sendnewversionalert_fbce7c25f848b7b4 = function(arg0, arg1,
2912
2912
  }
2913
2913
  };
2914
2914
 
2915
- module.exports.__wbg_sendblockfetchstatusevent_0634f0648575ea1f = function(arg0) {
2915
+ module.exports.__wbg_sendblockfetchstatusevent_5539a501ac099138 = function(arg0) {
2916
2916
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2917
2917
  };
2918
2918
 
2919
- module.exports.__wbg_sendnewchaindetectedevent_fbb6573a6e28adf6 = function() {
2919
+ module.exports.__wbg_sendnewchaindetectedevent_513342d04d6d26f1 = function() {
2920
2920
  MsgHandler.send_new_chain_detected_event();
2921
2921
  };
2922
2922
 
2923
- module.exports.__wbg_savewallet_476e95799043222f = function() {
2923
+ module.exports.__wbg_savewallet_04aa5c09bb45b35b = function() {
2924
2924
  MsgHandler.save_wallet();
2925
2925
  };
2926
2926
 
2927
- module.exports.__wbg_loadwallet_9970408ce73fb059 = function() {
2927
+ module.exports.__wbg_loadwallet_2c38dcb556c401d7 = function() {
2928
2928
  MsgHandler.load_wallet();
2929
2929
  };
2930
2930
 
2931
- module.exports.__wbg_getmyservices_091723fee826caff = function() {
2931
+ module.exports.__wbg_getmyservices_b3266683ec7ef05c = function() {
2932
2932
  const ret = MsgHandler.get_my_services();
2933
2933
  _assertClass(ret, WasmPeerServiceList);
2934
2934
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.142",
3
+ "version": "0.2.143",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "cross-env": "7.0.3",
13
- "node-fetch": "3.3.0"
12
+ "node-fetch": "3.3.0",
13
+ "cross-env": "7.0.3"
14
14
  }
15
15
  }
package/pkg/web/index.js CHANGED
@@ -1,25 +1,7 @@
1
- import { MsgHandler } from './snippets/saito-wasm-7f1590bb0ca208d9/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-ce2df217f29fd051/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
5
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
6
-
7
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
8
-
9
- let cachedUint8Memory0 = null;
10
-
11
- function getUint8Memory0() {
12
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
13
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
14
- }
15
- return cachedUint8Memory0;
16
- }
17
-
18
- function getStringFromWasm0(ptr, len) {
19
- ptr = ptr >>> 0;
20
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
21
- }
22
-
23
5
  const heap = new Array(128).fill(undefined);
24
6
 
25
7
  heap.push(undefined, null, true, false);
@@ -49,6 +31,24 @@ function takeObject(idx) {
49
31
  return ret;
50
32
  }
51
33
 
34
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
+
36
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
37
+
38
+ let cachedUint8Memory0 = null;
39
+
40
+ function getUint8Memory0() {
41
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
42
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
43
+ }
44
+ return cachedUint8Memory0;
45
+ }
46
+
47
+ function getStringFromWasm0(ptr, len) {
48
+ ptr = ptr >>> 0;
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
52
52
  let WASM_VECTOR_LEN = 0;
53
53
 
54
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -2641,31 +2641,35 @@ async function __wbg_load(module, imports) {
2641
2641
  function __wbg_get_imports() {
2642
2642
  const imports = {};
2643
2643
  imports.wbg = {};
2644
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2645
- const ret = getStringFromWasm0(arg0, arg1);
2644
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2645
+ const ret = BigInt.asUintN(64, arg0);
2646
2646
  return addHeapObject(ret);
2647
2647
  };
2648
2648
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2649
2649
  takeObject(arg0);
2650
2650
  };
2651
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2652
- const ret = getObject(arg0);
2651
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2652
+ const ret = WasmBlockchain.__wrap(arg0);
2653
2653
  return addHeapObject(ret);
2654
2654
  };
2655
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2656
- const ret = WasmSlip.__wrap(arg0);
2655
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2656
+ const ret = getStringFromWasm0(arg0, arg1);
2657
2657
  return addHeapObject(ret);
2658
2658
  };
2659
2659
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2660
2660
  const ret = WasmTransaction.__wrap(arg0);
2661
2661
  return addHeapObject(ret);
2662
2662
  };
2663
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2664
- const ret = BigInt.asUintN(64, arg0);
2663
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2664
+ const ret = WasmWallet.__wrap(arg0);
2665
2665
  return addHeapObject(ret);
2666
2666
  };
2667
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2668
- const ret = WasmWalletSlip.__wrap(arg0);
2667
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2668
+ const ret = WasmPeer.__wrap(arg0);
2669
+ return addHeapObject(ret);
2670
+ };
2671
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2672
+ const ret = getObject(arg0);
2669
2673
  return addHeapObject(ret);
2670
2674
  };
2671
2675
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -2676,28 +2680,24 @@ function __wbg_get_imports() {
2676
2680
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2677
2681
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2678
2682
  };
2679
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2680
- const ret = WasmNFT.__wrap(arg0);
2683
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2684
+ const ret = WasmSlip.__wrap(arg0);
2681
2685
  return addHeapObject(ret);
2682
2686
  };
2683
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2684
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2687
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2688
+ const ret = WasmWalletSlip.__wrap(arg0);
2685
2689
  return addHeapObject(ret);
2686
2690
  };
2687
2691
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2688
2692
  const ret = WasmBlock.__wrap(arg0);
2689
2693
  return addHeapObject(ret);
2690
2694
  };
2691
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2692
- const ret = WasmBlockchain.__wrap(arg0);
2693
- return addHeapObject(ret);
2694
- };
2695
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2696
- const ret = WasmWallet.__wrap(arg0);
2695
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2696
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2697
2697
  return addHeapObject(ret);
2698
2698
  };
2699
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2700
- const ret = WasmPeer.__wrap(arg0);
2699
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2700
+ const ret = WasmNFT.__wrap(arg0);
2701
2701
  return addHeapObject(ret);
2702
2702
  };
2703
2703
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
@@ -2721,13 +2721,13 @@ function __wbg_get_imports() {
2721
2721
  const ret = WasmHop.__wrap(arg0);
2722
2722
  return addHeapObject(ret);
2723
2723
  };
2724
- imports.wbg.__wbg_sendmessage_497cf7bc714a7aa7 = function(arg0, arg1) {
2724
+ imports.wbg.__wbg_sendmessage_0090885a89a596c4 = function(arg0, arg1) {
2725
2725
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2726
2726
  };
2727
- imports.wbg.__wbg_sendmessagetoall_f604e79d15e5606a = function(arg0, arg1) {
2727
+ imports.wbg.__wbg_sendmessagetoall_2f3bd553719e6ed5 = function(arg0, arg1) {
2728
2728
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2729
2729
  };
2730
- imports.wbg.__wbg_connecttopeer_592040d89fff7159 = function() { return handleError(function (arg0, arg1, arg2) {
2730
+ imports.wbg.__wbg_connecttopeer_2804afab6228a667 = function() { return handleError(function (arg0, arg1, arg2) {
2731
2731
  let deferred0_0;
2732
2732
  let deferred0_1;
2733
2733
  try {
@@ -2739,11 +2739,11 @@ function __wbg_get_imports() {
2739
2739
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2740
2740
  }
2741
2741
  }, arguments) };
2742
- imports.wbg.__wbg_disconnectfrompeer_5cda7b572ecaaa41 = function() { return handleError(function (arg0) {
2742
+ imports.wbg.__wbg_disconnectfrompeer_ff422aa805ce65f2 = function() { return handleError(function (arg0) {
2743
2743
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2744
2744
  return addHeapObject(ret);
2745
2745
  }, arguments) };
2746
- imports.wbg.__wbg_fetchblockfrompeer_733d7c7993ee83ed = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2746
+ imports.wbg.__wbg_fetchblockfrompeer_f7764eff1f4cf53a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2747
2747
  let deferred0_0;
2748
2748
  let deferred0_1;
2749
2749
  try {
@@ -2755,7 +2755,7 @@ function __wbg_get_imports() {
2755
2755
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2756
2756
  }
2757
2757
  }, arguments) };
2758
- imports.wbg.__wbg_writevalue_6be3a61825d63a15 = function(arg0, arg1, arg2) {
2758
+ imports.wbg.__wbg_writevalue_3c13e364ad751c49 = function(arg0, arg1, arg2) {
2759
2759
  let deferred0_0;
2760
2760
  let deferred0_1;
2761
2761
  try {
@@ -2766,7 +2766,7 @@ function __wbg_get_imports() {
2766
2766
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2767
2767
  }
2768
2768
  };
2769
- imports.wbg.__wbg_appendvalue_722e04edfa987ff9 = function(arg0, arg1, arg2) {
2769
+ imports.wbg.__wbg_appendvalue_bd5c1eeec4e50b7e = function(arg0, arg1, arg2) {
2770
2770
  let deferred0_0;
2771
2771
  let deferred0_1;
2772
2772
  try {
@@ -2777,7 +2777,7 @@ function __wbg_get_imports() {
2777
2777
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2778
2778
  }
2779
2779
  };
2780
- imports.wbg.__wbg_flushdata_b2d7addd7c076383 = function(arg0, arg1) {
2780
+ imports.wbg.__wbg_flushdata_c5c5756f676f2295 = function(arg0, arg1) {
2781
2781
  let deferred0_0;
2782
2782
  let deferred0_1;
2783
2783
  try {
@@ -2788,7 +2788,7 @@ function __wbg_get_imports() {
2788
2788
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2789
2789
  }
2790
2790
  };
2791
- imports.wbg.__wbg_readvalue_6689c88f4cfd963b = function() { return handleError(function (arg0, arg1) {
2791
+ imports.wbg.__wbg_readvalue_e11e9cff569027fe = function() { return handleError(function (arg0, arg1) {
2792
2792
  let deferred0_0;
2793
2793
  let deferred0_1;
2794
2794
  try {
@@ -2800,11 +2800,11 @@ function __wbg_get_imports() {
2800
2800
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2801
2801
  }
2802
2802
  }, arguments) };
2803
- imports.wbg.__wbg_loadblockfilelist_27774b552a1e19e9 = function() { return handleError(function () {
2803
+ imports.wbg.__wbg_loadblockfilelist_68a1a55fc01f5c15 = function() { return handleError(function () {
2804
2804
  const ret = MsgHandler.load_block_file_list();
2805
2805
  return addHeapObject(ret);
2806
2806
  }, arguments) };
2807
- imports.wbg.__wbg_isexistingfile_5eb95bb7f59369b7 = function() { return handleError(function (arg0, arg1) {
2807
+ imports.wbg.__wbg_isexistingfile_44951b9166d4ded2 = function() { return handleError(function (arg0, arg1) {
2808
2808
  let deferred0_0;
2809
2809
  let deferred0_1;
2810
2810
  try {
@@ -2816,7 +2816,7 @@ function __wbg_get_imports() {
2816
2816
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2817
2817
  }
2818
2818
  }, arguments) };
2819
- imports.wbg.__wbg_removevalue_71bbacce3785b90b = function() { return handleError(function (arg0, arg1) {
2819
+ imports.wbg.__wbg_removevalue_ae2e19d6831e694f = function() { return handleError(function (arg0, arg1) {
2820
2820
  let deferred0_0;
2821
2821
  let deferred0_1;
2822
2822
  try {
@@ -2828,7 +2828,7 @@ function __wbg_get_imports() {
2828
2828
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2829
2829
  }
2830
2830
  }, arguments) };
2831
- imports.wbg.__wbg_ensureblockdirectoryexists_99ad88fd41b26bf2 = function() { return handleError(function (arg0, arg1) {
2831
+ imports.wbg.__wbg_ensureblockdirectoryexists_faa3b4af0e4e8f7e = function() { return handleError(function (arg0, arg1) {
2832
2832
  let deferred0_0;
2833
2833
  let deferred0_1;
2834
2834
  try {
@@ -2839,16 +2839,16 @@ function __wbg_get_imports() {
2839
2839
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2840
2840
  }
2841
2841
  }, arguments) };
2842
- imports.wbg.__wbg_processapicall_3bf357721e143307 = function(arg0, arg1, arg2) {
2842
+ imports.wbg.__wbg_processapicall_7e25be598188b8df = function(arg0, arg1, arg2) {
2843
2843
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2844
2844
  };
2845
- imports.wbg.__wbg_processapisuccess_48cc42b8a3668aa8 = function(arg0, arg1, arg2) {
2845
+ imports.wbg.__wbg_processapisuccess_a3976990373fee72 = function(arg0, arg1, arg2) {
2846
2846
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2847
2847
  };
2848
- imports.wbg.__wbg_processapierror_014fba792b70f2b4 = function(arg0, arg1, arg2) {
2848
+ imports.wbg.__wbg_processapierror_6612d2c41341fc03 = function(arg0, arg1, arg2) {
2849
2849
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2850
2850
  };
2851
- imports.wbg.__wbg_sendinterfaceevent_af48f2a7113d1f34 = function(arg0, arg1, arg2, arg3, arg4) {
2851
+ imports.wbg.__wbg_sendinterfaceevent_2d90bba676f057ce = function(arg0, arg1, arg2, arg3, arg4) {
2852
2852
  let deferred0_0;
2853
2853
  let deferred0_1;
2854
2854
  let deferred1_0;
@@ -2864,7 +2864,7 @@ function __wbg_get_imports() {
2864
2864
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2865
2865
  }
2866
2866
  };
2867
- imports.wbg.__wbg_sendblocksuccess_256d0e0c93cde0d7 = function(arg0, arg1, arg2) {
2867
+ imports.wbg.__wbg_sendblocksuccess_e9cb95a75798cb0e = function(arg0, arg1, arg2) {
2868
2868
  let deferred0_0;
2869
2869
  let deferred0_1;
2870
2870
  try {
@@ -2875,10 +2875,10 @@ function __wbg_get_imports() {
2875
2875
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2876
2876
  }
2877
2877
  };
2878
- imports.wbg.__wbg_sendwalletupdate_6134af0f6adc59bb = function() {
2878
+ imports.wbg.__wbg_sendwalletupdate_e6c91e4bbc293fa3 = function() {
2879
2879
  MsgHandler.send_wallet_update();
2880
2880
  };
2881
- imports.wbg.__wbg_sendnewversionalert_fbce7c25f848b7b4 = function(arg0, arg1, arg2) {
2881
+ imports.wbg.__wbg_sendnewversionalert_b22f0f76739f3403 = function(arg0, arg1, arg2) {
2882
2882
  let deferred0_0;
2883
2883
  let deferred0_1;
2884
2884
  try {
@@ -2889,19 +2889,19 @@ function __wbg_get_imports() {
2889
2889
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2890
2890
  }
2891
2891
  };
2892
- imports.wbg.__wbg_sendblockfetchstatusevent_0634f0648575ea1f = function(arg0) {
2892
+ imports.wbg.__wbg_sendblockfetchstatusevent_5539a501ac099138 = function(arg0) {
2893
2893
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2894
2894
  };
2895
- imports.wbg.__wbg_sendnewchaindetectedevent_fbb6573a6e28adf6 = function() {
2895
+ imports.wbg.__wbg_sendnewchaindetectedevent_513342d04d6d26f1 = function() {
2896
2896
  MsgHandler.send_new_chain_detected_event();
2897
2897
  };
2898
- imports.wbg.__wbg_savewallet_476e95799043222f = function() {
2898
+ imports.wbg.__wbg_savewallet_04aa5c09bb45b35b = function() {
2899
2899
  MsgHandler.save_wallet();
2900
2900
  };
2901
- imports.wbg.__wbg_loadwallet_9970408ce73fb059 = function() {
2901
+ imports.wbg.__wbg_loadwallet_2c38dcb556c401d7 = function() {
2902
2902
  MsgHandler.load_wallet();
2903
2903
  };
2904
- imports.wbg.__wbg_getmyservices_091723fee826caff = function() {
2904
+ imports.wbg.__wbg_getmyservices_b3266683ec7ef05c = function() {
2905
2905
  const ret = MsgHandler.get_my_services();
2906
2906
  _assertClass(ret, WasmPeerServiceList);
2907
2907
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.142",
3
+ "version": "0.2.143",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",