saito-wasm 0.2.146 → 0.2.147

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.147"
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.147",
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-cb6b84b3c790ee6c/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,6 +2626,11 @@ class WasmWalletSlip {
2626
2626
  }
2627
2627
  module.exports.WasmWalletSlip = WasmWalletSlip;
2628
2628
 
2629
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2630
+ const ret = getStringFromWasm0(arg0, arg1);
2631
+ return addHeapObject(ret);
2632
+ };
2633
+
2629
2634
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2630
2635
  takeObject(arg0);
2631
2636
  };
@@ -2635,9 +2640,13 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2635
2640
  return addHeapObject(ret);
2636
2641
  };
2637
2642
 
2638
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2639
- const ret = getStringFromWasm0(arg0, arg1);
2640
- return addHeapObject(ret);
2643
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2644
+ const obj = getObject(arg1);
2645
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2646
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2647
+ var len1 = WASM_VECTOR_LEN;
2648
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2649
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2641
2650
  };
2642
2651
 
2643
2652
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
@@ -2645,8 +2654,13 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2645
2654
  return addHeapObject(ret);
2646
2655
  };
2647
2656
 
2648
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2649
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2657
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2658
+ const ret = WasmBlockchain.__wrap(arg0);
2659
+ return addHeapObject(ret);
2660
+ };
2661
+
2662
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2663
+ const ret = WasmWallet.__wrap(arg0);
2650
2664
  return addHeapObject(ret);
2651
2665
  };
2652
2666
 
@@ -2655,8 +2669,8 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2655
2669
  return addHeapObject(ret);
2656
2670
  };
2657
2671
 
2658
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2659
- const ret = WasmBlockchain.__wrap(arg0);
2672
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2673
+ const ret = WasmPeer.__wrap(arg0);
2660
2674
  return addHeapObject(ret);
2661
2675
  };
2662
2676
 
@@ -2665,13 +2679,13 @@ module.exports.__wbg_wasmnft_new = function(arg0) {
2665
2679
  return addHeapObject(ret);
2666
2680
  };
2667
2681
 
2668
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2669
- const ret = getObject(arg0);
2682
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2683
+ const ret = WasmBlock.__wrap(arg0);
2670
2684
  return addHeapObject(ret);
2671
2685
  };
2672
2686
 
2673
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2674
- const ret = WasmPeer.__wrap(arg0);
2687
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2688
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2675
2689
  return addHeapObject(ret);
2676
2690
  };
2677
2691
 
@@ -2680,34 +2694,20 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2680
2694
  return addHeapObject(ret);
2681
2695
  };
2682
2696
 
2683
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2684
- const obj = getObject(arg1);
2685
- const ret = typeof(obj) === 'string' ? obj : undefined;
2686
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2687
- var len1 = WASM_VECTOR_LEN;
2688
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2689
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2690
- };
2691
-
2692
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2693
- const ret = WasmWallet.__wrap(arg0);
2694
- return addHeapObject(ret);
2695
- };
2696
-
2697
- module.exports.__wbg_wasmblock_new = function(arg0) {
2698
- const ret = WasmBlock.__wrap(arg0);
2697
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2698
+ const ret = getObject(arg0);
2699
2699
  return addHeapObject(ret);
2700
2700
  };
2701
2701
 
2702
- module.exports.__wbg_sendmessage_d00656f38631ae68 = function(arg0, arg1) {
2702
+ module.exports.__wbg_sendmessage_ab4edbcf9c0cdecf = 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_f1b974cc8a936d75 = 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_ffb20ece6e5cd950 = 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_8334eb8a28997a0a = 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_783ba6704e1432e9 = 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_f58014e537a91743 = 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_02ce293ad1b07f9e = 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_a31160801baba451 = 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_76ffbe074dff1677 = 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_bd810b3b30d9199c = 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_6d80ac7bf2861d4b = 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_4f7e4befb5b1fdd2 = 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_53bb597f7f4f133d = 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_2736f333eaad9fd0 = 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_49696a2b13df534e = 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_9c6bd07783a43392 = 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_76d8132c00e8fbd7 = 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_22bb86be082204ca = 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_55c5a7acb820295d = 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_aac4d3ab775429e5 = 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_e829c4d46d5cd7f1 = 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_06fde4ee0bcdf6be = 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_818ce19a33e6b726 = function() {
2899
2899
  MsgHandler.save_wallet();
2900
2900
  };
2901
2901
 
2902
- module.exports.__wbg_loadwallet_1db9babd4037f22c = function() {
2902
+ module.exports.__wbg_loadwallet_0b72d3c8651d359a = function() {
2903
2903
  MsgHandler.load_wallet();
2904
2904
  };
2905
2905
 
2906
- module.exports.__wbg_getmyservices_b4cd51e728baedfe = function() {
2906
+ module.exports.__wbg_getmyservices_d92cbaf76e7bd70c = function() {
2907
2907
  const ret = MsgHandler.get_my_services();
2908
2908
  _assertClass(ret, WasmPeerServiceList);
2909
2909
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.146",
3
+ "version": "0.2.147",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
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-cb6b84b3c790ee6c/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,6 +2642,10 @@ async function __wbg_load(module, imports) {
2642
2642
  function __wbg_get_imports() {
2643
2643
  const imports = {};
2644
2644
  imports.wbg = {};
2645
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2646
+ const ret = getStringFromWasm0(arg0, arg1);
2647
+ return addHeapObject(ret);
2648
+ };
2645
2649
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2646
2650
  takeObject(arg0);
2647
2651
  };
@@ -2649,65 +2653,61 @@ function __wbg_get_imports() {
2649
2653
  const ret = BigInt.asUintN(64, arg0);
2650
2654
  return addHeapObject(ret);
2651
2655
  };
2652
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2653
- const ret = getStringFromWasm0(arg0, arg1);
2654
- return addHeapObject(ret);
2656
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2657
+ const obj = getObject(arg1);
2658
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2659
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2660
+ var len1 = WASM_VECTOR_LEN;
2661
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2662
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2655
2663
  };
2656
2664
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2657
2665
  const ret = WasmTransaction.__wrap(arg0);
2658
2666
  return addHeapObject(ret);
2659
2667
  };
2660
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2661
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2668
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2669
+ const ret = WasmBlockchain.__wrap(arg0);
2670
+ return addHeapObject(ret);
2671
+ };
2672
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2673
+ const ret = WasmWallet.__wrap(arg0);
2662
2674
  return addHeapObject(ret);
2663
2675
  };
2664
2676
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2665
2677
  const ret = WasmSlip.__wrap(arg0);
2666
2678
  return addHeapObject(ret);
2667
2679
  };
2668
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2669
- const ret = WasmBlockchain.__wrap(arg0);
2680
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2681
+ const ret = WasmPeer.__wrap(arg0);
2670
2682
  return addHeapObject(ret);
2671
2683
  };
2672
2684
  imports.wbg.__wbg_wasmnft_new = function(arg0) {
2673
2685
  const ret = WasmNFT.__wrap(arg0);
2674
2686
  return addHeapObject(ret);
2675
2687
  };
2676
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2677
- const ret = getObject(arg0);
2688
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2689
+ const ret = WasmBlock.__wrap(arg0);
2678
2690
  return addHeapObject(ret);
2679
2691
  };
2680
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2681
- const ret = WasmPeer.__wrap(arg0);
2692
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2693
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2682
2694
  return addHeapObject(ret);
2683
2695
  };
2684
2696
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2685
2697
  const ret = WasmWalletSlip.__wrap(arg0);
2686
2698
  return addHeapObject(ret);
2687
2699
  };
2688
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2689
- const obj = getObject(arg1);
2690
- const ret = typeof(obj) === 'string' ? obj : undefined;
2691
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2692
- var len1 = WASM_VECTOR_LEN;
2693
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2694
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2695
- };
2696
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2697
- const ret = WasmWallet.__wrap(arg0);
2698
- return addHeapObject(ret);
2699
- };
2700
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2701
- const ret = WasmBlock.__wrap(arg0);
2700
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2701
+ const ret = getObject(arg0);
2702
2702
  return addHeapObject(ret);
2703
2703
  };
2704
- imports.wbg.__wbg_sendmessage_d00656f38631ae68 = function(arg0, arg1) {
2704
+ imports.wbg.__wbg_sendmessage_ab4edbcf9c0cdecf = 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_f1b974cc8a936d75 = 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_ffb20ece6e5cd950 = 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_8334eb8a28997a0a = 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_783ba6704e1432e9 = 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_f58014e537a91743 = 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_02ce293ad1b07f9e = 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_a31160801baba451 = 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_76ffbe074dff1677 = 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_bd810b3b30d9199c = 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_6d80ac7bf2861d4b = 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_4f7e4befb5b1fdd2 = 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_53bb597f7f4f133d = 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_2736f333eaad9fd0 = 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_49696a2b13df534e = 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_9c6bd07783a43392 = 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_76d8132c00e8fbd7 = 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_22bb86be082204ca = 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_55c5a7acb820295d = function() {
2859
2859
  MsgHandler.send_wallet_update();
2860
2860
  };
2861
- imports.wbg.__wbg_sendnewversionalert_a52c4edacd19bc79 = function(arg0, arg1, arg2) {
2861
+ imports.wbg.__wbg_sendnewversionalert_aac4d3ab775429e5 = 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_e829c4d46d5cd7f1 = 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_06fde4ee0bcdf6be = function() {
2876
2876
  MsgHandler.send_new_chain_detected_event();
2877
2877
  };
2878
- imports.wbg.__wbg_savewallet_7458d0058b96dbe6 = function() {
2878
+ imports.wbg.__wbg_savewallet_818ce19a33e6b726 = function() {
2879
2879
  MsgHandler.save_wallet();
2880
2880
  };
2881
- imports.wbg.__wbg_loadwallet_1db9babd4037f22c = function() {
2881
+ imports.wbg.__wbg_loadwallet_0b72d3c8651d359a = function() {
2882
2882
  MsgHandler.load_wallet();
2883
2883
  };
2884
- imports.wbg.__wbg_getmyservices_b4cd51e728baedfe = function() {
2884
+ imports.wbg.__wbg_getmyservices_d92cbaf76e7bd70c = function() {
2885
2885
  const ret = MsgHandler.get_my_services();
2886
2886
  _assertClass(ret, WasmPeerServiceList);
2887
2887
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.146",
3
+ "version": "0.2.147",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",