saito-wasm 0.2.32 → 0.2.34

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.32"
3
+ version = "0.2.34"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -29,6 +29,7 @@ figment = { version = "0.10.12", features = ["json"] }
29
29
  serde_json = { version = "1.0.117" }
30
30
  num-derive = { version = "0.4.2" }
31
31
  num-traits = { version = "0.2.19" }
32
+ console_error_panic_hook = "0.1.7"
32
33
 
33
34
  [package.metadata.wasm-pack.profile.release]
34
35
  wasm-opt = ['-Oz']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -490,6 +490,11 @@ export class WasmBlockchain {
490
490
  */
491
491
  get_fork_id(): Promise<string>;
492
492
  /**
493
+ * @param {string} hash
494
+ * @returns {Promise<void>}
495
+ */
496
+ set_fork_id(hash: string): Promise<void>;
497
+ /**
493
498
  * @param {bigint} block_id
494
499
  * @returns {Promise<string>}
495
500
  */
@@ -499,6 +504,11 @@ export class WasmBlockchain {
499
504
  * @returns {Promise<Array<any>>}
500
505
  */
501
506
  get_hashes_at_id(block_id: bigint): Promise<Array<any>>;
507
+ /**
508
+ * @param {bigint} block_id
509
+ * @returns {Promise<void>}
510
+ */
511
+ set_safe_to_prune_transaction(block_id: bigint): Promise<void>;
502
512
  }
503
513
  /**
504
514
  */
package/pkg/node/index.js CHANGED
@@ -1,32 +1,28 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-bafd680e29f33ffd/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-e217a77a957ac578/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
7
+ const heap = new Array(128).fill(undefined);
8
8
 
9
- cachedTextDecoder.decode();
9
+ heap.push(undefined, null, true, false);
10
10
 
11
- let cachedUint8Memory0 = null;
11
+ function getObject(idx) { return heap[idx]; }
12
12
 
13
- function getUint8Memory0() {
14
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
15
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
16
- }
17
- return cachedUint8Memory0;
18
- }
13
+ let heap_next = heap.length;
19
14
 
20
- function getStringFromWasm0(ptr, len) {
21
- ptr = ptr >>> 0;
22
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
23
19
  }
24
20
 
25
- const heap = new Array(128).fill(undefined);
26
-
27
- heap.push(undefined, null, true, false);
28
-
29
- let heap_next = heap.length;
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
30
26
 
31
27
  function addHeapObject(obj) {
32
28
  if (heap_next === heap.length) heap.push(heap.length + 1);
@@ -37,18 +33,22 @@ function addHeapObject(obj) {
37
33
  return idx;
38
34
  }
39
35
 
40
- function getObject(idx) { return heap[idx]; }
36
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
41
37
 
42
- function dropObject(idx) {
43
- if (idx < 132) return;
44
- heap[idx] = heap_next;
45
- heap_next = idx;
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;
46
47
  }
47
48
 
48
- function takeObject(idx) {
49
- const ret = getObject(idx);
50
- dropObject(idx);
51
- return ret;
49
+ function getStringFromWasm0(ptr, len) {
50
+ ptr = ptr >>> 0;
51
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
52
  }
53
53
 
54
54
  let WASM_VECTOR_LEN = 0;
@@ -228,6 +228,13 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
228
228
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha18c4469c8531320(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
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;
236
+ }
237
+
231
238
  function handleError(f, args) {
232
239
  try {
233
240
  return f.apply(this, 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
@@ -626,7 +626,7 @@ module.exports.produce_block_without_gt = function() {
626
626
  return takeObject(ret);
627
627
  };
628
628
 
629
- function __wbg_adapter_405(arg0, arg1, arg2, arg3) {
629
+ function __wbg_adapter_413(arg0, arg1, arg2, arg3) {
630
630
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h2c2d2984a3f304e5(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
631
631
  }
632
632
 
@@ -1346,6 +1346,14 @@ class WasmBlockchain {
1346
1346
  return takeObject(ret);
1347
1347
  }
1348
1348
  /**
1349
+ * @param {string} hash
1350
+ * @returns {Promise<void>}
1351
+ */
1352
+ set_fork_id(hash) {
1353
+ const ret = wasm.wasmblockchain_set_fork_id(this.__wbg_ptr, addHeapObject(hash));
1354
+ return takeObject(ret);
1355
+ }
1356
+ /**
1349
1357
  * @param {bigint} block_id
1350
1358
  * @returns {Promise<string>}
1351
1359
  */
@@ -1361,6 +1369,14 @@ class WasmBlockchain {
1361
1369
  const ret = wasm.wasmblockchain_get_hashes_at_id(this.__wbg_ptr, block_id);
1362
1370
  return takeObject(ret);
1363
1371
  }
1372
+ /**
1373
+ * @param {bigint} block_id
1374
+ * @returns {Promise<void>}
1375
+ */
1376
+ set_safe_to_prune_transaction(block_id) {
1377
+ const ret = wasm.wasmblockchain_set_safe_to_prune_transaction(this.__wbg_ptr, block_id);
1378
+ return takeObject(ret);
1379
+ }
1364
1380
  }
1365
1381
  module.exports.WasmBlockchain = WasmBlockchain;
1366
1382
 
@@ -2392,13 +2408,18 @@ class WasmWalletSlip {
2392
2408
  }
2393
2409
  module.exports.WasmWalletSlip = WasmWalletSlip;
2394
2410
 
2395
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2396
- const ret = getStringFromWasm0(arg0, arg1);
2411
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2412
+ takeObject(arg0);
2413
+ };
2414
+
2415
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2416
+ const ret = WasmPeer.__wrap(arg0);
2397
2417
  return addHeapObject(ret);
2398
2418
  };
2399
2419
 
2400
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
2401
- takeObject(arg0);
2420
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2421
+ const ret = WasmWallet.__wrap(arg0);
2422
+ return addHeapObject(ret);
2402
2423
  };
2403
2424
 
2404
2425
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
@@ -2406,23 +2427,23 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2406
2427
  return addHeapObject(ret);
2407
2428
  };
2408
2429
 
2409
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2410
- const ret = BigInt.asUintN(64, arg0);
2430
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2431
+ const ret = WasmBlockchain.__wrap(arg0);
2411
2432
  return addHeapObject(ret);
2412
2433
  };
2413
2434
 
2414
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2415
- const ret = WasmWalletSlip.__wrap(arg0);
2435
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2436
+ const ret = BigInt.asUintN(64, arg0);
2416
2437
  return addHeapObject(ret);
2417
2438
  };
2418
2439
 
2419
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2420
- const ret = WasmWallet.__wrap(arg0);
2440
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2441
+ const ret = getStringFromWasm0(arg0, arg1);
2421
2442
  return addHeapObject(ret);
2422
2443
  };
2423
2444
 
2424
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2425
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2445
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2446
+ const ret = WasmWalletSlip.__wrap(arg0);
2426
2447
  return addHeapObject(ret);
2427
2448
  };
2428
2449
 
@@ -2431,18 +2452,18 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
2431
2452
  return addHeapObject(ret);
2432
2453
  };
2433
2454
 
2434
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2435
- const ret = WasmPeer.__wrap(arg0);
2455
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2456
+ const ret = WasmSlip.__wrap(arg0);
2436
2457
  return addHeapObject(ret);
2437
2458
  };
2438
2459
 
2439
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2440
- const ret = WasmBlockchain.__wrap(arg0);
2460
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2461
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2441
2462
  return addHeapObject(ret);
2442
2463
  };
2443
2464
 
2444
- module.exports.__wbg_wasmslip_new = function(arg0) {
2445
- const ret = WasmSlip.__wrap(arg0);
2465
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2466
+ const ret = WasmHop.__wrap(arg0);
2446
2467
  return addHeapObject(ret);
2447
2468
  };
2448
2469
 
@@ -2455,20 +2476,20 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2455
2476
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2456
2477
  };
2457
2478
 
2458
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2459
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2479
+ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
2480
+ const ret = WasmConsensusValues.__wrap(arg0);
2460
2481
  return addHeapObject(ret);
2461
2482
  };
2462
2483
 
2463
- module.exports.__wbg_sendmessage_3f9c9a3c04faa831 = function(arg0, arg1) {
2484
+ module.exports.__wbg_sendmessage_09900df5abe7a2af = function(arg0, arg1) {
2464
2485
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2465
2486
  };
2466
2487
 
2467
- module.exports.__wbg_sendmessagetoall_01504c5649f439a9 = function(arg0, arg1) {
2488
+ module.exports.__wbg_sendmessagetoall_1da8f3d3ee33f222 = function(arg0, arg1) {
2468
2489
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2469
2490
  };
2470
2491
 
2471
- module.exports.__wbg_connecttopeer_5a80d22a81191394 = function() { return handleError(function (arg0, arg1, arg2) {
2492
+ module.exports.__wbg_connecttopeer_038b1fb396587b48 = function() { return handleError(function (arg0, arg1, arg2) {
2472
2493
  let deferred0_0;
2473
2494
  let deferred0_1;
2474
2495
  try {
@@ -2481,12 +2502,12 @@ module.exports.__wbg_connecttopeer_5a80d22a81191394 = function() { return handle
2481
2502
  }
2482
2503
  }, arguments) };
2483
2504
 
2484
- module.exports.__wbg_disconnectfrompeer_228f6074acb86b7a = function() { return handleError(function (arg0) {
2505
+ module.exports.__wbg_disconnectfrompeer_eb84c22a1cea7be7 = function() { return handleError(function (arg0) {
2485
2506
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2486
2507
  return addHeapObject(ret);
2487
2508
  }, arguments) };
2488
2509
 
2489
- module.exports.__wbg_fetchblockfrompeer_5406105f2b6c82be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2510
+ module.exports.__wbg_fetchblockfrompeer_d7e4a8e1d6d38dd9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2490
2511
  let deferred0_0;
2491
2512
  let deferred0_1;
2492
2513
  try {
@@ -2499,7 +2520,7 @@ module.exports.__wbg_fetchblockfrompeer_5406105f2b6c82be = function() { return h
2499
2520
  }
2500
2521
  }, arguments) };
2501
2522
 
2502
- module.exports.__wbg_writevalue_e62d3a29aa685c64 = function(arg0, arg1, arg2) {
2523
+ module.exports.__wbg_writevalue_a1529625b4eea509 = function(arg0, arg1, arg2) {
2503
2524
  let deferred0_0;
2504
2525
  let deferred0_1;
2505
2526
  try {
@@ -2511,7 +2532,7 @@ module.exports.__wbg_writevalue_e62d3a29aa685c64 = function(arg0, arg1, arg2) {
2511
2532
  }
2512
2533
  };
2513
2534
 
2514
- module.exports.__wbg_appendvalue_c4151d8e76893929 = function(arg0, arg1, arg2) {
2535
+ module.exports.__wbg_appendvalue_1a3cfeac5de75f36 = function(arg0, arg1, arg2) {
2515
2536
  let deferred0_0;
2516
2537
  let deferred0_1;
2517
2538
  try {
@@ -2523,7 +2544,7 @@ module.exports.__wbg_appendvalue_c4151d8e76893929 = function(arg0, arg1, arg2) {
2523
2544
  }
2524
2545
  };
2525
2546
 
2526
- module.exports.__wbg_flushdata_dedd3d04181afd7f = function(arg0, arg1) {
2547
+ module.exports.__wbg_flushdata_2562a83a87038f71 = function(arg0, arg1) {
2527
2548
  let deferred0_0;
2528
2549
  let deferred0_1;
2529
2550
  try {
@@ -2535,7 +2556,7 @@ module.exports.__wbg_flushdata_dedd3d04181afd7f = function(arg0, arg1) {
2535
2556
  }
2536
2557
  };
2537
2558
 
2538
- module.exports.__wbg_readvalue_07766ecfab60ac45 = function() { return handleError(function (arg0, arg1) {
2559
+ module.exports.__wbg_readvalue_328b3700978b79ea = function() { return handleError(function (arg0, arg1) {
2539
2560
  let deferred0_0;
2540
2561
  let deferred0_1;
2541
2562
  try {
@@ -2548,12 +2569,12 @@ module.exports.__wbg_readvalue_07766ecfab60ac45 = function() { return handleErro
2548
2569
  }
2549
2570
  }, arguments) };
2550
2571
 
2551
- module.exports.__wbg_loadblockfilelist_b18d11a0b07b3d29 = function() { return handleError(function () {
2572
+ module.exports.__wbg_loadblockfilelist_f056561e260b9bb4 = function() { return handleError(function () {
2552
2573
  const ret = MsgHandler.load_block_file_list();
2553
2574
  return addHeapObject(ret);
2554
2575
  }, arguments) };
2555
2576
 
2556
- module.exports.__wbg_isexistingfile_f2253e2a10e75155 = function() { return handleError(function (arg0, arg1) {
2577
+ module.exports.__wbg_isexistingfile_9a3e72f7f9861e5d = function() { return handleError(function (arg0, arg1) {
2557
2578
  let deferred0_0;
2558
2579
  let deferred0_1;
2559
2580
  try {
@@ -2566,7 +2587,7 @@ module.exports.__wbg_isexistingfile_f2253e2a10e75155 = function() { return handl
2566
2587
  }
2567
2588
  }, arguments) };
2568
2589
 
2569
- module.exports.__wbg_removevalue_1128ef0ed2e2edae = function() { return handleError(function (arg0, arg1) {
2590
+ module.exports.__wbg_removevalue_7220fcefe7105e5b = function() { return handleError(function (arg0, arg1) {
2570
2591
  let deferred0_0;
2571
2592
  let deferred0_1;
2572
2593
  try {
@@ -2579,7 +2600,7 @@ module.exports.__wbg_removevalue_1128ef0ed2e2edae = function() { return handleEr
2579
2600
  }
2580
2601
  }, arguments) };
2581
2602
 
2582
- module.exports.__wbg_ensureblockdirectoryexists_722609e004de47d3 = function() { return handleError(function (arg0, arg1) {
2603
+ module.exports.__wbg_ensureblockdirectoryexists_e5fc7873109c4f6d = function() { return handleError(function (arg0, arg1) {
2583
2604
  let deferred0_0;
2584
2605
  let deferred0_1;
2585
2606
  try {
@@ -2591,19 +2612,19 @@ module.exports.__wbg_ensureblockdirectoryexists_722609e004de47d3 = function() {
2591
2612
  }
2592
2613
  }, arguments) };
2593
2614
 
2594
- module.exports.__wbg_processapicall_953c894600fd4457 = function(arg0, arg1, arg2) {
2615
+ module.exports.__wbg_processapicall_00f4542843ce7f4b = function(arg0, arg1, arg2) {
2595
2616
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2596
2617
  };
2597
2618
 
2598
- module.exports.__wbg_processapisuccess_bed5edf5da835105 = function(arg0, arg1, arg2) {
2619
+ module.exports.__wbg_processapisuccess_48e5751936c128aa = function(arg0, arg1, arg2) {
2599
2620
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2600
2621
  };
2601
2622
 
2602
- module.exports.__wbg_processapierror_ea1f5c97786886dd = function(arg0, arg1, arg2) {
2623
+ module.exports.__wbg_processapierror_4475f586476b0fc3 = function(arg0, arg1, arg2) {
2603
2624
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2604
2625
  };
2605
2626
 
2606
- module.exports.__wbg_sendinterfaceevent_3a145868863bc2b2 = function(arg0, arg1, arg2, arg3, arg4) {
2627
+ module.exports.__wbg_sendinterfaceevent_01f0f0fb3d8dbcbe = function(arg0, arg1, arg2, arg3, arg4) {
2607
2628
  let deferred0_0;
2608
2629
  let deferred0_1;
2609
2630
  let deferred1_0;
@@ -2620,7 +2641,7 @@ module.exports.__wbg_sendinterfaceevent_3a145868863bc2b2 = function(arg0, arg1,
2620
2641
  }
2621
2642
  };
2622
2643
 
2623
- module.exports.__wbg_sendblocksuccess_26fa775654ec93b1 = function(arg0, arg1, arg2) {
2644
+ module.exports.__wbg_sendblocksuccess_8f39324d656fd1a0 = function(arg0, arg1, arg2) {
2624
2645
  let deferred0_0;
2625
2646
  let deferred0_1;
2626
2647
  try {
@@ -2632,11 +2653,11 @@ module.exports.__wbg_sendblocksuccess_26fa775654ec93b1 = function(arg0, arg1, ar
2632
2653
  }
2633
2654
  };
2634
2655
 
2635
- module.exports.__wbg_sendwalletupdate_b4cd56af1167acfe = function() {
2656
+ module.exports.__wbg_sendwalletupdate_4556f9c94bc36c01 = function() {
2636
2657
  MsgHandler.send_wallet_update();
2637
2658
  };
2638
2659
 
2639
- module.exports.__wbg_sendnewversionalert_e504bbed10683b3f = function(arg0, arg1, arg2) {
2660
+ module.exports.__wbg_sendnewversionalert_804b458dfef752e6 = function(arg0, arg1, arg2) {
2640
2661
  let deferred0_0;
2641
2662
  let deferred0_1;
2642
2663
  try {
@@ -2648,37 +2669,32 @@ module.exports.__wbg_sendnewversionalert_e504bbed10683b3f = function(arg0, arg1,
2648
2669
  }
2649
2670
  };
2650
2671
 
2651
- module.exports.__wbg_sendblockfetchstatusevent_6d22df0699ecb3ba = function(arg0) {
2672
+ module.exports.__wbg_sendblockfetchstatusevent_0fac3b7fd442c93c = function(arg0) {
2652
2673
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2653
2674
  };
2654
2675
 
2655
- module.exports.__wbg_savewallet_9e0c55fc13bd98b0 = function() {
2676
+ module.exports.__wbg_savewallet_5cfa1c03d999be47 = function() {
2656
2677
  MsgHandler.save_wallet();
2657
2678
  };
2658
2679
 
2659
- module.exports.__wbg_loadwallet_89e1f5c5bced311e = function() {
2680
+ module.exports.__wbg_loadwallet_ff0abf5927f527bc = function() {
2660
2681
  MsgHandler.load_wallet();
2661
2682
  };
2662
2683
 
2663
- module.exports.__wbg_getmyservices_6f6f9ec0653684de = function() {
2684
+ module.exports.__wbg_getmyservices_cbd10d8a42914a48 = function() {
2664
2685
  const ret = MsgHandler.get_my_services();
2665
2686
  _assertClass(ret, WasmPeerServiceList);
2666
2687
  var ptr1 = ret.__destroy_into_raw();
2667
2688
  return ptr1;
2668
2689
  };
2669
2690
 
2670
- module.exports.__wbg_wasmhop_new = function(arg0) {
2671
- const ret = WasmHop.__wrap(arg0);
2672
- return addHeapObject(ret);
2673
- };
2674
-
2675
- module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
2676
- const ret = WasmConsensusValues.__wrap(arg0);
2691
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2692
+ const ret = WasmPeerService.__wrap(arg0);
2677
2693
  return addHeapObject(ret);
2678
2694
  };
2679
2695
 
2680
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2681
- const ret = WasmPeerService.__wrap(arg0);
2696
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2697
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2682
2698
  return addHeapObject(ret);
2683
2699
  };
2684
2700
 
@@ -2750,6 +2766,31 @@ module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2750
2766
  queueMicrotask(getObject(arg0));
2751
2767
  };
2752
2768
 
2769
+ module.exports.__wbg_new_abda76e883ba8a5f = function() {
2770
+ const ret = new Error();
2771
+ return addHeapObject(ret);
2772
+ };
2773
+
2774
+ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
2775
+ const ret = getObject(arg1).stack;
2776
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2777
+ const len1 = WASM_VECTOR_LEN;
2778
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2779
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2780
+ };
2781
+
2782
+ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
2783
+ let deferred0_0;
2784
+ let deferred0_1;
2785
+ try {
2786
+ deferred0_0 = arg0;
2787
+ deferred0_1 = arg1;
2788
+ console.error(getStringFromWasm0(arg0, arg1));
2789
+ } finally {
2790
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2791
+ }
2792
+ };
2793
+
2753
2794
  module.exports.__wbg_debug_7d879afce6cf56cb = function(arg0, arg1, arg2, arg3) {
2754
2795
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
2755
2796
  };
@@ -2945,7 +2986,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
2945
2986
  const a = state0.a;
2946
2987
  state0.a = 0;
2947
2988
  try {
2948
- return __wbg_adapter_405(a, state0.b, arg0, arg1);
2989
+ return __wbg_adapter_413(a, state0.b, arg0, arg1);
2949
2990
  } finally {
2950
2991
  state0.a = a;
2951
2992
  }
@@ -3043,8 +3084,8 @@ module.exports.__wbindgen_memory = function() {
3043
3084
  return addHeapObject(ret);
3044
3085
  };
3045
3086
 
3046
- module.exports.__wbindgen_closure_wrapper1333 = function(arg0, arg1, arg2) {
3047
- const ret = makeMutClosure(arg0, arg1, 459, __wbg_adapter_38);
3087
+ module.exports.__wbindgen_closure_wrapper1351 = function(arg0, arg1, arg2) {
3088
+ const ret = makeMutClosure(arg0, arg1, 469, __wbg_adapter_38);
3048
3089
  return addHeapObject(ret);
3049
3090
  };
3050
3091
 
Binary file