saito-wasm 0.2.146 → 0.2.148

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.146"
3
+ version = "0.2.148"
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.146",
3
+ "version": "0.2.148",
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,29 +1,33 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9c5952456055ae1b/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9538a8d3e504ff7b/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
7
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
8
 
11
- function getObject(idx) { return heap[idx]; }
9
+ cachedTextDecoder.decode();
12
10
 
13
- let heap_next = heap.length;
11
+ let cachedUint8Memory0 = null;
14
12
 
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
13
+ function getUint8Memory0() {
14
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
15
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
16
+ }
17
+ return cachedUint8Memory0;
19
18
  }
20
19
 
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
20
+ function getStringFromWasm0(ptr, len) {
21
+ ptr = ptr >>> 0;
22
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
25
23
  }
26
24
 
25
+ const heap = new Array(128).fill(undefined);
26
+
27
+ heap.push(undefined, null, true, false);
28
+
29
+ let heap_next = heap.length;
30
+
27
31
  function addHeapObject(obj) {
28
32
  if (heap_next === heap.length) heap.push(heap.length + 1);
29
33
  const idx = heap_next;
@@ -33,22 +37,18 @@ function addHeapObject(obj) {
33
37
  return idx;
34
38
  }
35
39
 
36
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
-
38
- cachedTextDecoder.decode();
39
-
40
- let cachedUint8Memory0 = null;
40
+ function getObject(idx) { return heap[idx]; }
41
41
 
42
- function getUint8Memory0() {
43
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
44
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
45
- }
46
- return cachedUint8Memory0;
42
+ function dropObject(idx) {
43
+ if (idx < 132) return;
44
+ heap[idx] = heap_next;
45
+ heap_next = idx;
47
46
  }
48
47
 
49
- function getStringFromWasm0(ptr, len) {
50
- ptr = ptr >>> 0;
51
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
48
+ function takeObject(idx) {
49
+ const ret = getObject(idx);
50
+ dropObject(idx);
51
+ return ret;
52
52
  }
53
53
 
54
54
  let WASM_VECTOR_LEN = 0;
@@ -2626,37 +2626,32 @@ class WasmWalletSlip {
2626
2626
  }
2627
2627
  module.exports.WasmWalletSlip = WasmWalletSlip;
2628
2628
 
2629
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
2630
- takeObject(arg0);
2631
- };
2632
-
2633
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2634
- const ret = BigInt.asUintN(64, arg0);
2635
- return addHeapObject(ret);
2636
- };
2637
-
2638
2629
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2639
2630
  const ret = getStringFromWasm0(arg0, arg1);
2640
2631
  return addHeapObject(ret);
2641
2632
  };
2642
2633
 
2634
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2635
+ takeObject(arg0);
2636
+ };
2637
+
2643
2638
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
2644
2639
  const ret = WasmTransaction.__wrap(arg0);
2645
2640
  return addHeapObject(ret);
2646
2641
  };
2647
2642
 
2648
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2649
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2643
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2644
+ const ret = WasmWallet.__wrap(arg0);
2650
2645
  return addHeapObject(ret);
2651
2646
  };
2652
2647
 
2653
- module.exports.__wbg_wasmslip_new = function(arg0) {
2654
- const ret = WasmSlip.__wrap(arg0);
2648
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2649
+ const ret = WasmPeer.__wrap(arg0);
2655
2650
  return addHeapObject(ret);
2656
2651
  };
2657
2652
 
2658
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2659
- const ret = WasmBlockchain.__wrap(arg0);
2653
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2654
+ const ret = BigInt.asUintN(64, arg0);
2660
2655
  return addHeapObject(ret);
2661
2656
  };
2662
2657
 
@@ -2670,13 +2665,8 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2670
2665
  return addHeapObject(ret);
2671
2666
  };
2672
2667
 
2673
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2674
- const ret = WasmPeer.__wrap(arg0);
2675
- return addHeapObject(ret);
2676
- };
2677
-
2678
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2679
- const ret = WasmWalletSlip.__wrap(arg0);
2668
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2669
+ const ret = WasmBlockchain.__wrap(arg0);
2680
2670
  return addHeapObject(ret);
2681
2671
  };
2682
2672
 
@@ -2689,8 +2679,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2689
2679
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2690
2680
  };
2691
2681
 
2692
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2693
- const ret = WasmWallet.__wrap(arg0);
2682
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2683
+ const ret = WasmWalletSlip.__wrap(arg0);
2684
+ return addHeapObject(ret);
2685
+ };
2686
+
2687
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2688
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2694
2689
  return addHeapObject(ret);
2695
2690
  };
2696
2691
 
@@ -2699,15 +2694,20 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
2699
2694
  return addHeapObject(ret);
2700
2695
  };
2701
2696
 
2702
- module.exports.__wbg_sendmessage_d00656f38631ae68 = function(arg0, arg1) {
2697
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2698
+ const ret = WasmSlip.__wrap(arg0);
2699
+ return addHeapObject(ret);
2700
+ };
2701
+
2702
+ module.exports.__wbg_sendmessage_384c53b2c84886ed = function(arg0, arg1) {
2703
2703
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2704
2704
  };
2705
2705
 
2706
- module.exports.__wbg_sendmessagetoall_e6728da594fd8dbf = function(arg0, arg1) {
2706
+ module.exports.__wbg_sendmessagetoall_30c5d9e4e5bbd3bb = function(arg0, arg1) {
2707
2707
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2708
2708
  };
2709
2709
 
2710
- module.exports.__wbg_connecttopeer_8d4697224ba9b173 = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ module.exports.__wbg_connecttopeer_35ecd98072922ef2 = 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_8d4697224ba9b173 = function() { return handle
2720
2720
  }
2721
2721
  }, arguments) };
2722
2722
 
2723
- module.exports.__wbg_disconnectfrompeer_5de1d8fd12717a08 = function() { return handleError(function (arg0) {
2723
+ module.exports.__wbg_disconnectfrompeer_88199e8e8074ecba = 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_97d8ddae14146191 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2728
+ module.exports.__wbg_fetchblockfrompeer_b00484f80a3af812 = 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_97d8ddae14146191 = function() { return h
2738
2738
  }
2739
2739
  }, arguments) };
2740
2740
 
2741
- module.exports.__wbg_writevalue_0828f36fb446eda4 = function(arg0, arg1, arg2) {
2741
+ module.exports.__wbg_writevalue_5914544fb4267fc7 = 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_0828f36fb446eda4 = function(arg0, arg1, arg2) {
2750
2750
  }
2751
2751
  };
2752
2752
 
2753
- module.exports.__wbg_appendvalue_ff24385b95289abc = function(arg0, arg1, arg2) {
2753
+ module.exports.__wbg_appendvalue_e2c80f1e30b98541 = 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_ff24385b95289abc = function(arg0, arg1, arg2) {
2762
2762
  }
2763
2763
  };
2764
2764
 
2765
- module.exports.__wbg_flushdata_03207ddd8658d5d9 = function(arg0, arg1) {
2765
+ module.exports.__wbg_flushdata_ad999c8155807ff7 = function(arg0, arg1) {
2766
2766
  let deferred0_0;
2767
2767
  let deferred0_1;
2768
2768
  try {
@@ -2774,7 +2774,7 @@ module.exports.__wbg_flushdata_03207ddd8658d5d9 = function(arg0, arg1) {
2774
2774
  }
2775
2775
  };
2776
2776
 
2777
- module.exports.__wbg_readvalue_0a153f9c5e0d39d3 = function() { return handleError(function (arg0, arg1) {
2777
+ module.exports.__wbg_readvalue_2804a60c6934d62a = 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_0a153f9c5e0d39d3 = function() { return handleErro
2787
2787
  }
2788
2788
  }, arguments) };
2789
2789
 
2790
- module.exports.__wbg_loadblockfilelist_9ffbbff6c1e33773 = function() { return handleError(function () {
2790
+ module.exports.__wbg_loadblockfilelist_cd57eb1923bacc4a = 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_05d5fab4ad51c075 = function() { return handleError(function (arg0, arg1) {
2795
+ module.exports.__wbg_isexistingfile_f8ca6fabfc0b984f = 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_05d5fab4ad51c075 = function() { return handl
2805
2805
  }
2806
2806
  }, arguments) };
2807
2807
 
2808
- module.exports.__wbg_removevalue_9985d8c1c7b2f967 = function() { return handleError(function (arg0, arg1) {
2808
+ module.exports.__wbg_removevalue_6b5e0f3c63cf49d0 = 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_9985d8c1c7b2f967 = function() { return handleEr
2818
2818
  }
2819
2819
  }, arguments) };
2820
2820
 
2821
- module.exports.__wbg_ensureblockdirectoryexists_cec285b659a1e390 = function() { return handleError(function (arg0, arg1) {
2821
+ module.exports.__wbg_ensureblockdirectoryexists_8f221996b9a255b8 = 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_cec285b659a1e390 = function() {
2830
2830
  }
2831
2831
  }, arguments) };
2832
2832
 
2833
- module.exports.__wbg_processapicall_99b6e305077666bd = function(arg0, arg1, arg2) {
2833
+ module.exports.__wbg_processapicall_ab7805e7aefae4e0 = 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_7ef2cbecf47d4919 = function(arg0, arg1, arg2) {
2837
+ module.exports.__wbg_processapisuccess_0f14ac6d1f562093 = 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_035f54808d3afe74 = function(arg0, arg1, arg2) {
2841
+ module.exports.__wbg_processapierror_792e202867de7fa4 = 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_48d80dad10b68e46 = function(arg0, arg1, arg2, arg3, arg4) {
2845
+ module.exports.__wbg_sendinterfaceevent_27ba72ac50a847e5 = 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_48d80dad10b68e46 = function(arg0, arg1,
2859
2859
  }
2860
2860
  };
2861
2861
 
2862
- module.exports.__wbg_sendblocksuccess_fb8cec8da214e4de = function(arg0, arg1, arg2) {
2862
+ module.exports.__wbg_sendblocksuccess_873427785190ee1d = 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_fb8cec8da214e4de = function(arg0, arg1, ar
2871
2871
  }
2872
2872
  };
2873
2873
 
2874
- module.exports.__wbg_sendwalletupdate_7c88be600ba8b4ef = function() {
2874
+ module.exports.__wbg_sendwalletupdate_280cef5cc09f2911 = function() {
2875
2875
  MsgHandler.send_wallet_update();
2876
2876
  };
2877
2877
 
2878
- module.exports.__wbg_sendnewversionalert_a52c4edacd19bc79 = function(arg0, arg1, arg2) {
2878
+ module.exports.__wbg_sendnewversionalert_24671648ff28550b = 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_a52c4edacd19bc79 = function(arg0, arg1,
2887
2887
  }
2888
2888
  };
2889
2889
 
2890
- module.exports.__wbg_sendblockfetchstatusevent_f86d564c1a898c00 = function(arg0) {
2890
+ module.exports.__wbg_sendblockfetchstatusevent_b67ceaa2c8440bb9 = function(arg0) {
2891
2891
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2892
2892
  };
2893
2893
 
2894
- module.exports.__wbg_sendnewchaindetectedevent_f1d0477bc67084c7 = function() {
2894
+ module.exports.__wbg_sendnewchaindetectedevent_af4cd0f5afee430a = function() {
2895
2895
  MsgHandler.send_new_chain_detected_event();
2896
2896
  };
2897
2897
 
2898
- module.exports.__wbg_savewallet_7458d0058b96dbe6 = function() {
2898
+ module.exports.__wbg_savewallet_f4c8cbc1e4cf7528 = function() {
2899
2899
  MsgHandler.save_wallet();
2900
2900
  };
2901
2901
 
2902
- module.exports.__wbg_loadwallet_1db9babd4037f22c = function() {
2902
+ module.exports.__wbg_loadwallet_cbadddce9527dd21 = function() {
2903
2903
  MsgHandler.load_wallet();
2904
2904
  };
2905
2905
 
2906
- module.exports.__wbg_getmyservices_b4cd51e728baedfe = function() {
2906
+ module.exports.__wbg_getmyservices_50a1f7e673b5a984 = 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.146",
3
+ "version": "0.2.148",
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,27 +1,31 @@
1
- import { MsgHandler } from './snippets/saito-wasm-9c5952456055ae1b/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-9538a8d3e504ff7b/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
5
- const heap = new Array(128).fill(undefined);
6
-
7
- heap.push(undefined, null, true, false);
5
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
8
6
 
9
- function getObject(idx) { return heap[idx]; }
7
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
10
8
 
11
- let heap_next = heap.length;
9
+ let cachedUint8Memory0 = null;
12
10
 
13
- function dropObject(idx) {
14
- if (idx < 132) return;
15
- heap[idx] = heap_next;
16
- heap_next = idx;
11
+ function getUint8Memory0() {
12
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
13
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
14
+ }
15
+ return cachedUint8Memory0;
17
16
  }
18
17
 
19
- function takeObject(idx) {
20
- const ret = getObject(idx);
21
- dropObject(idx);
22
- return ret;
18
+ function getStringFromWasm0(ptr, len) {
19
+ ptr = ptr >>> 0;
20
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
23
21
  }
24
22
 
23
+ const heap = new Array(128).fill(undefined);
24
+
25
+ heap.push(undefined, null, true, false);
26
+
27
+ let heap_next = heap.length;
28
+
25
29
  function addHeapObject(obj) {
26
30
  if (heap_next === heap.length) heap.push(heap.length + 1);
27
31
  const idx = heap_next;
@@ -31,22 +35,18 @@ function addHeapObject(obj) {
31
35
  return idx;
32
36
  }
33
37
 
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;
38
+ function getObject(idx) { return heap[idx]; }
39
39
 
40
- function getUint8Memory0() {
41
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
42
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
43
- }
44
- return cachedUint8Memory0;
40
+ function dropObject(idx) {
41
+ if (idx < 132) return;
42
+ heap[idx] = heap_next;
43
+ heap_next = idx;
45
44
  }
46
45
 
47
- function getStringFromWasm0(ptr, len) {
48
- ptr = ptr >>> 0;
49
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
46
+ function takeObject(idx) {
47
+ const ret = getObject(idx);
48
+ dropObject(idx);
49
+ return ret;
50
50
  }
51
51
 
52
52
  let WASM_VECTOR_LEN = 0;
@@ -2642,31 +2642,27 @@ async function __wbg_load(module, imports) {
2642
2642
  function __wbg_get_imports() {
2643
2643
  const imports = {};
2644
2644
  imports.wbg = {};
2645
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2646
- takeObject(arg0);
2647
- };
2648
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2649
- const ret = BigInt.asUintN(64, arg0);
2650
- return addHeapObject(ret);
2651
- };
2652
2645
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2653
2646
  const ret = getStringFromWasm0(arg0, arg1);
2654
2647
  return addHeapObject(ret);
2655
2648
  };
2649
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2650
+ takeObject(arg0);
2651
+ };
2656
2652
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2657
2653
  const ret = WasmTransaction.__wrap(arg0);
2658
2654
  return addHeapObject(ret);
2659
2655
  };
2660
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2661
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2656
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2657
+ const ret = WasmWallet.__wrap(arg0);
2662
2658
  return addHeapObject(ret);
2663
2659
  };
2664
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2665
- const ret = WasmSlip.__wrap(arg0);
2660
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2661
+ const ret = WasmPeer.__wrap(arg0);
2666
2662
  return addHeapObject(ret);
2667
2663
  };
2668
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2669
- const ret = WasmBlockchain.__wrap(arg0);
2664
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2665
+ const ret = BigInt.asUintN(64, arg0);
2670
2666
  return addHeapObject(ret);
2671
2667
  };
2672
2668
  imports.wbg.__wbg_wasmnft_new = function(arg0) {
@@ -2677,12 +2673,8 @@ function __wbg_get_imports() {
2677
2673
  const ret = getObject(arg0);
2678
2674
  return addHeapObject(ret);
2679
2675
  };
2680
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2681
- const ret = WasmPeer.__wrap(arg0);
2682
- return addHeapObject(ret);
2683
- };
2684
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2685
- const ret = WasmWalletSlip.__wrap(arg0);
2676
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2677
+ const ret = WasmBlockchain.__wrap(arg0);
2686
2678
  return addHeapObject(ret);
2687
2679
  };
2688
2680
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -2693,21 +2685,29 @@ function __wbg_get_imports() {
2693
2685
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2694
2686
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2695
2687
  };
2696
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2697
- const ret = WasmWallet.__wrap(arg0);
2688
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2689
+ const ret = WasmWalletSlip.__wrap(arg0);
2690
+ return addHeapObject(ret);
2691
+ };
2692
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2693
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2698
2694
  return addHeapObject(ret);
2699
2695
  };
2700
2696
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2701
2697
  const ret = WasmBlock.__wrap(arg0);
2702
2698
  return addHeapObject(ret);
2703
2699
  };
2704
- imports.wbg.__wbg_sendmessage_d00656f38631ae68 = function(arg0, arg1) {
2700
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2701
+ const ret = WasmSlip.__wrap(arg0);
2702
+ return addHeapObject(ret);
2703
+ };
2704
+ imports.wbg.__wbg_sendmessage_384c53b2c84886ed = function(arg0, arg1) {
2705
2705
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2706
2706
  };
2707
- imports.wbg.__wbg_sendmessagetoall_e6728da594fd8dbf = function(arg0, arg1) {
2707
+ imports.wbg.__wbg_sendmessagetoall_30c5d9e4e5bbd3bb = function(arg0, arg1) {
2708
2708
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2709
2709
  };
2710
- imports.wbg.__wbg_connecttopeer_8d4697224ba9b173 = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ imports.wbg.__wbg_connecttopeer_35ecd98072922ef2 = 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_5de1d8fd12717a08 = function() { return handleError(function (arg0) {
2722
+ imports.wbg.__wbg_disconnectfrompeer_88199e8e8074ecba = 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_97d8ddae14146191 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2726
+ imports.wbg.__wbg_fetchblockfrompeer_b00484f80a3af812 = 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_0828f36fb446eda4 = function(arg0, arg1, arg2) {
2738
+ imports.wbg.__wbg_writevalue_5914544fb4267fc7 = 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_ff24385b95289abc = function(arg0, arg1, arg2) {
2749
+ imports.wbg.__wbg_appendvalue_e2c80f1e30b98541 = 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_03207ddd8658d5d9 = function(arg0, arg1) {
2760
+ imports.wbg.__wbg_flushdata_ad999c8155807ff7 = 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_0a153f9c5e0d39d3 = function() { return handleError(function (arg0, arg1) {
2771
+ imports.wbg.__wbg_readvalue_2804a60c6934d62a = 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_9ffbbff6c1e33773 = function() { return handleError(function () {
2783
+ imports.wbg.__wbg_loadblockfilelist_cd57eb1923bacc4a = 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_05d5fab4ad51c075 = function() { return handleError(function (arg0, arg1) {
2787
+ imports.wbg.__wbg_isexistingfile_f8ca6fabfc0b984f = 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_9985d8c1c7b2f967 = function() { return handleError(function (arg0, arg1) {
2799
+ imports.wbg.__wbg_removevalue_6b5e0f3c63cf49d0 = 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_cec285b659a1e390 = function() { return handleError(function (arg0, arg1) {
2811
+ imports.wbg.__wbg_ensureblockdirectoryexists_8f221996b9a255b8 = 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_99b6e305077666bd = function(arg0, arg1, arg2) {
2822
+ imports.wbg.__wbg_processapicall_ab7805e7aefae4e0 = function(arg0, arg1, arg2) {
2823
2823
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2824
2824
  };
2825
- imports.wbg.__wbg_processapisuccess_7ef2cbecf47d4919 = function(arg0, arg1, arg2) {
2825
+ imports.wbg.__wbg_processapisuccess_0f14ac6d1f562093 = function(arg0, arg1, arg2) {
2826
2826
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2827
2827
  };
2828
- imports.wbg.__wbg_processapierror_035f54808d3afe74 = function(arg0, arg1, arg2) {
2828
+ imports.wbg.__wbg_processapierror_792e202867de7fa4 = function(arg0, arg1, arg2) {
2829
2829
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2830
2830
  };
2831
- imports.wbg.__wbg_sendinterfaceevent_48d80dad10b68e46 = function(arg0, arg1, arg2, arg3, arg4) {
2831
+ imports.wbg.__wbg_sendinterfaceevent_27ba72ac50a847e5 = 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_fb8cec8da214e4de = function(arg0, arg1, arg2) {
2847
+ imports.wbg.__wbg_sendblocksuccess_873427785190ee1d = 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_7c88be600ba8b4ef = function() {
2858
+ imports.wbg.__wbg_sendwalletupdate_280cef5cc09f2911 = function() {
2859
2859
  MsgHandler.send_wallet_update();
2860
2860
  };
2861
- imports.wbg.__wbg_sendnewversionalert_a52c4edacd19bc79 = function(arg0, arg1, arg2) {
2861
+ imports.wbg.__wbg_sendnewversionalert_24671648ff28550b = 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_f86d564c1a898c00 = function(arg0) {
2872
+ imports.wbg.__wbg_sendblockfetchstatusevent_b67ceaa2c8440bb9 = function(arg0) {
2873
2873
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2874
2874
  };
2875
- imports.wbg.__wbg_sendnewchaindetectedevent_f1d0477bc67084c7 = function() {
2875
+ imports.wbg.__wbg_sendnewchaindetectedevent_af4cd0f5afee430a = function() {
2876
2876
  MsgHandler.send_new_chain_detected_event();
2877
2877
  };
2878
- imports.wbg.__wbg_savewallet_7458d0058b96dbe6 = function() {
2878
+ imports.wbg.__wbg_savewallet_f4c8cbc1e4cf7528 = function() {
2879
2879
  MsgHandler.save_wallet();
2880
2880
  };
2881
- imports.wbg.__wbg_loadwallet_1db9babd4037f22c = function() {
2881
+ imports.wbg.__wbg_loadwallet_cbadddce9527dd21 = function() {
2882
2882
  MsgHandler.load_wallet();
2883
2883
  };
2884
- imports.wbg.__wbg_getmyservices_b4cd51e728baedfe = function() {
2884
+ imports.wbg.__wbg_getmyservices_50a1f7e673b5a984 = 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.146",
3
+ "version": "0.2.148",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -12,7 +12,7 @@
12
12
  "./snippets/*"
13
13
  ],
14
14
  "dependencies": {
15
- "cross-env": "7.0.3",
16
- "node-fetch": "3.3.0"
15
+ "node-fetch": "3.3.0",
16
+ "cross-env": "7.0.3"
17
17
  }
18
18
  }