saito-wasm 0.2.51 → 0.2.53

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.51"
3
+ version = "0.2.53"
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.51",
3
+ "version": "0.2.53",
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-191282dec6292d4f/js/msg_handler.js`);
5
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-7188d2801187666b/js/msg_handler.js`);
5
+ const { TextEncoder, TextDecoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -24,24 +24,6 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
-
29
- cachedTextDecoder.decode();
30
-
31
- let cachedUint8Memory0 = null;
32
-
33
- function getUint8Memory0() {
34
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
35
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
36
- }
37
- return cachedUint8Memory0;
38
- }
39
-
40
- function getStringFromWasm0(ptr, len) {
41
- ptr = ptr >>> 0;
42
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
- }
44
-
45
27
  function addHeapObject(obj) {
46
28
  if (heap_next === heap.length) heap.push(heap.length + 1);
47
29
  const idx = heap_next;
@@ -53,6 +35,15 @@ function addHeapObject(obj) {
53
35
 
54
36
  let WASM_VECTOR_LEN = 0;
55
37
 
38
+ let cachedUint8Memory0 = null;
39
+
40
+ function getUint8Memory0() {
41
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
42
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
43
+ }
44
+ return cachedUint8Memory0;
45
+ }
46
+
56
47
  let cachedTextEncoder = new TextEncoder('utf-8');
57
48
 
58
49
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -120,6 +111,15 @@ function getInt32Memory0() {
120
111
  return cachedInt32Memory0;
121
112
  }
122
113
 
114
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
115
+
116
+ cachedTextDecoder.decode();
117
+
118
+ function getStringFromWasm0(ptr, len) {
119
+ ptr = ptr >>> 0;
120
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
121
+ }
122
+
123
123
  let cachedFloat64Memory0 = null;
124
124
 
125
125
  function getFloat64Memory0() {
@@ -2341,16 +2341,6 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2341
2341
  takeObject(arg0);
2342
2342
  };
2343
2343
 
2344
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2345
- const ret = getStringFromWasm0(arg0, arg1);
2346
- return addHeapObject(ret);
2347
- };
2348
-
2349
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2350
- const ret = WasmTransaction.__wrap(arg0);
2351
- return addHeapObject(ret);
2352
- };
2353
-
2354
2344
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2355
2345
  const ret = BigInt.asUintN(64, arg0);
2356
2346
  return addHeapObject(ret);
@@ -2375,18 +2365,23 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2375
2365
  return addHeapObject(ret);
2376
2366
  };
2377
2367
 
2368
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2369
+ const ret = WasmPeer.__wrap(arg0);
2370
+ return addHeapObject(ret);
2371
+ };
2372
+
2378
2373
  module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2379
2374
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2380
2375
  return addHeapObject(ret);
2381
2376
  };
2382
2377
 
2383
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2384
- const ret = WasmPeer.__wrap(arg0);
2378
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2379
+ const ret = getStringFromWasm0(arg0, arg1);
2385
2380
  return addHeapObject(ret);
2386
2381
  };
2387
2382
 
2388
- module.exports.__wbg_wasmblock_new = function(arg0) {
2389
- const ret = WasmBlock.__wrap(arg0);
2383
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2384
+ const ret = WasmTransaction.__wrap(arg0);
2390
2385
  return addHeapObject(ret);
2391
2386
  };
2392
2387
 
@@ -2400,6 +2395,11 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2400
2395
  return addHeapObject(ret);
2401
2396
  };
2402
2397
 
2398
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2399
+ const ret = WasmBlock.__wrap(arg0);
2400
+ return addHeapObject(ret);
2401
+ };
2402
+
2403
2403
  module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2404
2404
  const ret = WasmPeerService.__wrap(arg0);
2405
2405
  return addHeapObject(ret);
@@ -2431,15 +2431,15 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2431
2431
  return addHeapObject(ret);
2432
2432
  };
2433
2433
 
2434
- module.exports.__wbg_sendmessage_8229c0ca7ab64673 = function(arg0, arg1) {
2434
+ module.exports.__wbg_sendmessage_ff9bbdf18bf6e102 = function(arg0, arg1) {
2435
2435
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2436
2436
  };
2437
2437
 
2438
- module.exports.__wbg_sendmessagetoall_0e77cd777c3a18a8 = function(arg0, arg1) {
2438
+ module.exports.__wbg_sendmessagetoall_1fa66acb52d3be50 = function(arg0, arg1) {
2439
2439
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2440
2440
  };
2441
2441
 
2442
- module.exports.__wbg_connecttopeer_9194084fdd3d2af2 = function() { return handleError(function (arg0, arg1, arg2) {
2442
+ module.exports.__wbg_connecttopeer_ba955a5f63c25657 = function() { return handleError(function (arg0, arg1, arg2) {
2443
2443
  let deferred0_0;
2444
2444
  let deferred0_1;
2445
2445
  try {
@@ -2452,12 +2452,12 @@ module.exports.__wbg_connecttopeer_9194084fdd3d2af2 = function() { return handle
2452
2452
  }
2453
2453
  }, arguments) };
2454
2454
 
2455
- module.exports.__wbg_disconnectfrompeer_df099623282d9915 = function() { return handleError(function (arg0) {
2455
+ module.exports.__wbg_disconnectfrompeer_05a35deded8da1b6 = function() { return handleError(function (arg0) {
2456
2456
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2457
2457
  return addHeapObject(ret);
2458
2458
  }, arguments) };
2459
2459
 
2460
- module.exports.__wbg_fetchblockfrompeer_96721d3aaed4d4a1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2460
+ module.exports.__wbg_fetchblockfrompeer_4fd80c73d179dc95 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2461
2461
  let deferred0_0;
2462
2462
  let deferred0_1;
2463
2463
  try {
@@ -2470,7 +2470,7 @@ module.exports.__wbg_fetchblockfrompeer_96721d3aaed4d4a1 = function() { return h
2470
2470
  }
2471
2471
  }, arguments) };
2472
2472
 
2473
- module.exports.__wbg_writevalue_d6562e5455d078bd = function(arg0, arg1, arg2) {
2473
+ module.exports.__wbg_writevalue_ed5964748d666a01 = function(arg0, arg1, arg2) {
2474
2474
  let deferred0_0;
2475
2475
  let deferred0_1;
2476
2476
  try {
@@ -2482,7 +2482,7 @@ module.exports.__wbg_writevalue_d6562e5455d078bd = function(arg0, arg1, arg2) {
2482
2482
  }
2483
2483
  };
2484
2484
 
2485
- module.exports.__wbg_appendvalue_b4a7918bd05be971 = function(arg0, arg1, arg2) {
2485
+ module.exports.__wbg_appendvalue_1d32d77194e5cea2 = function(arg0, arg1, arg2) {
2486
2486
  let deferred0_0;
2487
2487
  let deferred0_1;
2488
2488
  try {
@@ -2494,7 +2494,7 @@ module.exports.__wbg_appendvalue_b4a7918bd05be971 = function(arg0, arg1, arg2) {
2494
2494
  }
2495
2495
  };
2496
2496
 
2497
- module.exports.__wbg_flushdata_7cfb337fe0a52b74 = function(arg0, arg1) {
2497
+ module.exports.__wbg_flushdata_80f9bbed01e0e58a = function(arg0, arg1) {
2498
2498
  let deferred0_0;
2499
2499
  let deferred0_1;
2500
2500
  try {
@@ -2506,7 +2506,7 @@ module.exports.__wbg_flushdata_7cfb337fe0a52b74 = function(arg0, arg1) {
2506
2506
  }
2507
2507
  };
2508
2508
 
2509
- module.exports.__wbg_readvalue_a0eec5107bef5bee = function() { return handleError(function (arg0, arg1) {
2509
+ module.exports.__wbg_readvalue_781fb638c5a547ce = function() { return handleError(function (arg0, arg1) {
2510
2510
  let deferred0_0;
2511
2511
  let deferred0_1;
2512
2512
  try {
@@ -2519,12 +2519,12 @@ module.exports.__wbg_readvalue_a0eec5107bef5bee = function() { return handleErro
2519
2519
  }
2520
2520
  }, arguments) };
2521
2521
 
2522
- module.exports.__wbg_loadblockfilelist_8fd5d8c1d9f8dd92 = function() { return handleError(function () {
2522
+ module.exports.__wbg_loadblockfilelist_51f146190f327d8d = function() { return handleError(function () {
2523
2523
  const ret = MsgHandler.load_block_file_list();
2524
2524
  return addHeapObject(ret);
2525
2525
  }, arguments) };
2526
2526
 
2527
- module.exports.__wbg_isexistingfile_d6a5f05c0be4c2c0 = function() { return handleError(function (arg0, arg1) {
2527
+ module.exports.__wbg_isexistingfile_c3bf9aeee5b392fb = function() { return handleError(function (arg0, arg1) {
2528
2528
  let deferred0_0;
2529
2529
  let deferred0_1;
2530
2530
  try {
@@ -2537,7 +2537,7 @@ module.exports.__wbg_isexistingfile_d6a5f05c0be4c2c0 = function() { return handl
2537
2537
  }
2538
2538
  }, arguments) };
2539
2539
 
2540
- module.exports.__wbg_removevalue_fc482a4277402eba = function() { return handleError(function (arg0, arg1) {
2540
+ module.exports.__wbg_removevalue_63db73e5efaaa0d2 = function() { return handleError(function (arg0, arg1) {
2541
2541
  let deferred0_0;
2542
2542
  let deferred0_1;
2543
2543
  try {
@@ -2550,7 +2550,7 @@ module.exports.__wbg_removevalue_fc482a4277402eba = function() { return handleEr
2550
2550
  }
2551
2551
  }, arguments) };
2552
2552
 
2553
- module.exports.__wbg_ensureblockdirectoryexists_8961728ff1db68ae = function() { return handleError(function (arg0, arg1) {
2553
+ module.exports.__wbg_ensureblockdirectoryexists_972815925b1f6f00 = function() { return handleError(function (arg0, arg1) {
2554
2554
  let deferred0_0;
2555
2555
  let deferred0_1;
2556
2556
  try {
@@ -2562,19 +2562,19 @@ module.exports.__wbg_ensureblockdirectoryexists_8961728ff1db68ae = function() {
2562
2562
  }
2563
2563
  }, arguments) };
2564
2564
 
2565
- module.exports.__wbg_processapicall_35be892326866f5a = function(arg0, arg1, arg2) {
2565
+ module.exports.__wbg_processapicall_2100eb96cb495341 = function(arg0, arg1, arg2) {
2566
2566
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2567
2567
  };
2568
2568
 
2569
- module.exports.__wbg_processapisuccess_03670b49063ffb20 = function(arg0, arg1, arg2) {
2569
+ module.exports.__wbg_processapisuccess_dd75c157d0050a9b = function(arg0, arg1, arg2) {
2570
2570
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2571
2571
  };
2572
2572
 
2573
- module.exports.__wbg_processapierror_d9b9f3ea66282983 = function(arg0, arg1, arg2) {
2573
+ module.exports.__wbg_processapierror_2d6a8ec426e34920 = function(arg0, arg1, arg2) {
2574
2574
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2575
2575
  };
2576
2576
 
2577
- module.exports.__wbg_sendinterfaceevent_0fa6af8f0934fe1e = function(arg0, arg1, arg2, arg3, arg4) {
2577
+ module.exports.__wbg_sendinterfaceevent_bae7ab1f7a67949d = function(arg0, arg1, arg2, arg3, arg4) {
2578
2578
  let deferred0_0;
2579
2579
  let deferred0_1;
2580
2580
  let deferred1_0;
@@ -2591,7 +2591,7 @@ module.exports.__wbg_sendinterfaceevent_0fa6af8f0934fe1e = function(arg0, arg1,
2591
2591
  }
2592
2592
  };
2593
2593
 
2594
- module.exports.__wbg_sendblocksuccess_f747adecb0544101 = function(arg0, arg1, arg2) {
2594
+ module.exports.__wbg_sendblocksuccess_620687d6b1efda22 = function(arg0, arg1, arg2) {
2595
2595
  let deferred0_0;
2596
2596
  let deferred0_1;
2597
2597
  try {
@@ -2603,11 +2603,11 @@ module.exports.__wbg_sendblocksuccess_f747adecb0544101 = function(arg0, arg1, ar
2603
2603
  }
2604
2604
  };
2605
2605
 
2606
- module.exports.__wbg_sendwalletupdate_f8e9e8d90f3c54b7 = function() {
2606
+ module.exports.__wbg_sendwalletupdate_aeb10d8928d2fd32 = function() {
2607
2607
  MsgHandler.send_wallet_update();
2608
2608
  };
2609
2609
 
2610
- module.exports.__wbg_sendnewversionalert_6fbe6998b651a539 = function(arg0, arg1, arg2) {
2610
+ module.exports.__wbg_sendnewversionalert_c6883c89e68d3b0b = function(arg0, arg1, arg2) {
2611
2611
  let deferred0_0;
2612
2612
  let deferred0_1;
2613
2613
  try {
@@ -2619,19 +2619,19 @@ module.exports.__wbg_sendnewversionalert_6fbe6998b651a539 = function(arg0, arg1,
2619
2619
  }
2620
2620
  };
2621
2621
 
2622
- module.exports.__wbg_sendblockfetchstatusevent_daa4597cd8b5f699 = function(arg0) {
2622
+ module.exports.__wbg_sendblockfetchstatusevent_a1634ba7324fca9c = function(arg0) {
2623
2623
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2624
2624
  };
2625
2625
 
2626
- module.exports.__wbg_savewallet_4502e6c87222f79f = function() {
2626
+ module.exports.__wbg_savewallet_63463ed9dd3bf927 = function() {
2627
2627
  MsgHandler.save_wallet();
2628
2628
  };
2629
2629
 
2630
- module.exports.__wbg_loadwallet_45e5cf4858e93444 = function() {
2630
+ module.exports.__wbg_loadwallet_a14ffbfff10a4a4d = function() {
2631
2631
  MsgHandler.load_wallet();
2632
2632
  };
2633
2633
 
2634
- module.exports.__wbg_getmyservices_d7ac078315062ef8 = function() {
2634
+ module.exports.__wbg_getmyservices_2002c47f4428f89d = function() {
2635
2635
  const ret = MsgHandler.get_my_services();
2636
2636
  _assertClass(ret, WasmPeerServiceList);
2637
2637
  var ptr1 = ret.__destroy_into_raw();
@@ -3008,7 +3008,7 @@ module.exports.__wbindgen_memory = function() {
3008
3008
  return addHeapObject(ret);
3009
3009
  };
3010
3010
 
3011
- module.exports.__wbindgen_closure_wrapper1340 = function(arg0, arg1, arg2) {
3011
+ module.exports.__wbindgen_closure_wrapper1339 = function(arg0, arg1, arg2) {
3012
3012
  const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
3013
3013
  return addHeapObject(ret);
3014
3014
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
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
- "cross-env": "^7.0.3",
13
- "node-fetch": "^3.3.0"
12
+ "node-fetch": "^3.3.0",
13
+ "cross-env": "^7.0.3"
14
14
  }
15
15
  }
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-191282dec6292d4f/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-7188d2801187666b/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,24 +22,6 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
-
27
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
28
-
29
- let cachedUint8Memory0 = null;
30
-
31
- function getUint8Memory0() {
32
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
33
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
34
- }
35
- return cachedUint8Memory0;
36
- }
37
-
38
- function getStringFromWasm0(ptr, len) {
39
- ptr = ptr >>> 0;
40
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
- }
42
-
43
25
  function addHeapObject(obj) {
44
26
  if (heap_next === heap.length) heap.push(heap.length + 1);
45
27
  const idx = heap_next;
@@ -51,6 +33,15 @@ function addHeapObject(obj) {
51
33
 
52
34
  let WASM_VECTOR_LEN = 0;
53
35
 
36
+ let cachedUint8Memory0 = null;
37
+
38
+ function getUint8Memory0() {
39
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
40
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
41
+ }
42
+ return cachedUint8Memory0;
43
+ }
44
+
54
45
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
55
46
 
56
47
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,6 +109,15 @@ function getInt32Memory0() {
118
109
  return cachedInt32Memory0;
119
110
  }
120
111
 
112
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
113
+
114
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
115
+
116
+ function getStringFromWasm0(ptr, len) {
117
+ ptr = ptr >>> 0;
118
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
119
+ }
120
+
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -2358,14 +2358,6 @@ function __wbg_get_imports() {
2358
2358
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2359
2359
  takeObject(arg0);
2360
2360
  };
2361
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2362
- const ret = getStringFromWasm0(arg0, arg1);
2363
- return addHeapObject(ret);
2364
- };
2365
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2366
- const ret = WasmTransaction.__wrap(arg0);
2367
- return addHeapObject(ret);
2368
- };
2369
2361
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2370
2362
  const ret = BigInt.asUintN(64, arg0);
2371
2363
  return addHeapObject(ret);
@@ -2386,16 +2378,20 @@ function __wbg_get_imports() {
2386
2378
  const ret = WasmBlockchain.__wrap(arg0);
2387
2379
  return addHeapObject(ret);
2388
2380
  };
2381
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2382
+ const ret = WasmPeer.__wrap(arg0);
2383
+ return addHeapObject(ret);
2384
+ };
2389
2385
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2390
2386
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2391
2387
  return addHeapObject(ret);
2392
2388
  };
2393
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2394
- const ret = WasmPeer.__wrap(arg0);
2389
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2390
+ const ret = getStringFromWasm0(arg0, arg1);
2395
2391
  return addHeapObject(ret);
2396
2392
  };
2397
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2398
- const ret = WasmBlock.__wrap(arg0);
2393
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2394
+ const ret = WasmTransaction.__wrap(arg0);
2399
2395
  return addHeapObject(ret);
2400
2396
  };
2401
2397
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
@@ -2406,6 +2402,10 @@ function __wbg_get_imports() {
2406
2402
  const ret = WasmWallet.__wrap(arg0);
2407
2403
  return addHeapObject(ret);
2408
2404
  };
2405
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2406
+ const ret = WasmBlock.__wrap(arg0);
2407
+ return addHeapObject(ret);
2408
+ };
2409
2409
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2410
2410
  const ret = WasmPeerService.__wrap(arg0);
2411
2411
  return addHeapObject(ret);
@@ -2431,13 +2431,13 @@ function __wbg_get_imports() {
2431
2431
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2432
2432
  return addHeapObject(ret);
2433
2433
  };
2434
- imports.wbg.__wbg_sendmessage_8229c0ca7ab64673 = function(arg0, arg1) {
2434
+ imports.wbg.__wbg_sendmessage_ff9bbdf18bf6e102 = function(arg0, arg1) {
2435
2435
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2436
2436
  };
2437
- imports.wbg.__wbg_sendmessagetoall_0e77cd777c3a18a8 = function(arg0, arg1) {
2437
+ imports.wbg.__wbg_sendmessagetoall_1fa66acb52d3be50 = function(arg0, arg1) {
2438
2438
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2439
2439
  };
2440
- imports.wbg.__wbg_connecttopeer_9194084fdd3d2af2 = function() { return handleError(function (arg0, arg1, arg2) {
2440
+ imports.wbg.__wbg_connecttopeer_ba955a5f63c25657 = function() { return handleError(function (arg0, arg1, arg2) {
2441
2441
  let deferred0_0;
2442
2442
  let deferred0_1;
2443
2443
  try {
@@ -2449,11 +2449,11 @@ function __wbg_get_imports() {
2449
2449
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2450
2450
  }
2451
2451
  }, arguments) };
2452
- imports.wbg.__wbg_disconnectfrompeer_df099623282d9915 = function() { return handleError(function (arg0) {
2452
+ imports.wbg.__wbg_disconnectfrompeer_05a35deded8da1b6 = function() { return handleError(function (arg0) {
2453
2453
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2454
2454
  return addHeapObject(ret);
2455
2455
  }, arguments) };
2456
- imports.wbg.__wbg_fetchblockfrompeer_96721d3aaed4d4a1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2456
+ imports.wbg.__wbg_fetchblockfrompeer_4fd80c73d179dc95 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2457
2457
  let deferred0_0;
2458
2458
  let deferred0_1;
2459
2459
  try {
@@ -2465,7 +2465,7 @@ function __wbg_get_imports() {
2465
2465
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2466
2466
  }
2467
2467
  }, arguments) };
2468
- imports.wbg.__wbg_writevalue_d6562e5455d078bd = function(arg0, arg1, arg2) {
2468
+ imports.wbg.__wbg_writevalue_ed5964748d666a01 = function(arg0, arg1, arg2) {
2469
2469
  let deferred0_0;
2470
2470
  let deferred0_1;
2471
2471
  try {
@@ -2476,7 +2476,7 @@ function __wbg_get_imports() {
2476
2476
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2477
2477
  }
2478
2478
  };
2479
- imports.wbg.__wbg_appendvalue_b4a7918bd05be971 = function(arg0, arg1, arg2) {
2479
+ imports.wbg.__wbg_appendvalue_1d32d77194e5cea2 = function(arg0, arg1, arg2) {
2480
2480
  let deferred0_0;
2481
2481
  let deferred0_1;
2482
2482
  try {
@@ -2487,7 +2487,7 @@ function __wbg_get_imports() {
2487
2487
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2488
2488
  }
2489
2489
  };
2490
- imports.wbg.__wbg_flushdata_7cfb337fe0a52b74 = function(arg0, arg1) {
2490
+ imports.wbg.__wbg_flushdata_80f9bbed01e0e58a = function(arg0, arg1) {
2491
2491
  let deferred0_0;
2492
2492
  let deferred0_1;
2493
2493
  try {
@@ -2498,7 +2498,7 @@ function __wbg_get_imports() {
2498
2498
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2499
2499
  }
2500
2500
  };
2501
- imports.wbg.__wbg_readvalue_a0eec5107bef5bee = function() { return handleError(function (arg0, arg1) {
2501
+ imports.wbg.__wbg_readvalue_781fb638c5a547ce = function() { return handleError(function (arg0, arg1) {
2502
2502
  let deferred0_0;
2503
2503
  let deferred0_1;
2504
2504
  try {
@@ -2510,11 +2510,11 @@ function __wbg_get_imports() {
2510
2510
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2511
2511
  }
2512
2512
  }, arguments) };
2513
- imports.wbg.__wbg_loadblockfilelist_8fd5d8c1d9f8dd92 = function() { return handleError(function () {
2513
+ imports.wbg.__wbg_loadblockfilelist_51f146190f327d8d = function() { return handleError(function () {
2514
2514
  const ret = MsgHandler.load_block_file_list();
2515
2515
  return addHeapObject(ret);
2516
2516
  }, arguments) };
2517
- imports.wbg.__wbg_isexistingfile_d6a5f05c0be4c2c0 = function() { return handleError(function (arg0, arg1) {
2517
+ imports.wbg.__wbg_isexistingfile_c3bf9aeee5b392fb = function() { return handleError(function (arg0, arg1) {
2518
2518
  let deferred0_0;
2519
2519
  let deferred0_1;
2520
2520
  try {
@@ -2526,7 +2526,7 @@ function __wbg_get_imports() {
2526
2526
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2527
2527
  }
2528
2528
  }, arguments) };
2529
- imports.wbg.__wbg_removevalue_fc482a4277402eba = function() { return handleError(function (arg0, arg1) {
2529
+ imports.wbg.__wbg_removevalue_63db73e5efaaa0d2 = function() { return handleError(function (arg0, arg1) {
2530
2530
  let deferred0_0;
2531
2531
  let deferred0_1;
2532
2532
  try {
@@ -2538,7 +2538,7 @@ function __wbg_get_imports() {
2538
2538
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2539
2539
  }
2540
2540
  }, arguments) };
2541
- imports.wbg.__wbg_ensureblockdirectoryexists_8961728ff1db68ae = function() { return handleError(function (arg0, arg1) {
2541
+ imports.wbg.__wbg_ensureblockdirectoryexists_972815925b1f6f00 = function() { return handleError(function (arg0, arg1) {
2542
2542
  let deferred0_0;
2543
2543
  let deferred0_1;
2544
2544
  try {
@@ -2549,16 +2549,16 @@ function __wbg_get_imports() {
2549
2549
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2550
2550
  }
2551
2551
  }, arguments) };
2552
- imports.wbg.__wbg_processapicall_35be892326866f5a = function(arg0, arg1, arg2) {
2552
+ imports.wbg.__wbg_processapicall_2100eb96cb495341 = function(arg0, arg1, arg2) {
2553
2553
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2554
2554
  };
2555
- imports.wbg.__wbg_processapisuccess_03670b49063ffb20 = function(arg0, arg1, arg2) {
2555
+ imports.wbg.__wbg_processapisuccess_dd75c157d0050a9b = function(arg0, arg1, arg2) {
2556
2556
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2557
2557
  };
2558
- imports.wbg.__wbg_processapierror_d9b9f3ea66282983 = function(arg0, arg1, arg2) {
2558
+ imports.wbg.__wbg_processapierror_2d6a8ec426e34920 = function(arg0, arg1, arg2) {
2559
2559
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2560
2560
  };
2561
- imports.wbg.__wbg_sendinterfaceevent_0fa6af8f0934fe1e = function(arg0, arg1, arg2, arg3, arg4) {
2561
+ imports.wbg.__wbg_sendinterfaceevent_bae7ab1f7a67949d = function(arg0, arg1, arg2, arg3, arg4) {
2562
2562
  let deferred0_0;
2563
2563
  let deferred0_1;
2564
2564
  let deferred1_0;
@@ -2574,7 +2574,7 @@ function __wbg_get_imports() {
2574
2574
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2575
2575
  }
2576
2576
  };
2577
- imports.wbg.__wbg_sendblocksuccess_f747adecb0544101 = function(arg0, arg1, arg2) {
2577
+ imports.wbg.__wbg_sendblocksuccess_620687d6b1efda22 = function(arg0, arg1, arg2) {
2578
2578
  let deferred0_0;
2579
2579
  let deferred0_1;
2580
2580
  try {
@@ -2585,10 +2585,10 @@ function __wbg_get_imports() {
2585
2585
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2586
2586
  }
2587
2587
  };
2588
- imports.wbg.__wbg_sendwalletupdate_f8e9e8d90f3c54b7 = function() {
2588
+ imports.wbg.__wbg_sendwalletupdate_aeb10d8928d2fd32 = function() {
2589
2589
  MsgHandler.send_wallet_update();
2590
2590
  };
2591
- imports.wbg.__wbg_sendnewversionalert_6fbe6998b651a539 = function(arg0, arg1, arg2) {
2591
+ imports.wbg.__wbg_sendnewversionalert_c6883c89e68d3b0b = function(arg0, arg1, arg2) {
2592
2592
  let deferred0_0;
2593
2593
  let deferred0_1;
2594
2594
  try {
@@ -2599,16 +2599,16 @@ function __wbg_get_imports() {
2599
2599
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2600
2600
  }
2601
2601
  };
2602
- imports.wbg.__wbg_sendblockfetchstatusevent_daa4597cd8b5f699 = function(arg0) {
2602
+ imports.wbg.__wbg_sendblockfetchstatusevent_a1634ba7324fca9c = function(arg0) {
2603
2603
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2604
2604
  };
2605
- imports.wbg.__wbg_savewallet_4502e6c87222f79f = function() {
2605
+ imports.wbg.__wbg_savewallet_63463ed9dd3bf927 = function() {
2606
2606
  MsgHandler.save_wallet();
2607
2607
  };
2608
- imports.wbg.__wbg_loadwallet_45e5cf4858e93444 = function() {
2608
+ imports.wbg.__wbg_loadwallet_a14ffbfff10a4a4d = function() {
2609
2609
  MsgHandler.load_wallet();
2610
2610
  };
2611
- imports.wbg.__wbg_getmyservices_d7ac078315062ef8 = function() {
2611
+ imports.wbg.__wbg_getmyservices_2002c47f4428f89d = function() {
2612
2612
  const ret = MsgHandler.get_my_services();
2613
2613
  _assertClass(ret, WasmPeerServiceList);
2614
2614
  var ptr1 = ret.__destroy_into_raw();
@@ -2917,7 +2917,7 @@ function __wbg_get_imports() {
2917
2917
  const ret = wasm.memory;
2918
2918
  return addHeapObject(ret);
2919
2919
  };
2920
- imports.wbg.__wbindgen_closure_wrapper1340 = function(arg0, arg1, arg2) {
2920
+ imports.wbg.__wbindgen_closure_wrapper1339 = function(arg0, arg1, arg2) {
2921
2921
  const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
2922
2922
  return addHeapObject(ret);
2923
2923
  };
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
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
  }