saito-wasm 0.2.73 → 0.2.75

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.73"
3
+ version = "0.2.75"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -23,7 +23,7 @@ console_log = { version = "1.0.0", features = ["color"] }
23
23
  log = "0.4.21"
24
24
  getrandom = { version = "0.2.15", features = ["js", "std"] }
25
25
  rand = { version = "0.8.5", features = ["getrandom"] }
26
- secp256k1 = { version = "0.29.0", features = ["hashes", "global-context", "serde"] }
26
+ secp256k1 = { version = "0.30.0", features = ["hashes", "global-context", "serde"] }
27
27
  bs58 = "0.5.0"
28
28
  figment = { version = "0.10.12", features = ["json"] }
29
29
  serde_json = { version = "1.0.117" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.73",
3
+ "version": "0.2.75",
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,9 +1,27 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9fce69b882b11799/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-0e723ae7610f53a0/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
8
+
9
+ cachedTextDecoder.decode();
10
+
11
+ let cachedUint8Memory0 = null;
12
+
13
+ function getUint8Memory0() {
14
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
15
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
16
+ }
17
+ return cachedUint8Memory0;
18
+ }
19
+
20
+ function getStringFromWasm0(ptr, len) {
21
+ ptr = ptr >>> 0;
22
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
23
+ }
24
+
7
25
  const heap = new Array(128).fill(undefined);
8
26
 
9
27
  heap.push(undefined, null, true, false);
@@ -33,24 +51,6 @@ function takeObject(idx) {
33
51
  return ret;
34
52
  }
35
53
 
36
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
-
38
- cachedTextDecoder.decode();
39
-
40
- let cachedUint8Memory0 = null;
41
-
42
- function getUint8Memory0() {
43
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
44
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
45
- }
46
- return cachedUint8Memory0;
47
- }
48
-
49
- function getStringFromWasm0(ptr, len) {
50
- ptr = ptr >>> 0;
51
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
- }
53
-
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -225,7 +225,14 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_38(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22994d53a9ca6ed7(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc45362b09104e54e(arg0, arg1, addHeapObject(arg2));
229
+ }
230
+
231
+ function _assertClass(instance, klass) {
232
+ if (!(instance instanceof klass)) {
233
+ throw new Error(`expected instance of ${klass.name}`);
234
+ }
235
+ return instance.ptr;
229
236
  }
230
237
 
231
238
  function handleError(f, args) {
@@ -235,13 +242,6 @@ function handleError(f, args) {
235
242
  wasm.__wbindgen_exn_store(addHeapObject(e));
236
243
  }
237
244
  }
238
-
239
- function _assertClass(instance, klass) {
240
- if (!(instance instanceof klass)) {
241
- throw new Error(`expected instance of ${klass.name}`);
242
- }
243
- return instance.ptr;
244
- }
245
245
  /**
246
246
  * @param {string} json
247
247
  * @param {string} private_key
@@ -628,7 +628,7 @@ module.exports.produce_block_without_gt = function() {
628
628
  };
629
629
 
630
630
  function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
631
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
631
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
632
632
  }
633
633
 
634
634
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2352,8 +2352,8 @@ class WasmWalletSlip {
2352
2352
  }
2353
2353
  module.exports.WasmWalletSlip = WasmWalletSlip;
2354
2354
 
2355
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2356
- const ret = BigInt.asUintN(64, arg0);
2355
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2356
+ const ret = getStringFromWasm0(arg0, arg1);
2357
2357
  return addHeapObject(ret);
2358
2358
  };
2359
2359
 
@@ -2361,18 +2361,18 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2361
2361
  takeObject(arg0);
2362
2362
  };
2363
2363
 
2364
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2365
- const ret = WasmTransaction.__wrap(arg0);
2364
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2365
+ const ret = BigInt.asUintN(64, arg0);
2366
2366
  return addHeapObject(ret);
2367
2367
  };
2368
2368
 
2369
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2370
- const ret = getStringFromWasm0(arg0, arg1);
2369
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2370
+ const ret = WasmTransaction.__wrap(arg0);
2371
2371
  return addHeapObject(ret);
2372
2372
  };
2373
2373
 
2374
- module.exports.__wbg_wasmslip_new = function(arg0) {
2375
- const ret = WasmSlip.__wrap(arg0);
2374
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2375
+ const ret = WasmWallet.__wrap(arg0);
2376
2376
  return addHeapObject(ret);
2377
2377
  };
2378
2378
 
@@ -2381,8 +2381,8 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2381
2381
  return addHeapObject(ret);
2382
2382
  };
2383
2383
 
2384
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2385
- const ret = WasmWallet.__wrap(arg0);
2384
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2385
+ const ret = WasmSlip.__wrap(arg0);
2386
2386
  return addHeapObject(ret);
2387
2387
  };
2388
2388
 
@@ -2396,11 +2396,6 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2396
2396
  return addHeapObject(ret);
2397
2397
  };
2398
2398
 
2399
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2400
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2401
- return addHeapObject(ret);
2402
- };
2403
-
2404
2399
  module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2405
2400
  const ret = WasmWalletSlip.__wrap(arg0);
2406
2401
  return addHeapObject(ret);
@@ -2415,15 +2410,51 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2415
2410
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2416
2411
  };
2417
2412
 
2418
- module.exports.__wbg_sendmessage_afc7985d7f6f44c3 = function(arg0, arg1) {
2413
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2414
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2415
+ return addHeapObject(ret);
2416
+ };
2417
+
2418
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2419
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2420
+ return addHeapObject(ret);
2421
+ };
2422
+
2423
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2424
+ const ret = WasmHop.__wrap(arg0);
2425
+ return addHeapObject(ret);
2426
+ };
2427
+
2428
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2429
+ const ret = WasmPeerService.__wrap(arg0);
2430
+ return addHeapObject(ret);
2431
+ };
2432
+
2433
+ module.exports.__wbindgen_is_object = function(arg0) {
2434
+ const val = getObject(arg0);
2435
+ const ret = typeof(val) === 'object' && val !== null;
2436
+ return ret;
2437
+ };
2438
+
2439
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2440
+ const ret = getObject(arg0) === undefined;
2441
+ return ret;
2442
+ };
2443
+
2444
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2445
+ const ret = getObject(arg0) in getObject(arg1);
2446
+ return ret;
2447
+ };
2448
+
2449
+ module.exports.__wbg_sendmessage_12f10ca4a606a37d = function(arg0, arg1) {
2419
2450
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2420
2451
  };
2421
2452
 
2422
- module.exports.__wbg_sendmessagetoall_6481fa455557525a = function(arg0, arg1) {
2453
+ module.exports.__wbg_sendmessagetoall_7be952f451cfb1af = function(arg0, arg1) {
2423
2454
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2424
2455
  };
2425
2456
 
2426
- module.exports.__wbg_connecttopeer_461dc3f68f0d99df = function() { return handleError(function (arg0, arg1, arg2) {
2457
+ module.exports.__wbg_connecttopeer_9ae92a6e46a9795d = function() { return handleError(function (arg0, arg1, arg2) {
2427
2458
  let deferred0_0;
2428
2459
  let deferred0_1;
2429
2460
  try {
@@ -2436,12 +2467,12 @@ module.exports.__wbg_connecttopeer_461dc3f68f0d99df = function() { return handle
2436
2467
  }
2437
2468
  }, arguments) };
2438
2469
 
2439
- module.exports.__wbg_disconnectfrompeer_5ba61f98841681ed = function() { return handleError(function (arg0) {
2470
+ module.exports.__wbg_disconnectfrompeer_6ab6e62455c78090 = function() { return handleError(function (arg0) {
2440
2471
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2441
2472
  return addHeapObject(ret);
2442
2473
  }, arguments) };
2443
2474
 
2444
- module.exports.__wbg_fetchblockfrompeer_d6a10d356fa40a4f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2475
+ module.exports.__wbg_fetchblockfrompeer_78dea779fd556bfc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2445
2476
  let deferred0_0;
2446
2477
  let deferred0_1;
2447
2478
  try {
@@ -2454,7 +2485,7 @@ module.exports.__wbg_fetchblockfrompeer_d6a10d356fa40a4f = function() { return h
2454
2485
  }
2455
2486
  }, arguments) };
2456
2487
 
2457
- module.exports.__wbg_writevalue_e029866372575463 = function(arg0, arg1, arg2) {
2488
+ module.exports.__wbg_writevalue_9b909fd9eaeb97fb = function(arg0, arg1, arg2) {
2458
2489
  let deferred0_0;
2459
2490
  let deferred0_1;
2460
2491
  try {
@@ -2466,7 +2497,7 @@ module.exports.__wbg_writevalue_e029866372575463 = function(arg0, arg1, arg2) {
2466
2497
  }
2467
2498
  };
2468
2499
 
2469
- module.exports.__wbg_appendvalue_6b2a830aac57b55a = function(arg0, arg1, arg2) {
2500
+ module.exports.__wbg_appendvalue_4ab3f1860013a348 = function(arg0, arg1, arg2) {
2470
2501
  let deferred0_0;
2471
2502
  let deferred0_1;
2472
2503
  try {
@@ -2478,7 +2509,7 @@ module.exports.__wbg_appendvalue_6b2a830aac57b55a = function(arg0, arg1, arg2) {
2478
2509
  }
2479
2510
  };
2480
2511
 
2481
- module.exports.__wbg_flushdata_99bec79df4769990 = function(arg0, arg1) {
2512
+ module.exports.__wbg_flushdata_e44f38756cc00016 = function(arg0, arg1) {
2482
2513
  let deferred0_0;
2483
2514
  let deferred0_1;
2484
2515
  try {
@@ -2490,7 +2521,7 @@ module.exports.__wbg_flushdata_99bec79df4769990 = function(arg0, arg1) {
2490
2521
  }
2491
2522
  };
2492
2523
 
2493
- module.exports.__wbg_readvalue_93cb56bdd5afe1ba = function() { return handleError(function (arg0, arg1) {
2524
+ module.exports.__wbg_readvalue_a4abab67b3aff364 = function() { return handleError(function (arg0, arg1) {
2494
2525
  let deferred0_0;
2495
2526
  let deferred0_1;
2496
2527
  try {
@@ -2503,12 +2534,12 @@ module.exports.__wbg_readvalue_93cb56bdd5afe1ba = function() { return handleErro
2503
2534
  }
2504
2535
  }, arguments) };
2505
2536
 
2506
- module.exports.__wbg_loadblockfilelist_857b8ab3d148b52d = function() { return handleError(function () {
2537
+ module.exports.__wbg_loadblockfilelist_85d9f088c9503a58 = function() { return handleError(function () {
2507
2538
  const ret = MsgHandler.load_block_file_list();
2508
2539
  return addHeapObject(ret);
2509
2540
  }, arguments) };
2510
2541
 
2511
- module.exports.__wbg_isexistingfile_956b88ffdc2e154e = function() { return handleError(function (arg0, arg1) {
2542
+ module.exports.__wbg_isexistingfile_0b7d14902e6cde70 = function() { return handleError(function (arg0, arg1) {
2512
2543
  let deferred0_0;
2513
2544
  let deferred0_1;
2514
2545
  try {
@@ -2521,7 +2552,7 @@ module.exports.__wbg_isexistingfile_956b88ffdc2e154e = function() { return handl
2521
2552
  }
2522
2553
  }, arguments) };
2523
2554
 
2524
- module.exports.__wbg_removevalue_ef399f8a4e616651 = function() { return handleError(function (arg0, arg1) {
2555
+ module.exports.__wbg_removevalue_802864b894af2e66 = function() { return handleError(function (arg0, arg1) {
2525
2556
  let deferred0_0;
2526
2557
  let deferred0_1;
2527
2558
  try {
@@ -2534,7 +2565,7 @@ module.exports.__wbg_removevalue_ef399f8a4e616651 = function() { return handleEr
2534
2565
  }
2535
2566
  }, arguments) };
2536
2567
 
2537
- module.exports.__wbg_ensureblockdirectoryexists_be6de5fa203e120b = function() { return handleError(function (arg0, arg1) {
2568
+ module.exports.__wbg_ensureblockdirectoryexists_0889d13d515ac1a1 = function() { return handleError(function (arg0, arg1) {
2538
2569
  let deferred0_0;
2539
2570
  let deferred0_1;
2540
2571
  try {
@@ -2546,19 +2577,19 @@ module.exports.__wbg_ensureblockdirectoryexists_be6de5fa203e120b = function() {
2546
2577
  }
2547
2578
  }, arguments) };
2548
2579
 
2549
- module.exports.__wbg_processapicall_b1e3b17ca187b011 = function(arg0, arg1, arg2) {
2580
+ module.exports.__wbg_processapicall_f2ec3ebc3e316354 = function(arg0, arg1, arg2) {
2550
2581
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2551
2582
  };
2552
2583
 
2553
- module.exports.__wbg_processapisuccess_99d2852da61ca8d8 = function(arg0, arg1, arg2) {
2584
+ module.exports.__wbg_processapisuccess_345fc163487c70d0 = function(arg0, arg1, arg2) {
2554
2585
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2555
2586
  };
2556
2587
 
2557
- module.exports.__wbg_processapierror_81469d2edb03459c = function(arg0, arg1, arg2) {
2588
+ module.exports.__wbg_processapierror_318fa93fcfd48fb3 = function(arg0, arg1, arg2) {
2558
2589
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2559
2590
  };
2560
2591
 
2561
- module.exports.__wbg_sendinterfaceevent_bd3b4b26e45faee5 = function(arg0, arg1, arg2, arg3, arg4) {
2592
+ module.exports.__wbg_sendinterfaceevent_78bb5e94f955662c = function(arg0, arg1, arg2, arg3, arg4) {
2562
2593
  let deferred0_0;
2563
2594
  let deferred0_1;
2564
2595
  let deferred1_0;
@@ -2575,7 +2606,7 @@ module.exports.__wbg_sendinterfaceevent_bd3b4b26e45faee5 = function(arg0, arg1,
2575
2606
  }
2576
2607
  };
2577
2608
 
2578
- module.exports.__wbg_sendblocksuccess_a927ab34fcfc5cf9 = function(arg0, arg1, arg2) {
2609
+ module.exports.__wbg_sendblocksuccess_b1042c2a8caac1c9 = function(arg0, arg1, arg2) {
2579
2610
  let deferred0_0;
2580
2611
  let deferred0_1;
2581
2612
  try {
@@ -2587,11 +2618,11 @@ module.exports.__wbg_sendblocksuccess_a927ab34fcfc5cf9 = function(arg0, arg1, ar
2587
2618
  }
2588
2619
  };
2589
2620
 
2590
- module.exports.__wbg_sendwalletupdate_69e12b06d8e21a15 = function() {
2621
+ module.exports.__wbg_sendwalletupdate_26662b816e940308 = function() {
2591
2622
  MsgHandler.send_wallet_update();
2592
2623
  };
2593
2624
 
2594
- module.exports.__wbg_sendnewversionalert_fe5ac6297c393bd9 = function(arg0, arg1, arg2) {
2625
+ module.exports.__wbg_sendnewversionalert_c143fff2854867f1 = function(arg0, arg1, arg2) {
2595
2626
  let deferred0_0;
2596
2627
  let deferred0_1;
2597
2628
  try {
@@ -2603,56 +2634,25 @@ module.exports.__wbg_sendnewversionalert_fe5ac6297c393bd9 = function(arg0, arg1,
2603
2634
  }
2604
2635
  };
2605
2636
 
2606
- module.exports.__wbg_sendblockfetchstatusevent_266236a8cc5b098b = function(arg0) {
2637
+ module.exports.__wbg_sendblockfetchstatusevent_765e3302676fc940 = function(arg0) {
2607
2638
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2608
2639
  };
2609
2640
 
2610
- module.exports.__wbg_savewallet_5b4f618e4eeea28a = function() {
2641
+ module.exports.__wbg_savewallet_87e13a98198194d4 = function() {
2611
2642
  MsgHandler.save_wallet();
2612
2643
  };
2613
2644
 
2614
- module.exports.__wbg_loadwallet_bd3ac46714da6271 = function() {
2645
+ module.exports.__wbg_loadwallet_158b846d8bfe8793 = function() {
2615
2646
  MsgHandler.load_wallet();
2616
2647
  };
2617
2648
 
2618
- module.exports.__wbg_getmyservices_3488ced9b792aeae = function() {
2649
+ module.exports.__wbg_getmyservices_56d63a37a6afbd50 = function() {
2619
2650
  const ret = MsgHandler.get_my_services();
2620
2651
  _assertClass(ret, WasmPeerServiceList);
2621
2652
  var ptr1 = ret.__destroy_into_raw();
2622
2653
  return ptr1;
2623
2654
  };
2624
2655
 
2625
- module.exports.__wbindgen_is_object = function(arg0) {
2626
- const val = getObject(arg0);
2627
- const ret = typeof(val) === 'object' && val !== null;
2628
- return ret;
2629
- };
2630
-
2631
- module.exports.__wbindgen_is_undefined = function(arg0) {
2632
- const ret = getObject(arg0) === undefined;
2633
- return ret;
2634
- };
2635
-
2636
- module.exports.__wbindgen_in = function(arg0, arg1) {
2637
- const ret = getObject(arg0) in getObject(arg1);
2638
- return ret;
2639
- };
2640
-
2641
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2642
- const ret = WasmPeerService.__wrap(arg0);
2643
- return addHeapObject(ret);
2644
- };
2645
-
2646
- module.exports.__wbg_wasmhop_new = function(arg0) {
2647
- const ret = WasmHop.__wrap(arg0);
2648
- return addHeapObject(ret);
2649
- };
2650
-
2651
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2652
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2653
- return addHeapObject(ret);
2654
- };
2655
-
2656
2656
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2657
2657
  const ret = getObject(arg0) == getObject(arg1);
2658
2658
  return ret;
@@ -3023,8 +3023,8 @@ module.exports.__wbindgen_memory = function() {
3023
3023
  return addHeapObject(ret);
3024
3024
  };
3025
3025
 
3026
- module.exports.__wbindgen_closure_wrapper1310 = function(arg0, arg1, arg2) {
3027
- const ret = makeMutClosure(arg0, arg1, 473, __wbg_adapter_38);
3026
+ module.exports.__wbindgen_closure_wrapper1300 = function(arg0, arg1, arg2) {
3027
+ const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
3028
3028
  return addHeapObject(ret);
3029
3029
  };
3030
3030
 
Binary file
@@ -1,6 +1,66 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export function __wbg_wasmbalancesnapshot_free(a: number): void;
5
+ export function wasmbalancesnapshot_get_file_name(a: number): number;
6
+ export function wasmbalancesnapshot_get_entries(a: number): number;
7
+ export function wasmbalancesnapshot_from_string(a: number, b: number): void;
8
+ export function wasmbalancesnapshot_to_string(a: number): number;
9
+ export function __wbg_wasmconfiguration_free(a: number): void;
10
+ export function wasmconfiguration_new(): number;
11
+ export function __wbg_wasmhop_free(a: number): void;
12
+ export function wasmhop_from(a: number, b: number): void;
13
+ export function wasmhop_sig(a: number, b: number): void;
14
+ export function wasmhop_to(a: number, b: number): void;
15
+ export function __wbg_wasmwallet_free(a: number): void;
16
+ export function __wbg_wasmwalletslip_free(a: number): void;
17
+ export function wasmwallet_save(a: number): number;
18
+ export function wasmwallet_reset(a: number, b: number): number;
19
+ export function wasmwallet_load(a: number): number;
20
+ export function wasmwallet_get_public_key(a: number): number;
21
+ export function wasmwallet_set_public_key(a: number, b: number): number;
22
+ export function wasmwallet_get_private_key(a: number): number;
23
+ export function wasmwallet_set_private_key(a: number, b: number): number;
24
+ export function wasmwallet_get_balance(a: number): number;
25
+ export function wasmwallet_get_pending_txs(a: number): number;
26
+ export function wasmwallet_get_slips(a: number): number;
27
+ export function wasmwallet_add_slip(a: number, b: number): number;
28
+ export function wasmwallet_add_to_pending(a: number, b: number): number;
29
+ export function wasmwallet_get_key_list(a: number): number;
30
+ export function wasmwallet_set_key_list(a: number, b: number): number;
31
+ export function wasmwalletslip_get_utxokey(a: number): number;
32
+ export function wasmwalletslip_set_utxokey(a: number, b: number): void;
33
+ export function wasmwalletslip_get_amount(a: number): number;
34
+ export function wasmwalletslip_set_amount(a: number, b: number): void;
35
+ export function wasmwalletslip_get_block_id(a: number): number;
36
+ export function wasmwalletslip_set_block_id(a: number, b: number): void;
37
+ export function wasmwalletslip_get_tx_ordinal(a: number): number;
38
+ export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
39
+ export function wasmwalletslip_get_slip_index(a: number): number;
40
+ export function wasmwalletslip_set_slip_index(a: number, b: number): void;
41
+ export function wasmwalletslip_is_spent(a: number): number;
42
+ export function wasmwalletslip_set_spent(a: number, b: number): void;
43
+ export function wasmwalletslip_is_lc(a: number): number;
44
+ export function wasmwalletslip_set_lc(a: number, b: number): void;
45
+ export function wasmwalletslip_get_slip_type(a: number): number;
46
+ export function wasmwalletslip_set_slip_type(a: number, b: number): void;
47
+ export function wasmwalletslip_new_(): number;
48
+ export function __wbg_wasmconsensusvalues_free(a: number): void;
49
+ export function wasmconsensusvalues_it_num(a: number): number;
50
+ export function wasmconsensusvalues_fee_transaction(a: number): number;
51
+ export function wasmconsensusvalues_it_index(a: number): number;
52
+ export function wasmconsensusvalues_ft_num(a: number): number;
53
+ export function wasmconsensusvalues_ft_index(a: number): number;
54
+ export function wasmconsensusvalues_gt_index(a: number): number;
55
+ export function wasmconsensusvalues_total_fees(a: number): number;
56
+ export function wasmconsensusvalues_expected_difficulty(a: number): number;
57
+ export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
58
+ export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
59
+ export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
60
+ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
61
+ export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
62
+ export function wasmconsensusvalues_avg_income(a: number): number;
63
+ export function wasmconsensusvalues_avg_total_fees(a: number): number;
4
64
  export function __wbg_wasmblockchain_free(a: number): void;
5
65
  export function wasmblockchain_reset(a: number): number;
6
66
  export function wasmblockchain_get_last_block_id(a: number): number;
@@ -19,6 +79,16 @@ export function wasmblockchain_set_fork_id(a: number, b: number): number;
19
79
  export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
20
80
  export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
21
81
  export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
82
+ export function __wbg_wasmpeer_free(a: number): void;
83
+ export function wasmpeer_get_public_key(a: number): number;
84
+ export function wasmpeer_get_key_list(a: number): number;
85
+ export function wasmpeer_get_peer_index(a: number): number;
86
+ export function wasmpeer_new(a: number): number;
87
+ export function wasmpeer_get_sync_type(a: number): number;
88
+ export function wasmpeer_get_services(a: number): number;
89
+ export function wasmpeer_set_services(a: number, b: number): void;
90
+ export function wasmpeer_has_service(a: number, b: number): number;
91
+ export function wasmpeer_get_status(a: number): number;
22
92
  export function __wbg_wasmpeerservicelist_free(a: number): void;
23
93
  export function __wbg_wasmpeerservice_free(a: number): void;
24
94
  export function wasmpeerservice_new(): number;
@@ -69,60 +139,6 @@ export function write_issuance_file(a: number): number;
69
139
  export function disable_producing_blocks_by_timer(): number;
70
140
  export function produce_block_with_gt(): number;
71
141
  export function produce_block_without_gt(): number;
72
- export function __wbg_wasmbalancesnapshot_free(a: number): void;
73
- export function wasmbalancesnapshot_get_file_name(a: number): number;
74
- export function wasmbalancesnapshot_get_entries(a: number): number;
75
- export function wasmbalancesnapshot_from_string(a: number, b: number): void;
76
- export function wasmbalancesnapshot_to_string(a: number): number;
77
- export function __wbg_wasmconfiguration_free(a: number): void;
78
- export function wasmconfiguration_new(): number;
79
- export function __wbg_wasmhop_free(a: number): void;
80
- export function wasmhop_from(a: number, b: number): void;
81
- export function wasmhop_sig(a: number, b: number): void;
82
- export function wasmhop_to(a: number, b: number): void;
83
- export function __wbg_wasmpeer_free(a: number): void;
84
- export function wasmpeer_get_public_key(a: number): number;
85
- export function wasmpeer_get_key_list(a: number): number;
86
- export function wasmpeer_get_peer_index(a: number): number;
87
- export function wasmpeer_new(a: number): number;
88
- export function wasmpeer_get_sync_type(a: number): number;
89
- export function wasmpeer_get_services(a: number): number;
90
- export function wasmpeer_set_services(a: number, b: number): void;
91
- export function wasmpeer_has_service(a: number, b: number): number;
92
- export function wasmpeer_get_status(a: number): number;
93
- export function __wbg_wasmwallet_free(a: number): void;
94
- export function __wbg_wasmwalletslip_free(a: number): void;
95
- export function wasmwallet_save(a: number): number;
96
- export function wasmwallet_reset(a: number, b: number): number;
97
- export function wasmwallet_load(a: number): number;
98
- export function wasmwallet_get_public_key(a: number): number;
99
- export function wasmwallet_set_public_key(a: number, b: number): number;
100
- export function wasmwallet_get_private_key(a: number): number;
101
- export function wasmwallet_set_private_key(a: number, b: number): number;
102
- export function wasmwallet_get_balance(a: number): number;
103
- export function wasmwallet_get_pending_txs(a: number): number;
104
- export function wasmwallet_get_slips(a: number): number;
105
- export function wasmwallet_add_slip(a: number, b: number): number;
106
- export function wasmwallet_add_to_pending(a: number, b: number): number;
107
- export function wasmwallet_get_key_list(a: number): number;
108
- export function wasmwallet_set_key_list(a: number, b: number): number;
109
- export function wasmwalletslip_get_utxokey(a: number): number;
110
- export function wasmwalletslip_set_utxokey(a: number, b: number): void;
111
- export function wasmwalletslip_get_amount(a: number): number;
112
- export function wasmwalletslip_set_amount(a: number, b: number): void;
113
- export function wasmwalletslip_get_block_id(a: number): number;
114
- export function wasmwalletslip_set_block_id(a: number, b: number): void;
115
- export function wasmwalletslip_get_tx_ordinal(a: number): number;
116
- export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
117
- export function wasmwalletslip_get_slip_index(a: number): number;
118
- export function wasmwalletslip_set_slip_index(a: number, b: number): void;
119
- export function wasmwalletslip_is_spent(a: number): number;
120
- export function wasmwalletslip_set_spent(a: number, b: number): void;
121
- export function wasmwalletslip_is_lc(a: number): number;
122
- export function wasmwalletslip_set_lc(a: number, b: number): void;
123
- export function wasmwalletslip_get_slip_type(a: number): number;
124
- export function wasmwalletslip_set_slip_type(a: number, b: number): void;
125
- export function wasmwalletslip_new_(): number;
126
142
  export function __wbg_wasmblock_free(a: number): void;
127
143
  export function wasmblock_new(): number;
128
144
  export function wasmblock_get_transactions(a: number): number;
@@ -220,22 +236,6 @@ export function wasmtransaction_total_fees(a: number): number;
220
236
  export function wasmtransaction_serialize(a: number): number;
221
237
  export function wasmtransaction_deserialize(a: number, b: number): void;
222
238
  export function wasmblock_avg_total_fees(a: number): number;
223
- export function __wbg_wasmconsensusvalues_free(a: number): void;
224
- export function wasmconsensusvalues_it_num(a: number): number;
225
- export function wasmconsensusvalues_fee_transaction(a: number): number;
226
- export function wasmconsensusvalues_it_index(a: number): number;
227
- export function wasmconsensusvalues_ft_num(a: number): number;
228
- export function wasmconsensusvalues_ft_index(a: number): number;
229
- export function wasmconsensusvalues_gt_index(a: number): number;
230
- export function wasmconsensusvalues_total_fees(a: number): number;
231
- export function wasmconsensusvalues_expected_difficulty(a: number): number;
232
- export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
233
- export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
234
- export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
235
- export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
236
- export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
237
- export function wasmconsensusvalues_avg_income(a: number): number;
238
- export function wasmconsensusvalues_avg_total_fees(a: number): number;
239
239
  export function rustsecp256k1_v0_10_0_context_create(a: number): number;
240
240
  export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
241
241
  export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;
@@ -243,8 +243,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
243
243
  export function __wbindgen_malloc(a: number, b: number): number;
244
244
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
245
245
  export const __wbindgen_export_2: WebAssembly.Table;
246
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22994d53a9ca6ed7(a: number, b: number, c: number): void;
246
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc45362b09104e54e(a: number, b: number, c: number): void;
247
+ export function __wbindgen_add_to_stack_pointer(a: number): number;
247
248
  export function __wbindgen_free(a: number, b: number, c: number): void;
248
249
  export function __wbindgen_exn_store(a: number): void;
249
- export function __wbindgen_add_to_stack_pointer(a: number): number;
250
- export function wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(a: number, b: number, c: number, d: number): void;
250
+ export function wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.73",
3
+ "version": "0.2.75",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",