saito-wasm 0.2.82 → 0.2.84

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.82"
3
+ version = "0.2.84"
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.82",
3
+ "version": "0.2.84",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -26,6 +26,33 @@ export function create_transaction(public_key: string, amount: bigint, fee: bigi
26
26
  */
27
27
  export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
28
28
  /**
29
+ * @param {bigint} amt
30
+ * @param {bigint} bid
31
+ * @param {bigint} tid
32
+ * @param {bigint} sid
33
+ * @param {number} num
34
+ * @param {bigint} deposit
35
+ * @param {bigint} change
36
+ * @param {string} data
37
+ * @param {bigint} fee
38
+ * @param {string} recipient_public_key
39
+ * @param {string} nft_type
40
+ * @returns {Promise<WasmTransaction>}
41
+ */
42
+ export function create_bound_transaction(amt: bigint, bid: bigint, tid: bigint, sid: bigint, num: number, deposit: bigint, change: bigint, data: string, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
43
+ /**
44
+ * @param {bigint} amt
45
+ * @param {string} nft_id
46
+ * @param {string} data
47
+ * @param {string} recipient_public_key
48
+ * @returns {Promise<WasmTransaction>}
49
+ */
50
+ export function create_send_bound_transaction(amt: bigint, nft_id: string, data: string, recipient_public_key: string): Promise<WasmTransaction>;
51
+ /**
52
+ * @returns {Promise<Array<any>>}
53
+ */
54
+ export function get_nft_list(): Promise<Array<any>>;
55
+ /**
29
56
  * @returns {Promise<string>}
30
57
  */
31
58
  export function get_latest_block_hash(): Promise<string>;
@@ -557,6 +584,29 @@ export class WasmHop {
557
584
  }
558
585
  /**
559
586
  */
587
+ export class WasmNFT {
588
+ free(): void;
589
+ /**
590
+ */
591
+ constructor();
592
+ /**
593
+ */
594
+ readonly id: Uint8Array;
595
+ /**
596
+ */
597
+ readonly slip1: Uint8Array;
598
+ /**
599
+ */
600
+ readonly slip2: Uint8Array;
601
+ /**
602
+ */
603
+ readonly slip3: Uint8Array;
604
+ /**
605
+ */
606
+ readonly tx_sig: Uint8Array;
607
+ }
608
+ /**
609
+ */
560
610
  export class WasmPeer {
561
611
  free(): void;
562
612
  /**
package/pkg/node/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-3423e9a2962a4bf4/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-a0eec0bd75b2eea6/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -225,14 +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__hc45362b09104e54e(arg0, arg1, addHeapObject(arg2));
229
- }
230
-
231
- function _assertClass(instance, klass) {
232
- if (!(instance instanceof klass)) {
233
- throw new Error(`expected instance of ${klass.name}`);
234
- }
235
- return instance.ptr;
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(arg0, arg1, addHeapObject(arg2));
236
229
  }
237
230
 
238
231
  function handleError(f, args) {
@@ -242,6 +235,13 @@ function handleError(f, args) {
242
235
  wasm.__wbindgen_exn_store(addHeapObject(e));
243
236
  }
244
237
  }
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
@@ -279,6 +279,51 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
279
279
  return takeObject(ret);
280
280
  };
281
281
 
282
+ /**
283
+ * @param {bigint} amt
284
+ * @param {bigint} bid
285
+ * @param {bigint} tid
286
+ * @param {bigint} sid
287
+ * @param {number} num
288
+ * @param {bigint} deposit
289
+ * @param {bigint} change
290
+ * @param {string} data
291
+ * @param {bigint} fee
292
+ * @param {string} recipient_public_key
293
+ * @param {string} nft_type
294
+ * @returns {Promise<WasmTransaction>}
295
+ */
296
+ module.exports.create_bound_transaction = function(amt, bid, tid, sid, num, deposit, change, data, fee, recipient_public_key, nft_type) {
297
+ const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
298
+ const len0 = WASM_VECTOR_LEN;
299
+ const ret = wasm.create_bound_transaction(amt, bid, tid, sid, num, deposit, change, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
300
+ return takeObject(ret);
301
+ };
302
+
303
+ /**
304
+ * @param {bigint} amt
305
+ * @param {string} nft_id
306
+ * @param {string} data
307
+ * @param {string} recipient_public_key
308
+ * @returns {Promise<WasmTransaction>}
309
+ */
310
+ module.exports.create_send_bound_transaction = function(amt, nft_id, data, recipient_public_key) {
311
+ const ptr0 = passStringToWasm0(nft_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
312
+ const len0 = WASM_VECTOR_LEN;
313
+ const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
314
+ const len1 = WASM_VECTOR_LEN;
315
+ const ret = wasm.create_send_bound_transaction(amt, ptr0, len0, ptr1, len1, addHeapObject(recipient_public_key));
316
+ return takeObject(ret);
317
+ };
318
+
319
+ /**
320
+ * @returns {Promise<Array<any>>}
321
+ */
322
+ module.exports.get_nft_list = function() {
323
+ const ret = wasm.get_nft_list();
324
+ return takeObject(ret);
325
+ };
326
+
282
327
  /**
283
328
  * @returns {Promise<string>}
284
329
  */
@@ -628,8 +673,8 @@ module.exports.produce_block_without_gt = function() {
628
673
  return takeObject(ret);
629
674
  };
630
675
 
631
- function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
632
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
676
+ function __wbg_adapter_415(arg0, arg1, arg2, arg3) {
677
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
633
678
  }
634
679
 
635
680
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1552,6 +1597,77 @@ class WasmHop {
1552
1597
  }
1553
1598
  module.exports.WasmHop = WasmHop;
1554
1599
 
1600
+ const WasmNFTFinalization = (typeof FinalizationRegistry === 'undefined')
1601
+ ? { register: () => {}, unregister: () => {} }
1602
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmnft_free(ptr >>> 0));
1603
+ /**
1604
+ */
1605
+ class WasmNFT {
1606
+
1607
+ static __wrap(ptr) {
1608
+ ptr = ptr >>> 0;
1609
+ const obj = Object.create(WasmNFT.prototype);
1610
+ obj.__wbg_ptr = ptr;
1611
+ WasmNFTFinalization.register(obj, obj.__wbg_ptr, obj);
1612
+ return obj;
1613
+ }
1614
+
1615
+ __destroy_into_raw() {
1616
+ const ptr = this.__wbg_ptr;
1617
+ this.__wbg_ptr = 0;
1618
+ WasmNFTFinalization.unregister(this);
1619
+ return ptr;
1620
+ }
1621
+
1622
+ free() {
1623
+ const ptr = this.__destroy_into_raw();
1624
+ wasm.__wbg_wasmnft_free(ptr);
1625
+ }
1626
+ /**
1627
+ */
1628
+ constructor() {
1629
+ const ret = wasm.wasmnft_new();
1630
+ this.__wbg_ptr = ret >>> 0;
1631
+ return this;
1632
+ }
1633
+ /**
1634
+ * @returns {Uint8Array}
1635
+ */
1636
+ get slip1() {
1637
+ const ret = wasm.wasmnft_get_slip1(this.__wbg_ptr);
1638
+ return takeObject(ret);
1639
+ }
1640
+ /**
1641
+ * @returns {Uint8Array}
1642
+ */
1643
+ get slip2() {
1644
+ const ret = wasm.wasmnft_get_slip2(this.__wbg_ptr);
1645
+ return takeObject(ret);
1646
+ }
1647
+ /**
1648
+ * @returns {Uint8Array}
1649
+ */
1650
+ get slip3() {
1651
+ const ret = wasm.wasmnft_get_slip3(this.__wbg_ptr);
1652
+ return takeObject(ret);
1653
+ }
1654
+ /**
1655
+ * @returns {Uint8Array}
1656
+ */
1657
+ get id() {
1658
+ const ret = wasm.wasmnft_get_id(this.__wbg_ptr);
1659
+ return takeObject(ret);
1660
+ }
1661
+ /**
1662
+ * @returns {Uint8Array}
1663
+ */
1664
+ get tx_sig() {
1665
+ const ret = wasm.wasmnft_get_tx_sig(this.__wbg_ptr);
1666
+ return takeObject(ret);
1667
+ }
1668
+ }
1669
+ module.exports.WasmNFT = WasmNFT;
1670
+
1555
1671
  const WasmPeerFinalization = (typeof FinalizationRegistry === 'undefined')
1556
1672
  ? { register: () => {}, unregister: () => {} }
1557
1673
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmpeer_free(ptr >>> 0));
@@ -2362,13 +2478,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2362
2478
  takeObject(arg0);
2363
2479
  };
2364
2480
 
2365
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2366
- const ret = WasmBlockchain.__wrap(arg0);
2481
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2482
+ const ret = getStringFromWasm0(arg0, arg1);
2367
2483
  return addHeapObject(ret);
2368
2484
  };
2369
2485
 
2370
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2371
- const ret = getStringFromWasm0(arg0, arg1);
2486
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2487
+ const ret = WasmSlip.__wrap(arg0);
2372
2488
  return addHeapObject(ret);
2373
2489
  };
2374
2490
 
@@ -2377,13 +2493,13 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2377
2493
  return addHeapObject(ret);
2378
2494
  };
2379
2495
 
2380
- module.exports.__wbg_wasmslip_new = function(arg0) {
2381
- const ret = WasmSlip.__wrap(arg0);
2496
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2497
+ const ret = WasmWallet.__wrap(arg0);
2382
2498
  return addHeapObject(ret);
2383
2499
  };
2384
2500
 
2385
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2386
- const ret = WasmPeer.__wrap(arg0);
2501
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2502
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2387
2503
  return addHeapObject(ret);
2388
2504
  };
2389
2505
 
@@ -2401,51 +2517,40 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2401
2517
  return addHeapObject(ret);
2402
2518
  };
2403
2519
 
2404
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2405
- const ret = WasmWallet.__wrap(arg0);
2406
- return addHeapObject(ret);
2407
- };
2408
-
2409
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2410
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2411
- return addHeapObject(ret);
2412
- };
2413
-
2414
2520
  module.exports.__wbg_wasmblock_new = function(arg0) {
2415
2521
  const ret = WasmBlock.__wrap(arg0);
2416
2522
  return addHeapObject(ret);
2417
2523
  };
2418
2524
 
2419
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2420
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2525
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2526
+ const ret = WasmBlockchain.__wrap(arg0);
2421
2527
  return addHeapObject(ret);
2422
2528
  };
2423
2529
 
2424
- module.exports.__wbindgen_is_object = function(arg0) {
2425
- const val = getObject(arg0);
2426
- const ret = typeof(val) === 'object' && val !== null;
2427
- return ret;
2530
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2531
+ const ret = WasmNFT.__wrap(arg0);
2532
+ return addHeapObject(ret);
2428
2533
  };
2429
2534
 
2430
- module.exports.__wbindgen_is_undefined = function(arg0) {
2431
- const ret = getObject(arg0) === undefined;
2432
- return ret;
2535
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2536
+ const ret = WasmPeer.__wrap(arg0);
2537
+ return addHeapObject(ret);
2433
2538
  };
2434
2539
 
2435
- module.exports.__wbindgen_in = function(arg0, arg1) {
2436
- const ret = getObject(arg0) in getObject(arg1);
2437
- return ret;
2540
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2541
+ const ret = WasmHop.__wrap(arg0);
2542
+ return addHeapObject(ret);
2438
2543
  };
2439
2544
 
2440
- module.exports.__wbg_sendmessage_43d65544ca63a0c2 = function(arg0, arg1) {
2545
+ module.exports.__wbg_sendmessage_78771327c7383c65 = function(arg0, arg1) {
2441
2546
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2442
2547
  };
2443
2548
 
2444
- module.exports.__wbg_sendmessagetoall_caa6a5c8f0c7c4ed = function(arg0, arg1) {
2549
+ module.exports.__wbg_sendmessagetoall_724ac36032eddf67 = function(arg0, arg1) {
2445
2550
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2446
2551
  };
2447
2552
 
2448
- module.exports.__wbg_connecttopeer_0cac3c2f8ea9d0e6 = function() { return handleError(function (arg0, arg1, arg2) {
2553
+ module.exports.__wbg_connecttopeer_92e65ce03a3dd2ff = function() { return handleError(function (arg0, arg1, arg2) {
2449
2554
  let deferred0_0;
2450
2555
  let deferred0_1;
2451
2556
  try {
@@ -2458,12 +2563,12 @@ module.exports.__wbg_connecttopeer_0cac3c2f8ea9d0e6 = function() { return handle
2458
2563
  }
2459
2564
  }, arguments) };
2460
2565
 
2461
- module.exports.__wbg_disconnectfrompeer_12c1b89683403f06 = function() { return handleError(function (arg0) {
2566
+ module.exports.__wbg_disconnectfrompeer_377535b7643152e6 = function() { return handleError(function (arg0) {
2462
2567
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2463
2568
  return addHeapObject(ret);
2464
2569
  }, arguments) };
2465
2570
 
2466
- module.exports.__wbg_fetchblockfrompeer_0d29cd0dbc59e4e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2571
+ module.exports.__wbg_fetchblockfrompeer_c6bef1d0199194b8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2467
2572
  let deferred0_0;
2468
2573
  let deferred0_1;
2469
2574
  try {
@@ -2476,7 +2581,7 @@ module.exports.__wbg_fetchblockfrompeer_0d29cd0dbc59e4e9 = function() { return h
2476
2581
  }
2477
2582
  }, arguments) };
2478
2583
 
2479
- module.exports.__wbg_writevalue_bba6530c66905706 = function(arg0, arg1, arg2) {
2584
+ module.exports.__wbg_writevalue_03055d020e1c7bb1 = function(arg0, arg1, arg2) {
2480
2585
  let deferred0_0;
2481
2586
  let deferred0_1;
2482
2587
  try {
@@ -2488,7 +2593,7 @@ module.exports.__wbg_writevalue_bba6530c66905706 = function(arg0, arg1, arg2) {
2488
2593
  }
2489
2594
  };
2490
2595
 
2491
- module.exports.__wbg_appendvalue_c5fbb47f3c0513fe = function(arg0, arg1, arg2) {
2596
+ module.exports.__wbg_appendvalue_f544bdae2cdf94d6 = function(arg0, arg1, arg2) {
2492
2597
  let deferred0_0;
2493
2598
  let deferred0_1;
2494
2599
  try {
@@ -2500,7 +2605,7 @@ module.exports.__wbg_appendvalue_c5fbb47f3c0513fe = function(arg0, arg1, arg2) {
2500
2605
  }
2501
2606
  };
2502
2607
 
2503
- module.exports.__wbg_flushdata_0d484dcefe02f7a5 = function(arg0, arg1) {
2608
+ module.exports.__wbg_flushdata_e47bf17fa2c6f3d2 = function(arg0, arg1) {
2504
2609
  let deferred0_0;
2505
2610
  let deferred0_1;
2506
2611
  try {
@@ -2512,7 +2617,7 @@ module.exports.__wbg_flushdata_0d484dcefe02f7a5 = function(arg0, arg1) {
2512
2617
  }
2513
2618
  };
2514
2619
 
2515
- module.exports.__wbg_readvalue_f40cb048b9bfd677 = function() { return handleError(function (arg0, arg1) {
2620
+ module.exports.__wbg_readvalue_238972be72e03556 = function() { return handleError(function (arg0, arg1) {
2516
2621
  let deferred0_0;
2517
2622
  let deferred0_1;
2518
2623
  try {
@@ -2525,12 +2630,12 @@ module.exports.__wbg_readvalue_f40cb048b9bfd677 = function() { return handleErro
2525
2630
  }
2526
2631
  }, arguments) };
2527
2632
 
2528
- module.exports.__wbg_loadblockfilelist_9935fc6a1443da7a = function() { return handleError(function () {
2633
+ module.exports.__wbg_loadblockfilelist_8bc2bf1fd051a070 = function() { return handleError(function () {
2529
2634
  const ret = MsgHandler.load_block_file_list();
2530
2635
  return addHeapObject(ret);
2531
2636
  }, arguments) };
2532
2637
 
2533
- module.exports.__wbg_isexistingfile_2422b5ae5b099ef7 = function() { return handleError(function (arg0, arg1) {
2638
+ module.exports.__wbg_isexistingfile_57fe11e1fcdcbe97 = function() { return handleError(function (arg0, arg1) {
2534
2639
  let deferred0_0;
2535
2640
  let deferred0_1;
2536
2641
  try {
@@ -2543,7 +2648,7 @@ module.exports.__wbg_isexistingfile_2422b5ae5b099ef7 = function() { return handl
2543
2648
  }
2544
2649
  }, arguments) };
2545
2650
 
2546
- module.exports.__wbg_removevalue_149dc721775efaaa = function() { return handleError(function (arg0, arg1) {
2651
+ module.exports.__wbg_removevalue_c805fc5184627d80 = function() { return handleError(function (arg0, arg1) {
2547
2652
  let deferred0_0;
2548
2653
  let deferred0_1;
2549
2654
  try {
@@ -2556,7 +2661,7 @@ module.exports.__wbg_removevalue_149dc721775efaaa = function() { return handleEr
2556
2661
  }
2557
2662
  }, arguments) };
2558
2663
 
2559
- module.exports.__wbg_ensureblockdirectoryexists_e806cc87a9822aba = function() { return handleError(function (arg0, arg1) {
2664
+ module.exports.__wbg_ensureblockdirectoryexists_3bee0fa43381a4e3 = function() { return handleError(function (arg0, arg1) {
2560
2665
  let deferred0_0;
2561
2666
  let deferred0_1;
2562
2667
  try {
@@ -2568,19 +2673,19 @@ module.exports.__wbg_ensureblockdirectoryexists_e806cc87a9822aba = function() {
2568
2673
  }
2569
2674
  }, arguments) };
2570
2675
 
2571
- module.exports.__wbg_processapicall_35dfbd5451f5fc39 = function(arg0, arg1, arg2) {
2676
+ module.exports.__wbg_processapicall_da6e08ef7cf0e844 = function(arg0, arg1, arg2) {
2572
2677
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2573
2678
  };
2574
2679
 
2575
- module.exports.__wbg_processapisuccess_3450d1c724e044ff = function(arg0, arg1, arg2) {
2680
+ module.exports.__wbg_processapisuccess_0aecedd89f4cad1d = function(arg0, arg1, arg2) {
2576
2681
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2577
2682
  };
2578
2683
 
2579
- module.exports.__wbg_processapierror_c2cf61a04324572a = function(arg0, arg1, arg2) {
2684
+ module.exports.__wbg_processapierror_48f74ff253a81cd4 = function(arg0, arg1, arg2) {
2580
2685
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2581
2686
  };
2582
2687
 
2583
- module.exports.__wbg_sendinterfaceevent_2ccec5c51772bb8e = function(arg0, arg1, arg2, arg3, arg4) {
2688
+ module.exports.__wbg_sendinterfaceevent_ea5ea4523bf4d442 = function(arg0, arg1, arg2, arg3, arg4) {
2584
2689
  let deferred0_0;
2585
2690
  let deferred0_1;
2586
2691
  let deferred1_0;
@@ -2597,7 +2702,7 @@ module.exports.__wbg_sendinterfaceevent_2ccec5c51772bb8e = function(arg0, arg1,
2597
2702
  }
2598
2703
  };
2599
2704
 
2600
- module.exports.__wbg_sendblocksuccess_715875346c5d4e4b = function(arg0, arg1, arg2) {
2705
+ module.exports.__wbg_sendblocksuccess_1860e70cac1d32fb = function(arg0, arg1, arg2) {
2601
2706
  let deferred0_0;
2602
2707
  let deferred0_1;
2603
2708
  try {
@@ -2609,11 +2714,11 @@ module.exports.__wbg_sendblocksuccess_715875346c5d4e4b = function(arg0, arg1, ar
2609
2714
  }
2610
2715
  };
2611
2716
 
2612
- module.exports.__wbg_sendwalletupdate_db49a7751891faaa = function() {
2717
+ module.exports.__wbg_sendwalletupdate_151ab6deb3162e43 = function() {
2613
2718
  MsgHandler.send_wallet_update();
2614
2719
  };
2615
2720
 
2616
- module.exports.__wbg_sendnewversionalert_1feb30ee8db1065d = function(arg0, arg1, arg2) {
2721
+ module.exports.__wbg_sendnewversionalert_e6af889e4b9dcfbe = function(arg0, arg1, arg2) {
2617
2722
  let deferred0_0;
2618
2723
  let deferred0_1;
2619
2724
  try {
@@ -2625,19 +2730,19 @@ module.exports.__wbg_sendnewversionalert_1feb30ee8db1065d = function(arg0, arg1,
2625
2730
  }
2626
2731
  };
2627
2732
 
2628
- module.exports.__wbg_sendblockfetchstatusevent_d3744deeee609c86 = function(arg0) {
2733
+ module.exports.__wbg_sendblockfetchstatusevent_45320f758b5b164a = function(arg0) {
2629
2734
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2630
2735
  };
2631
2736
 
2632
- module.exports.__wbg_savewallet_46dc52ad4e02eff4 = function() {
2737
+ module.exports.__wbg_savewallet_12901c319354e41d = function() {
2633
2738
  MsgHandler.save_wallet();
2634
2739
  };
2635
2740
 
2636
- module.exports.__wbg_loadwallet_16f8025730cc8f59 = function() {
2741
+ module.exports.__wbg_loadwallet_d9c6f262cb29c57f = function() {
2637
2742
  MsgHandler.load_wallet();
2638
2743
  };
2639
2744
 
2640
- module.exports.__wbg_getmyservices_facd8d4f6745ab65 = function() {
2745
+ module.exports.__wbg_getmyservices_2a130b9dbbecc811 = function() {
2641
2746
  const ret = MsgHandler.get_my_services();
2642
2747
  _assertClass(ret, WasmPeerServiceList);
2643
2748
  var ptr1 = ret.__destroy_into_raw();
@@ -2649,11 +2754,27 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2649
2754
  return addHeapObject(ret);
2650
2755
  };
2651
2756
 
2652
- module.exports.__wbg_wasmhop_new = function(arg0) {
2653
- const ret = WasmHop.__wrap(arg0);
2757
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2758
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2654
2759
  return addHeapObject(ret);
2655
2760
  };
2656
2761
 
2762
+ module.exports.__wbindgen_is_object = function(arg0) {
2763
+ const val = getObject(arg0);
2764
+ const ret = typeof(val) === 'object' && val !== null;
2765
+ return ret;
2766
+ };
2767
+
2768
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2769
+ const ret = getObject(arg0) === undefined;
2770
+ return ret;
2771
+ };
2772
+
2773
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2774
+ const ret = getObject(arg0) in getObject(arg1);
2775
+ return ret;
2776
+ };
2777
+
2657
2778
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2658
2779
  const ret = getObject(arg0) == getObject(arg1);
2659
2780
  return ret;
@@ -2926,7 +3047,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
2926
3047
  const a = state0.a;
2927
3048
  state0.a = 0;
2928
3049
  try {
2929
- return __wbg_adapter_404(a, state0.b, arg0, arg1);
3050
+ return __wbg_adapter_415(a, state0.b, arg0, arg1);
2930
3051
  } finally {
2931
3052
  state0.a = a;
2932
3053
  }
@@ -3024,8 +3145,8 @@ module.exports.__wbindgen_memory = function() {
3024
3145
  return addHeapObject(ret);
3025
3146
  };
3026
3147
 
3027
- module.exports.__wbindgen_closure_wrapper1299 = function(arg0, arg1, arg2) {
3028
- const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
3148
+ module.exports.__wbindgen_closure_wrapper1347 = function(arg0, arg1, arg2) {
3149
+ const ret = makeMutClosure(arg0, arg1, 495, __wbg_adapter_38);
3029
3150
  return addHeapObject(ret);
3030
3151
  };
3031
3152
 
Binary file