saito-wasm 0.2.150 → 0.2.151

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.150"
3
+ version = "0.2.151"
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.150",
3
+ "version": "0.2.151",
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,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-49106e2833f385b3/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-c0f97dc65c0fe673/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -24,7 +24,9 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- let WASM_VECTOR_LEN = 0;
27
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
+
29
+ cachedTextDecoder.decode();
28
30
 
29
31
  let cachedUint8Memory0 = null;
30
32
 
@@ -35,6 +37,22 @@ function getUint8Memory0() {
35
37
  return cachedUint8Memory0;
36
38
  }
37
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
+
38
56
  let cachedTextEncoder = new TextEncoder('utf-8');
39
57
 
40
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -102,24 +120,6 @@ function getInt32Memory0() {
102
120
  return cachedInt32Memory0;
103
121
  }
104
122
 
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() {
@@ -2626,31 +2626,17 @@ class WasmWalletSlip {
2626
2626
  }
2627
2627
  module.exports.WasmWalletSlip = WasmWalletSlip;
2628
2628
 
2629
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2630
- const ret = WasmBlockchain.__wrap(arg0);
2631
- return addHeapObject(ret);
2632
- };
2633
-
2634
2629
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2635
2630
  takeObject(arg0);
2636
2631
  };
2637
2632
 
2638
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2639
- const obj = getObject(arg1);
2640
- const ret = typeof(obj) === 'string' ? obj : undefined;
2641
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2642
- var len1 = WASM_VECTOR_LEN;
2643
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2644
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2645
- };
2646
-
2647
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2648
- const ret = BigInt.asUintN(64, arg0);
2633
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2634
+ const ret = getStringFromWasm0(arg0, arg1);
2649
2635
  return addHeapObject(ret);
2650
2636
  };
2651
2637
 
2652
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2653
- const ret = getStringFromWasm0(arg0, arg1);
2638
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2639
+ const ret = WasmWalletSlip.__wrap(arg0);
2654
2640
  return addHeapObject(ret);
2655
2641
  };
2656
2642
 
@@ -2659,55 +2645,69 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2659
2645
  return addHeapObject(ret);
2660
2646
  };
2661
2647
 
2648
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2649
+ const ret = BigInt.asUintN(64, arg0);
2650
+ return addHeapObject(ret);
2651
+ };
2652
+
2653
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2654
+ const ret = WasmPeer.__wrap(arg0);
2655
+ return addHeapObject(ret);
2656
+ };
2657
+
2662
2658
  module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2663
2659
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2664
2660
  return addHeapObject(ret);
2665
2661
  };
2666
2662
 
2667
- module.exports.__wbg_wasmblock_new = function(arg0) {
2668
- const ret = WasmBlock.__wrap(arg0);
2663
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2664
+ const ret = WasmNFT.__wrap(arg0);
2669
2665
  return addHeapObject(ret);
2670
2666
  };
2671
2667
 
2672
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2673
- const ret = getObject(arg0);
2674
- return addHeapObject(ret);
2668
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2669
+ const obj = getObject(arg1);
2670
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2671
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2672
+ var len1 = WASM_VECTOR_LEN;
2673
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2674
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2675
2675
  };
2676
2676
 
2677
- module.exports.__wbg_wasmslip_new = function(arg0) {
2678
- const ret = WasmSlip.__wrap(arg0);
2677
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2678
+ const ret = getObject(arg0);
2679
2679
  return addHeapObject(ret);
2680
2680
  };
2681
2681
 
2682
- module.exports.__wbg_wasmnft_new = function(arg0) {
2683
- const ret = WasmNFT.__wrap(arg0);
2682
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2683
+ const ret = WasmWallet.__wrap(arg0);
2684
2684
  return addHeapObject(ret);
2685
2685
  };
2686
2686
 
2687
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2688
- const ret = WasmPeer.__wrap(arg0);
2687
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2688
+ const ret = WasmBlock.__wrap(arg0);
2689
2689
  return addHeapObject(ret);
2690
2690
  };
2691
2691
 
2692
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2693
- const ret = WasmWalletSlip.__wrap(arg0);
2692
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2693
+ const ret = WasmSlip.__wrap(arg0);
2694
2694
  return addHeapObject(ret);
2695
2695
  };
2696
2696
 
2697
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2698
- const ret = WasmWallet.__wrap(arg0);
2697
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2698
+ const ret = WasmBlockchain.__wrap(arg0);
2699
2699
  return addHeapObject(ret);
2700
2700
  };
2701
2701
 
2702
- module.exports.__wbg_sendmessage_9e9bbb3242c85e6c = function(arg0, arg1) {
2702
+ module.exports.__wbg_sendmessage_4bd42efae2b7631c = function(arg0, arg1) {
2703
2703
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2704
2704
  };
2705
2705
 
2706
- module.exports.__wbg_sendmessagetoall_f536e2b844870261 = function(arg0, arg1) {
2706
+ module.exports.__wbg_sendmessagetoall_13bf055d2d9f098b = function(arg0, arg1) {
2707
2707
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2708
2708
  };
2709
2709
 
2710
- module.exports.__wbg_connecttopeer_9483bb0e3adbf5aa = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ module.exports.__wbg_connecttopeer_8fa60f0c1f6d7ea5 = function() { return handleError(function (arg0, arg1, arg2) {
2711
2711
  let deferred0_0;
2712
2712
  let deferred0_1;
2713
2713
  try {
@@ -2720,12 +2720,12 @@ module.exports.__wbg_connecttopeer_9483bb0e3adbf5aa = function() { return handle
2720
2720
  }
2721
2721
  }, arguments) };
2722
2722
 
2723
- module.exports.__wbg_disconnectfrompeer_4d2682e634522ca3 = function() { return handleError(function (arg0) {
2723
+ module.exports.__wbg_disconnectfrompeer_1b7c06890e6112b9 = function() { return handleError(function (arg0) {
2724
2724
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2725
2725
  return addHeapObject(ret);
2726
2726
  }, arguments) };
2727
2727
 
2728
- module.exports.__wbg_fetchblockfrompeer_24d53776652dbe92 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2728
+ module.exports.__wbg_fetchblockfrompeer_ca92c3d6a1c81e57 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2729
2729
  let deferred0_0;
2730
2730
  let deferred0_1;
2731
2731
  try {
@@ -2738,7 +2738,7 @@ module.exports.__wbg_fetchblockfrompeer_24d53776652dbe92 = function() { return h
2738
2738
  }
2739
2739
  }, arguments) };
2740
2740
 
2741
- module.exports.__wbg_writevalue_7efa2f90c4472e61 = function(arg0, arg1, arg2) {
2741
+ module.exports.__wbg_writevalue_3b1b57d6d6fb4d00 = function(arg0, arg1, arg2) {
2742
2742
  let deferred0_0;
2743
2743
  let deferred0_1;
2744
2744
  try {
@@ -2750,7 +2750,7 @@ module.exports.__wbg_writevalue_7efa2f90c4472e61 = function(arg0, arg1, arg2) {
2750
2750
  }
2751
2751
  };
2752
2752
 
2753
- module.exports.__wbg_appendvalue_3afb56ae15ca417a = function(arg0, arg1, arg2) {
2753
+ module.exports.__wbg_appendvalue_993c9bab88cedc07 = function(arg0, arg1, arg2) {
2754
2754
  let deferred0_0;
2755
2755
  let deferred0_1;
2756
2756
  try {
@@ -2762,7 +2762,7 @@ module.exports.__wbg_appendvalue_3afb56ae15ca417a = function(arg0, arg1, arg2) {
2762
2762
  }
2763
2763
  };
2764
2764
 
2765
- module.exports.__wbg_flushdata_54b99b6841d7f5db = function(arg0, arg1) {
2765
+ module.exports.__wbg_flushdata_0a3a9d2f6fb720ec = function(arg0, arg1) {
2766
2766
  let deferred0_0;
2767
2767
  let deferred0_1;
2768
2768
  try {
@@ -2774,7 +2774,7 @@ module.exports.__wbg_flushdata_54b99b6841d7f5db = function(arg0, arg1) {
2774
2774
  }
2775
2775
  };
2776
2776
 
2777
- module.exports.__wbg_readvalue_b7b02152d98b7f49 = function() { return handleError(function (arg0, arg1) {
2777
+ module.exports.__wbg_readvalue_3adb91dbccd90371 = function() { return handleError(function (arg0, arg1) {
2778
2778
  let deferred0_0;
2779
2779
  let deferred0_1;
2780
2780
  try {
@@ -2787,12 +2787,12 @@ module.exports.__wbg_readvalue_b7b02152d98b7f49 = function() { return handleErro
2787
2787
  }
2788
2788
  }, arguments) };
2789
2789
 
2790
- module.exports.__wbg_loadblockfilelist_ff8d452cf1e44cfe = function() { return handleError(function () {
2790
+ module.exports.__wbg_loadblockfilelist_5db6c3da59b26fc2 = function() { return handleError(function () {
2791
2791
  const ret = MsgHandler.load_block_file_list();
2792
2792
  return addHeapObject(ret);
2793
2793
  }, arguments) };
2794
2794
 
2795
- module.exports.__wbg_isexistingfile_8113caf5846087d0 = function() { return handleError(function (arg0, arg1) {
2795
+ module.exports.__wbg_isexistingfile_fc3e358c05563c3d = function() { return handleError(function (arg0, arg1) {
2796
2796
  let deferred0_0;
2797
2797
  let deferred0_1;
2798
2798
  try {
@@ -2805,7 +2805,7 @@ module.exports.__wbg_isexistingfile_8113caf5846087d0 = function() { return handl
2805
2805
  }
2806
2806
  }, arguments) };
2807
2807
 
2808
- module.exports.__wbg_removevalue_12f9054dfd1b4d3c = function() { return handleError(function (arg0, arg1) {
2808
+ module.exports.__wbg_removevalue_921190e939239d08 = function() { return handleError(function (arg0, arg1) {
2809
2809
  let deferred0_0;
2810
2810
  let deferred0_1;
2811
2811
  try {
@@ -2818,7 +2818,7 @@ module.exports.__wbg_removevalue_12f9054dfd1b4d3c = function() { return handleEr
2818
2818
  }
2819
2819
  }, arguments) };
2820
2820
 
2821
- module.exports.__wbg_ensureblockdirectoryexists_6799847759e9e310 = function() { return handleError(function (arg0, arg1) {
2821
+ module.exports.__wbg_ensureblockdirectoryexists_1b114b9e24c66a36 = function() { return handleError(function (arg0, arg1) {
2822
2822
  let deferred0_0;
2823
2823
  let deferred0_1;
2824
2824
  try {
@@ -2830,19 +2830,19 @@ module.exports.__wbg_ensureblockdirectoryexists_6799847759e9e310 = function() {
2830
2830
  }
2831
2831
  }, arguments) };
2832
2832
 
2833
- module.exports.__wbg_processapicall_3d2dde8057754412 = function(arg0, arg1, arg2) {
2833
+ module.exports.__wbg_processapicall_31b64cac4750c247 = function(arg0, arg1, arg2) {
2834
2834
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2835
2835
  };
2836
2836
 
2837
- module.exports.__wbg_processapisuccess_f33f84945040b007 = function(arg0, arg1, arg2) {
2837
+ module.exports.__wbg_processapisuccess_ab8f708b964cbfb5 = function(arg0, arg1, arg2) {
2838
2838
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2839
2839
  };
2840
2840
 
2841
- module.exports.__wbg_processapierror_65ccad25ba87522a = function(arg0, arg1, arg2) {
2841
+ module.exports.__wbg_processapierror_6306abe6750b78cc = function(arg0, arg1, arg2) {
2842
2842
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2843
2843
  };
2844
2844
 
2845
- module.exports.__wbg_sendinterfaceevent_644d9003866bae83 = function(arg0, arg1, arg2, arg3, arg4) {
2845
+ module.exports.__wbg_sendinterfaceevent_2de2f07e226fdad0 = function(arg0, arg1, arg2, arg3, arg4) {
2846
2846
  let deferred0_0;
2847
2847
  let deferred0_1;
2848
2848
  let deferred1_0;
@@ -2859,7 +2859,7 @@ module.exports.__wbg_sendinterfaceevent_644d9003866bae83 = function(arg0, arg1,
2859
2859
  }
2860
2860
  };
2861
2861
 
2862
- module.exports.__wbg_sendblocksuccess_773e872a589c1fd4 = function(arg0, arg1, arg2) {
2862
+ module.exports.__wbg_sendblocksuccess_3bcb7fa512506559 = function(arg0, arg1, arg2) {
2863
2863
  let deferred0_0;
2864
2864
  let deferred0_1;
2865
2865
  try {
@@ -2871,11 +2871,11 @@ module.exports.__wbg_sendblocksuccess_773e872a589c1fd4 = function(arg0, arg1, ar
2871
2871
  }
2872
2872
  };
2873
2873
 
2874
- module.exports.__wbg_sendwalletupdate_1b9a81c123e0980a = function() {
2874
+ module.exports.__wbg_sendwalletupdate_6061327eb9aad2cd = function() {
2875
2875
  MsgHandler.send_wallet_update();
2876
2876
  };
2877
2877
 
2878
- module.exports.__wbg_sendnewversionalert_ca577241c8a51367 = function(arg0, arg1, arg2) {
2878
+ module.exports.__wbg_sendnewversionalert_502af8825fd7a2e2 = function(arg0, arg1, arg2) {
2879
2879
  let deferred0_0;
2880
2880
  let deferred0_1;
2881
2881
  try {
@@ -2887,23 +2887,23 @@ module.exports.__wbg_sendnewversionalert_ca577241c8a51367 = function(arg0, arg1,
2887
2887
  }
2888
2888
  };
2889
2889
 
2890
- module.exports.__wbg_sendblockfetchstatusevent_2c1d206707e243f6 = function(arg0) {
2890
+ module.exports.__wbg_sendblockfetchstatusevent_aa178bd72724d989 = function(arg0) {
2891
2891
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2892
2892
  };
2893
2893
 
2894
- module.exports.__wbg_sendnewchaindetectedevent_08996a56be55a03a = function() {
2894
+ module.exports.__wbg_sendnewchaindetectedevent_c42301d1aaccab57 = function() {
2895
2895
  MsgHandler.send_new_chain_detected_event();
2896
2896
  };
2897
2897
 
2898
- module.exports.__wbg_savewallet_9a697cbfd1dd8cc6 = function() {
2898
+ module.exports.__wbg_savewallet_569f307690c44ae7 = function() {
2899
2899
  MsgHandler.save_wallet();
2900
2900
  };
2901
2901
 
2902
- module.exports.__wbg_loadwallet_89f64d328ea4e9f9 = function() {
2902
+ module.exports.__wbg_loadwallet_d7944bfb6a41f8d2 = function() {
2903
2903
  MsgHandler.load_wallet();
2904
2904
  };
2905
2905
 
2906
- module.exports.__wbg_getmyservices_c999ea69af12f146 = function() {
2906
+ module.exports.__wbg_getmyservices_692bf96233db6868 = function() {
2907
2907
  const ret = MsgHandler.get_my_services();
2908
2908
  _assertClass(ret, WasmPeerServiceList);
2909
2909
  var ptr1 = ret.__destroy_into_raw();
@@ -3317,7 +3317,7 @@ module.exports.__wbindgen_memory = function() {
3317
3317
  return addHeapObject(ret);
3318
3318
  };
3319
3319
 
3320
- module.exports.__wbindgen_closure_wrapper1559 = function(arg0, arg1, arg2) {
3320
+ module.exports.__wbindgen_closure_wrapper1560 = function(arg0, arg1, arg2) {
3321
3321
  const ret = makeMutClosure(arg0, arg1, 555, __wbg_adapter_38);
3322
3322
  return addHeapObject(ret);
3323
3323
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.150",
3
+ "version": "0.2.151",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-49106e2833f385b3/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-c0f97dc65c0fe673/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,7 +22,9 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
- let WASM_VECTOR_LEN = 0;
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(); };
26
28
 
27
29
  let cachedUint8Memory0 = null;
28
30
 
@@ -33,6 +35,22 @@ function getUint8Memory0() {
33
35
  return cachedUint8Memory0;
34
36
  }
35
37
 
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
+
36
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
37
55
 
38
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -100,24 +118,6 @@ function getInt32Memory0() {
100
118
  return cachedInt32Memory0;
101
119
  }
102
120
 
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() {
@@ -2642,72 +2642,72 @@ async function __wbg_load(module, imports) {
2642
2642
  function __wbg_get_imports() {
2643
2643
  const imports = {};
2644
2644
  imports.wbg = {};
2645
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2646
- const ret = WasmBlockchain.__wrap(arg0);
2647
- return addHeapObject(ret);
2648
- };
2649
2645
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2650
2646
  takeObject(arg0);
2651
2647
  };
2652
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2653
- const obj = getObject(arg1);
2654
- const ret = typeof(obj) === 'string' ? obj : undefined;
2655
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2656
- var len1 = WASM_VECTOR_LEN;
2657
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2658
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2659
- };
2660
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2661
- const ret = BigInt.asUintN(64, arg0);
2662
- return addHeapObject(ret);
2663
- };
2664
2648
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2665
2649
  const ret = getStringFromWasm0(arg0, arg1);
2666
2650
  return addHeapObject(ret);
2667
2651
  };
2652
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2653
+ const ret = WasmWalletSlip.__wrap(arg0);
2654
+ return addHeapObject(ret);
2655
+ };
2668
2656
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2669
2657
  const ret = WasmTransaction.__wrap(arg0);
2670
2658
  return addHeapObject(ret);
2671
2659
  };
2660
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2661
+ const ret = BigInt.asUintN(64, arg0);
2662
+ return addHeapObject(ret);
2663
+ };
2664
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2665
+ const ret = WasmPeer.__wrap(arg0);
2666
+ return addHeapObject(ret);
2667
+ };
2672
2668
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2673
2669
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2674
2670
  return addHeapObject(ret);
2675
2671
  };
2676
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2677
- const ret = WasmBlock.__wrap(arg0);
2672
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2673
+ const ret = WasmNFT.__wrap(arg0);
2678
2674
  return addHeapObject(ret);
2679
2675
  };
2676
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2677
+ const obj = getObject(arg1);
2678
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2679
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2680
+ var len1 = WASM_VECTOR_LEN;
2681
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2682
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2683
+ };
2680
2684
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2681
2685
  const ret = getObject(arg0);
2682
2686
  return addHeapObject(ret);
2683
2687
  };
2684
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2685
- const ret = WasmSlip.__wrap(arg0);
2686
- return addHeapObject(ret);
2687
- };
2688
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2689
- const ret = WasmNFT.__wrap(arg0);
2688
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2689
+ const ret = WasmWallet.__wrap(arg0);
2690
2690
  return addHeapObject(ret);
2691
2691
  };
2692
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2693
- const ret = WasmPeer.__wrap(arg0);
2692
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2693
+ const ret = WasmBlock.__wrap(arg0);
2694
2694
  return addHeapObject(ret);
2695
2695
  };
2696
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2697
- const ret = WasmWalletSlip.__wrap(arg0);
2696
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2697
+ const ret = WasmSlip.__wrap(arg0);
2698
2698
  return addHeapObject(ret);
2699
2699
  };
2700
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2701
- const ret = WasmWallet.__wrap(arg0);
2700
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2701
+ const ret = WasmBlockchain.__wrap(arg0);
2702
2702
  return addHeapObject(ret);
2703
2703
  };
2704
- imports.wbg.__wbg_sendmessage_9e9bbb3242c85e6c = function(arg0, arg1) {
2704
+ imports.wbg.__wbg_sendmessage_4bd42efae2b7631c = function(arg0, arg1) {
2705
2705
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2706
2706
  };
2707
- imports.wbg.__wbg_sendmessagetoall_f536e2b844870261 = function(arg0, arg1) {
2707
+ imports.wbg.__wbg_sendmessagetoall_13bf055d2d9f098b = function(arg0, arg1) {
2708
2708
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2709
2709
  };
2710
- imports.wbg.__wbg_connecttopeer_9483bb0e3adbf5aa = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ imports.wbg.__wbg_connecttopeer_8fa60f0c1f6d7ea5 = function() { return handleError(function (arg0, arg1, arg2) {
2711
2711
  let deferred0_0;
2712
2712
  let deferred0_1;
2713
2713
  try {
@@ -2719,11 +2719,11 @@ function __wbg_get_imports() {
2719
2719
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2720
2720
  }
2721
2721
  }, arguments) };
2722
- imports.wbg.__wbg_disconnectfrompeer_4d2682e634522ca3 = function() { return handleError(function (arg0) {
2722
+ imports.wbg.__wbg_disconnectfrompeer_1b7c06890e6112b9 = function() { return handleError(function (arg0) {
2723
2723
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2724
2724
  return addHeapObject(ret);
2725
2725
  }, arguments) };
2726
- imports.wbg.__wbg_fetchblockfrompeer_24d53776652dbe92 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2726
+ imports.wbg.__wbg_fetchblockfrompeer_ca92c3d6a1c81e57 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2727
2727
  let deferred0_0;
2728
2728
  let deferred0_1;
2729
2729
  try {
@@ -2735,7 +2735,7 @@ function __wbg_get_imports() {
2735
2735
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2736
2736
  }
2737
2737
  }, arguments) };
2738
- imports.wbg.__wbg_writevalue_7efa2f90c4472e61 = function(arg0, arg1, arg2) {
2738
+ imports.wbg.__wbg_writevalue_3b1b57d6d6fb4d00 = function(arg0, arg1, arg2) {
2739
2739
  let deferred0_0;
2740
2740
  let deferred0_1;
2741
2741
  try {
@@ -2746,7 +2746,7 @@ function __wbg_get_imports() {
2746
2746
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2747
2747
  }
2748
2748
  };
2749
- imports.wbg.__wbg_appendvalue_3afb56ae15ca417a = function(arg0, arg1, arg2) {
2749
+ imports.wbg.__wbg_appendvalue_993c9bab88cedc07 = function(arg0, arg1, arg2) {
2750
2750
  let deferred0_0;
2751
2751
  let deferred0_1;
2752
2752
  try {
@@ -2757,7 +2757,7 @@ function __wbg_get_imports() {
2757
2757
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2758
2758
  }
2759
2759
  };
2760
- imports.wbg.__wbg_flushdata_54b99b6841d7f5db = function(arg0, arg1) {
2760
+ imports.wbg.__wbg_flushdata_0a3a9d2f6fb720ec = function(arg0, arg1) {
2761
2761
  let deferred0_0;
2762
2762
  let deferred0_1;
2763
2763
  try {
@@ -2768,7 +2768,7 @@ function __wbg_get_imports() {
2768
2768
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2769
2769
  }
2770
2770
  };
2771
- imports.wbg.__wbg_readvalue_b7b02152d98b7f49 = function() { return handleError(function (arg0, arg1) {
2771
+ imports.wbg.__wbg_readvalue_3adb91dbccd90371 = function() { return handleError(function (arg0, arg1) {
2772
2772
  let deferred0_0;
2773
2773
  let deferred0_1;
2774
2774
  try {
@@ -2780,11 +2780,11 @@ function __wbg_get_imports() {
2780
2780
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2781
2781
  }
2782
2782
  }, arguments) };
2783
- imports.wbg.__wbg_loadblockfilelist_ff8d452cf1e44cfe = function() { return handleError(function () {
2783
+ imports.wbg.__wbg_loadblockfilelist_5db6c3da59b26fc2 = function() { return handleError(function () {
2784
2784
  const ret = MsgHandler.load_block_file_list();
2785
2785
  return addHeapObject(ret);
2786
2786
  }, arguments) };
2787
- imports.wbg.__wbg_isexistingfile_8113caf5846087d0 = function() { return handleError(function (arg0, arg1) {
2787
+ imports.wbg.__wbg_isexistingfile_fc3e358c05563c3d = function() { return handleError(function (arg0, arg1) {
2788
2788
  let deferred0_0;
2789
2789
  let deferred0_1;
2790
2790
  try {
@@ -2796,7 +2796,7 @@ function __wbg_get_imports() {
2796
2796
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2797
2797
  }
2798
2798
  }, arguments) };
2799
- imports.wbg.__wbg_removevalue_12f9054dfd1b4d3c = function() { return handleError(function (arg0, arg1) {
2799
+ imports.wbg.__wbg_removevalue_921190e939239d08 = function() { return handleError(function (arg0, arg1) {
2800
2800
  let deferred0_0;
2801
2801
  let deferred0_1;
2802
2802
  try {
@@ -2808,7 +2808,7 @@ function __wbg_get_imports() {
2808
2808
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2809
2809
  }
2810
2810
  }, arguments) };
2811
- imports.wbg.__wbg_ensureblockdirectoryexists_6799847759e9e310 = function() { return handleError(function (arg0, arg1) {
2811
+ imports.wbg.__wbg_ensureblockdirectoryexists_1b114b9e24c66a36 = function() { return handleError(function (arg0, arg1) {
2812
2812
  let deferred0_0;
2813
2813
  let deferred0_1;
2814
2814
  try {
@@ -2819,16 +2819,16 @@ function __wbg_get_imports() {
2819
2819
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2820
2820
  }
2821
2821
  }, arguments) };
2822
- imports.wbg.__wbg_processapicall_3d2dde8057754412 = function(arg0, arg1, arg2) {
2822
+ imports.wbg.__wbg_processapicall_31b64cac4750c247 = function(arg0, arg1, arg2) {
2823
2823
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2824
2824
  };
2825
- imports.wbg.__wbg_processapisuccess_f33f84945040b007 = function(arg0, arg1, arg2) {
2825
+ imports.wbg.__wbg_processapisuccess_ab8f708b964cbfb5 = function(arg0, arg1, arg2) {
2826
2826
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2827
2827
  };
2828
- imports.wbg.__wbg_processapierror_65ccad25ba87522a = function(arg0, arg1, arg2) {
2828
+ imports.wbg.__wbg_processapierror_6306abe6750b78cc = function(arg0, arg1, arg2) {
2829
2829
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2830
2830
  };
2831
- imports.wbg.__wbg_sendinterfaceevent_644d9003866bae83 = function(arg0, arg1, arg2, arg3, arg4) {
2831
+ imports.wbg.__wbg_sendinterfaceevent_2de2f07e226fdad0 = function(arg0, arg1, arg2, arg3, arg4) {
2832
2832
  let deferred0_0;
2833
2833
  let deferred0_1;
2834
2834
  let deferred1_0;
@@ -2844,7 +2844,7 @@ function __wbg_get_imports() {
2844
2844
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2845
2845
  }
2846
2846
  };
2847
- imports.wbg.__wbg_sendblocksuccess_773e872a589c1fd4 = function(arg0, arg1, arg2) {
2847
+ imports.wbg.__wbg_sendblocksuccess_3bcb7fa512506559 = function(arg0, arg1, arg2) {
2848
2848
  let deferred0_0;
2849
2849
  let deferred0_1;
2850
2850
  try {
@@ -2855,10 +2855,10 @@ function __wbg_get_imports() {
2855
2855
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2856
2856
  }
2857
2857
  };
2858
- imports.wbg.__wbg_sendwalletupdate_1b9a81c123e0980a = function() {
2858
+ imports.wbg.__wbg_sendwalletupdate_6061327eb9aad2cd = function() {
2859
2859
  MsgHandler.send_wallet_update();
2860
2860
  };
2861
- imports.wbg.__wbg_sendnewversionalert_ca577241c8a51367 = function(arg0, arg1, arg2) {
2861
+ imports.wbg.__wbg_sendnewversionalert_502af8825fd7a2e2 = function(arg0, arg1, arg2) {
2862
2862
  let deferred0_0;
2863
2863
  let deferred0_1;
2864
2864
  try {
@@ -2869,19 +2869,19 @@ function __wbg_get_imports() {
2869
2869
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2870
2870
  }
2871
2871
  };
2872
- imports.wbg.__wbg_sendblockfetchstatusevent_2c1d206707e243f6 = function(arg0) {
2872
+ imports.wbg.__wbg_sendblockfetchstatusevent_aa178bd72724d989 = function(arg0) {
2873
2873
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2874
2874
  };
2875
- imports.wbg.__wbg_sendnewchaindetectedevent_08996a56be55a03a = function() {
2875
+ imports.wbg.__wbg_sendnewchaindetectedevent_c42301d1aaccab57 = function() {
2876
2876
  MsgHandler.send_new_chain_detected_event();
2877
2877
  };
2878
- imports.wbg.__wbg_savewallet_9a697cbfd1dd8cc6 = function() {
2878
+ imports.wbg.__wbg_savewallet_569f307690c44ae7 = function() {
2879
2879
  MsgHandler.save_wallet();
2880
2880
  };
2881
- imports.wbg.__wbg_loadwallet_89f64d328ea4e9f9 = function() {
2881
+ imports.wbg.__wbg_loadwallet_d7944bfb6a41f8d2 = function() {
2882
2882
  MsgHandler.load_wallet();
2883
2883
  };
2884
- imports.wbg.__wbg_getmyservices_c999ea69af12f146 = function() {
2884
+ imports.wbg.__wbg_getmyservices_692bf96233db6868 = function() {
2885
2885
  const ret = MsgHandler.get_my_services();
2886
2886
  _assertClass(ret, WasmPeerServiceList);
2887
2887
  var ptr1 = ret.__destroy_into_raw();
@@ -3220,7 +3220,7 @@ function __wbg_get_imports() {
3220
3220
  const ret = wasm.memory;
3221
3221
  return addHeapObject(ret);
3222
3222
  };
3223
- imports.wbg.__wbindgen_closure_wrapper1559 = function(arg0, arg1, arg2) {
3223
+ imports.wbg.__wbindgen_closure_wrapper1560 = function(arg0, arg1, arg2) {
3224
3224
  const ret = makeMutClosure(arg0, arg1, 555, __wbg_adapter_38);
3225
3225
  return addHeapObject(ret);
3226
3226
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.150",
3
+ "version": "0.2.151",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",