saito-wasm 0.2.31 → 0.2.32

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.31"
3
+ version = "0.2.32"
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.31",
3
+ "version": "0.2.32",
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-b15ed30178ff4389/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-bafd680e29f33ffd/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;
@@ -2392,17 +2392,27 @@ class WasmWalletSlip {
2392
2392
  }
2393
2393
  module.exports.WasmWalletSlip = WasmWalletSlip;
2394
2394
 
2395
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2396
+ const ret = getStringFromWasm0(arg0, arg1);
2397
+ return addHeapObject(ret);
2398
+ };
2399
+
2395
2400
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2396
2401
  takeObject(arg0);
2397
2402
  };
2398
2403
 
2404
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2405
+ const ret = WasmTransaction.__wrap(arg0);
2406
+ return addHeapObject(ret);
2407
+ };
2408
+
2399
2409
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2400
2410
  const ret = BigInt.asUintN(64, arg0);
2401
2411
  return addHeapObject(ret);
2402
2412
  };
2403
2413
 
2404
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2405
- const ret = getStringFromWasm0(arg0, arg1);
2414
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2415
+ const ret = WasmWalletSlip.__wrap(arg0);
2406
2416
  return addHeapObject(ret);
2407
2417
  };
2408
2418
 
@@ -2411,6 +2421,11 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2411
2421
  return addHeapObject(ret);
2412
2422
  };
2413
2423
 
2424
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2425
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2426
+ return addHeapObject(ret);
2427
+ };
2428
+
2414
2429
  module.exports.__wbg_wasmblock_new = function(arg0) {
2415
2430
  const ret = WasmBlock.__wrap(arg0);
2416
2431
  return addHeapObject(ret);
@@ -2421,28 +2436,13 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2421
2436
  return addHeapObject(ret);
2422
2437
  };
2423
2438
 
2424
- module.exports.__wbg_wasmslip_new = function(arg0) {
2425
- const ret = WasmSlip.__wrap(arg0);
2426
- return addHeapObject(ret);
2427
- };
2428
-
2429
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2430
- const ret = WasmWalletSlip.__wrap(arg0);
2431
- return addHeapObject(ret);
2432
- };
2433
-
2434
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2435
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2436
- return addHeapObject(ret);
2437
- };
2438
-
2439
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2440
- const ret = WasmTransaction.__wrap(arg0);
2439
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2440
+ const ret = WasmBlockchain.__wrap(arg0);
2441
2441
  return addHeapObject(ret);
2442
2442
  };
2443
2443
 
2444
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2445
- const ret = WasmBlockchain.__wrap(arg0);
2444
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2445
+ const ret = WasmSlip.__wrap(arg0);
2446
2446
  return addHeapObject(ret);
2447
2447
  };
2448
2448
 
@@ -2460,15 +2460,15 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2460
2460
  return addHeapObject(ret);
2461
2461
  };
2462
2462
 
2463
- module.exports.__wbg_sendmessage_89909b83ec6a9740 = function(arg0, arg1) {
2463
+ module.exports.__wbg_sendmessage_3f9c9a3c04faa831 = function(arg0, arg1) {
2464
2464
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2465
2465
  };
2466
2466
 
2467
- module.exports.__wbg_sendmessagetoall_a5c96127c8ed897a = function(arg0, arg1) {
2467
+ module.exports.__wbg_sendmessagetoall_01504c5649f439a9 = function(arg0, arg1) {
2468
2468
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2469
2469
  };
2470
2470
 
2471
- module.exports.__wbg_connecttopeer_2eea53548283ff09 = function() { return handleError(function (arg0, arg1, arg2) {
2471
+ module.exports.__wbg_connecttopeer_5a80d22a81191394 = function() { return handleError(function (arg0, arg1, arg2) {
2472
2472
  let deferred0_0;
2473
2473
  let deferred0_1;
2474
2474
  try {
@@ -2481,12 +2481,12 @@ module.exports.__wbg_connecttopeer_2eea53548283ff09 = function() { return handle
2481
2481
  }
2482
2482
  }, arguments) };
2483
2483
 
2484
- module.exports.__wbg_disconnectfrompeer_b22f5853f823c412 = function() { return handleError(function (arg0) {
2484
+ module.exports.__wbg_disconnectfrompeer_228f6074acb86b7a = function() { return handleError(function (arg0) {
2485
2485
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2486
2486
  return addHeapObject(ret);
2487
2487
  }, arguments) };
2488
2488
 
2489
- module.exports.__wbg_fetchblockfrompeer_0228b7724532555f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2489
+ module.exports.__wbg_fetchblockfrompeer_5406105f2b6c82be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2490
2490
  let deferred0_0;
2491
2491
  let deferred0_1;
2492
2492
  try {
@@ -2499,7 +2499,7 @@ module.exports.__wbg_fetchblockfrompeer_0228b7724532555f = function() { return h
2499
2499
  }
2500
2500
  }, arguments) };
2501
2501
 
2502
- module.exports.__wbg_writevalue_d55b465f603d37bb = function(arg0, arg1, arg2) {
2502
+ module.exports.__wbg_writevalue_e62d3a29aa685c64 = function(arg0, arg1, arg2) {
2503
2503
  let deferred0_0;
2504
2504
  let deferred0_1;
2505
2505
  try {
@@ -2511,7 +2511,7 @@ module.exports.__wbg_writevalue_d55b465f603d37bb = function(arg0, arg1, arg2) {
2511
2511
  }
2512
2512
  };
2513
2513
 
2514
- module.exports.__wbg_appendvalue_45a69e48d3477bee = function(arg0, arg1, arg2) {
2514
+ module.exports.__wbg_appendvalue_c4151d8e76893929 = function(arg0, arg1, arg2) {
2515
2515
  let deferred0_0;
2516
2516
  let deferred0_1;
2517
2517
  try {
@@ -2523,7 +2523,7 @@ module.exports.__wbg_appendvalue_45a69e48d3477bee = function(arg0, arg1, arg2) {
2523
2523
  }
2524
2524
  };
2525
2525
 
2526
- module.exports.__wbg_flushdata_c015bb8366b5058f = function(arg0, arg1) {
2526
+ module.exports.__wbg_flushdata_dedd3d04181afd7f = function(arg0, arg1) {
2527
2527
  let deferred0_0;
2528
2528
  let deferred0_1;
2529
2529
  try {
@@ -2535,7 +2535,7 @@ module.exports.__wbg_flushdata_c015bb8366b5058f = function(arg0, arg1) {
2535
2535
  }
2536
2536
  };
2537
2537
 
2538
- module.exports.__wbg_readvalue_fd3c4331a4b9d85f = function() { return handleError(function (arg0, arg1) {
2538
+ module.exports.__wbg_readvalue_07766ecfab60ac45 = function() { return handleError(function (arg0, arg1) {
2539
2539
  let deferred0_0;
2540
2540
  let deferred0_1;
2541
2541
  try {
@@ -2548,12 +2548,12 @@ module.exports.__wbg_readvalue_fd3c4331a4b9d85f = function() { return handleErro
2548
2548
  }
2549
2549
  }, arguments) };
2550
2550
 
2551
- module.exports.__wbg_loadblockfilelist_f51f8b519822d224 = function() { return handleError(function () {
2551
+ module.exports.__wbg_loadblockfilelist_b18d11a0b07b3d29 = function() { return handleError(function () {
2552
2552
  const ret = MsgHandler.load_block_file_list();
2553
2553
  return addHeapObject(ret);
2554
2554
  }, arguments) };
2555
2555
 
2556
- module.exports.__wbg_isexistingfile_3a906ce9e91dfb9b = function() { return handleError(function (arg0, arg1) {
2556
+ module.exports.__wbg_isexistingfile_f2253e2a10e75155 = function() { return handleError(function (arg0, arg1) {
2557
2557
  let deferred0_0;
2558
2558
  let deferred0_1;
2559
2559
  try {
@@ -2566,7 +2566,7 @@ module.exports.__wbg_isexistingfile_3a906ce9e91dfb9b = function() { return handl
2566
2566
  }
2567
2567
  }, arguments) };
2568
2568
 
2569
- module.exports.__wbg_removevalue_3c5ed4f4ca1dcff8 = function() { return handleError(function (arg0, arg1) {
2569
+ module.exports.__wbg_removevalue_1128ef0ed2e2edae = function() { return handleError(function (arg0, arg1) {
2570
2570
  let deferred0_0;
2571
2571
  let deferred0_1;
2572
2572
  try {
@@ -2579,7 +2579,7 @@ module.exports.__wbg_removevalue_3c5ed4f4ca1dcff8 = function() { return handleEr
2579
2579
  }
2580
2580
  }, arguments) };
2581
2581
 
2582
- module.exports.__wbg_ensureblockdirectoryexists_714eaa2a2475c524 = function() { return handleError(function (arg0, arg1) {
2582
+ module.exports.__wbg_ensureblockdirectoryexists_722609e004de47d3 = function() { return handleError(function (arg0, arg1) {
2583
2583
  let deferred0_0;
2584
2584
  let deferred0_1;
2585
2585
  try {
@@ -2591,19 +2591,19 @@ module.exports.__wbg_ensureblockdirectoryexists_714eaa2a2475c524 = function() {
2591
2591
  }
2592
2592
  }, arguments) };
2593
2593
 
2594
- module.exports.__wbg_processapicall_03086ea7c6801782 = function(arg0, arg1, arg2) {
2594
+ module.exports.__wbg_processapicall_953c894600fd4457 = function(arg0, arg1, arg2) {
2595
2595
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2596
2596
  };
2597
2597
 
2598
- module.exports.__wbg_processapisuccess_465cdbfca809fc66 = function(arg0, arg1, arg2) {
2598
+ module.exports.__wbg_processapisuccess_bed5edf5da835105 = function(arg0, arg1, arg2) {
2599
2599
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2600
2600
  };
2601
2601
 
2602
- module.exports.__wbg_processapierror_5f0ae6c4a35e5162 = function(arg0, arg1, arg2) {
2602
+ module.exports.__wbg_processapierror_ea1f5c97786886dd = function(arg0, arg1, arg2) {
2603
2603
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2604
2604
  };
2605
2605
 
2606
- module.exports.__wbg_sendinterfaceevent_86d1ef7755db15f7 = function(arg0, arg1, arg2, arg3, arg4) {
2606
+ module.exports.__wbg_sendinterfaceevent_3a145868863bc2b2 = function(arg0, arg1, arg2, arg3, arg4) {
2607
2607
  let deferred0_0;
2608
2608
  let deferred0_1;
2609
2609
  let deferred1_0;
@@ -2620,7 +2620,7 @@ module.exports.__wbg_sendinterfaceevent_86d1ef7755db15f7 = function(arg0, arg1,
2620
2620
  }
2621
2621
  };
2622
2622
 
2623
- module.exports.__wbg_sendblocksuccess_782c709d6662cf6c = function(arg0, arg1, arg2) {
2623
+ module.exports.__wbg_sendblocksuccess_26fa775654ec93b1 = function(arg0, arg1, arg2) {
2624
2624
  let deferred0_0;
2625
2625
  let deferred0_1;
2626
2626
  try {
@@ -2632,11 +2632,11 @@ module.exports.__wbg_sendblocksuccess_782c709d6662cf6c = function(arg0, arg1, ar
2632
2632
  }
2633
2633
  };
2634
2634
 
2635
- module.exports.__wbg_sendwalletupdate_1de3da0580c8c977 = function() {
2635
+ module.exports.__wbg_sendwalletupdate_b4cd56af1167acfe = function() {
2636
2636
  MsgHandler.send_wallet_update();
2637
2637
  };
2638
2638
 
2639
- module.exports.__wbg_sendnewversionalert_a6c823dc5cab5d1e = function(arg0, arg1, arg2) {
2639
+ module.exports.__wbg_sendnewversionalert_e504bbed10683b3f = function(arg0, arg1, arg2) {
2640
2640
  let deferred0_0;
2641
2641
  let deferred0_1;
2642
2642
  try {
@@ -2648,19 +2648,19 @@ module.exports.__wbg_sendnewversionalert_a6c823dc5cab5d1e = function(arg0, arg1,
2648
2648
  }
2649
2649
  };
2650
2650
 
2651
- module.exports.__wbg_sendblockfetchstatusevent_1d64c1b739605e65 = function(arg0) {
2651
+ module.exports.__wbg_sendblockfetchstatusevent_6d22df0699ecb3ba = function(arg0) {
2652
2652
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2653
2653
  };
2654
2654
 
2655
- module.exports.__wbg_savewallet_0b44db75b74b0008 = function() {
2655
+ module.exports.__wbg_savewallet_9e0c55fc13bd98b0 = function() {
2656
2656
  MsgHandler.save_wallet();
2657
2657
  };
2658
2658
 
2659
- module.exports.__wbg_loadwallet_a5dd0debfa51f2cb = function() {
2659
+ module.exports.__wbg_loadwallet_89e1f5c5bced311e = function() {
2660
2660
  MsgHandler.load_wallet();
2661
2661
  };
2662
2662
 
2663
- module.exports.__wbg_getmyservices_1605592629081c7b = function() {
2663
+ module.exports.__wbg_getmyservices_6f6f9ec0653684de = function() {
2664
2664
  const ret = MsgHandler.get_my_services();
2665
2665
  _assertClass(ret, WasmPeerServiceList);
2666
2666
  var ptr1 = ret.__destroy_into_raw();
@@ -3043,7 +3043,7 @@ module.exports.__wbindgen_memory = function() {
3043
3043
  return addHeapObject(ret);
3044
3044
  };
3045
3045
 
3046
- module.exports.__wbindgen_closure_wrapper1334 = function(arg0, arg1, arg2) {
3046
+ module.exports.__wbindgen_closure_wrapper1333 = function(arg0, arg1, arg2) {
3047
3047
  const ret = makeMutClosure(arg0, arg1, 459, __wbg_adapter_38);
3048
3048
  return addHeapObject(ret);
3049
3049
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
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,27 +1,31 @@
1
- import { MsgHandler } from './snippets/saito-wasm-b15ed30178ff4389/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-bafd680e29f33ffd/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;
@@ -2410,21 +2410,33 @@ async function __wbg_load(module, imports) {
2410
2410
  function __wbg_get_imports() {
2411
2411
  const imports = {};
2412
2412
  imports.wbg = {};
2413
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2414
+ const ret = getStringFromWasm0(arg0, arg1);
2415
+ return addHeapObject(ret);
2416
+ };
2413
2417
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2414
2418
  takeObject(arg0);
2415
2419
  };
2420
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2421
+ const ret = WasmTransaction.__wrap(arg0);
2422
+ return addHeapObject(ret);
2423
+ };
2416
2424
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2417
2425
  const ret = BigInt.asUintN(64, arg0);
2418
2426
  return addHeapObject(ret);
2419
2427
  };
2420
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2421
- const ret = getStringFromWasm0(arg0, arg1);
2428
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2429
+ const ret = WasmWalletSlip.__wrap(arg0);
2422
2430
  return addHeapObject(ret);
2423
2431
  };
2424
2432
  imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2425
2433
  const ret = WasmWallet.__wrap(arg0);
2426
2434
  return addHeapObject(ret);
2427
2435
  };
2436
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2437
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2438
+ return addHeapObject(ret);
2439
+ };
2428
2440
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2429
2441
  const ret = WasmBlock.__wrap(arg0);
2430
2442
  return addHeapObject(ret);
@@ -2433,26 +2445,14 @@ function __wbg_get_imports() {
2433
2445
  const ret = WasmPeer.__wrap(arg0);
2434
2446
  return addHeapObject(ret);
2435
2447
  };
2436
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2437
- const ret = WasmSlip.__wrap(arg0);
2438
- return addHeapObject(ret);
2439
- };
2440
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2441
- const ret = WasmWalletSlip.__wrap(arg0);
2442
- return addHeapObject(ret);
2443
- };
2444
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2445
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2446
- return addHeapObject(ret);
2447
- };
2448
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2449
- const ret = WasmTransaction.__wrap(arg0);
2450
- return addHeapObject(ret);
2451
- };
2452
2448
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2453
2449
  const ret = WasmBlockchain.__wrap(arg0);
2454
2450
  return addHeapObject(ret);
2455
2451
  };
2452
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2453
+ const ret = WasmSlip.__wrap(arg0);
2454
+ return addHeapObject(ret);
2455
+ };
2456
2456
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2457
2457
  const obj = getObject(arg1);
2458
2458
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2465,13 +2465,13 @@ function __wbg_get_imports() {
2465
2465
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2466
2466
  return addHeapObject(ret);
2467
2467
  };
2468
- imports.wbg.__wbg_sendmessage_89909b83ec6a9740 = function(arg0, arg1) {
2468
+ imports.wbg.__wbg_sendmessage_3f9c9a3c04faa831 = function(arg0, arg1) {
2469
2469
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2470
2470
  };
2471
- imports.wbg.__wbg_sendmessagetoall_a5c96127c8ed897a = function(arg0, arg1) {
2471
+ imports.wbg.__wbg_sendmessagetoall_01504c5649f439a9 = function(arg0, arg1) {
2472
2472
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2473
2473
  };
2474
- imports.wbg.__wbg_connecttopeer_2eea53548283ff09 = function() { return handleError(function (arg0, arg1, arg2) {
2474
+ imports.wbg.__wbg_connecttopeer_5a80d22a81191394 = function() { return handleError(function (arg0, arg1, arg2) {
2475
2475
  let deferred0_0;
2476
2476
  let deferred0_1;
2477
2477
  try {
@@ -2483,11 +2483,11 @@ function __wbg_get_imports() {
2483
2483
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2484
2484
  }
2485
2485
  }, arguments) };
2486
- imports.wbg.__wbg_disconnectfrompeer_b22f5853f823c412 = function() { return handleError(function (arg0) {
2486
+ imports.wbg.__wbg_disconnectfrompeer_228f6074acb86b7a = function() { return handleError(function (arg0) {
2487
2487
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2488
2488
  return addHeapObject(ret);
2489
2489
  }, arguments) };
2490
- imports.wbg.__wbg_fetchblockfrompeer_0228b7724532555f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2490
+ imports.wbg.__wbg_fetchblockfrompeer_5406105f2b6c82be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2491
2491
  let deferred0_0;
2492
2492
  let deferred0_1;
2493
2493
  try {
@@ -2499,7 +2499,7 @@ function __wbg_get_imports() {
2499
2499
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2500
2500
  }
2501
2501
  }, arguments) };
2502
- imports.wbg.__wbg_writevalue_d55b465f603d37bb = function(arg0, arg1, arg2) {
2502
+ imports.wbg.__wbg_writevalue_e62d3a29aa685c64 = function(arg0, arg1, arg2) {
2503
2503
  let deferred0_0;
2504
2504
  let deferred0_1;
2505
2505
  try {
@@ -2510,7 +2510,7 @@ function __wbg_get_imports() {
2510
2510
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2511
2511
  }
2512
2512
  };
2513
- imports.wbg.__wbg_appendvalue_45a69e48d3477bee = function(arg0, arg1, arg2) {
2513
+ imports.wbg.__wbg_appendvalue_c4151d8e76893929 = function(arg0, arg1, arg2) {
2514
2514
  let deferred0_0;
2515
2515
  let deferred0_1;
2516
2516
  try {
@@ -2521,7 +2521,7 @@ function __wbg_get_imports() {
2521
2521
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2522
2522
  }
2523
2523
  };
2524
- imports.wbg.__wbg_flushdata_c015bb8366b5058f = function(arg0, arg1) {
2524
+ imports.wbg.__wbg_flushdata_dedd3d04181afd7f = function(arg0, arg1) {
2525
2525
  let deferred0_0;
2526
2526
  let deferred0_1;
2527
2527
  try {
@@ -2532,7 +2532,7 @@ function __wbg_get_imports() {
2532
2532
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2533
2533
  }
2534
2534
  };
2535
- imports.wbg.__wbg_readvalue_fd3c4331a4b9d85f = function() { return handleError(function (arg0, arg1) {
2535
+ imports.wbg.__wbg_readvalue_07766ecfab60ac45 = function() { return handleError(function (arg0, arg1) {
2536
2536
  let deferred0_0;
2537
2537
  let deferred0_1;
2538
2538
  try {
@@ -2544,11 +2544,11 @@ function __wbg_get_imports() {
2544
2544
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2545
2545
  }
2546
2546
  }, arguments) };
2547
- imports.wbg.__wbg_loadblockfilelist_f51f8b519822d224 = function() { return handleError(function () {
2547
+ imports.wbg.__wbg_loadblockfilelist_b18d11a0b07b3d29 = function() { return handleError(function () {
2548
2548
  const ret = MsgHandler.load_block_file_list();
2549
2549
  return addHeapObject(ret);
2550
2550
  }, arguments) };
2551
- imports.wbg.__wbg_isexistingfile_3a906ce9e91dfb9b = function() { return handleError(function (arg0, arg1) {
2551
+ imports.wbg.__wbg_isexistingfile_f2253e2a10e75155 = function() { return handleError(function (arg0, arg1) {
2552
2552
  let deferred0_0;
2553
2553
  let deferred0_1;
2554
2554
  try {
@@ -2560,7 +2560,7 @@ function __wbg_get_imports() {
2560
2560
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2561
2561
  }
2562
2562
  }, arguments) };
2563
- imports.wbg.__wbg_removevalue_3c5ed4f4ca1dcff8 = function() { return handleError(function (arg0, arg1) {
2563
+ imports.wbg.__wbg_removevalue_1128ef0ed2e2edae = function() { return handleError(function (arg0, arg1) {
2564
2564
  let deferred0_0;
2565
2565
  let deferred0_1;
2566
2566
  try {
@@ -2572,7 +2572,7 @@ function __wbg_get_imports() {
2572
2572
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2573
2573
  }
2574
2574
  }, arguments) };
2575
- imports.wbg.__wbg_ensureblockdirectoryexists_714eaa2a2475c524 = function() { return handleError(function (arg0, arg1) {
2575
+ imports.wbg.__wbg_ensureblockdirectoryexists_722609e004de47d3 = function() { return handleError(function (arg0, arg1) {
2576
2576
  let deferred0_0;
2577
2577
  let deferred0_1;
2578
2578
  try {
@@ -2583,16 +2583,16 @@ function __wbg_get_imports() {
2583
2583
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2584
2584
  }
2585
2585
  }, arguments) };
2586
- imports.wbg.__wbg_processapicall_03086ea7c6801782 = function(arg0, arg1, arg2) {
2586
+ imports.wbg.__wbg_processapicall_953c894600fd4457 = function(arg0, arg1, arg2) {
2587
2587
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2588
2588
  };
2589
- imports.wbg.__wbg_processapisuccess_465cdbfca809fc66 = function(arg0, arg1, arg2) {
2589
+ imports.wbg.__wbg_processapisuccess_bed5edf5da835105 = function(arg0, arg1, arg2) {
2590
2590
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2591
2591
  };
2592
- imports.wbg.__wbg_processapierror_5f0ae6c4a35e5162 = function(arg0, arg1, arg2) {
2592
+ imports.wbg.__wbg_processapierror_ea1f5c97786886dd = function(arg0, arg1, arg2) {
2593
2593
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2594
2594
  };
2595
- imports.wbg.__wbg_sendinterfaceevent_86d1ef7755db15f7 = function(arg0, arg1, arg2, arg3, arg4) {
2595
+ imports.wbg.__wbg_sendinterfaceevent_3a145868863bc2b2 = function(arg0, arg1, arg2, arg3, arg4) {
2596
2596
  let deferred0_0;
2597
2597
  let deferred0_1;
2598
2598
  let deferred1_0;
@@ -2608,7 +2608,7 @@ function __wbg_get_imports() {
2608
2608
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2609
2609
  }
2610
2610
  };
2611
- imports.wbg.__wbg_sendblocksuccess_782c709d6662cf6c = function(arg0, arg1, arg2) {
2611
+ imports.wbg.__wbg_sendblocksuccess_26fa775654ec93b1 = function(arg0, arg1, arg2) {
2612
2612
  let deferred0_0;
2613
2613
  let deferred0_1;
2614
2614
  try {
@@ -2619,10 +2619,10 @@ function __wbg_get_imports() {
2619
2619
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2620
2620
  }
2621
2621
  };
2622
- imports.wbg.__wbg_sendwalletupdate_1de3da0580c8c977 = function() {
2622
+ imports.wbg.__wbg_sendwalletupdate_b4cd56af1167acfe = function() {
2623
2623
  MsgHandler.send_wallet_update();
2624
2624
  };
2625
- imports.wbg.__wbg_sendnewversionalert_a6c823dc5cab5d1e = function(arg0, arg1, arg2) {
2625
+ imports.wbg.__wbg_sendnewversionalert_e504bbed10683b3f = function(arg0, arg1, arg2) {
2626
2626
  let deferred0_0;
2627
2627
  let deferred0_1;
2628
2628
  try {
@@ -2633,16 +2633,16 @@ function __wbg_get_imports() {
2633
2633
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2634
2634
  }
2635
2635
  };
2636
- imports.wbg.__wbg_sendblockfetchstatusevent_1d64c1b739605e65 = function(arg0) {
2636
+ imports.wbg.__wbg_sendblockfetchstatusevent_6d22df0699ecb3ba = function(arg0) {
2637
2637
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2638
2638
  };
2639
- imports.wbg.__wbg_savewallet_0b44db75b74b0008 = function() {
2639
+ imports.wbg.__wbg_savewallet_9e0c55fc13bd98b0 = function() {
2640
2640
  MsgHandler.save_wallet();
2641
2641
  };
2642
- imports.wbg.__wbg_loadwallet_a5dd0debfa51f2cb = function() {
2642
+ imports.wbg.__wbg_loadwallet_89e1f5c5bced311e = function() {
2643
2643
  MsgHandler.load_wallet();
2644
2644
  };
2645
- imports.wbg.__wbg_getmyservices_1605592629081c7b = function() {
2645
+ imports.wbg.__wbg_getmyservices_6f6f9ec0653684de = function() {
2646
2646
  const ret = MsgHandler.get_my_services();
2647
2647
  _assertClass(ret, WasmPeerServiceList);
2648
2648
  var ptr1 = ret.__destroy_into_raw();
@@ -2954,7 +2954,7 @@ function __wbg_get_imports() {
2954
2954
  const ret = wasm.memory;
2955
2955
  return addHeapObject(ret);
2956
2956
  };
2957
- imports.wbg.__wbindgen_closure_wrapper1334 = function(arg0, arg1, arg2) {
2957
+ imports.wbg.__wbindgen_closure_wrapper1333 = function(arg0, arg1, arg2) {
2958
2958
  const ret = makeMutClosure(arg0, arg1, 459, __wbg_adapter_38);
2959
2959
  return addHeapObject(ret);
2960
2960
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -12,7 +12,7 @@
12
12
  "./snippets/*"
13
13
  ],
14
14
  "dependencies": {
15
- "cross-env": "^7.0.3",
16
- "node-fetch": "^3.3.0"
15
+ "node-fetch": "^3.3.0",
16
+ "cross-env": "^7.0.3"
17
17
  }
18
18
  }