saito-wasm 0.2.113 → 0.2.114

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.113"
3
+ version = "0.2.114"
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.113",
3
+ "version": "0.2.114",
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,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-f010d5b73513e84e/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-304ce992a9e2be18/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -24,6 +24,15 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
+ function addHeapObject(obj) {
28
+ if (heap_next === heap.length) heap.push(heap.length + 1);
29
+ const idx = heap_next;
30
+ heap_next = heap[idx];
31
+
32
+ heap[idx] = obj;
33
+ return idx;
34
+ }
35
+
27
36
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
37
 
29
38
  cachedTextDecoder.decode();
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
42
51
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
52
  }
44
53
 
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
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -2607,53 +2607,62 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2607
2607
  takeObject(arg0);
2608
2608
  };
2609
2609
 
2610
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2611
- const ret = WasmPeer.__wrap(arg0);
2610
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2611
+ const ret = WasmNFT.__wrap(arg0);
2612
2612
  return addHeapObject(ret);
2613
2613
  };
2614
2614
 
2615
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2616
- const ret = getStringFromWasm0(arg0, arg1);
2615
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2616
+ const ret = BigInt.asUintN(64, arg0);
2617
2617
  return addHeapObject(ret);
2618
2618
  };
2619
2619
 
2620
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2621
- const ret = WasmTransaction.__wrap(arg0);
2620
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2621
+ const ret = WasmWalletSlip.__wrap(arg0);
2622
2622
  return addHeapObject(ret);
2623
2623
  };
2624
2624
 
2625
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2626
- const ret = BigInt.asUintN(64, arg0);
2625
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2626
+ const ret = getStringFromWasm0(arg0, arg1);
2627
2627
  return addHeapObject(ret);
2628
2628
  };
2629
2629
 
2630
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2631
- const ret = WasmWalletSlip.__wrap(arg0);
2630
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2631
+ const ret = WasmTransaction.__wrap(arg0);
2632
2632
  return addHeapObject(ret);
2633
2633
  };
2634
2634
 
2635
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2636
+ const obj = getObject(arg1);
2637
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2638
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2639
+ var len1 = WASM_VECTOR_LEN;
2640
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2641
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2642
+ };
2643
+
2635
2644
  module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2636
2645
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2637
2646
  return addHeapObject(ret);
2638
2647
  };
2639
2648
 
2640
- module.exports.__wbg_wasmslip_new = function(arg0) {
2641
- const ret = WasmSlip.__wrap(arg0);
2649
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2650
+ const ret = WasmWallet.__wrap(arg0);
2642
2651
  return addHeapObject(ret);
2643
2652
  };
2644
2653
 
2645
- module.exports.__wbg_wasmnft_new = function(arg0) {
2646
- const ret = WasmNFT.__wrap(arg0);
2654
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2655
+ const ret = WasmBlock.__wrap(arg0);
2647
2656
  return addHeapObject(ret);
2648
2657
  };
2649
2658
 
2650
- module.exports.__wbg_wasmblock_new = function(arg0) {
2651
- const ret = WasmBlock.__wrap(arg0);
2659
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2660
+ const ret = WasmPeer.__wrap(arg0);
2652
2661
  return addHeapObject(ret);
2653
2662
  };
2654
2663
 
2655
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2656
- const ret = WasmWallet.__wrap(arg0);
2664
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2665
+ const ret = WasmSlip.__wrap(arg0);
2657
2666
  return addHeapObject(ret);
2658
2667
  };
2659
2668
 
@@ -2662,15 +2671,6 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2662
2671
  return addHeapObject(ret);
2663
2672
  };
2664
2673
 
2665
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2666
- const obj = getObject(arg1);
2667
- const ret = typeof(obj) === 'string' ? obj : undefined;
2668
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2669
- var len1 = WASM_VECTOR_LEN;
2670
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2671
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2672
- };
2673
-
2674
2674
  module.exports.__wbg_wasmhop_new = function(arg0) {
2675
2675
  const ret = WasmHop.__wrap(arg0);
2676
2676
  return addHeapObject(ret);
@@ -2697,15 +2697,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2697
2697
  return ret;
2698
2698
  };
2699
2699
 
2700
- module.exports.__wbg_sendmessage_8722a66575d1854e = function(arg0, arg1) {
2700
+ module.exports.__wbg_sendmessage_3e5e7afd08f4e9b8 = function(arg0, arg1) {
2701
2701
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2702
2702
  };
2703
2703
 
2704
- module.exports.__wbg_sendmessagetoall_bd91166af695f94c = function(arg0, arg1) {
2704
+ module.exports.__wbg_sendmessagetoall_6b172afa91102231 = function(arg0, arg1) {
2705
2705
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2706
2706
  };
2707
2707
 
2708
- module.exports.__wbg_connecttopeer_117958f7e95e268a = function() { return handleError(function (arg0, arg1, arg2) {
2708
+ module.exports.__wbg_connecttopeer_77c7685b63f1e8aa = function() { return handleError(function (arg0, arg1, arg2) {
2709
2709
  let deferred0_0;
2710
2710
  let deferred0_1;
2711
2711
  try {
@@ -2718,12 +2718,12 @@ module.exports.__wbg_connecttopeer_117958f7e95e268a = function() { return handle
2718
2718
  }
2719
2719
  }, arguments) };
2720
2720
 
2721
- module.exports.__wbg_disconnectfrompeer_8229bcb16bda426d = function() { return handleError(function (arg0) {
2721
+ module.exports.__wbg_disconnectfrompeer_9cbae12d2fd5df60 = function() { return handleError(function (arg0) {
2722
2722
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2723
2723
  return addHeapObject(ret);
2724
2724
  }, arguments) };
2725
2725
 
2726
- module.exports.__wbg_fetchblockfrompeer_6fee081796e68a5a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2726
+ module.exports.__wbg_fetchblockfrompeer_e2aa1109d41b3fd7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2727
2727
  let deferred0_0;
2728
2728
  let deferred0_1;
2729
2729
  try {
@@ -2736,7 +2736,7 @@ module.exports.__wbg_fetchblockfrompeer_6fee081796e68a5a = function() { return h
2736
2736
  }
2737
2737
  }, arguments) };
2738
2738
 
2739
- module.exports.__wbg_writevalue_02b5f7d74343f8b0 = function(arg0, arg1, arg2) {
2739
+ module.exports.__wbg_writevalue_20ffd4913a9c23ad = function(arg0, arg1, arg2) {
2740
2740
  let deferred0_0;
2741
2741
  let deferred0_1;
2742
2742
  try {
@@ -2748,7 +2748,7 @@ module.exports.__wbg_writevalue_02b5f7d74343f8b0 = function(arg0, arg1, arg2) {
2748
2748
  }
2749
2749
  };
2750
2750
 
2751
- module.exports.__wbg_appendvalue_3740587baf44c84e = function(arg0, arg1, arg2) {
2751
+ module.exports.__wbg_appendvalue_22e7d115953a7c0d = function(arg0, arg1, arg2) {
2752
2752
  let deferred0_0;
2753
2753
  let deferred0_1;
2754
2754
  try {
@@ -2760,7 +2760,7 @@ module.exports.__wbg_appendvalue_3740587baf44c84e = function(arg0, arg1, arg2) {
2760
2760
  }
2761
2761
  };
2762
2762
 
2763
- module.exports.__wbg_flushdata_af9a0f9908ae50ed = function(arg0, arg1) {
2763
+ module.exports.__wbg_flushdata_5892e90f13771162 = function(arg0, arg1) {
2764
2764
  let deferred0_0;
2765
2765
  let deferred0_1;
2766
2766
  try {
@@ -2772,7 +2772,7 @@ module.exports.__wbg_flushdata_af9a0f9908ae50ed = function(arg0, arg1) {
2772
2772
  }
2773
2773
  };
2774
2774
 
2775
- module.exports.__wbg_readvalue_c995da6b55de8a77 = function() { return handleError(function (arg0, arg1) {
2775
+ module.exports.__wbg_readvalue_f1a579efa4369e5e = function() { return handleError(function (arg0, arg1) {
2776
2776
  let deferred0_0;
2777
2777
  let deferred0_1;
2778
2778
  try {
@@ -2785,12 +2785,12 @@ module.exports.__wbg_readvalue_c995da6b55de8a77 = function() { return handleErro
2785
2785
  }
2786
2786
  }, arguments) };
2787
2787
 
2788
- module.exports.__wbg_loadblockfilelist_a580848ed34ea94b = function() { return handleError(function () {
2788
+ module.exports.__wbg_loadblockfilelist_4bc122dc75a25c1c = function() { return handleError(function () {
2789
2789
  const ret = MsgHandler.load_block_file_list();
2790
2790
  return addHeapObject(ret);
2791
2791
  }, arguments) };
2792
2792
 
2793
- module.exports.__wbg_isexistingfile_8f6a6dae02f00450 = function() { return handleError(function (arg0, arg1) {
2793
+ module.exports.__wbg_isexistingfile_1d7d170d2fa3846b = function() { return handleError(function (arg0, arg1) {
2794
2794
  let deferred0_0;
2795
2795
  let deferred0_1;
2796
2796
  try {
@@ -2803,7 +2803,7 @@ module.exports.__wbg_isexistingfile_8f6a6dae02f00450 = function() { return handl
2803
2803
  }
2804
2804
  }, arguments) };
2805
2805
 
2806
- module.exports.__wbg_removevalue_c5283a55097ba6fc = function() { return handleError(function (arg0, arg1) {
2806
+ module.exports.__wbg_removevalue_6e3e8643dcc91836 = function() { return handleError(function (arg0, arg1) {
2807
2807
  let deferred0_0;
2808
2808
  let deferred0_1;
2809
2809
  try {
@@ -2816,7 +2816,7 @@ module.exports.__wbg_removevalue_c5283a55097ba6fc = function() { return handleEr
2816
2816
  }
2817
2817
  }, arguments) };
2818
2818
 
2819
- module.exports.__wbg_ensureblockdirectoryexists_8e69d56d3ad8b76a = function() { return handleError(function (arg0, arg1) {
2819
+ module.exports.__wbg_ensureblockdirectoryexists_025796718f1a78c8 = function() { return handleError(function (arg0, arg1) {
2820
2820
  let deferred0_0;
2821
2821
  let deferred0_1;
2822
2822
  try {
@@ -2828,19 +2828,19 @@ module.exports.__wbg_ensureblockdirectoryexists_8e69d56d3ad8b76a = function() {
2828
2828
  }
2829
2829
  }, arguments) };
2830
2830
 
2831
- module.exports.__wbg_processapicall_8462a8cebc0fe396 = function(arg0, arg1, arg2) {
2831
+ module.exports.__wbg_processapicall_2c714c89f7dff9f1 = function(arg0, arg1, arg2) {
2832
2832
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2833
2833
  };
2834
2834
 
2835
- module.exports.__wbg_processapisuccess_6708fb1f7ed307a0 = function(arg0, arg1, arg2) {
2835
+ module.exports.__wbg_processapisuccess_2760481f4832e3a7 = function(arg0, arg1, arg2) {
2836
2836
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2837
2837
  };
2838
2838
 
2839
- module.exports.__wbg_processapierror_3b457a14e7be41f6 = function(arg0, arg1, arg2) {
2839
+ module.exports.__wbg_processapierror_b1197ceeae402c8c = function(arg0, arg1, arg2) {
2840
2840
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2841
2841
  };
2842
2842
 
2843
- module.exports.__wbg_sendinterfaceevent_51185eb4fc26234a = function(arg0, arg1, arg2, arg3, arg4) {
2843
+ module.exports.__wbg_sendinterfaceevent_e1c4422f5060706c = function(arg0, arg1, arg2, arg3, arg4) {
2844
2844
  let deferred0_0;
2845
2845
  let deferred0_1;
2846
2846
  let deferred1_0;
@@ -2857,7 +2857,7 @@ module.exports.__wbg_sendinterfaceevent_51185eb4fc26234a = function(arg0, arg1,
2857
2857
  }
2858
2858
  };
2859
2859
 
2860
- module.exports.__wbg_sendblocksuccess_7424ddcf6473780c = function(arg0, arg1, arg2) {
2860
+ module.exports.__wbg_sendblocksuccess_2f954cbb20dc0390 = function(arg0, arg1, arg2) {
2861
2861
  let deferred0_0;
2862
2862
  let deferred0_1;
2863
2863
  try {
@@ -2869,11 +2869,11 @@ module.exports.__wbg_sendblocksuccess_7424ddcf6473780c = function(arg0, arg1, ar
2869
2869
  }
2870
2870
  };
2871
2871
 
2872
- module.exports.__wbg_sendwalletupdate_167ed1772fab15a9 = function() {
2872
+ module.exports.__wbg_sendwalletupdate_ed59b6b0adf322d1 = function() {
2873
2873
  MsgHandler.send_wallet_update();
2874
2874
  };
2875
2875
 
2876
- module.exports.__wbg_sendnewversionalert_8d48f6b130c658a3 = function(arg0, arg1, arg2) {
2876
+ module.exports.__wbg_sendnewversionalert_bdca808337a1483f = function(arg0, arg1, arg2) {
2877
2877
  let deferred0_0;
2878
2878
  let deferred0_1;
2879
2879
  try {
@@ -2885,19 +2885,19 @@ module.exports.__wbg_sendnewversionalert_8d48f6b130c658a3 = function(arg0, arg1,
2885
2885
  }
2886
2886
  };
2887
2887
 
2888
- module.exports.__wbg_sendblockfetchstatusevent_0350ab2ed387a55a = function(arg0) {
2888
+ module.exports.__wbg_sendblockfetchstatusevent_da7c4470bb4bd4b1 = function(arg0) {
2889
2889
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2890
2890
  };
2891
2891
 
2892
- module.exports.__wbg_savewallet_cc14cc773f9a5fd5 = function() {
2892
+ module.exports.__wbg_savewallet_56c1f8292fbbe87e = function() {
2893
2893
  MsgHandler.save_wallet();
2894
2894
  };
2895
2895
 
2896
- module.exports.__wbg_loadwallet_7ac2e55235986788 = function() {
2896
+ module.exports.__wbg_loadwallet_32f3ba3f2884553e = function() {
2897
2897
  MsgHandler.load_wallet();
2898
2898
  };
2899
2899
 
2900
- module.exports.__wbg_getmyservices_eab8b1151f757b1b = function() {
2900
+ module.exports.__wbg_getmyservices_3740d6b7b313680c = function() {
2901
2901
  const ret = MsgHandler.get_my_services();
2902
2902
  _assertClass(ret, WasmPeerServiceList);
2903
2903
  var ptr1 = ret.__destroy_into_raw();
@@ -3275,7 +3275,7 @@ module.exports.__wbindgen_memory = function() {
3275
3275
  return addHeapObject(ret);
3276
3276
  };
3277
3277
 
3278
- module.exports.__wbindgen_closure_wrapper1510 = function(arg0, arg1, arg2) {
3278
+ module.exports.__wbindgen_closure_wrapper1511 = function(arg0, arg1, arg2) {
3279
3279
  const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_38);
3280
3280
  return addHeapObject(ret);
3281
3281
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.113",
3
+ "version": "0.2.114",
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-f010d5b73513e84e/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-304ce992a9e2be18/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,6 +22,15 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
+ function addHeapObject(obj) {
26
+ if (heap_next === heap.length) heap.push(heap.length + 1);
27
+ const idx = heap_next;
28
+ heap_next = heap[idx];
29
+
30
+ heap[idx] = obj;
31
+ return idx;
32
+ }
33
+
25
34
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
35
 
27
36
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -40,15 +49,6 @@ function getStringFromWasm0(ptr, len) {
40
49
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
50
  }
42
51
 
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
52
  let WASM_VECTOR_LEN = 0;
53
53
 
54
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -2622,8 +2622,16 @@ function __wbg_get_imports() {
2622
2622
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2623
2623
  takeObject(arg0);
2624
2624
  };
2625
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2626
- const ret = WasmPeer.__wrap(arg0);
2625
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2626
+ const ret = WasmNFT.__wrap(arg0);
2627
+ return addHeapObject(ret);
2628
+ };
2629
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2630
+ const ret = BigInt.asUintN(64, arg0);
2631
+ return addHeapObject(ret);
2632
+ };
2633
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2634
+ const ret = WasmWalletSlip.__wrap(arg0);
2627
2635
  return addHeapObject(ret);
2628
2636
  };
2629
2637
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
@@ -2634,46 +2642,38 @@ function __wbg_get_imports() {
2634
2642
  const ret = WasmTransaction.__wrap(arg0);
2635
2643
  return addHeapObject(ret);
2636
2644
  };
2637
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2638
- const ret = BigInt.asUintN(64, arg0);
2639
- return addHeapObject(ret);
2640
- };
2641
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2642
- const ret = WasmWalletSlip.__wrap(arg0);
2643
- return addHeapObject(ret);
2645
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2646
+ const obj = getObject(arg1);
2647
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2648
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2649
+ var len1 = WASM_VECTOR_LEN;
2650
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2651
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2644
2652
  };
2645
2653
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2646
2654
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2647
2655
  return addHeapObject(ret);
2648
2656
  };
2649
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2650
- const ret = WasmSlip.__wrap(arg0);
2651
- return addHeapObject(ret);
2652
- };
2653
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2654
- const ret = WasmNFT.__wrap(arg0);
2657
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2658
+ const ret = WasmWallet.__wrap(arg0);
2655
2659
  return addHeapObject(ret);
2656
2660
  };
2657
2661
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2658
2662
  const ret = WasmBlock.__wrap(arg0);
2659
2663
  return addHeapObject(ret);
2660
2664
  };
2661
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2662
- const ret = WasmWallet.__wrap(arg0);
2665
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2666
+ const ret = WasmPeer.__wrap(arg0);
2667
+ return addHeapObject(ret);
2668
+ };
2669
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2670
+ const ret = WasmSlip.__wrap(arg0);
2663
2671
  return addHeapObject(ret);
2664
2672
  };
2665
2673
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2666
2674
  const ret = WasmBlockchain.__wrap(arg0);
2667
2675
  return addHeapObject(ret);
2668
2676
  };
2669
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2670
- const obj = getObject(arg1);
2671
- const ret = typeof(obj) === 'string' ? obj : undefined;
2672
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2673
- var len1 = WASM_VECTOR_LEN;
2674
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2675
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2676
- };
2677
2677
  imports.wbg.__wbg_wasmhop_new = function(arg0) {
2678
2678
  const ret = WasmHop.__wrap(arg0);
2679
2679
  return addHeapObject(ret);
@@ -2695,13 +2695,13 @@ function __wbg_get_imports() {
2695
2695
  const ret = getObject(arg0) in getObject(arg1);
2696
2696
  return ret;
2697
2697
  };
2698
- imports.wbg.__wbg_sendmessage_8722a66575d1854e = function(arg0, arg1) {
2698
+ imports.wbg.__wbg_sendmessage_3e5e7afd08f4e9b8 = function(arg0, arg1) {
2699
2699
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2700
2700
  };
2701
- imports.wbg.__wbg_sendmessagetoall_bd91166af695f94c = function(arg0, arg1) {
2701
+ imports.wbg.__wbg_sendmessagetoall_6b172afa91102231 = function(arg0, arg1) {
2702
2702
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2703
2703
  };
2704
- imports.wbg.__wbg_connecttopeer_117958f7e95e268a = function() { return handleError(function (arg0, arg1, arg2) {
2704
+ imports.wbg.__wbg_connecttopeer_77c7685b63f1e8aa = function() { return handleError(function (arg0, arg1, arg2) {
2705
2705
  let deferred0_0;
2706
2706
  let deferred0_1;
2707
2707
  try {
@@ -2713,11 +2713,11 @@ function __wbg_get_imports() {
2713
2713
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2714
2714
  }
2715
2715
  }, arguments) };
2716
- imports.wbg.__wbg_disconnectfrompeer_8229bcb16bda426d = function() { return handleError(function (arg0) {
2716
+ imports.wbg.__wbg_disconnectfrompeer_9cbae12d2fd5df60 = function() { return handleError(function (arg0) {
2717
2717
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2718
2718
  return addHeapObject(ret);
2719
2719
  }, arguments) };
2720
- imports.wbg.__wbg_fetchblockfrompeer_6fee081796e68a5a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2720
+ imports.wbg.__wbg_fetchblockfrompeer_e2aa1109d41b3fd7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2721
2721
  let deferred0_0;
2722
2722
  let deferred0_1;
2723
2723
  try {
@@ -2729,7 +2729,7 @@ function __wbg_get_imports() {
2729
2729
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2730
2730
  }
2731
2731
  }, arguments) };
2732
- imports.wbg.__wbg_writevalue_02b5f7d74343f8b0 = function(arg0, arg1, arg2) {
2732
+ imports.wbg.__wbg_writevalue_20ffd4913a9c23ad = function(arg0, arg1, arg2) {
2733
2733
  let deferred0_0;
2734
2734
  let deferred0_1;
2735
2735
  try {
@@ -2740,7 +2740,7 @@ function __wbg_get_imports() {
2740
2740
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2741
2741
  }
2742
2742
  };
2743
- imports.wbg.__wbg_appendvalue_3740587baf44c84e = function(arg0, arg1, arg2) {
2743
+ imports.wbg.__wbg_appendvalue_22e7d115953a7c0d = function(arg0, arg1, arg2) {
2744
2744
  let deferred0_0;
2745
2745
  let deferred0_1;
2746
2746
  try {
@@ -2751,7 +2751,7 @@ function __wbg_get_imports() {
2751
2751
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2752
2752
  }
2753
2753
  };
2754
- imports.wbg.__wbg_flushdata_af9a0f9908ae50ed = function(arg0, arg1) {
2754
+ imports.wbg.__wbg_flushdata_5892e90f13771162 = function(arg0, arg1) {
2755
2755
  let deferred0_0;
2756
2756
  let deferred0_1;
2757
2757
  try {
@@ -2762,7 +2762,7 @@ function __wbg_get_imports() {
2762
2762
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2763
2763
  }
2764
2764
  };
2765
- imports.wbg.__wbg_readvalue_c995da6b55de8a77 = function() { return handleError(function (arg0, arg1) {
2765
+ imports.wbg.__wbg_readvalue_f1a579efa4369e5e = function() { return handleError(function (arg0, arg1) {
2766
2766
  let deferred0_0;
2767
2767
  let deferred0_1;
2768
2768
  try {
@@ -2774,11 +2774,11 @@ function __wbg_get_imports() {
2774
2774
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2775
2775
  }
2776
2776
  }, arguments) };
2777
- imports.wbg.__wbg_loadblockfilelist_a580848ed34ea94b = function() { return handleError(function () {
2777
+ imports.wbg.__wbg_loadblockfilelist_4bc122dc75a25c1c = function() { return handleError(function () {
2778
2778
  const ret = MsgHandler.load_block_file_list();
2779
2779
  return addHeapObject(ret);
2780
2780
  }, arguments) };
2781
- imports.wbg.__wbg_isexistingfile_8f6a6dae02f00450 = function() { return handleError(function (arg0, arg1) {
2781
+ imports.wbg.__wbg_isexistingfile_1d7d170d2fa3846b = function() { return handleError(function (arg0, arg1) {
2782
2782
  let deferred0_0;
2783
2783
  let deferred0_1;
2784
2784
  try {
@@ -2790,7 +2790,7 @@ function __wbg_get_imports() {
2790
2790
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2791
2791
  }
2792
2792
  }, arguments) };
2793
- imports.wbg.__wbg_removevalue_c5283a55097ba6fc = function() { return handleError(function (arg0, arg1) {
2793
+ imports.wbg.__wbg_removevalue_6e3e8643dcc91836 = function() { return handleError(function (arg0, arg1) {
2794
2794
  let deferred0_0;
2795
2795
  let deferred0_1;
2796
2796
  try {
@@ -2802,7 +2802,7 @@ function __wbg_get_imports() {
2802
2802
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2803
2803
  }
2804
2804
  }, arguments) };
2805
- imports.wbg.__wbg_ensureblockdirectoryexists_8e69d56d3ad8b76a = function() { return handleError(function (arg0, arg1) {
2805
+ imports.wbg.__wbg_ensureblockdirectoryexists_025796718f1a78c8 = function() { return handleError(function (arg0, arg1) {
2806
2806
  let deferred0_0;
2807
2807
  let deferred0_1;
2808
2808
  try {
@@ -2813,16 +2813,16 @@ function __wbg_get_imports() {
2813
2813
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2814
2814
  }
2815
2815
  }, arguments) };
2816
- imports.wbg.__wbg_processapicall_8462a8cebc0fe396 = function(arg0, arg1, arg2) {
2816
+ imports.wbg.__wbg_processapicall_2c714c89f7dff9f1 = function(arg0, arg1, arg2) {
2817
2817
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2818
2818
  };
2819
- imports.wbg.__wbg_processapisuccess_6708fb1f7ed307a0 = function(arg0, arg1, arg2) {
2819
+ imports.wbg.__wbg_processapisuccess_2760481f4832e3a7 = function(arg0, arg1, arg2) {
2820
2820
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2821
2821
  };
2822
- imports.wbg.__wbg_processapierror_3b457a14e7be41f6 = function(arg0, arg1, arg2) {
2822
+ imports.wbg.__wbg_processapierror_b1197ceeae402c8c = function(arg0, arg1, arg2) {
2823
2823
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2824
2824
  };
2825
- imports.wbg.__wbg_sendinterfaceevent_51185eb4fc26234a = function(arg0, arg1, arg2, arg3, arg4) {
2825
+ imports.wbg.__wbg_sendinterfaceevent_e1c4422f5060706c = function(arg0, arg1, arg2, arg3, arg4) {
2826
2826
  let deferred0_0;
2827
2827
  let deferred0_1;
2828
2828
  let deferred1_0;
@@ -2838,7 +2838,7 @@ function __wbg_get_imports() {
2838
2838
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2839
2839
  }
2840
2840
  };
2841
- imports.wbg.__wbg_sendblocksuccess_7424ddcf6473780c = function(arg0, arg1, arg2) {
2841
+ imports.wbg.__wbg_sendblocksuccess_2f954cbb20dc0390 = function(arg0, arg1, arg2) {
2842
2842
  let deferred0_0;
2843
2843
  let deferred0_1;
2844
2844
  try {
@@ -2849,10 +2849,10 @@ function __wbg_get_imports() {
2849
2849
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2850
2850
  }
2851
2851
  };
2852
- imports.wbg.__wbg_sendwalletupdate_167ed1772fab15a9 = function() {
2852
+ imports.wbg.__wbg_sendwalletupdate_ed59b6b0adf322d1 = function() {
2853
2853
  MsgHandler.send_wallet_update();
2854
2854
  };
2855
- imports.wbg.__wbg_sendnewversionalert_8d48f6b130c658a3 = function(arg0, arg1, arg2) {
2855
+ imports.wbg.__wbg_sendnewversionalert_bdca808337a1483f = function(arg0, arg1, arg2) {
2856
2856
  let deferred0_0;
2857
2857
  let deferred0_1;
2858
2858
  try {
@@ -2863,16 +2863,16 @@ function __wbg_get_imports() {
2863
2863
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2864
2864
  }
2865
2865
  };
2866
- imports.wbg.__wbg_sendblockfetchstatusevent_0350ab2ed387a55a = function(arg0) {
2866
+ imports.wbg.__wbg_sendblockfetchstatusevent_da7c4470bb4bd4b1 = function(arg0) {
2867
2867
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2868
2868
  };
2869
- imports.wbg.__wbg_savewallet_cc14cc773f9a5fd5 = function() {
2869
+ imports.wbg.__wbg_savewallet_56c1f8292fbbe87e = function() {
2870
2870
  MsgHandler.save_wallet();
2871
2871
  };
2872
- imports.wbg.__wbg_loadwallet_7ac2e55235986788 = function() {
2872
+ imports.wbg.__wbg_loadwallet_32f3ba3f2884553e = function() {
2873
2873
  MsgHandler.load_wallet();
2874
2874
  };
2875
- imports.wbg.__wbg_getmyservices_eab8b1151f757b1b = function() {
2875
+ imports.wbg.__wbg_getmyservices_3740d6b7b313680c = function() {
2876
2876
  const ret = MsgHandler.get_my_services();
2877
2877
  _assertClass(ret, WasmPeerServiceList);
2878
2878
  var ptr1 = ret.__destroy_into_raw();
@@ -3182,7 +3182,7 @@ function __wbg_get_imports() {
3182
3182
  const ret = wasm.memory;
3183
3183
  return addHeapObject(ret);
3184
3184
  };
3185
- imports.wbg.__wbindgen_closure_wrapper1510 = function(arg0, arg1, arg2) {
3185
+ imports.wbg.__wbindgen_closure_wrapper1511 = function(arg0, arg1, arg2) {
3186
3186
  const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_38);
3187
3187
  return addHeapObject(ret);
3188
3188
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.113",
3
+ "version": "0.2.114",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",