saito-wasm 0.2.53 → 0.2.55

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.53"
3
+ version = "0.2.55"
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.53",
3
+ "version": "0.2.55",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -364,6 +364,9 @@ export class WasmBlock {
364
364
  */
365
365
  readonly total_fees_atr: bigint;
366
366
  /**
367
+ */
368
+ readonly total_fees_cumulative: bigint;
369
+ /**
367
370
  */
368
371
  readonly total_fees_new: bigint;
369
372
  /**
@@ -577,6 +580,9 @@ export class WasmPeer {
577
580
  */
578
581
  services: any;
579
582
  /**
583
+ */
584
+ readonly status: string;
585
+ /**
580
586
  */
581
587
  readonly sync_type: string;
582
588
  }
package/pkg/node/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-7188d2801187666b/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-682930fc5f92339c/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -24,16 +24,9 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
27
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
35
28
 
36
- let WASM_VECTOR_LEN = 0;
29
+ cachedTextDecoder.decode();
37
30
 
38
31
  let cachedUint8Memory0 = null;
39
32
 
@@ -44,6 +37,22 @@ function getUint8Memory0() {
44
37
  return cachedUint8Memory0;
45
38
  }
46
39
 
40
+ function getStringFromWasm0(ptr, len) {
41
+ ptr = ptr >>> 0;
42
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
+ }
44
+
45
+ function addHeapObject(obj) {
46
+ if (heap_next === heap.length) heap.push(heap.length + 1);
47
+ const idx = heap_next;
48
+ heap_next = heap[idx];
49
+
50
+ heap[idx] = obj;
51
+ return idx;
52
+ }
53
+
54
+ let WASM_VECTOR_LEN = 0;
55
+
47
56
  let cachedTextEncoder = new TextEncoder('utf-8');
48
57
 
49
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -111,15 +120,6 @@ function getInt32Memory0() {
111
120
  return cachedInt32Memory0;
112
121
  }
113
122
 
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,15 @@ 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__h9555df729c12794d(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccc858efee036015(arg0, arg1, addHeapObject(arg2));
229
+ }
230
+
231
+ function handleError(f, args) {
232
+ try {
233
+ return f.apply(this, args);
234
+ } catch (e) {
235
+ wasm.__wbindgen_exn_store(addHeapObject(e));
236
+ }
229
237
  }
230
238
 
231
239
  function _assertClass(instance, klass) {
@@ -619,15 +627,8 @@ module.exports.produce_block_without_gt = function() {
619
627
  return takeObject(ret);
620
628
  };
621
629
 
622
- function handleError(f, args) {
623
- try {
624
- return f.apply(this, args);
625
- } catch (e) {
626
- wasm.__wbindgen_exn_store(addHeapObject(e));
627
- }
628
- }
629
- function __wbg_adapter_402(arg0, arg1, arg2, arg3) {
630
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
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
632
  }
632
633
 
633
634
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -784,6 +785,13 @@ class WasmBlock {
784
785
  /**
785
786
  * @returns {bigint}
786
787
  */
788
+ get total_fees_cumulative() {
789
+ const ret = wasm.wasmblock_total_fees_cumulative(this.__wbg_ptr);
790
+ return BigInt.asUintN(64, ret);
791
+ }
792
+ /**
793
+ * @returns {bigint}
794
+ */
787
795
  get difficulty() {
788
796
  const ret = wasm.wasmblock_difficulty(this.__wbg_ptr);
789
797
  return BigInt.asUintN(64, ret);
@@ -1626,6 +1634,13 @@ class WasmPeer {
1626
1634
  const ret = wasm.wasmpeer_has_service(this.__wbg_ptr, addHeapObject(service));
1627
1635
  return ret !== 0;
1628
1636
  }
1637
+ /**
1638
+ * @returns {string}
1639
+ */
1640
+ get status() {
1641
+ const ret = wasm.wasmpeer_get_status(this.__wbg_ptr);
1642
+ return takeObject(ret);
1643
+ }
1629
1644
  }
1630
1645
  module.exports.WasmPeer = WasmPeer;
1631
1646
 
@@ -2240,40 +2255,40 @@ class WasmWalletSlip {
2240
2255
  * @returns {bigint}
2241
2256
  */
2242
2257
  get_amount() {
2243
- const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2258
+ const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
2244
2259
  return BigInt.asUintN(64, ret);
2245
2260
  }
2246
2261
  /**
2247
2262
  * @param {bigint} amount
2248
2263
  */
2249
2264
  set_amount(amount) {
2250
- wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2265
+ wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2251
2266
  }
2252
2267
  /**
2253
2268
  * @returns {bigint}
2254
2269
  */
2255
2270
  get_block_id() {
2256
- const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2271
+ const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2257
2272
  return BigInt.asUintN(64, ret);
2258
2273
  }
2259
2274
  /**
2260
2275
  * @param {bigint} block_id
2261
2276
  */
2262
2277
  set_block_id(block_id) {
2263
- wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2278
+ wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2264
2279
  }
2265
2280
  /**
2266
2281
  * @returns {bigint}
2267
2282
  */
2268
2283
  get_tx_ordinal() {
2269
- const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2284
+ const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2270
2285
  return BigInt.asUintN(64, ret);
2271
2286
  }
2272
2287
  /**
2273
2288
  * @param {bigint} ordinal
2274
2289
  */
2275
2290
  set_tx_ordinal(ordinal) {
2276
- wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2291
+ wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2277
2292
  }
2278
2293
  /**
2279
2294
  * @returns {number}
@@ -2341,13 +2356,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2341
2356
  takeObject(arg0);
2342
2357
  };
2343
2358
 
2344
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2345
- const ret = BigInt.asUintN(64, arg0);
2346
- return addHeapObject(ret);
2347
- };
2348
-
2349
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2350
- const ret = WasmWalletSlip.__wrap(arg0);
2359
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2360
+ const ret = getStringFromWasm0(arg0, arg1);
2351
2361
  return addHeapObject(ret);
2352
2362
  };
2353
2363
 
@@ -2360,13 +2370,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2360
2370
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2361
2371
  };
2362
2372
 
2363
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2364
- const ret = WasmBlockchain.__wrap(arg0);
2365
- return addHeapObject(ret);
2366
- };
2367
-
2368
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2369
- const ret = WasmPeer.__wrap(arg0);
2373
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2374
+ const ret = BigInt.asUintN(64, arg0);
2370
2375
  return addHeapObject(ret);
2371
2376
  };
2372
2377
 
@@ -2375,71 +2380,50 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2375
2380
  return addHeapObject(ret);
2376
2381
  };
2377
2382
 
2378
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2379
- const ret = getStringFromWasm0(arg0, arg1);
2380
- return addHeapObject(ret);
2381
- };
2382
-
2383
2383
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
2384
2384
  const ret = WasmTransaction.__wrap(arg0);
2385
2385
  return addHeapObject(ret);
2386
2386
  };
2387
2387
 
2388
- module.exports.__wbg_wasmslip_new = function(arg0) {
2389
- const ret = WasmSlip.__wrap(arg0);
2390
- return addHeapObject(ret);
2391
- };
2392
-
2393
2388
  module.exports.__wbg_wasmwallet_new = function(arg0) {
2394
2389
  const ret = WasmWallet.__wrap(arg0);
2395
2390
  return addHeapObject(ret);
2396
2391
  };
2397
2392
 
2398
- module.exports.__wbg_wasmblock_new = function(arg0) {
2399
- const ret = WasmBlock.__wrap(arg0);
2393
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2394
+ const ret = WasmPeer.__wrap(arg0);
2400
2395
  return addHeapObject(ret);
2401
2396
  };
2402
2397
 
2403
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2404
- const ret = WasmPeerService.__wrap(arg0);
2398
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2399
+ const ret = WasmWalletSlip.__wrap(arg0);
2405
2400
  return addHeapObject(ret);
2406
2401
  };
2407
2402
 
2408
- module.exports.__wbindgen_is_object = function(arg0) {
2409
- const val = getObject(arg0);
2410
- const ret = typeof(val) === 'object' && val !== null;
2411
- return ret;
2412
- };
2413
-
2414
- module.exports.__wbindgen_is_undefined = function(arg0) {
2415
- const ret = getObject(arg0) === undefined;
2416
- return ret;
2417
- };
2418
-
2419
- module.exports.__wbindgen_in = function(arg0, arg1) {
2420
- const ret = getObject(arg0) in getObject(arg1);
2421
- return ret;
2403
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2404
+ const ret = WasmBlockchain.__wrap(arg0);
2405
+ return addHeapObject(ret);
2422
2406
  };
2423
2407
 
2424
- module.exports.__wbg_wasmhop_new = function(arg0) {
2425
- const ret = WasmHop.__wrap(arg0);
2408
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2409
+ const ret = WasmBlock.__wrap(arg0);
2426
2410
  return addHeapObject(ret);
2427
2411
  };
2428
2412
 
2429
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2430
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2413
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2414
+ const ret = WasmSlip.__wrap(arg0);
2431
2415
  return addHeapObject(ret);
2432
2416
  };
2433
2417
 
2434
- module.exports.__wbg_sendmessage_ff9bbdf18bf6e102 = function(arg0, arg1) {
2418
+ module.exports.__wbg_sendmessage_58414578e09508ee = function(arg0, arg1) {
2435
2419
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2436
2420
  };
2437
2421
 
2438
- module.exports.__wbg_sendmessagetoall_1fa66acb52d3be50 = function(arg0, arg1) {
2422
+ module.exports.__wbg_sendmessagetoall_f68b70039839ca94 = function(arg0, arg1) {
2439
2423
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2440
2424
  };
2441
2425
 
2442
- module.exports.__wbg_connecttopeer_ba955a5f63c25657 = function() { return handleError(function (arg0, arg1, arg2) {
2426
+ module.exports.__wbg_connecttopeer_0f9d0d7f628505cc = function() { return handleError(function (arg0, arg1, arg2) {
2443
2427
  let deferred0_0;
2444
2428
  let deferred0_1;
2445
2429
  try {
@@ -2452,12 +2436,12 @@ module.exports.__wbg_connecttopeer_ba955a5f63c25657 = function() { return handle
2452
2436
  }
2453
2437
  }, arguments) };
2454
2438
 
2455
- module.exports.__wbg_disconnectfrompeer_05a35deded8da1b6 = function() { return handleError(function (arg0) {
2439
+ module.exports.__wbg_disconnectfrompeer_e403aa07dc035083 = function() { return handleError(function (arg0) {
2456
2440
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2457
2441
  return addHeapObject(ret);
2458
2442
  }, arguments) };
2459
2443
 
2460
- module.exports.__wbg_fetchblockfrompeer_4fd80c73d179dc95 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2444
+ module.exports.__wbg_fetchblockfrompeer_1a0c25000b36b44d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2461
2445
  let deferred0_0;
2462
2446
  let deferred0_1;
2463
2447
  try {
@@ -2470,7 +2454,7 @@ module.exports.__wbg_fetchblockfrompeer_4fd80c73d179dc95 = function() { return h
2470
2454
  }
2471
2455
  }, arguments) };
2472
2456
 
2473
- module.exports.__wbg_writevalue_ed5964748d666a01 = function(arg0, arg1, arg2) {
2457
+ module.exports.__wbg_writevalue_f41b8371891831c7 = function(arg0, arg1, arg2) {
2474
2458
  let deferred0_0;
2475
2459
  let deferred0_1;
2476
2460
  try {
@@ -2482,7 +2466,7 @@ module.exports.__wbg_writevalue_ed5964748d666a01 = function(arg0, arg1, arg2) {
2482
2466
  }
2483
2467
  };
2484
2468
 
2485
- module.exports.__wbg_appendvalue_1d32d77194e5cea2 = function(arg0, arg1, arg2) {
2469
+ module.exports.__wbg_appendvalue_a8d5e9169c12ee6f = function(arg0, arg1, arg2) {
2486
2470
  let deferred0_0;
2487
2471
  let deferred0_1;
2488
2472
  try {
@@ -2494,7 +2478,7 @@ module.exports.__wbg_appendvalue_1d32d77194e5cea2 = function(arg0, arg1, arg2) {
2494
2478
  }
2495
2479
  };
2496
2480
 
2497
- module.exports.__wbg_flushdata_80f9bbed01e0e58a = function(arg0, arg1) {
2481
+ module.exports.__wbg_flushdata_f3cb09389cbea176 = function(arg0, arg1) {
2498
2482
  let deferred0_0;
2499
2483
  let deferred0_1;
2500
2484
  try {
@@ -2506,7 +2490,7 @@ module.exports.__wbg_flushdata_80f9bbed01e0e58a = function(arg0, arg1) {
2506
2490
  }
2507
2491
  };
2508
2492
 
2509
- module.exports.__wbg_readvalue_781fb638c5a547ce = function() { return handleError(function (arg0, arg1) {
2493
+ module.exports.__wbg_readvalue_cb355c5d065341f4 = function() { return handleError(function (arg0, arg1) {
2510
2494
  let deferred0_0;
2511
2495
  let deferred0_1;
2512
2496
  try {
@@ -2519,12 +2503,12 @@ module.exports.__wbg_readvalue_781fb638c5a547ce = function() { return handleErro
2519
2503
  }
2520
2504
  }, arguments) };
2521
2505
 
2522
- module.exports.__wbg_loadblockfilelist_51f146190f327d8d = function() { return handleError(function () {
2506
+ module.exports.__wbg_loadblockfilelist_b1df4749bbd8ebe8 = function() { return handleError(function () {
2523
2507
  const ret = MsgHandler.load_block_file_list();
2524
2508
  return addHeapObject(ret);
2525
2509
  }, arguments) };
2526
2510
 
2527
- module.exports.__wbg_isexistingfile_c3bf9aeee5b392fb = function() { return handleError(function (arg0, arg1) {
2511
+ module.exports.__wbg_isexistingfile_42b73e087d80ac41 = function() { return handleError(function (arg0, arg1) {
2528
2512
  let deferred0_0;
2529
2513
  let deferred0_1;
2530
2514
  try {
@@ -2537,7 +2521,7 @@ module.exports.__wbg_isexistingfile_c3bf9aeee5b392fb = function() { return handl
2537
2521
  }
2538
2522
  }, arguments) };
2539
2523
 
2540
- module.exports.__wbg_removevalue_63db73e5efaaa0d2 = function() { return handleError(function (arg0, arg1) {
2524
+ module.exports.__wbg_removevalue_72d08a6328555152 = function() { return handleError(function (arg0, arg1) {
2541
2525
  let deferred0_0;
2542
2526
  let deferred0_1;
2543
2527
  try {
@@ -2550,7 +2534,7 @@ module.exports.__wbg_removevalue_63db73e5efaaa0d2 = function() { return handleEr
2550
2534
  }
2551
2535
  }, arguments) };
2552
2536
 
2553
- module.exports.__wbg_ensureblockdirectoryexists_972815925b1f6f00 = function() { return handleError(function (arg0, arg1) {
2537
+ module.exports.__wbg_ensureblockdirectoryexists_e0b902bcf4e47e6c = function() { return handleError(function (arg0, arg1) {
2554
2538
  let deferred0_0;
2555
2539
  let deferred0_1;
2556
2540
  try {
@@ -2562,19 +2546,19 @@ module.exports.__wbg_ensureblockdirectoryexists_972815925b1f6f00 = function() {
2562
2546
  }
2563
2547
  }, arguments) };
2564
2548
 
2565
- module.exports.__wbg_processapicall_2100eb96cb495341 = function(arg0, arg1, arg2) {
2549
+ module.exports.__wbg_processapicall_89c0714a5d058db3 = function(arg0, arg1, arg2) {
2566
2550
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2567
2551
  };
2568
2552
 
2569
- module.exports.__wbg_processapisuccess_dd75c157d0050a9b = function(arg0, arg1, arg2) {
2553
+ module.exports.__wbg_processapisuccess_4d19fbbe5deb39d2 = function(arg0, arg1, arg2) {
2570
2554
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2571
2555
  };
2572
2556
 
2573
- module.exports.__wbg_processapierror_2d6a8ec426e34920 = function(arg0, arg1, arg2) {
2557
+ module.exports.__wbg_processapierror_45c244bdc99489fa = function(arg0, arg1, arg2) {
2574
2558
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2575
2559
  };
2576
2560
 
2577
- module.exports.__wbg_sendinterfaceevent_bae7ab1f7a67949d = function(arg0, arg1, arg2, arg3, arg4) {
2561
+ module.exports.__wbg_sendinterfaceevent_073f850062738a08 = function(arg0, arg1, arg2, arg3, arg4) {
2578
2562
  let deferred0_0;
2579
2563
  let deferred0_1;
2580
2564
  let deferred1_0;
@@ -2591,7 +2575,7 @@ module.exports.__wbg_sendinterfaceevent_bae7ab1f7a67949d = function(arg0, arg1,
2591
2575
  }
2592
2576
  };
2593
2577
 
2594
- module.exports.__wbg_sendblocksuccess_620687d6b1efda22 = function(arg0, arg1, arg2) {
2578
+ module.exports.__wbg_sendblocksuccess_0db2a474dd22271a = function(arg0, arg1, arg2) {
2595
2579
  let deferred0_0;
2596
2580
  let deferred0_1;
2597
2581
  try {
@@ -2603,11 +2587,11 @@ module.exports.__wbg_sendblocksuccess_620687d6b1efda22 = function(arg0, arg1, ar
2603
2587
  }
2604
2588
  };
2605
2589
 
2606
- module.exports.__wbg_sendwalletupdate_aeb10d8928d2fd32 = function() {
2590
+ module.exports.__wbg_sendwalletupdate_838a3e161716ed73 = function() {
2607
2591
  MsgHandler.send_wallet_update();
2608
2592
  };
2609
2593
 
2610
- module.exports.__wbg_sendnewversionalert_c6883c89e68d3b0b = function(arg0, arg1, arg2) {
2594
+ module.exports.__wbg_sendnewversionalert_40d7dac895ab1cf7 = function(arg0, arg1, arg2) {
2611
2595
  let deferred0_0;
2612
2596
  let deferred0_1;
2613
2597
  try {
@@ -2619,25 +2603,56 @@ module.exports.__wbg_sendnewversionalert_c6883c89e68d3b0b = function(arg0, arg1,
2619
2603
  }
2620
2604
  };
2621
2605
 
2622
- module.exports.__wbg_sendblockfetchstatusevent_a1634ba7324fca9c = function(arg0) {
2606
+ module.exports.__wbg_sendblockfetchstatusevent_70202939958ee303 = function(arg0) {
2623
2607
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2624
2608
  };
2625
2609
 
2626
- module.exports.__wbg_savewallet_63463ed9dd3bf927 = function() {
2610
+ module.exports.__wbg_savewallet_d2bfd7ff4cbb0f89 = function() {
2627
2611
  MsgHandler.save_wallet();
2628
2612
  };
2629
2613
 
2630
- module.exports.__wbg_loadwallet_a14ffbfff10a4a4d = function() {
2614
+ module.exports.__wbg_loadwallet_1e47f75a3ea974d5 = function() {
2631
2615
  MsgHandler.load_wallet();
2632
2616
  };
2633
2617
 
2634
- module.exports.__wbg_getmyservices_2002c47f4428f89d = function() {
2618
+ module.exports.__wbg_getmyservices_8b90f6cb3823562a = function() {
2635
2619
  const ret = MsgHandler.get_my_services();
2636
2620
  _assertClass(ret, WasmPeerServiceList);
2637
2621
  var ptr1 = ret.__destroy_into_raw();
2638
2622
  return ptr1;
2639
2623
  };
2640
2624
 
2625
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2626
+ const ret = WasmHop.__wrap(arg0);
2627
+ return addHeapObject(ret);
2628
+ };
2629
+
2630
+ module.exports.__wbindgen_is_object = function(arg0) {
2631
+ const val = getObject(arg0);
2632
+ const ret = typeof(val) === 'object' && val !== null;
2633
+ return ret;
2634
+ };
2635
+
2636
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2637
+ const ret = getObject(arg0) === undefined;
2638
+ return ret;
2639
+ };
2640
+
2641
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2642
+ const ret = getObject(arg0) in getObject(arg1);
2643
+ return ret;
2644
+ };
2645
+
2646
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2647
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2648
+ return addHeapObject(ret);
2649
+ };
2650
+
2651
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2652
+ const ret = WasmPeerService.__wrap(arg0);
2653
+ return addHeapObject(ret);
2654
+ };
2655
+
2641
2656
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2642
2657
  const ret = getObject(arg0) == getObject(arg1);
2643
2658
  return ret;
@@ -2676,6 +2691,10 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2676
2691
  return ret;
2677
2692
  };
2678
2693
 
2694
+ module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2695
+ queueMicrotask(getObject(arg0));
2696
+ };
2697
+
2679
2698
  module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
2680
2699
  const ret = getObject(arg0).queueMicrotask;
2681
2700
  return addHeapObject(ret);
@@ -2686,10 +2705,6 @@ module.exports.__wbindgen_is_function = function(arg0) {
2686
2705
  return ret;
2687
2706
  };
2688
2707
 
2689
- module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2690
- queueMicrotask(getObject(arg0));
2691
- };
2692
-
2693
2708
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
2694
2709
  const ret = new Error();
2695
2710
  return addHeapObject(ret);
@@ -2910,7 +2925,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
2910
2925
  const a = state0.a;
2911
2926
  state0.a = 0;
2912
2927
  try {
2913
- return __wbg_adapter_402(a, state0.b, arg0, arg1);
2928
+ return __wbg_adapter_404(a, state0.b, arg0, arg1);
2914
2929
  } finally {
2915
2930
  state0.a = a;
2916
2931
  }
@@ -3008,8 +3023,8 @@ module.exports.__wbindgen_memory = function() {
3008
3023
  return addHeapObject(ret);
3009
3024
  };
3010
3025
 
3011
- module.exports.__wbindgen_closure_wrapper1339 = function(arg0, arg1, arg2) {
3012
- const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
3026
+ module.exports.__wbindgen_closure_wrapper1308 = function(arg0, arg1, arg2) {
3027
+ const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
3013
3028
  return addHeapObject(ret);
3014
3029
  };
3015
3030
 
Binary file