saito-wasm 0.2.116 → 0.2.118

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.116"
3
+ version = "0.2.118"
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.116",
3
+ "version": "0.2.118",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
package/pkg/node/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-27b0ecc78ef2c78c/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-797b9764ff3eeb3b/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -24,7 +24,18 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- let WASM_VECTOR_LEN = 0;
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
+
36
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
+
38
+ cachedTextDecoder.decode();
28
39
 
29
40
  let cachedUint8Memory0 = null;
30
41
 
@@ -35,6 +46,13 @@ function getUint8Memory0() {
35
46
  return cachedUint8Memory0;
36
47
  }
37
48
 
49
+ function getStringFromWasm0(ptr, len) {
50
+ ptr = ptr >>> 0;
51
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
+ }
53
+
54
+ let WASM_VECTOR_LEN = 0;
55
+
38
56
  let cachedTextEncoder = new TextEncoder('utf-8');
39
57
 
40
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -102,24 +120,6 @@ function getInt32Memory0() {
102
120
  return cachedInt32Memory0;
103
121
  }
104
122
 
105
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
106
-
107
- cachedTextDecoder.decode();
108
-
109
- function getStringFromWasm0(ptr, len) {
110
- ptr = ptr >>> 0;
111
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
112
- }
113
-
114
- function addHeapObject(obj) {
115
- if (heap_next === heap.length) heap.push(heap.length + 1);
116
- const idx = heap_next;
117
- heap_next = heap[idx];
118
-
119
- heap[idx] = obj;
120
- return idx;
121
- }
122
-
123
123
  let cachedFloat64Memory0 = null;
124
124
 
125
125
  function getFloat64Memory0() {
@@ -2607,32 +2607,18 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2607
2607
  takeObject(arg0);
2608
2608
  };
2609
2609
 
2610
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2611
- const obj = getObject(arg1);
2612
- const ret = typeof(obj) === 'string' ? obj : undefined;
2613
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2614
- var len1 = WASM_VECTOR_LEN;
2615
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2616
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2617
- };
2618
-
2619
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2620
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2621
- return addHeapObject(ret);
2622
- };
2623
-
2624
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2625
- const ret = getStringFromWasm0(arg0, arg1);
2610
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2611
+ const ret = BigInt.asUintN(64, arg0);
2626
2612
  return addHeapObject(ret);
2627
2613
  };
2628
2614
 
2629
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2630
- const ret = BigInt.asUintN(64, arg0);
2615
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2616
+ const ret = WasmPeer.__wrap(arg0);
2631
2617
  return addHeapObject(ret);
2632
2618
  };
2633
2619
 
2634
- module.exports.__wbg_wasmnft_new = function(arg0) {
2635
- const ret = WasmNFT.__wrap(arg0);
2620
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2621
+ const ret = WasmWallet.__wrap(arg0);
2636
2622
  return addHeapObject(ret);
2637
2623
  };
2638
2624
 
@@ -2641,23 +2627,32 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2641
2627
  return addHeapObject(ret);
2642
2628
  };
2643
2629
 
2644
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2645
- const ret = WasmBlockchain.__wrap(arg0);
2630
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2631
+ const ret = getStringFromWasm0(arg0, arg1);
2646
2632
  return addHeapObject(ret);
2647
2633
  };
2648
2634
 
2649
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2650
- const ret = WasmWalletSlip.__wrap(arg0);
2635
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2636
+ const ret = WasmBlock.__wrap(arg0);
2651
2637
  return addHeapObject(ret);
2652
2638
  };
2653
2639
 
2654
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2655
- const ret = WasmWallet.__wrap(arg0);
2640
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2641
+ const obj = getObject(arg1);
2642
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2643
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2644
+ var len1 = WASM_VECTOR_LEN;
2645
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2646
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2647
+ };
2648
+
2649
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2650
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2656
2651
  return addHeapObject(ret);
2657
2652
  };
2658
2653
 
2659
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2660
- const ret = WasmPeer.__wrap(arg0);
2654
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2655
+ const ret = WasmNFT.__wrap(arg0);
2661
2656
  return addHeapObject(ret);
2662
2657
  };
2663
2658
 
@@ -2666,8 +2661,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2666
2661
  return addHeapObject(ret);
2667
2662
  };
2668
2663
 
2669
- module.exports.__wbg_wasmblock_new = function(arg0) {
2670
- const ret = WasmBlock.__wrap(arg0);
2664
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2665
+ const ret = WasmBlockchain.__wrap(arg0);
2666
+ return addHeapObject(ret);
2667
+ };
2668
+
2669
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2670
+ const ret = WasmWalletSlip.__wrap(arg0);
2671
2671
  return addHeapObject(ret);
2672
2672
  };
2673
2673
 
@@ -2697,15 +2697,15 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
2697
2697
  return addHeapObject(ret);
2698
2698
  };
2699
2699
 
2700
- module.exports.__wbg_sendmessage_b68af0ef90901cb6 = function(arg0, arg1) {
2700
+ module.exports.__wbg_sendmessage_262bbd7c664526ca = function(arg0, arg1) {
2701
2701
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2702
2702
  };
2703
2703
 
2704
- module.exports.__wbg_sendmessagetoall_6a6920362b3b65e7 = function(arg0, arg1) {
2704
+ module.exports.__wbg_sendmessagetoall_43fc3ee5e53a3642 = function(arg0, arg1) {
2705
2705
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2706
2706
  };
2707
2707
 
2708
- module.exports.__wbg_connecttopeer_2abf185bebd7a353 = function() { return handleError(function (arg0, arg1, arg2) {
2708
+ module.exports.__wbg_connecttopeer_ee7698d210df5c37 = 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_2abf185bebd7a353 = function() { return handle
2718
2718
  }
2719
2719
  }, arguments) };
2720
2720
 
2721
- module.exports.__wbg_disconnectfrompeer_87888fec1bab2665 = function() { return handleError(function (arg0) {
2721
+ module.exports.__wbg_disconnectfrompeer_160804f1459c6f67 = 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_124625693bf2e695 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2726
+ module.exports.__wbg_fetchblockfrompeer_891b2fe2328e1d64 = 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_124625693bf2e695 = function() { return h
2736
2736
  }
2737
2737
  }, arguments) };
2738
2738
 
2739
- module.exports.__wbg_writevalue_45fbfe80fbdda7a9 = function(arg0, arg1, arg2) {
2739
+ module.exports.__wbg_writevalue_157cb6b8411106e3 = 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_45fbfe80fbdda7a9 = function(arg0, arg1, arg2) {
2748
2748
  }
2749
2749
  };
2750
2750
 
2751
- module.exports.__wbg_appendvalue_1866ca92a14c0b47 = function(arg0, arg1, arg2) {
2751
+ module.exports.__wbg_appendvalue_ddc35d919e2c85da = 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_1866ca92a14c0b47 = function(arg0, arg1, arg2) {
2760
2760
  }
2761
2761
  };
2762
2762
 
2763
- module.exports.__wbg_flushdata_7a6b2d49605f0a4e = function(arg0, arg1) {
2763
+ module.exports.__wbg_flushdata_8a32a5dbb7241ab1 = function(arg0, arg1) {
2764
2764
  let deferred0_0;
2765
2765
  let deferred0_1;
2766
2766
  try {
@@ -2772,7 +2772,7 @@ module.exports.__wbg_flushdata_7a6b2d49605f0a4e = function(arg0, arg1) {
2772
2772
  }
2773
2773
  };
2774
2774
 
2775
- module.exports.__wbg_readvalue_239b6777ecac3d86 = function() { return handleError(function (arg0, arg1) {
2775
+ module.exports.__wbg_readvalue_0e1fcfb11a215052 = 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_239b6777ecac3d86 = function() { return handleErro
2785
2785
  }
2786
2786
  }, arguments) };
2787
2787
 
2788
- module.exports.__wbg_loadblockfilelist_9f9f5705c4494175 = function() { return handleError(function () {
2788
+ module.exports.__wbg_loadblockfilelist_d29026d254862597 = 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_2a2ae1152d621177 = function() { return handleError(function (arg0, arg1) {
2793
+ module.exports.__wbg_isexistingfile_20ec57df26877203 = 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_2a2ae1152d621177 = function() { return handl
2803
2803
  }
2804
2804
  }, arguments) };
2805
2805
 
2806
- module.exports.__wbg_removevalue_316fffff6752fe04 = function() { return handleError(function (arg0, arg1) {
2806
+ module.exports.__wbg_removevalue_f83bcaaf00c982a2 = 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_316fffff6752fe04 = function() { return handleEr
2816
2816
  }
2817
2817
  }, arguments) };
2818
2818
 
2819
- module.exports.__wbg_ensureblockdirectoryexists_23c9bbe1cfe09714 = function() { return handleError(function (arg0, arg1) {
2819
+ module.exports.__wbg_ensureblockdirectoryexists_9d66ee4fa650eacf = 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_23c9bbe1cfe09714 = function() {
2828
2828
  }
2829
2829
  }, arguments) };
2830
2830
 
2831
- module.exports.__wbg_processapicall_4257045162c0ba16 = function(arg0, arg1, arg2) {
2831
+ module.exports.__wbg_processapicall_625ca9bc93033bc6 = 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_f642c366bf1f770d = function(arg0, arg1, arg2) {
2835
+ module.exports.__wbg_processapisuccess_e9a5fdfd82b503e3 = 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_3c1b9fce8f248685 = function(arg0, arg1, arg2) {
2839
+ module.exports.__wbg_processapierror_5abe4f0f3fc7b0ec = 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_73a2ad9558108661 = function(arg0, arg1, arg2, arg3, arg4) {
2843
+ module.exports.__wbg_sendinterfaceevent_f34ea9c479363a82 = 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_73a2ad9558108661 = function(arg0, arg1,
2857
2857
  }
2858
2858
  };
2859
2859
 
2860
- module.exports.__wbg_sendblocksuccess_74a7af7810451d24 = function(arg0, arg1, arg2) {
2860
+ module.exports.__wbg_sendblocksuccess_4ca4dd4705dc4456 = 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_74a7af7810451d24 = function(arg0, arg1, ar
2869
2869
  }
2870
2870
  };
2871
2871
 
2872
- module.exports.__wbg_sendwalletupdate_2eef0f275295061c = function() {
2872
+ module.exports.__wbg_sendwalletupdate_aa02282a85683fb1 = function() {
2873
2873
  MsgHandler.send_wallet_update();
2874
2874
  };
2875
2875
 
2876
- module.exports.__wbg_sendnewversionalert_155ceabf228c161f = function(arg0, arg1, arg2) {
2876
+ module.exports.__wbg_sendnewversionalert_977ea42b8623e615 = 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_155ceabf228c161f = function(arg0, arg1,
2885
2885
  }
2886
2886
  };
2887
2887
 
2888
- module.exports.__wbg_sendblockfetchstatusevent_2861f38f53adefe5 = function(arg0) {
2888
+ module.exports.__wbg_sendblockfetchstatusevent_914d0a3461a0e2de = function(arg0) {
2889
2889
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2890
2890
  };
2891
2891
 
2892
- module.exports.__wbg_savewallet_ab1c5e90418b0561 = function() {
2892
+ module.exports.__wbg_savewallet_5d354639ab9e29cf = function() {
2893
2893
  MsgHandler.save_wallet();
2894
2894
  };
2895
2895
 
2896
- module.exports.__wbg_loadwallet_5b1a06951f6dfa5c = function() {
2896
+ module.exports.__wbg_loadwallet_66205767c0a3a211 = function() {
2897
2897
  MsgHandler.load_wallet();
2898
2898
  };
2899
2899
 
2900
- module.exports.__wbg_getmyservices_2c03b806483a3d8b = function() {
2900
+ module.exports.__wbg_getmyservices_b429382a06848066 = function() {
2901
2901
  const ret = MsgHandler.get_my_services();
2902
2902
  _assertClass(ret, WasmPeerServiceList);
2903
2903
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.116",
3
+ "version": "0.2.118",
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-27b0ecc78ef2c78c/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-797b9764ff3eeb3b/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,7 +22,18 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
- let WASM_VECTOR_LEN = 0;
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
+
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(); };
26
37
 
27
38
  let cachedUint8Memory0 = null;
28
39
 
@@ -33,6 +44,13 @@ function getUint8Memory0() {
33
44
  return cachedUint8Memory0;
34
45
  }
35
46
 
47
+ function getStringFromWasm0(ptr, len) {
48
+ ptr = ptr >>> 0;
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
52
+ let WASM_VECTOR_LEN = 0;
53
+
36
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
37
55
 
38
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -100,24 +118,6 @@ function getInt32Memory0() {
100
118
  return cachedInt32Memory0;
101
119
  }
102
120
 
103
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
104
-
105
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
106
-
107
- function getStringFromWasm0(ptr, len) {
108
- ptr = ptr >>> 0;
109
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
110
- }
111
-
112
- function addHeapObject(obj) {
113
- if (heap_next === heap.length) heap.push(heap.length + 1);
114
- const idx = heap_next;
115
- heap_next = heap[idx];
116
-
117
- heap[idx] = obj;
118
- return idx;
119
- }
120
-
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -2622,6 +2622,30 @@ function __wbg_get_imports() {
2622
2622
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2623
2623
  takeObject(arg0);
2624
2624
  };
2625
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2626
+ const ret = BigInt.asUintN(64, arg0);
2627
+ return addHeapObject(ret);
2628
+ };
2629
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2630
+ const ret = WasmPeer.__wrap(arg0);
2631
+ return addHeapObject(ret);
2632
+ };
2633
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2634
+ const ret = WasmWallet.__wrap(arg0);
2635
+ return addHeapObject(ret);
2636
+ };
2637
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2638
+ const ret = WasmTransaction.__wrap(arg0);
2639
+ return addHeapObject(ret);
2640
+ };
2641
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2642
+ const ret = getStringFromWasm0(arg0, arg1);
2643
+ return addHeapObject(ret);
2644
+ };
2645
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2646
+ const ret = WasmBlock.__wrap(arg0);
2647
+ return addHeapObject(ret);
2648
+ };
2625
2649
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2626
2650
  const obj = getObject(arg1);
2627
2651
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2634,20 +2658,12 @@ function __wbg_get_imports() {
2634
2658
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2635
2659
  return addHeapObject(ret);
2636
2660
  };
2637
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2638
- const ret = getStringFromWasm0(arg0, arg1);
2639
- return addHeapObject(ret);
2640
- };
2641
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2642
- const ret = BigInt.asUintN(64, arg0);
2643
- return addHeapObject(ret);
2644
- };
2645
2661
  imports.wbg.__wbg_wasmnft_new = function(arg0) {
2646
2662
  const ret = WasmNFT.__wrap(arg0);
2647
2663
  return addHeapObject(ret);
2648
2664
  };
2649
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2650
- const ret = WasmTransaction.__wrap(arg0);
2665
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2666
+ const ret = WasmSlip.__wrap(arg0);
2651
2667
  return addHeapObject(ret);
2652
2668
  };
2653
2669
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
@@ -2658,22 +2674,6 @@ function __wbg_get_imports() {
2658
2674
  const ret = WasmWalletSlip.__wrap(arg0);
2659
2675
  return addHeapObject(ret);
2660
2676
  };
2661
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2662
- const ret = WasmWallet.__wrap(arg0);
2663
- return addHeapObject(ret);
2664
- };
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);
2671
- return addHeapObject(ret);
2672
- };
2673
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2674
- const ret = WasmBlock.__wrap(arg0);
2675
- return addHeapObject(ret);
2676
- };
2677
2677
  imports.wbg.__wbindgen_is_object = function(arg0) {
2678
2678
  const val = getObject(arg0);
2679
2679
  const ret = typeof(val) === 'object' && val !== null;
@@ -2695,13 +2695,13 @@ function __wbg_get_imports() {
2695
2695
  const ret = WasmHop.__wrap(arg0);
2696
2696
  return addHeapObject(ret);
2697
2697
  };
2698
- imports.wbg.__wbg_sendmessage_b68af0ef90901cb6 = function(arg0, arg1) {
2698
+ imports.wbg.__wbg_sendmessage_262bbd7c664526ca = function(arg0, arg1) {
2699
2699
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2700
2700
  };
2701
- imports.wbg.__wbg_sendmessagetoall_6a6920362b3b65e7 = function(arg0, arg1) {
2701
+ imports.wbg.__wbg_sendmessagetoall_43fc3ee5e53a3642 = function(arg0, arg1) {
2702
2702
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2703
2703
  };
2704
- imports.wbg.__wbg_connecttopeer_2abf185bebd7a353 = function() { return handleError(function (arg0, arg1, arg2) {
2704
+ imports.wbg.__wbg_connecttopeer_ee7698d210df5c37 = 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_87888fec1bab2665 = function() { return handleError(function (arg0) {
2716
+ imports.wbg.__wbg_disconnectfrompeer_160804f1459c6f67 = 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_124625693bf2e695 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2720
+ imports.wbg.__wbg_fetchblockfrompeer_891b2fe2328e1d64 = 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_45fbfe80fbdda7a9 = function(arg0, arg1, arg2) {
2732
+ imports.wbg.__wbg_writevalue_157cb6b8411106e3 = 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_1866ca92a14c0b47 = function(arg0, arg1, arg2) {
2743
+ imports.wbg.__wbg_appendvalue_ddc35d919e2c85da = 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_7a6b2d49605f0a4e = function(arg0, arg1) {
2754
+ imports.wbg.__wbg_flushdata_8a32a5dbb7241ab1 = 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_239b6777ecac3d86 = function() { return handleError(function (arg0, arg1) {
2765
+ imports.wbg.__wbg_readvalue_0e1fcfb11a215052 = 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_9f9f5705c4494175 = function() { return handleError(function () {
2777
+ imports.wbg.__wbg_loadblockfilelist_d29026d254862597 = 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_2a2ae1152d621177 = function() { return handleError(function (arg0, arg1) {
2781
+ imports.wbg.__wbg_isexistingfile_20ec57df26877203 = 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_316fffff6752fe04 = function() { return handleError(function (arg0, arg1) {
2793
+ imports.wbg.__wbg_removevalue_f83bcaaf00c982a2 = 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_23c9bbe1cfe09714 = function() { return handleError(function (arg0, arg1) {
2805
+ imports.wbg.__wbg_ensureblockdirectoryexists_9d66ee4fa650eacf = 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_4257045162c0ba16 = function(arg0, arg1, arg2) {
2816
+ imports.wbg.__wbg_processapicall_625ca9bc93033bc6 = function(arg0, arg1, arg2) {
2817
2817
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2818
2818
  };
2819
- imports.wbg.__wbg_processapisuccess_f642c366bf1f770d = function(arg0, arg1, arg2) {
2819
+ imports.wbg.__wbg_processapisuccess_e9a5fdfd82b503e3 = function(arg0, arg1, arg2) {
2820
2820
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2821
2821
  };
2822
- imports.wbg.__wbg_processapierror_3c1b9fce8f248685 = function(arg0, arg1, arg2) {
2822
+ imports.wbg.__wbg_processapierror_5abe4f0f3fc7b0ec = function(arg0, arg1, arg2) {
2823
2823
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2824
2824
  };
2825
- imports.wbg.__wbg_sendinterfaceevent_73a2ad9558108661 = function(arg0, arg1, arg2, arg3, arg4) {
2825
+ imports.wbg.__wbg_sendinterfaceevent_f34ea9c479363a82 = 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_74a7af7810451d24 = function(arg0, arg1, arg2) {
2841
+ imports.wbg.__wbg_sendblocksuccess_4ca4dd4705dc4456 = 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_2eef0f275295061c = function() {
2852
+ imports.wbg.__wbg_sendwalletupdate_aa02282a85683fb1 = function() {
2853
2853
  MsgHandler.send_wallet_update();
2854
2854
  };
2855
- imports.wbg.__wbg_sendnewversionalert_155ceabf228c161f = function(arg0, arg1, arg2) {
2855
+ imports.wbg.__wbg_sendnewversionalert_977ea42b8623e615 = 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_2861f38f53adefe5 = function(arg0) {
2866
+ imports.wbg.__wbg_sendblockfetchstatusevent_914d0a3461a0e2de = function(arg0) {
2867
2867
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2868
2868
  };
2869
- imports.wbg.__wbg_savewallet_ab1c5e90418b0561 = function() {
2869
+ imports.wbg.__wbg_savewallet_5d354639ab9e29cf = function() {
2870
2870
  MsgHandler.save_wallet();
2871
2871
  };
2872
- imports.wbg.__wbg_loadwallet_5b1a06951f6dfa5c = function() {
2872
+ imports.wbg.__wbg_loadwallet_66205767c0a3a211 = function() {
2873
2873
  MsgHandler.load_wallet();
2874
2874
  };
2875
- imports.wbg.__wbg_getmyservices_2c03b806483a3d8b = function() {
2875
+ imports.wbg.__wbg_getmyservices_b429382a06848066 = function() {
2876
2876
  const ret = MsgHandler.get_my_services();
2877
2877
  _assertClass(ret, WasmPeerServiceList);
2878
2878
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.116",
3
+ "version": "0.2.118",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",