saito-wasm 0.2.86 → 0.2.87

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.86"
3
+ version = "0.2.87"
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.86",
3
+ "version": "0.2.87",
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-d180c15a7e173c4e/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-f6c7343a081e66df/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');
@@ -2469,22 +2469,17 @@ class WasmWalletSlip {
2469
2469
  }
2470
2470
  module.exports.WasmWalletSlip = WasmWalletSlip;
2471
2471
 
2472
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
2473
- takeObject(arg0);
2474
- };
2475
-
2476
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2477
- const ret = getStringFromWasm0(arg0, arg1);
2472
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2473
+ const ret = WasmPeer.__wrap(arg0);
2478
2474
  return addHeapObject(ret);
2479
2475
  };
2480
2476
 
2481
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2482
- const ret = BigInt.asUintN(64, arg0);
2483
- return addHeapObject(ret);
2477
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2478
+ takeObject(arg0);
2484
2479
  };
2485
2480
 
2486
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2487
- const ret = WasmTransaction.__wrap(arg0);
2481
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2482
+ const ret = WasmNFT.__wrap(arg0);
2488
2483
  return addHeapObject(ret);
2489
2484
  };
2490
2485
 
@@ -2493,23 +2488,23 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2493
2488
  return addHeapObject(ret);
2494
2489
  };
2495
2490
 
2496
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2497
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2491
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2492
+ const ret = WasmWalletSlip.__wrap(arg0);
2498
2493
  return addHeapObject(ret);
2499
2494
  };
2500
2495
 
2501
- module.exports.__wbg_wasmslip_new = function(arg0) {
2502
- const ret = WasmSlip.__wrap(arg0);
2496
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2497
+ const ret = BigInt.asUintN(64, arg0);
2503
2498
  return addHeapObject(ret);
2504
2499
  };
2505
2500
 
2506
- module.exports.__wbg_wasmnft_new = function(arg0) {
2507
- const ret = WasmNFT.__wrap(arg0);
2501
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2502
+ const ret = WasmBlockchain.__wrap(arg0);
2508
2503
  return addHeapObject(ret);
2509
2504
  };
2510
2505
 
2511
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2512
- const ret = WasmPeer.__wrap(arg0);
2506
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2507
+ const ret = getStringFromWasm0(arg0, arg1);
2513
2508
  return addHeapObject(ret);
2514
2509
  };
2515
2510
 
@@ -2522,8 +2517,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2522
2517
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2523
2518
  };
2524
2519
 
2525
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2526
- const ret = WasmBlockchain.__wrap(arg0);
2520
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2521
+ const ret = WasmTransaction.__wrap(arg0);
2522
+ return addHeapObject(ret);
2523
+ };
2524
+
2525
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2526
+ const ret = WasmSlip.__wrap(arg0);
2527
2527
  return addHeapObject(ret);
2528
2528
  };
2529
2529
 
@@ -2532,8 +2532,8 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
2532
2532
  return addHeapObject(ret);
2533
2533
  };
2534
2534
 
2535
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2536
- const ret = WasmWalletSlip.__wrap(arg0);
2535
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2536
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2537
2537
  return addHeapObject(ret);
2538
2538
  };
2539
2539
 
@@ -2542,15 +2542,15 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
2542
2542
  return addHeapObject(ret);
2543
2543
  };
2544
2544
 
2545
- module.exports.__wbg_sendmessage_77d7a370f5696dd8 = function(arg0, arg1) {
2545
+ module.exports.__wbg_sendmessage_07af6fcd4c5c1e84 = function(arg0, arg1) {
2546
2546
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2547
2547
  };
2548
2548
 
2549
- module.exports.__wbg_sendmessagetoall_07e2c7d3674c262e = function(arg0, arg1) {
2549
+ module.exports.__wbg_sendmessagetoall_c566b6605a33e8aa = function(arg0, arg1) {
2550
2550
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2551
2551
  };
2552
2552
 
2553
- module.exports.__wbg_connecttopeer_bfe92081bb6162c3 = function() { return handleError(function (arg0, arg1, arg2) {
2553
+ module.exports.__wbg_connecttopeer_9bef04ef48682502 = function() { return handleError(function (arg0, arg1, arg2) {
2554
2554
  let deferred0_0;
2555
2555
  let deferred0_1;
2556
2556
  try {
@@ -2563,12 +2563,12 @@ module.exports.__wbg_connecttopeer_bfe92081bb6162c3 = function() { return handle
2563
2563
  }
2564
2564
  }, arguments) };
2565
2565
 
2566
- module.exports.__wbg_disconnectfrompeer_c21e2e768e43f08a = function() { return handleError(function (arg0) {
2566
+ module.exports.__wbg_disconnectfrompeer_79c15dac4c5128fd = function() { return handleError(function (arg0) {
2567
2567
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2568
2568
  return addHeapObject(ret);
2569
2569
  }, arguments) };
2570
2570
 
2571
- module.exports.__wbg_fetchblockfrompeer_00dfd76a1d862eb1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2571
+ module.exports.__wbg_fetchblockfrompeer_5136ff6fdb14a1bd = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2572
2572
  let deferred0_0;
2573
2573
  let deferred0_1;
2574
2574
  try {
@@ -2581,7 +2581,7 @@ module.exports.__wbg_fetchblockfrompeer_00dfd76a1d862eb1 = function() { return h
2581
2581
  }
2582
2582
  }, arguments) };
2583
2583
 
2584
- module.exports.__wbg_writevalue_48c83790a402bb14 = function(arg0, arg1, arg2) {
2584
+ module.exports.__wbg_writevalue_ddc4dd962d4b265a = function(arg0, arg1, arg2) {
2585
2585
  let deferred0_0;
2586
2586
  let deferred0_1;
2587
2587
  try {
@@ -2593,7 +2593,7 @@ module.exports.__wbg_writevalue_48c83790a402bb14 = function(arg0, arg1, arg2) {
2593
2593
  }
2594
2594
  };
2595
2595
 
2596
- module.exports.__wbg_appendvalue_1a8decfda51fdd76 = function(arg0, arg1, arg2) {
2596
+ module.exports.__wbg_appendvalue_03860cae22cb15b7 = function(arg0, arg1, arg2) {
2597
2597
  let deferred0_0;
2598
2598
  let deferred0_1;
2599
2599
  try {
@@ -2605,7 +2605,7 @@ module.exports.__wbg_appendvalue_1a8decfda51fdd76 = function(arg0, arg1, arg2) {
2605
2605
  }
2606
2606
  };
2607
2607
 
2608
- module.exports.__wbg_flushdata_5b062d726319143d = function(arg0, arg1) {
2608
+ module.exports.__wbg_flushdata_e08dc4bdc4b7d38b = function(arg0, arg1) {
2609
2609
  let deferred0_0;
2610
2610
  let deferred0_1;
2611
2611
  try {
@@ -2617,7 +2617,7 @@ module.exports.__wbg_flushdata_5b062d726319143d = function(arg0, arg1) {
2617
2617
  }
2618
2618
  };
2619
2619
 
2620
- module.exports.__wbg_readvalue_ed0013050b7139d6 = function() { return handleError(function (arg0, arg1) {
2620
+ module.exports.__wbg_readvalue_ee5b2154b88c93ed = function() { return handleError(function (arg0, arg1) {
2621
2621
  let deferred0_0;
2622
2622
  let deferred0_1;
2623
2623
  try {
@@ -2630,12 +2630,12 @@ module.exports.__wbg_readvalue_ed0013050b7139d6 = function() { return handleErro
2630
2630
  }
2631
2631
  }, arguments) };
2632
2632
 
2633
- module.exports.__wbg_loadblockfilelist_70086418e0621854 = function() { return handleError(function () {
2633
+ module.exports.__wbg_loadblockfilelist_3c534c89a0193188 = function() { return handleError(function () {
2634
2634
  const ret = MsgHandler.load_block_file_list();
2635
2635
  return addHeapObject(ret);
2636
2636
  }, arguments) };
2637
2637
 
2638
- module.exports.__wbg_isexistingfile_4c8eb631ffdea587 = function() { return handleError(function (arg0, arg1) {
2638
+ module.exports.__wbg_isexistingfile_0bfa6ded39924694 = function() { return handleError(function (arg0, arg1) {
2639
2639
  let deferred0_0;
2640
2640
  let deferred0_1;
2641
2641
  try {
@@ -2648,7 +2648,7 @@ module.exports.__wbg_isexistingfile_4c8eb631ffdea587 = function() { return handl
2648
2648
  }
2649
2649
  }, arguments) };
2650
2650
 
2651
- module.exports.__wbg_removevalue_722db5023c9a2ca2 = function() { return handleError(function (arg0, arg1) {
2651
+ module.exports.__wbg_removevalue_9e24fccbf647f54b = function() { return handleError(function (arg0, arg1) {
2652
2652
  let deferred0_0;
2653
2653
  let deferred0_1;
2654
2654
  try {
@@ -2661,7 +2661,7 @@ module.exports.__wbg_removevalue_722db5023c9a2ca2 = function() { return handleEr
2661
2661
  }
2662
2662
  }, arguments) };
2663
2663
 
2664
- module.exports.__wbg_ensureblockdirectoryexists_e3db3af38342ec0a = function() { return handleError(function (arg0, arg1) {
2664
+ module.exports.__wbg_ensureblockdirectoryexists_1582380c022be420 = function() { return handleError(function (arg0, arg1) {
2665
2665
  let deferred0_0;
2666
2666
  let deferred0_1;
2667
2667
  try {
@@ -2673,19 +2673,19 @@ module.exports.__wbg_ensureblockdirectoryexists_e3db3af38342ec0a = function() {
2673
2673
  }
2674
2674
  }, arguments) };
2675
2675
 
2676
- module.exports.__wbg_processapicall_0df12468785e78e2 = function(arg0, arg1, arg2) {
2676
+ module.exports.__wbg_processapicall_eb69ee0f20c7b6b1 = function(arg0, arg1, arg2) {
2677
2677
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2678
2678
  };
2679
2679
 
2680
- module.exports.__wbg_processapisuccess_da4d529c03568c9c = function(arg0, arg1, arg2) {
2680
+ module.exports.__wbg_processapisuccess_d98cd35fdfd18e0e = function(arg0, arg1, arg2) {
2681
2681
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2682
2682
  };
2683
2683
 
2684
- module.exports.__wbg_processapierror_035984d330f91c97 = function(arg0, arg1, arg2) {
2684
+ module.exports.__wbg_processapierror_044080f21cc2d2cf = function(arg0, arg1, arg2) {
2685
2685
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2686
2686
  };
2687
2687
 
2688
- module.exports.__wbg_sendinterfaceevent_82a7c85a13da8e2e = function(arg0, arg1, arg2, arg3, arg4) {
2688
+ module.exports.__wbg_sendinterfaceevent_27f6efa644ac7d66 = function(arg0, arg1, arg2, arg3, arg4) {
2689
2689
  let deferred0_0;
2690
2690
  let deferred0_1;
2691
2691
  let deferred1_0;
@@ -2702,7 +2702,7 @@ module.exports.__wbg_sendinterfaceevent_82a7c85a13da8e2e = function(arg0, arg1,
2702
2702
  }
2703
2703
  };
2704
2704
 
2705
- module.exports.__wbg_sendblocksuccess_e508dcb25c6b0f19 = function(arg0, arg1, arg2) {
2705
+ module.exports.__wbg_sendblocksuccess_05e308eb721b894d = function(arg0, arg1, arg2) {
2706
2706
  let deferred0_0;
2707
2707
  let deferred0_1;
2708
2708
  try {
@@ -2714,11 +2714,11 @@ module.exports.__wbg_sendblocksuccess_e508dcb25c6b0f19 = function(arg0, arg1, ar
2714
2714
  }
2715
2715
  };
2716
2716
 
2717
- module.exports.__wbg_sendwalletupdate_89568ecfc4736eed = function() {
2717
+ module.exports.__wbg_sendwalletupdate_c0c82a49c3658ac0 = function() {
2718
2718
  MsgHandler.send_wallet_update();
2719
2719
  };
2720
2720
 
2721
- module.exports.__wbg_sendnewversionalert_d9f7db3f00941ce8 = function(arg0, arg1, arg2) {
2721
+ module.exports.__wbg_sendnewversionalert_605bd1c3c62ac6a3 = function(arg0, arg1, arg2) {
2722
2722
  let deferred0_0;
2723
2723
  let deferred0_1;
2724
2724
  try {
@@ -2730,19 +2730,19 @@ module.exports.__wbg_sendnewversionalert_d9f7db3f00941ce8 = function(arg0, arg1,
2730
2730
  }
2731
2731
  };
2732
2732
 
2733
- module.exports.__wbg_sendblockfetchstatusevent_1240405d3ef64ef9 = function(arg0) {
2733
+ module.exports.__wbg_sendblockfetchstatusevent_053b13cffb32d2f4 = function(arg0) {
2734
2734
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2735
2735
  };
2736
2736
 
2737
- module.exports.__wbg_savewallet_3071feec8b44df1d = function() {
2737
+ module.exports.__wbg_savewallet_cf25ba6c15651a5d = function() {
2738
2738
  MsgHandler.save_wallet();
2739
2739
  };
2740
2740
 
2741
- module.exports.__wbg_loadwallet_21b360289c40b7a7 = function() {
2741
+ module.exports.__wbg_loadwallet_a9c44fa583ac0ca3 = function() {
2742
2742
  MsgHandler.load_wallet();
2743
2743
  };
2744
2744
 
2745
- module.exports.__wbg_getmyservices_e32f19d4be3ec715 = function() {
2745
+ module.exports.__wbg_getmyservices_84323c68af870b90 = function() {
2746
2746
  const ret = MsgHandler.get_my_services();
2747
2747
  _assertClass(ret, WasmPeerServiceList);
2748
2748
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "node-fetch": "^3.3.0",
13
- "cross-env": "^7.0.3"
12
+ "cross-env": "^7.0.3",
13
+ "node-fetch": "^3.3.0"
14
14
  }
15
15
  }
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-d180c15a7e173c4e/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-f6c7343a081e66df/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') } } );
@@ -2486,39 +2486,35 @@ async function __wbg_load(module, imports) {
2486
2486
  function __wbg_get_imports() {
2487
2487
  const imports = {};
2488
2488
  imports.wbg = {};
2489
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2490
- takeObject(arg0);
2491
- };
2492
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2493
- const ret = getStringFromWasm0(arg0, arg1);
2489
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2490
+ const ret = WasmPeer.__wrap(arg0);
2494
2491
  return addHeapObject(ret);
2495
2492
  };
2496
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2497
- const ret = BigInt.asUintN(64, arg0);
2498
- return addHeapObject(ret);
2493
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2494
+ takeObject(arg0);
2499
2495
  };
2500
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2501
- const ret = WasmTransaction.__wrap(arg0);
2496
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2497
+ const ret = WasmNFT.__wrap(arg0);
2502
2498
  return addHeapObject(ret);
2503
2499
  };
2504
2500
  imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2505
2501
  const ret = WasmWallet.__wrap(arg0);
2506
2502
  return addHeapObject(ret);
2507
2503
  };
2508
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2509
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2504
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2505
+ const ret = WasmWalletSlip.__wrap(arg0);
2510
2506
  return addHeapObject(ret);
2511
2507
  };
2512
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2513
- const ret = WasmSlip.__wrap(arg0);
2508
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2509
+ const ret = BigInt.asUintN(64, arg0);
2514
2510
  return addHeapObject(ret);
2515
2511
  };
2516
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2517
- const ret = WasmNFT.__wrap(arg0);
2512
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2513
+ const ret = WasmBlockchain.__wrap(arg0);
2518
2514
  return addHeapObject(ret);
2519
2515
  };
2520
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2521
- const ret = WasmPeer.__wrap(arg0);
2516
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2517
+ const ret = getStringFromWasm0(arg0, arg1);
2522
2518
  return addHeapObject(ret);
2523
2519
  };
2524
2520
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -2529,29 +2525,33 @@ function __wbg_get_imports() {
2529
2525
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2530
2526
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2531
2527
  };
2532
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2533
- const ret = WasmBlockchain.__wrap(arg0);
2528
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2529
+ const ret = WasmTransaction.__wrap(arg0);
2530
+ return addHeapObject(ret);
2531
+ };
2532
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2533
+ const ret = WasmSlip.__wrap(arg0);
2534
2534
  return addHeapObject(ret);
2535
2535
  };
2536
2536
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2537
2537
  const ret = WasmBlock.__wrap(arg0);
2538
2538
  return addHeapObject(ret);
2539
2539
  };
2540
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2541
- const ret = WasmWalletSlip.__wrap(arg0);
2540
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2541
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2542
2542
  return addHeapObject(ret);
2543
2543
  };
2544
2544
  imports.wbg.__wbg_wasmhop_new = function(arg0) {
2545
2545
  const ret = WasmHop.__wrap(arg0);
2546
2546
  return addHeapObject(ret);
2547
2547
  };
2548
- imports.wbg.__wbg_sendmessage_77d7a370f5696dd8 = function(arg0, arg1) {
2548
+ imports.wbg.__wbg_sendmessage_07af6fcd4c5c1e84 = function(arg0, arg1) {
2549
2549
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2550
2550
  };
2551
- imports.wbg.__wbg_sendmessagetoall_07e2c7d3674c262e = function(arg0, arg1) {
2551
+ imports.wbg.__wbg_sendmessagetoall_c566b6605a33e8aa = function(arg0, arg1) {
2552
2552
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2553
2553
  };
2554
- imports.wbg.__wbg_connecttopeer_bfe92081bb6162c3 = function() { return handleError(function (arg0, arg1, arg2) {
2554
+ imports.wbg.__wbg_connecttopeer_9bef04ef48682502 = function() { return handleError(function (arg0, arg1, arg2) {
2555
2555
  let deferred0_0;
2556
2556
  let deferred0_1;
2557
2557
  try {
@@ -2563,11 +2563,11 @@ function __wbg_get_imports() {
2563
2563
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2564
2564
  }
2565
2565
  }, arguments) };
2566
- imports.wbg.__wbg_disconnectfrompeer_c21e2e768e43f08a = function() { return handleError(function (arg0) {
2566
+ imports.wbg.__wbg_disconnectfrompeer_79c15dac4c5128fd = function() { return handleError(function (arg0) {
2567
2567
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2568
2568
  return addHeapObject(ret);
2569
2569
  }, arguments) };
2570
- imports.wbg.__wbg_fetchblockfrompeer_00dfd76a1d862eb1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2570
+ imports.wbg.__wbg_fetchblockfrompeer_5136ff6fdb14a1bd = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2571
2571
  let deferred0_0;
2572
2572
  let deferred0_1;
2573
2573
  try {
@@ -2579,7 +2579,7 @@ function __wbg_get_imports() {
2579
2579
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2580
2580
  }
2581
2581
  }, arguments) };
2582
- imports.wbg.__wbg_writevalue_48c83790a402bb14 = function(arg0, arg1, arg2) {
2582
+ imports.wbg.__wbg_writevalue_ddc4dd962d4b265a = function(arg0, arg1, arg2) {
2583
2583
  let deferred0_0;
2584
2584
  let deferred0_1;
2585
2585
  try {
@@ -2590,7 +2590,7 @@ function __wbg_get_imports() {
2590
2590
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2591
2591
  }
2592
2592
  };
2593
- imports.wbg.__wbg_appendvalue_1a8decfda51fdd76 = function(arg0, arg1, arg2) {
2593
+ imports.wbg.__wbg_appendvalue_03860cae22cb15b7 = function(arg0, arg1, arg2) {
2594
2594
  let deferred0_0;
2595
2595
  let deferred0_1;
2596
2596
  try {
@@ -2601,7 +2601,7 @@ function __wbg_get_imports() {
2601
2601
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2602
2602
  }
2603
2603
  };
2604
- imports.wbg.__wbg_flushdata_5b062d726319143d = function(arg0, arg1) {
2604
+ imports.wbg.__wbg_flushdata_e08dc4bdc4b7d38b = function(arg0, arg1) {
2605
2605
  let deferred0_0;
2606
2606
  let deferred0_1;
2607
2607
  try {
@@ -2612,7 +2612,7 @@ function __wbg_get_imports() {
2612
2612
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2613
2613
  }
2614
2614
  };
2615
- imports.wbg.__wbg_readvalue_ed0013050b7139d6 = function() { return handleError(function (arg0, arg1) {
2615
+ imports.wbg.__wbg_readvalue_ee5b2154b88c93ed = function() { return handleError(function (arg0, arg1) {
2616
2616
  let deferred0_0;
2617
2617
  let deferred0_1;
2618
2618
  try {
@@ -2624,11 +2624,11 @@ function __wbg_get_imports() {
2624
2624
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2625
2625
  }
2626
2626
  }, arguments) };
2627
- imports.wbg.__wbg_loadblockfilelist_70086418e0621854 = function() { return handleError(function () {
2627
+ imports.wbg.__wbg_loadblockfilelist_3c534c89a0193188 = function() { return handleError(function () {
2628
2628
  const ret = MsgHandler.load_block_file_list();
2629
2629
  return addHeapObject(ret);
2630
2630
  }, arguments) };
2631
- imports.wbg.__wbg_isexistingfile_4c8eb631ffdea587 = function() { return handleError(function (arg0, arg1) {
2631
+ imports.wbg.__wbg_isexistingfile_0bfa6ded39924694 = function() { return handleError(function (arg0, arg1) {
2632
2632
  let deferred0_0;
2633
2633
  let deferred0_1;
2634
2634
  try {
@@ -2640,7 +2640,7 @@ function __wbg_get_imports() {
2640
2640
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2641
2641
  }
2642
2642
  }, arguments) };
2643
- imports.wbg.__wbg_removevalue_722db5023c9a2ca2 = function() { return handleError(function (arg0, arg1) {
2643
+ imports.wbg.__wbg_removevalue_9e24fccbf647f54b = function() { return handleError(function (arg0, arg1) {
2644
2644
  let deferred0_0;
2645
2645
  let deferred0_1;
2646
2646
  try {
@@ -2652,7 +2652,7 @@ function __wbg_get_imports() {
2652
2652
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2653
2653
  }
2654
2654
  }, arguments) };
2655
- imports.wbg.__wbg_ensureblockdirectoryexists_e3db3af38342ec0a = function() { return handleError(function (arg0, arg1) {
2655
+ imports.wbg.__wbg_ensureblockdirectoryexists_1582380c022be420 = function() { return handleError(function (arg0, arg1) {
2656
2656
  let deferred0_0;
2657
2657
  let deferred0_1;
2658
2658
  try {
@@ -2663,16 +2663,16 @@ function __wbg_get_imports() {
2663
2663
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2664
2664
  }
2665
2665
  }, arguments) };
2666
- imports.wbg.__wbg_processapicall_0df12468785e78e2 = function(arg0, arg1, arg2) {
2666
+ imports.wbg.__wbg_processapicall_eb69ee0f20c7b6b1 = function(arg0, arg1, arg2) {
2667
2667
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2668
2668
  };
2669
- imports.wbg.__wbg_processapisuccess_da4d529c03568c9c = function(arg0, arg1, arg2) {
2669
+ imports.wbg.__wbg_processapisuccess_d98cd35fdfd18e0e = function(arg0, arg1, arg2) {
2670
2670
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2671
2671
  };
2672
- imports.wbg.__wbg_processapierror_035984d330f91c97 = function(arg0, arg1, arg2) {
2672
+ imports.wbg.__wbg_processapierror_044080f21cc2d2cf = function(arg0, arg1, arg2) {
2673
2673
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2674
2674
  };
2675
- imports.wbg.__wbg_sendinterfaceevent_82a7c85a13da8e2e = function(arg0, arg1, arg2, arg3, arg4) {
2675
+ imports.wbg.__wbg_sendinterfaceevent_27f6efa644ac7d66 = function(arg0, arg1, arg2, arg3, arg4) {
2676
2676
  let deferred0_0;
2677
2677
  let deferred0_1;
2678
2678
  let deferred1_0;
@@ -2688,7 +2688,7 @@ function __wbg_get_imports() {
2688
2688
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2689
2689
  }
2690
2690
  };
2691
- imports.wbg.__wbg_sendblocksuccess_e508dcb25c6b0f19 = function(arg0, arg1, arg2) {
2691
+ imports.wbg.__wbg_sendblocksuccess_05e308eb721b894d = function(arg0, arg1, arg2) {
2692
2692
  let deferred0_0;
2693
2693
  let deferred0_1;
2694
2694
  try {
@@ -2699,10 +2699,10 @@ function __wbg_get_imports() {
2699
2699
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2700
2700
  }
2701
2701
  };
2702
- imports.wbg.__wbg_sendwalletupdate_89568ecfc4736eed = function() {
2702
+ imports.wbg.__wbg_sendwalletupdate_c0c82a49c3658ac0 = function() {
2703
2703
  MsgHandler.send_wallet_update();
2704
2704
  };
2705
- imports.wbg.__wbg_sendnewversionalert_d9f7db3f00941ce8 = function(arg0, arg1, arg2) {
2705
+ imports.wbg.__wbg_sendnewversionalert_605bd1c3c62ac6a3 = function(arg0, arg1, arg2) {
2706
2706
  let deferred0_0;
2707
2707
  let deferred0_1;
2708
2708
  try {
@@ -2713,16 +2713,16 @@ function __wbg_get_imports() {
2713
2713
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2714
2714
  }
2715
2715
  };
2716
- imports.wbg.__wbg_sendblockfetchstatusevent_1240405d3ef64ef9 = function(arg0) {
2716
+ imports.wbg.__wbg_sendblockfetchstatusevent_053b13cffb32d2f4 = function(arg0) {
2717
2717
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2718
2718
  };
2719
- imports.wbg.__wbg_savewallet_3071feec8b44df1d = function() {
2719
+ imports.wbg.__wbg_savewallet_cf25ba6c15651a5d = function() {
2720
2720
  MsgHandler.save_wallet();
2721
2721
  };
2722
- imports.wbg.__wbg_loadwallet_21b360289c40b7a7 = function() {
2722
+ imports.wbg.__wbg_loadwallet_a9c44fa583ac0ca3 = function() {
2723
2723
  MsgHandler.load_wallet();
2724
2724
  };
2725
- imports.wbg.__wbg_getmyservices_e32f19d4be3ec715 = function() {
2725
+ imports.wbg.__wbg_getmyservices_84323c68af870b90 = function() {
2726
2726
  const ret = MsgHandler.get_my_services();
2727
2727
  _assertClass(ret, WasmPeerServiceList);
2728
2728
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -12,7 +12,7 @@
12
12
  "./snippets/*"
13
13
  ],
14
14
  "dependencies": {
15
- "node-fetch": "^3.3.0",
16
- "cross-env": "^7.0.3"
15
+ "cross-env": "^7.0.3",
16
+ "node-fetch": "^3.3.0"
17
17
  }
18
18
  }