saito-wasm 0.2.65 → 0.2.67

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.65"
3
+ version = "0.2.67"
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.65",
3
+ "version": "0.2.67",
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,17 +1,26 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-617c42188bb36161/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-1536cb47a30897bf/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
9
9
  heap.push(undefined, null, true, false);
10
10
 
11
- function getObject(idx) { return heap[idx]; }
12
-
13
11
  let heap_next = heap.length;
14
12
 
13
+ function addHeapObject(obj) {
14
+ if (heap_next === heap.length) heap.push(heap.length + 1);
15
+ const idx = heap_next;
16
+ heap_next = heap[idx];
17
+
18
+ heap[idx] = obj;
19
+ return idx;
20
+ }
21
+
22
+ function getObject(idx) { return heap[idx]; }
23
+
15
24
  function dropObject(idx) {
16
25
  if (idx < 132) return;
17
26
  heap[idx] = heap_next;
@@ -24,7 +33,9 @@ function takeObject(idx) {
24
33
  return ret;
25
34
  }
26
35
 
27
- let WASM_VECTOR_LEN = 0;
36
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
+
38
+ cachedTextDecoder.decode();
28
39
 
29
40
  let cachedUint8Memory0 = null;
30
41
 
@@ -35,6 +46,13 @@ function getUint8Memory0() {
35
46
  return cachedUint8Memory0;
36
47
  }
37
48
 
49
+ function getStringFromWasm0(ptr, len) {
50
+ ptr = ptr >>> 0;
51
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
+ }
53
+
54
+ let WASM_VECTOR_LEN = 0;
55
+
38
56
  let cachedTextEncoder = new TextEncoder('utf-8');
39
57
 
40
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -102,24 +120,6 @@ function getInt32Memory0() {
102
120
  return cachedInt32Memory0;
103
121
  }
104
122
 
105
- function addHeapObject(obj) {
106
- if (heap_next === heap.length) heap.push(heap.length + 1);
107
- const idx = heap_next;
108
- heap_next = heap[idx];
109
-
110
- heap[idx] = obj;
111
- return idx;
112
- }
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() {
@@ -225,7 +225,7 @@ 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__hccc858efee036015(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22994d53a9ca6ed7(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  function handleError(f, args) {
@@ -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__h4d49289f1d827dd9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
631
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(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.__wbg_wasmbalancesnapshot_new = function(arg0) {
2356
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2355
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2356
+ const ret = BigInt.asUintN(64, arg0);
2357
2357
  return addHeapObject(ret);
2358
2358
  };
2359
2359
 
@@ -2366,6 +2366,16 @@ module.exports.__wbg_wasmtransaction_new = function(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);
2371
+ return addHeapObject(ret);
2372
+ };
2373
+
2374
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2375
+ const ret = WasmBlock.__wrap(arg0);
2376
+ return addHeapObject(ret);
2377
+ };
2378
+
2369
2379
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
2370
2380
  const obj = getObject(arg1);
2371
2381
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2375,23 +2385,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2375
2385
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2376
2386
  };
2377
2387
 
2378
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2379
- const ret = BigInt.asUintN(64, arg0);
2380
- return addHeapObject(ret);
2381
- };
2382
-
2383
2388
  module.exports.__wbg_wasmpeer_new = function(arg0) {
2384
2389
  const ret = WasmPeer.__wrap(arg0);
2385
2390
  return addHeapObject(ret);
2386
2391
  };
2387
2392
 
2388
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2389
- const ret = getStringFromWasm0(arg0, arg1);
2393
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2394
+ const ret = WasmWallet.__wrap(arg0);
2390
2395
  return addHeapObject(ret);
2391
2396
  };
2392
2397
 
2393
- module.exports.__wbg_wasmslip_new = function(arg0) {
2394
- const ret = WasmSlip.__wrap(arg0);
2398
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2399
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2395
2400
  return addHeapObject(ret);
2396
2401
  };
2397
2402
 
@@ -2400,8 +2405,8 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2400
2405
  return addHeapObject(ret);
2401
2406
  };
2402
2407
 
2403
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2404
- const ret = WasmWallet.__wrap(arg0);
2408
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2409
+ const ret = WasmSlip.__wrap(arg0);
2405
2410
  return addHeapObject(ret);
2406
2411
  };
2407
2412
 
@@ -2410,20 +2415,15 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2410
2415
  return addHeapObject(ret);
2411
2416
  };
2412
2417
 
2413
- module.exports.__wbg_wasmblock_new = function(arg0) {
2414
- const ret = WasmBlock.__wrap(arg0);
2415
- return addHeapObject(ret);
2416
- };
2417
-
2418
- module.exports.__wbg_sendmessage_46ee0895aa4dfb97 = function(arg0, arg1) {
2418
+ module.exports.__wbg_sendmessage_eec28175ccb707a0 = function(arg0, arg1) {
2419
2419
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2420
2420
  };
2421
2421
 
2422
- module.exports.__wbg_sendmessagetoall_1a820c1377830a3d = function(arg0, arg1) {
2422
+ module.exports.__wbg_sendmessagetoall_4b7e6aed589d6a0a = function(arg0, arg1) {
2423
2423
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2424
2424
  };
2425
2425
 
2426
- module.exports.__wbg_connecttopeer_3d4e402de7187a87 = function() { return handleError(function (arg0, arg1, arg2) {
2426
+ module.exports.__wbg_connecttopeer_79d07b51f10a946f = function() { return handleError(function (arg0, arg1, arg2) {
2427
2427
  let deferred0_0;
2428
2428
  let deferred0_1;
2429
2429
  try {
@@ -2436,12 +2436,12 @@ module.exports.__wbg_connecttopeer_3d4e402de7187a87 = function() { return handle
2436
2436
  }
2437
2437
  }, arguments) };
2438
2438
 
2439
- module.exports.__wbg_disconnectfrompeer_b2f4cd19ecd84c13 = function() { return handleError(function (arg0) {
2439
+ module.exports.__wbg_disconnectfrompeer_d2cbfeab6296724b = function() { return handleError(function (arg0) {
2440
2440
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2441
2441
  return addHeapObject(ret);
2442
2442
  }, arguments) };
2443
2443
 
2444
- module.exports.__wbg_fetchblockfrompeer_871423cedfc3797b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2444
+ module.exports.__wbg_fetchblockfrompeer_5a76d9e89dd9c431 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2445
2445
  let deferred0_0;
2446
2446
  let deferred0_1;
2447
2447
  try {
@@ -2454,7 +2454,7 @@ module.exports.__wbg_fetchblockfrompeer_871423cedfc3797b = function() { return h
2454
2454
  }
2455
2455
  }, arguments) };
2456
2456
 
2457
- module.exports.__wbg_writevalue_407eeec3b90ac599 = function(arg0, arg1, arg2) {
2457
+ module.exports.__wbg_writevalue_4eecefad636b87c1 = function(arg0, arg1, arg2) {
2458
2458
  let deferred0_0;
2459
2459
  let deferred0_1;
2460
2460
  try {
@@ -2466,7 +2466,7 @@ module.exports.__wbg_writevalue_407eeec3b90ac599 = function(arg0, arg1, arg2) {
2466
2466
  }
2467
2467
  };
2468
2468
 
2469
- module.exports.__wbg_appendvalue_8a85bac0a6b27cc1 = function(arg0, arg1, arg2) {
2469
+ module.exports.__wbg_appendvalue_2fa608c5a4b3e349 = function(arg0, arg1, arg2) {
2470
2470
  let deferred0_0;
2471
2471
  let deferred0_1;
2472
2472
  try {
@@ -2478,7 +2478,7 @@ module.exports.__wbg_appendvalue_8a85bac0a6b27cc1 = function(arg0, arg1, arg2) {
2478
2478
  }
2479
2479
  };
2480
2480
 
2481
- module.exports.__wbg_flushdata_79e385962b3ad77a = function(arg0, arg1) {
2481
+ module.exports.__wbg_flushdata_f7bad68ebcefec76 = function(arg0, arg1) {
2482
2482
  let deferred0_0;
2483
2483
  let deferred0_1;
2484
2484
  try {
@@ -2490,7 +2490,7 @@ module.exports.__wbg_flushdata_79e385962b3ad77a = function(arg0, arg1) {
2490
2490
  }
2491
2491
  };
2492
2492
 
2493
- module.exports.__wbg_readvalue_a472aa634ab8a844 = function() { return handleError(function (arg0, arg1) {
2493
+ module.exports.__wbg_readvalue_4dfc9a2806ee1605 = function() { return handleError(function (arg0, arg1) {
2494
2494
  let deferred0_0;
2495
2495
  let deferred0_1;
2496
2496
  try {
@@ -2503,12 +2503,12 @@ module.exports.__wbg_readvalue_a472aa634ab8a844 = function() { return handleErro
2503
2503
  }
2504
2504
  }, arguments) };
2505
2505
 
2506
- module.exports.__wbg_loadblockfilelist_243f669fa08fd303 = function() { return handleError(function () {
2506
+ module.exports.__wbg_loadblockfilelist_f1a23ca676368dc1 = function() { return handleError(function () {
2507
2507
  const ret = MsgHandler.load_block_file_list();
2508
2508
  return addHeapObject(ret);
2509
2509
  }, arguments) };
2510
2510
 
2511
- module.exports.__wbg_isexistingfile_58c3f93434f449c4 = function() { return handleError(function (arg0, arg1) {
2511
+ module.exports.__wbg_isexistingfile_b976a77695ced61e = function() { return handleError(function (arg0, arg1) {
2512
2512
  let deferred0_0;
2513
2513
  let deferred0_1;
2514
2514
  try {
@@ -2521,7 +2521,7 @@ module.exports.__wbg_isexistingfile_58c3f93434f449c4 = function() { return handl
2521
2521
  }
2522
2522
  }, arguments) };
2523
2523
 
2524
- module.exports.__wbg_removevalue_bf87419a2fea5722 = function() { return handleError(function (arg0, arg1) {
2524
+ module.exports.__wbg_removevalue_c44b4e8ec9f099cb = function() { return handleError(function (arg0, arg1) {
2525
2525
  let deferred0_0;
2526
2526
  let deferred0_1;
2527
2527
  try {
@@ -2534,7 +2534,7 @@ module.exports.__wbg_removevalue_bf87419a2fea5722 = function() { return handleEr
2534
2534
  }
2535
2535
  }, arguments) };
2536
2536
 
2537
- module.exports.__wbg_ensureblockdirectoryexists_a81999ac3aa37eeb = function() { return handleError(function (arg0, arg1) {
2537
+ module.exports.__wbg_ensureblockdirectoryexists_963754241edaa08a = function() { return handleError(function (arg0, arg1) {
2538
2538
  let deferred0_0;
2539
2539
  let deferred0_1;
2540
2540
  try {
@@ -2546,19 +2546,19 @@ module.exports.__wbg_ensureblockdirectoryexists_a81999ac3aa37eeb = function() {
2546
2546
  }
2547
2547
  }, arguments) };
2548
2548
 
2549
- module.exports.__wbg_processapicall_e6fc6adc108f5dd4 = function(arg0, arg1, arg2) {
2549
+ module.exports.__wbg_processapicall_609bc6073e980272 = function(arg0, arg1, arg2) {
2550
2550
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2551
2551
  };
2552
2552
 
2553
- module.exports.__wbg_processapisuccess_b26f4e79d1c95e99 = function(arg0, arg1, arg2) {
2553
+ module.exports.__wbg_processapisuccess_ed6f3bf92e21e0dd = function(arg0, arg1, arg2) {
2554
2554
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2555
2555
  };
2556
2556
 
2557
- module.exports.__wbg_processapierror_4a1109e570d92db3 = function(arg0, arg1, arg2) {
2557
+ module.exports.__wbg_processapierror_e814b12d1ac829b5 = function(arg0, arg1, arg2) {
2558
2558
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2559
2559
  };
2560
2560
 
2561
- module.exports.__wbg_sendinterfaceevent_04f2b418315bd416 = function(arg0, arg1, arg2, arg3, arg4) {
2561
+ module.exports.__wbg_sendinterfaceevent_393f07af17ad0e33 = function(arg0, arg1, arg2, arg3, arg4) {
2562
2562
  let deferred0_0;
2563
2563
  let deferred0_1;
2564
2564
  let deferred1_0;
@@ -2575,7 +2575,7 @@ module.exports.__wbg_sendinterfaceevent_04f2b418315bd416 = function(arg0, arg1,
2575
2575
  }
2576
2576
  };
2577
2577
 
2578
- module.exports.__wbg_sendblocksuccess_4dbbd1cd8603db7f = function(arg0, arg1, arg2) {
2578
+ module.exports.__wbg_sendblocksuccess_71962ad217366a55 = function(arg0, arg1, arg2) {
2579
2579
  let deferred0_0;
2580
2580
  let deferred0_1;
2581
2581
  try {
@@ -2587,11 +2587,11 @@ module.exports.__wbg_sendblocksuccess_4dbbd1cd8603db7f = function(arg0, arg1, ar
2587
2587
  }
2588
2588
  };
2589
2589
 
2590
- module.exports.__wbg_sendwalletupdate_d097928725f1f17c = function() {
2590
+ module.exports.__wbg_sendwalletupdate_89d0fc19739c9800 = function() {
2591
2591
  MsgHandler.send_wallet_update();
2592
2592
  };
2593
2593
 
2594
- module.exports.__wbg_sendnewversionalert_cd744d1a852d07ed = function(arg0, arg1, arg2) {
2594
+ module.exports.__wbg_sendnewversionalert_4c9ab4e3e4e2f499 = function(arg0, arg1, arg2) {
2595
2595
  let deferred0_0;
2596
2596
  let deferred0_1;
2597
2597
  try {
@@ -2603,40 +2603,25 @@ module.exports.__wbg_sendnewversionalert_cd744d1a852d07ed = function(arg0, arg1,
2603
2603
  }
2604
2604
  };
2605
2605
 
2606
- module.exports.__wbg_sendblockfetchstatusevent_a1a8194eddf45c64 = function(arg0) {
2606
+ module.exports.__wbg_sendblockfetchstatusevent_4a5443702808356d = function(arg0) {
2607
2607
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2608
2608
  };
2609
2609
 
2610
- module.exports.__wbg_savewallet_778a90eb19467ea4 = function() {
2610
+ module.exports.__wbg_savewallet_6e50241785b8f134 = function() {
2611
2611
  MsgHandler.save_wallet();
2612
2612
  };
2613
2613
 
2614
- module.exports.__wbg_loadwallet_dd7866b47a9452d1 = function() {
2614
+ module.exports.__wbg_loadwallet_be6a31826ccb1141 = function() {
2615
2615
  MsgHandler.load_wallet();
2616
2616
  };
2617
2617
 
2618
- module.exports.__wbg_getmyservices_8cdf066d444b50fa = function() {
2618
+ module.exports.__wbg_getmyservices_3296a00b565ecb39 = function() {
2619
2619
  const ret = MsgHandler.get_my_services();
2620
2620
  _assertClass(ret, WasmPeerServiceList);
2621
2621
  var ptr1 = ret.__destroy_into_raw();
2622
2622
  return ptr1;
2623
2623
  };
2624
2624
 
2625
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2626
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2627
- return addHeapObject(ret);
2628
- };
2629
-
2630
- module.exports.__wbg_wasmhop_new = function(arg0) {
2631
- const ret = WasmHop.__wrap(arg0);
2632
- return addHeapObject(ret);
2633
- };
2634
-
2635
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2636
- const ret = WasmPeerService.__wrap(arg0);
2637
- return addHeapObject(ret);
2638
- };
2639
-
2640
2625
  module.exports.__wbindgen_is_object = function(arg0) {
2641
2626
  const val = getObject(arg0);
2642
2627
  const ret = typeof(val) === 'object' && val !== null;
@@ -2653,6 +2638,21 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2653
2638
  return ret;
2654
2639
  };
2655
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;
@@ -3024,7 +3024,7 @@ module.exports.__wbindgen_memory = function() {
3024
3024
  };
3025
3025
 
3026
3026
  module.exports.__wbindgen_closure_wrapper1309 = function(arg0, arg1, arg2) {
3027
- const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
3027
+ const ret = makeMutClosure(arg0, arg1, 473, __wbg_adapter_38);
3028
3028
  return addHeapObject(ret);
3029
3029
  };
3030
3030
 
Binary file
@@ -69,22 +69,6 @@ export function write_issuance_file(a: number): number;
69
69
  export function disable_producing_blocks_by_timer(): number;
70
70
  export function produce_block_with_gt(): number;
71
71
  export function produce_block_without_gt(): number;
72
- export function __wbg_wasmconsensusvalues_free(a: number): void;
73
- export function wasmconsensusvalues_it_num(a: number): number;
74
- export function wasmconsensusvalues_fee_transaction(a: number): number;
75
- export function wasmconsensusvalues_it_index(a: number): number;
76
- export function wasmconsensusvalues_ft_num(a: number): number;
77
- export function wasmconsensusvalues_ft_index(a: number): number;
78
- export function wasmconsensusvalues_gt_index(a: number): number;
79
- export function wasmconsensusvalues_total_fees(a: number): number;
80
- export function wasmconsensusvalues_expected_difficulty(a: number): number;
81
- export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
82
- export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
83
- export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
84
- export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
85
- export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
86
- export function wasmconsensusvalues_avg_income(a: number): number;
87
- export function wasmconsensusvalues_avg_total_fees(a: number): number;
88
72
  export function __wbg_wasmbalancesnapshot_free(a: number): void;
89
73
  export function wasmbalancesnapshot_get_file_name(a: number): number;
90
74
  export function wasmbalancesnapshot_get_entries(a: number): number;
@@ -139,6 +123,22 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
139
123
  export function wasmwalletslip_get_slip_type(a: number): number;
140
124
  export function wasmwalletslip_set_slip_type(a: number, b: number): void;
141
125
  export function wasmwalletslip_new_(): number;
126
+ export function __wbg_wasmconsensusvalues_free(a: number): void;
127
+ export function wasmconsensusvalues_it_num(a: number): number;
128
+ export function wasmconsensusvalues_fee_transaction(a: number): number;
129
+ export function wasmconsensusvalues_it_index(a: number): number;
130
+ export function wasmconsensusvalues_ft_num(a: number): number;
131
+ export function wasmconsensusvalues_ft_index(a: number): number;
132
+ export function wasmconsensusvalues_gt_index(a: number): number;
133
+ export function wasmconsensusvalues_total_fees(a: number): number;
134
+ export function wasmconsensusvalues_expected_difficulty(a: number): number;
135
+ export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
136
+ export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
137
+ export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
138
+ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
139
+ export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
140
+ export function wasmconsensusvalues_avg_income(a: number): number;
141
+ export function wasmconsensusvalues_avg_total_fees(a: number): number;
142
142
  export function __wbg_wasmblock_free(a: number): void;
143
143
  export function wasmblock_new(): number;
144
144
  export function wasmblock_get_transactions(a: number): number;
@@ -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__hccc858efee036015(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__h22994d53a9ca6ed7(a: number, b: number, c: number): void;
247
247
  export function __wbindgen_free(a: number, b: number, c: number): void;
248
248
  export function __wbindgen_exn_store(a: number): void;
249
249
  export function __wbindgen_add_to_stack_pointer(a: number): number;
250
- export function wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9(a: number, b: number, c: number, d: number): void;
250
+ export function wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -922,22 +922,6 @@ export interface InitOutput {
922
922
  readonly disable_producing_blocks_by_timer: () => number;
923
923
  readonly produce_block_with_gt: () => number;
924
924
  readonly produce_block_without_gt: () => number;
925
- readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
926
- readonly wasmconsensusvalues_it_num: (a: number) => number;
927
- readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
928
- readonly wasmconsensusvalues_it_index: (a: number) => number;
929
- readonly wasmconsensusvalues_ft_num: (a: number) => number;
930
- readonly wasmconsensusvalues_ft_index: (a: number) => number;
931
- readonly wasmconsensusvalues_gt_index: (a: number) => number;
932
- readonly wasmconsensusvalues_total_fees: (a: number) => number;
933
- readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
934
- readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
935
- readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
936
- readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
937
- readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
938
- readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
939
- readonly wasmconsensusvalues_avg_income: (a: number) => number;
940
- readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
941
925
  readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
942
926
  readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
943
927
  readonly wasmbalancesnapshot_get_entries: (a: number) => number;
@@ -992,6 +976,22 @@ export interface InitOutput {
992
976
  readonly wasmwalletslip_get_slip_type: (a: number) => number;
993
977
  readonly wasmwalletslip_set_slip_type: (a: number, b: number) => void;
994
978
  readonly wasmwalletslip_new_: () => number;
979
+ readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
980
+ readonly wasmconsensusvalues_it_num: (a: number) => number;
981
+ readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
982
+ readonly wasmconsensusvalues_it_index: (a: number) => number;
983
+ readonly wasmconsensusvalues_ft_num: (a: number) => number;
984
+ readonly wasmconsensusvalues_ft_index: (a: number) => number;
985
+ readonly wasmconsensusvalues_gt_index: (a: number) => number;
986
+ readonly wasmconsensusvalues_total_fees: (a: number) => number;
987
+ readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
988
+ readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
989
+ readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
990
+ readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
991
+ readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
992
+ readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
993
+ readonly wasmconsensusvalues_avg_income: (a: number) => number;
994
+ readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
995
995
  readonly __wbg_wasmblock_free: (a: number) => void;
996
996
  readonly wasmblock_new: () => number;
997
997
  readonly wasmblock_get_transactions: (a: number) => number;
@@ -1096,11 +1096,11 @@ export interface InitOutput {
1096
1096
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1097
1097
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1098
1098
  readonly __wbindgen_export_2: WebAssembly.Table;
1099
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccc858efee036015: (a: number, b: number, c: number) => void;
1099
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22994d53a9ca6ed7: (a: number, b: number, c: number) => void;
1100
1100
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1101
1101
  readonly __wbindgen_exn_store: (a: number) => void;
1102
1102
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1103
- readonly wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9: (a: number, b: number, c: number, d: number) => void;
1103
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12: (a: number, b: number, c: number, d: number) => void;
1104
1104
  }
1105
1105
 
1106
1106
  export type SyncInitInput = BufferSource | WebAssembly.Module;
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-617c42188bb36161/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-1536cb47a30897bf/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -6,10 +6,19 @@ const heap = new Array(128).fill(undefined);
6
6
 
7
7
  heap.push(undefined, null, true, false);
8
8
 
9
- function getObject(idx) { return heap[idx]; }
10
-
11
9
  let heap_next = heap.length;
12
10
 
11
+ function addHeapObject(obj) {
12
+ if (heap_next === heap.length) heap.push(heap.length + 1);
13
+ const idx = heap_next;
14
+ heap_next = heap[idx];
15
+
16
+ heap[idx] = obj;
17
+ return idx;
18
+ }
19
+
20
+ function getObject(idx) { return heap[idx]; }
21
+
13
22
  function dropObject(idx) {
14
23
  if (idx < 132) return;
15
24
  heap[idx] = heap_next;
@@ -22,7 +31,9 @@ function takeObject(idx) {
22
31
  return ret;
23
32
  }
24
33
 
25
- let WASM_VECTOR_LEN = 0;
34
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
+
36
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
26
37
 
27
38
  let cachedUint8Memory0 = null;
28
39
 
@@ -33,6 +44,13 @@ function getUint8Memory0() {
33
44
  return cachedUint8Memory0;
34
45
  }
35
46
 
47
+ function getStringFromWasm0(ptr, len) {
48
+ ptr = ptr >>> 0;
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
52
+ let WASM_VECTOR_LEN = 0;
53
+
36
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
37
55
 
38
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -100,24 +118,6 @@ function getInt32Memory0() {
100
118
  return cachedInt32Memory0;
101
119
  }
102
120
 
103
- function addHeapObject(obj) {
104
- if (heap_next === heap.length) heap.push(heap.length + 1);
105
- const idx = heap_next;
106
- heap_next = heap[idx];
107
-
108
- heap[idx] = obj;
109
- return idx;
110
- }
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() {
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_38(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccc858efee036015(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22994d53a9ca6ed7(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function handleError(f, args) {
@@ -626,7 +626,7 @@ export function produce_block_without_gt() {
626
626
  }
627
627
 
628
628
  function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
629
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
629
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
630
630
  }
631
631
 
632
632
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2370,8 +2370,8 @@ async function __wbg_load(module, imports) {
2370
2370
  function __wbg_get_imports() {
2371
2371
  const imports = {};
2372
2372
  imports.wbg = {};
2373
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2374
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2373
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2374
+ const ret = BigInt.asUintN(64, arg0);
2375
2375
  return addHeapObject(ret);
2376
2376
  };
2377
2377
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
@@ -2381,6 +2381,14 @@ function __wbg_get_imports() {
2381
2381
  const ret = WasmTransaction.__wrap(arg0);
2382
2382
  return addHeapObject(ret);
2383
2383
  };
2384
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2385
+ const ret = getStringFromWasm0(arg0, arg1);
2386
+ return addHeapObject(ret);
2387
+ };
2388
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2389
+ const ret = WasmBlock.__wrap(arg0);
2390
+ return addHeapObject(ret);
2391
+ };
2384
2392
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2385
2393
  const obj = getObject(arg1);
2386
2394
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2389,45 +2397,37 @@ function __wbg_get_imports() {
2389
2397
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2390
2398
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2391
2399
  };
2392
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2393
- const ret = BigInt.asUintN(64, arg0);
2394
- return addHeapObject(ret);
2395
- };
2396
2400
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2397
2401
  const ret = WasmPeer.__wrap(arg0);
2398
2402
  return addHeapObject(ret);
2399
2403
  };
2400
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2401
- const ret = getStringFromWasm0(arg0, arg1);
2404
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2405
+ const ret = WasmWallet.__wrap(arg0);
2402
2406
  return addHeapObject(ret);
2403
2407
  };
2404
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2405
- const ret = WasmSlip.__wrap(arg0);
2408
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2409
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2406
2410
  return addHeapObject(ret);
2407
2411
  };
2408
2412
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2409
2413
  const ret = WasmWalletSlip.__wrap(arg0);
2410
2414
  return addHeapObject(ret);
2411
2415
  };
2412
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2413
- const ret = WasmWallet.__wrap(arg0);
2416
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2417
+ const ret = WasmSlip.__wrap(arg0);
2414
2418
  return addHeapObject(ret);
2415
2419
  };
2416
2420
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2417
2421
  const ret = WasmBlockchain.__wrap(arg0);
2418
2422
  return addHeapObject(ret);
2419
2423
  };
2420
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2421
- const ret = WasmBlock.__wrap(arg0);
2422
- return addHeapObject(ret);
2423
- };
2424
- imports.wbg.__wbg_sendmessage_46ee0895aa4dfb97 = function(arg0, arg1) {
2424
+ imports.wbg.__wbg_sendmessage_eec28175ccb707a0 = function(arg0, arg1) {
2425
2425
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2426
2426
  };
2427
- imports.wbg.__wbg_sendmessagetoall_1a820c1377830a3d = function(arg0, arg1) {
2427
+ imports.wbg.__wbg_sendmessagetoall_4b7e6aed589d6a0a = function(arg0, arg1) {
2428
2428
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2429
2429
  };
2430
- imports.wbg.__wbg_connecttopeer_3d4e402de7187a87 = function() { return handleError(function (arg0, arg1, arg2) {
2430
+ imports.wbg.__wbg_connecttopeer_79d07b51f10a946f = function() { return handleError(function (arg0, arg1, arg2) {
2431
2431
  let deferred0_0;
2432
2432
  let deferred0_1;
2433
2433
  try {
@@ -2439,11 +2439,11 @@ function __wbg_get_imports() {
2439
2439
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2440
2440
  }
2441
2441
  }, arguments) };
2442
- imports.wbg.__wbg_disconnectfrompeer_b2f4cd19ecd84c13 = function() { return handleError(function (arg0) {
2442
+ imports.wbg.__wbg_disconnectfrompeer_d2cbfeab6296724b = function() { return handleError(function (arg0) {
2443
2443
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2444
2444
  return addHeapObject(ret);
2445
2445
  }, arguments) };
2446
- imports.wbg.__wbg_fetchblockfrompeer_871423cedfc3797b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2446
+ imports.wbg.__wbg_fetchblockfrompeer_5a76d9e89dd9c431 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2447
2447
  let deferred0_0;
2448
2448
  let deferred0_1;
2449
2449
  try {
@@ -2455,7 +2455,7 @@ function __wbg_get_imports() {
2455
2455
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2456
2456
  }
2457
2457
  }, arguments) };
2458
- imports.wbg.__wbg_writevalue_407eeec3b90ac599 = function(arg0, arg1, arg2) {
2458
+ imports.wbg.__wbg_writevalue_4eecefad636b87c1 = function(arg0, arg1, arg2) {
2459
2459
  let deferred0_0;
2460
2460
  let deferred0_1;
2461
2461
  try {
@@ -2466,7 +2466,7 @@ function __wbg_get_imports() {
2466
2466
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2467
2467
  }
2468
2468
  };
2469
- imports.wbg.__wbg_appendvalue_8a85bac0a6b27cc1 = function(arg0, arg1, arg2) {
2469
+ imports.wbg.__wbg_appendvalue_2fa608c5a4b3e349 = function(arg0, arg1, arg2) {
2470
2470
  let deferred0_0;
2471
2471
  let deferred0_1;
2472
2472
  try {
@@ -2477,7 +2477,7 @@ function __wbg_get_imports() {
2477
2477
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2478
2478
  }
2479
2479
  };
2480
- imports.wbg.__wbg_flushdata_79e385962b3ad77a = function(arg0, arg1) {
2480
+ imports.wbg.__wbg_flushdata_f7bad68ebcefec76 = function(arg0, arg1) {
2481
2481
  let deferred0_0;
2482
2482
  let deferred0_1;
2483
2483
  try {
@@ -2488,7 +2488,7 @@ function __wbg_get_imports() {
2488
2488
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2489
2489
  }
2490
2490
  };
2491
- imports.wbg.__wbg_readvalue_a472aa634ab8a844 = function() { return handleError(function (arg0, arg1) {
2491
+ imports.wbg.__wbg_readvalue_4dfc9a2806ee1605 = function() { return handleError(function (arg0, arg1) {
2492
2492
  let deferred0_0;
2493
2493
  let deferred0_1;
2494
2494
  try {
@@ -2500,11 +2500,11 @@ function __wbg_get_imports() {
2500
2500
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2501
2501
  }
2502
2502
  }, arguments) };
2503
- imports.wbg.__wbg_loadblockfilelist_243f669fa08fd303 = function() { return handleError(function () {
2503
+ imports.wbg.__wbg_loadblockfilelist_f1a23ca676368dc1 = function() { return handleError(function () {
2504
2504
  const ret = MsgHandler.load_block_file_list();
2505
2505
  return addHeapObject(ret);
2506
2506
  }, arguments) };
2507
- imports.wbg.__wbg_isexistingfile_58c3f93434f449c4 = function() { return handleError(function (arg0, arg1) {
2507
+ imports.wbg.__wbg_isexistingfile_b976a77695ced61e = function() { return handleError(function (arg0, arg1) {
2508
2508
  let deferred0_0;
2509
2509
  let deferred0_1;
2510
2510
  try {
@@ -2516,7 +2516,7 @@ function __wbg_get_imports() {
2516
2516
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2517
2517
  }
2518
2518
  }, arguments) };
2519
- imports.wbg.__wbg_removevalue_bf87419a2fea5722 = function() { return handleError(function (arg0, arg1) {
2519
+ imports.wbg.__wbg_removevalue_c44b4e8ec9f099cb = function() { return handleError(function (arg0, arg1) {
2520
2520
  let deferred0_0;
2521
2521
  let deferred0_1;
2522
2522
  try {
@@ -2528,7 +2528,7 @@ function __wbg_get_imports() {
2528
2528
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2529
2529
  }
2530
2530
  }, arguments) };
2531
- imports.wbg.__wbg_ensureblockdirectoryexists_a81999ac3aa37eeb = function() { return handleError(function (arg0, arg1) {
2531
+ imports.wbg.__wbg_ensureblockdirectoryexists_963754241edaa08a = function() { return handleError(function (arg0, arg1) {
2532
2532
  let deferred0_0;
2533
2533
  let deferred0_1;
2534
2534
  try {
@@ -2539,16 +2539,16 @@ function __wbg_get_imports() {
2539
2539
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2540
2540
  }
2541
2541
  }, arguments) };
2542
- imports.wbg.__wbg_processapicall_e6fc6adc108f5dd4 = function(arg0, arg1, arg2) {
2542
+ imports.wbg.__wbg_processapicall_609bc6073e980272 = function(arg0, arg1, arg2) {
2543
2543
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2544
2544
  };
2545
- imports.wbg.__wbg_processapisuccess_b26f4e79d1c95e99 = function(arg0, arg1, arg2) {
2545
+ imports.wbg.__wbg_processapisuccess_ed6f3bf92e21e0dd = function(arg0, arg1, arg2) {
2546
2546
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2547
2547
  };
2548
- imports.wbg.__wbg_processapierror_4a1109e570d92db3 = function(arg0, arg1, arg2) {
2548
+ imports.wbg.__wbg_processapierror_e814b12d1ac829b5 = function(arg0, arg1, arg2) {
2549
2549
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2550
2550
  };
2551
- imports.wbg.__wbg_sendinterfaceevent_04f2b418315bd416 = function(arg0, arg1, arg2, arg3, arg4) {
2551
+ imports.wbg.__wbg_sendinterfaceevent_393f07af17ad0e33 = function(arg0, arg1, arg2, arg3, arg4) {
2552
2552
  let deferred0_0;
2553
2553
  let deferred0_1;
2554
2554
  let deferred1_0;
@@ -2564,7 +2564,7 @@ function __wbg_get_imports() {
2564
2564
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2565
2565
  }
2566
2566
  };
2567
- imports.wbg.__wbg_sendblocksuccess_4dbbd1cd8603db7f = function(arg0, arg1, arg2) {
2567
+ imports.wbg.__wbg_sendblocksuccess_71962ad217366a55 = function(arg0, arg1, arg2) {
2568
2568
  let deferred0_0;
2569
2569
  let deferred0_1;
2570
2570
  try {
@@ -2575,10 +2575,10 @@ function __wbg_get_imports() {
2575
2575
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2576
2576
  }
2577
2577
  };
2578
- imports.wbg.__wbg_sendwalletupdate_d097928725f1f17c = function() {
2578
+ imports.wbg.__wbg_sendwalletupdate_89d0fc19739c9800 = function() {
2579
2579
  MsgHandler.send_wallet_update();
2580
2580
  };
2581
- imports.wbg.__wbg_sendnewversionalert_cd744d1a852d07ed = function(arg0, arg1, arg2) {
2581
+ imports.wbg.__wbg_sendnewversionalert_4c9ab4e3e4e2f499 = function(arg0, arg1, arg2) {
2582
2582
  let deferred0_0;
2583
2583
  let deferred0_1;
2584
2584
  try {
@@ -2589,33 +2589,21 @@ function __wbg_get_imports() {
2589
2589
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2590
2590
  }
2591
2591
  };
2592
- imports.wbg.__wbg_sendblockfetchstatusevent_a1a8194eddf45c64 = function(arg0) {
2592
+ imports.wbg.__wbg_sendblockfetchstatusevent_4a5443702808356d = function(arg0) {
2593
2593
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2594
2594
  };
2595
- imports.wbg.__wbg_savewallet_778a90eb19467ea4 = function() {
2595
+ imports.wbg.__wbg_savewallet_6e50241785b8f134 = function() {
2596
2596
  MsgHandler.save_wallet();
2597
2597
  };
2598
- imports.wbg.__wbg_loadwallet_dd7866b47a9452d1 = function() {
2598
+ imports.wbg.__wbg_loadwallet_be6a31826ccb1141 = function() {
2599
2599
  MsgHandler.load_wallet();
2600
2600
  };
2601
- imports.wbg.__wbg_getmyservices_8cdf066d444b50fa = function() {
2601
+ imports.wbg.__wbg_getmyservices_3296a00b565ecb39 = function() {
2602
2602
  const ret = MsgHandler.get_my_services();
2603
2603
  _assertClass(ret, WasmPeerServiceList);
2604
2604
  var ptr1 = ret.__destroy_into_raw();
2605
2605
  return ptr1;
2606
2606
  };
2607
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2608
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2609
- return addHeapObject(ret);
2610
- };
2611
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2612
- const ret = WasmHop.__wrap(arg0);
2613
- return addHeapObject(ret);
2614
- };
2615
- imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2616
- const ret = WasmPeerService.__wrap(arg0);
2617
- return addHeapObject(ret);
2618
- };
2619
2607
  imports.wbg.__wbindgen_is_object = function(arg0) {
2620
2608
  const val = getObject(arg0);
2621
2609
  const ret = typeof(val) === 'object' && val !== null;
@@ -2629,6 +2617,18 @@ function __wbg_get_imports() {
2629
2617
  const ret = getObject(arg0) in getObject(arg1);
2630
2618
  return ret;
2631
2619
  };
2620
+ imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2621
+ const ret = WasmPeerService.__wrap(arg0);
2622
+ return addHeapObject(ret);
2623
+ };
2624
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2625
+ const ret = WasmHop.__wrap(arg0);
2626
+ return addHeapObject(ret);
2627
+ };
2628
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2629
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2630
+ return addHeapObject(ret);
2631
+ };
2632
2632
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2633
2633
  const ret = getObject(arg0) == getObject(arg1);
2634
2634
  return ret;
@@ -2933,7 +2933,7 @@ function __wbg_get_imports() {
2933
2933
  return addHeapObject(ret);
2934
2934
  };
2935
2935
  imports.wbg.__wbindgen_closure_wrapper1309 = function(arg0, arg1, arg2) {
2936
- const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
2936
+ const ret = makeMutClosure(arg0, arg1, 473, __wbg_adapter_38);
2937
2937
  return addHeapObject(ret);
2938
2938
  };
2939
2939
 
Binary file
@@ -69,22 +69,6 @@ export function write_issuance_file(a: number): number;
69
69
  export function disable_producing_blocks_by_timer(): number;
70
70
  export function produce_block_with_gt(): number;
71
71
  export function produce_block_without_gt(): number;
72
- export function __wbg_wasmconsensusvalues_free(a: number): void;
73
- export function wasmconsensusvalues_it_num(a: number): number;
74
- export function wasmconsensusvalues_fee_transaction(a: number): number;
75
- export function wasmconsensusvalues_it_index(a: number): number;
76
- export function wasmconsensusvalues_ft_num(a: number): number;
77
- export function wasmconsensusvalues_ft_index(a: number): number;
78
- export function wasmconsensusvalues_gt_index(a: number): number;
79
- export function wasmconsensusvalues_total_fees(a: number): number;
80
- export function wasmconsensusvalues_expected_difficulty(a: number): number;
81
- export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
82
- export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
83
- export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
84
- export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
85
- export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
86
- export function wasmconsensusvalues_avg_income(a: number): number;
87
- export function wasmconsensusvalues_avg_total_fees(a: number): number;
88
72
  export function __wbg_wasmbalancesnapshot_free(a: number): void;
89
73
  export function wasmbalancesnapshot_get_file_name(a: number): number;
90
74
  export function wasmbalancesnapshot_get_entries(a: number): number;
@@ -139,6 +123,22 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
139
123
  export function wasmwalletslip_get_slip_type(a: number): number;
140
124
  export function wasmwalletslip_set_slip_type(a: number, b: number): void;
141
125
  export function wasmwalletslip_new_(): number;
126
+ export function __wbg_wasmconsensusvalues_free(a: number): void;
127
+ export function wasmconsensusvalues_it_num(a: number): number;
128
+ export function wasmconsensusvalues_fee_transaction(a: number): number;
129
+ export function wasmconsensusvalues_it_index(a: number): number;
130
+ export function wasmconsensusvalues_ft_num(a: number): number;
131
+ export function wasmconsensusvalues_ft_index(a: number): number;
132
+ export function wasmconsensusvalues_gt_index(a: number): number;
133
+ export function wasmconsensusvalues_total_fees(a: number): number;
134
+ export function wasmconsensusvalues_expected_difficulty(a: number): number;
135
+ export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
136
+ export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
137
+ export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
138
+ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
139
+ export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
140
+ export function wasmconsensusvalues_avg_income(a: number): number;
141
+ export function wasmconsensusvalues_avg_total_fees(a: number): number;
142
142
  export function __wbg_wasmblock_free(a: number): void;
143
143
  export function wasmblock_new(): number;
144
144
  export function wasmblock_get_transactions(a: number): number;
@@ -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__hccc858efee036015(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__h22994d53a9ca6ed7(a: number, b: number, c: number): void;
247
247
  export function __wbindgen_free(a: number, b: number, c: number): void;
248
248
  export function __wbindgen_exn_store(a: number): void;
249
249
  export function __wbindgen_add_to_stack_pointer(a: number): number;
250
- export function wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9(a: number, b: number, c: number, d: number): void;
250
+ export function wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
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
  }