saito-wasm 0.2.99 → 0.2.100

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.99"
3
+ version = "0.2.100"
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.99",
3
+ "version": "0.2.100",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -26,20 +26,15 @@ 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
29
+ * @param {bigint} num
34
30
  * @param {bigint} deposit
35
- * @param {bigint} change
36
31
  * @param {string} data
37
32
  * @param {bigint} fee
38
33
  * @param {string} recipient_public_key
39
34
  * @param {string} nft_type
40
35
  * @returns {Promise<WasmTransaction>}
41
36
  */
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>;
37
+ export function create_bound_transaction(num: bigint, deposit: bigint, data: string, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
43
38
  /**
44
39
  * @param {bigint} amt
45
40
  * @param {string} slip1_utxo_key
@@ -51,6 +46,20 @@ export function create_bound_transaction(amt: bigint, bid: bigint, tid: bigint,
51
46
  */
52
47
  export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, data: string, recipient_public_key: string): Promise<WasmTransaction>;
53
48
  /**
49
+ * @param {string} slip1_utxo_key
50
+ * @param {string} slip2_utxo_key
51
+ * @param {string} slip3_utxo_key
52
+ * @param {number} left_count
53
+ * @param {number} right_count
54
+ * @returns {Promise<WasmTransaction>}
55
+ */
56
+ export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, left_count: number, right_count: number): Promise<WasmTransaction>;
57
+ /**
58
+ * @param {string} nft_id_hex
59
+ * @returns {Promise<WasmTransaction>}
60
+ */
61
+ export function create_merge_bound_transaction(nft_id_hex: string): Promise<WasmTransaction>;
62
+ /**
54
63
  * @returns {Promise<Array<any>>}
55
64
  */
56
65
  export function get_nft_list(): Promise<Array<any>>;
@@ -846,6 +855,15 @@ export class WasmWallet {
846
855
  * @returns {Promise<void>}
847
856
  */
848
857
  set_key_list(key_list: Array<any>): Promise<void>;
858
+ /**
859
+ * @param {string} slip1_hex
860
+ * @param {string} slip2_hex
861
+ * @param {string} slip3_hex
862
+ * @param {string} id_hex
863
+ * @param {string} sig_hex
864
+ * @returns {Promise<void>}
865
+ */
866
+ add_nft(slip1_hex: string, slip2_hex: string, slip3_hex: string, id_hex: string, sig_hex: string): Promise<void>;
849
867
  }
850
868
  /**
851
869
  */
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-4375448d2b4dc1d8/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-e32b9725f8a9b3c0/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -234,6 +234,14 @@ function _assertClass(instance, klass) {
234
234
  }
235
235
  return instance.ptr;
236
236
  }
237
+
238
+ function handleError(f, args) {
239
+ try {
240
+ return f.apply(this, args);
241
+ } catch (e) {
242
+ wasm.__wbindgen_exn_store(addHeapObject(e));
243
+ }
244
+ }
237
245
  /**
238
246
  * @param {string} config_json
239
247
  * @param {string} private_key
@@ -272,23 +280,18 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
272
280
  };
273
281
 
274
282
  /**
275
- * @param {bigint} amt
276
- * @param {bigint} bid
277
- * @param {bigint} tid
278
- * @param {bigint} sid
279
- * @param {number} num
283
+ * @param {bigint} num
280
284
  * @param {bigint} deposit
281
- * @param {bigint} change
282
285
  * @param {string} data
283
286
  * @param {bigint} fee
284
287
  * @param {string} recipient_public_key
285
288
  * @param {string} nft_type
286
289
  * @returns {Promise<WasmTransaction>}
287
290
  */
288
- module.exports.create_bound_transaction = function(amt, bid, tid, sid, num, deposit, change, data, fee, recipient_public_key, nft_type) {
291
+ module.exports.create_bound_transaction = function(num, deposit, data, fee, recipient_public_key, nft_type) {
289
292
  const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
293
  const len0 = WASM_VECTOR_LEN;
291
- const ret = wasm.create_bound_transaction(amt, bid, tid, sid, num, deposit, change, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
294
+ const ret = wasm.create_bound_transaction(num, deposit, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
292
295
  return takeObject(ret);
293
296
  };
294
297
 
@@ -308,6 +311,30 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
308
311
  return takeObject(ret);
309
312
  };
310
313
 
314
+ /**
315
+ * @param {string} slip1_utxo_key
316
+ * @param {string} slip2_utxo_key
317
+ * @param {string} slip3_utxo_key
318
+ * @param {number} left_count
319
+ * @param {number} right_count
320
+ * @returns {Promise<WasmTransaction>}
321
+ */
322
+ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count) {
323
+ const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count);
324
+ return takeObject(ret);
325
+ };
326
+
327
+ /**
328
+ * @param {string} nft_id_hex
329
+ * @returns {Promise<WasmTransaction>}
330
+ */
331
+ module.exports.create_merge_bound_transaction = function(nft_id_hex) {
332
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
333
+ const len0 = WASM_VECTOR_LEN;
334
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0);
335
+ return takeObject(ret);
336
+ };
337
+
311
338
  /**
312
339
  * @returns {Promise<Array<any>>}
313
340
  */
@@ -696,15 +723,7 @@ function addBorrowedObject(obj) {
696
723
  heap[--stack_pointer] = obj;
697
724
  return stack_pointer;
698
725
  }
699
-
700
- function handleError(f, args) {
701
- try {
702
- return f.apply(this, args);
703
- } catch (e) {
704
- wasm.__wbindgen_exn_store(addHeapObject(e));
705
- }
706
- }
707
- function __wbg_adapter_421(arg0, arg1, arg2, arg3) {
726
+ function __wbg_adapter_424(arg0, arg1, arg2, arg3) {
708
727
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
709
728
  }
710
729
 
@@ -2419,6 +2438,28 @@ class WasmWallet {
2419
2438
  const ret = wasm.wasmwallet_set_key_list(this.__wbg_ptr, addHeapObject(key_list));
2420
2439
  return takeObject(ret);
2421
2440
  }
2441
+ /**
2442
+ * @param {string} slip1_hex
2443
+ * @param {string} slip2_hex
2444
+ * @param {string} slip3_hex
2445
+ * @param {string} id_hex
2446
+ * @param {string} sig_hex
2447
+ * @returns {Promise<void>}
2448
+ */
2449
+ add_nft(slip1_hex, slip2_hex, slip3_hex, id_hex, sig_hex) {
2450
+ const ptr0 = passStringToWasm0(slip1_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2451
+ const len0 = WASM_VECTOR_LEN;
2452
+ const ptr1 = passStringToWasm0(slip2_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2453
+ const len1 = WASM_VECTOR_LEN;
2454
+ const ptr2 = passStringToWasm0(slip3_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2455
+ const len2 = WASM_VECTOR_LEN;
2456
+ const ptr3 = passStringToWasm0(id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2457
+ const len3 = WASM_VECTOR_LEN;
2458
+ const ptr4 = passStringToWasm0(sig_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2459
+ const len4 = WASM_VECTOR_LEN;
2460
+ const ret = wasm.wasmwallet_add_nft(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
2461
+ return takeObject(ret);
2462
+ }
2422
2463
  }
2423
2464
  module.exports.WasmWallet = WasmWallet;
2424
2465
 
@@ -2465,40 +2506,40 @@ class WasmWalletSlip {
2465
2506
  * @returns {bigint}
2466
2507
  */
2467
2508
  get_amount() {
2468
- const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
2509
+ const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2469
2510
  return BigInt.asUintN(64, ret);
2470
2511
  }
2471
2512
  /**
2472
2513
  * @param {bigint} amount
2473
2514
  */
2474
2515
  set_amount(amount) {
2475
- wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2516
+ wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2476
2517
  }
2477
2518
  /**
2478
2519
  * @returns {bigint}
2479
2520
  */
2480
2521
  get_block_id() {
2481
- const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2522
+ const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2482
2523
  return BigInt.asUintN(64, ret);
2483
2524
  }
2484
2525
  /**
2485
2526
  * @param {bigint} block_id
2486
2527
  */
2487
2528
  set_block_id(block_id) {
2488
- wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2529
+ wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2489
2530
  }
2490
2531
  /**
2491
2532
  * @returns {bigint}
2492
2533
  */
2493
2534
  get_tx_ordinal() {
2494
- const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2535
+ const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2495
2536
  return BigInt.asUintN(64, ret);
2496
2537
  }
2497
2538
  /**
2498
2539
  * @param {bigint} ordinal
2499
2540
  */
2500
2541
  set_tx_ordinal(ordinal) {
2501
- wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2542
+ wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2502
2543
  }
2503
2544
  /**
2504
2545
  * @returns {number}
@@ -2571,21 +2612,6 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2571
2612
  return addHeapObject(ret);
2572
2613
  };
2573
2614
 
2574
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2575
- const ret = BigInt.asUintN(64, arg0);
2576
- return addHeapObject(ret);
2577
- };
2578
-
2579
- module.exports.__wbg_wasmslip_new = function(arg0) {
2580
- const ret = WasmSlip.__wrap(arg0);
2581
- return addHeapObject(ret);
2582
- };
2583
-
2584
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2585
- const ret = WasmTransaction.__wrap(arg0);
2586
- return addHeapObject(ret);
2587
- };
2588
-
2589
2615
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
2590
2616
  const obj = getObject(arg1);
2591
2617
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2595,18 +2621,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2595
2621
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2596
2622
  };
2597
2623
 
2598
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2599
- const ret = WasmWalletSlip.__wrap(arg0);
2600
- return addHeapObject(ret);
2601
- };
2602
-
2603
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2604
- const ret = WasmPeer.__wrap(arg0);
2624
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2625
+ const ret = WasmTransaction.__wrap(arg0);
2605
2626
  return addHeapObject(ret);
2606
2627
  };
2607
2628
 
2608
- module.exports.__wbg_wasmnft_new = function(arg0) {
2609
- const ret = WasmNFT.__wrap(arg0);
2629
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2630
+ const ret = BigInt.asUintN(64, arg0);
2610
2631
  return addHeapObject(ret);
2611
2632
  };
2612
2633
 
@@ -2620,28 +2641,38 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2620
2641
  return addHeapObject(ret);
2621
2642
  };
2622
2643
 
2623
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2624
- const ret = WasmWallet.__wrap(arg0);
2644
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2645
+ const ret = WasmWalletSlip.__wrap(arg0);
2625
2646
  return addHeapObject(ret);
2626
2647
  };
2627
2648
 
2628
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2629
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2649
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2650
+ const ret = WasmSlip.__wrap(arg0);
2630
2651
  return addHeapObject(ret);
2631
2652
  };
2632
2653
 
2633
- module.exports.__wbg_wasmhop_new = function(arg0) {
2634
- const ret = WasmHop.__wrap(arg0);
2654
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2655
+ const ret = WasmNFT.__wrap(arg0);
2635
2656
  return addHeapObject(ret);
2636
2657
  };
2637
2658
 
2638
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2639
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2659
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2660
+ const ret = WasmPeer.__wrap(arg0);
2640
2661
  return addHeapObject(ret);
2641
2662
  };
2642
2663
 
2643
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2644
- const ret = WasmPeerService.__wrap(arg0);
2664
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2665
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2666
+ return addHeapObject(ret);
2667
+ };
2668
+
2669
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2670
+ const ret = WasmWallet.__wrap(arg0);
2671
+ return addHeapObject(ret);
2672
+ };
2673
+
2674
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2675
+ const ret = WasmHop.__wrap(arg0);
2645
2676
  return addHeapObject(ret);
2646
2677
  };
2647
2678
 
@@ -2661,15 +2692,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2661
2692
  return ret;
2662
2693
  };
2663
2694
 
2664
- module.exports.__wbg_sendmessage_97d7f022a877467e = function(arg0, arg1) {
2695
+ module.exports.__wbg_sendmessage_04cd2cc296291ab1 = function(arg0, arg1) {
2665
2696
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2666
2697
  };
2667
2698
 
2668
- module.exports.__wbg_sendmessagetoall_ba211b96dfa65fe5 = function(arg0, arg1) {
2699
+ module.exports.__wbg_sendmessagetoall_d871d7ab994e5ca3 = function(arg0, arg1) {
2669
2700
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2670
2701
  };
2671
2702
 
2672
- module.exports.__wbg_connecttopeer_2ab190f6ca71f5f7 = function() { return handleError(function (arg0, arg1, arg2) {
2703
+ module.exports.__wbg_connecttopeer_96ce8deb117f8977 = function() { return handleError(function (arg0, arg1, arg2) {
2673
2704
  let deferred0_0;
2674
2705
  let deferred0_1;
2675
2706
  try {
@@ -2682,12 +2713,12 @@ module.exports.__wbg_connecttopeer_2ab190f6ca71f5f7 = function() { return handle
2682
2713
  }
2683
2714
  }, arguments) };
2684
2715
 
2685
- module.exports.__wbg_disconnectfrompeer_fa7180862666085b = function() { return handleError(function (arg0) {
2716
+ module.exports.__wbg_disconnectfrompeer_f91565d689c4018e = function() { return handleError(function (arg0) {
2686
2717
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2687
2718
  return addHeapObject(ret);
2688
2719
  }, arguments) };
2689
2720
 
2690
- module.exports.__wbg_fetchblockfrompeer_ebaf495142809113 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2721
+ module.exports.__wbg_fetchblockfrompeer_26f935292dd4740a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2691
2722
  let deferred0_0;
2692
2723
  let deferred0_1;
2693
2724
  try {
@@ -2700,7 +2731,7 @@ module.exports.__wbg_fetchblockfrompeer_ebaf495142809113 = function() { return h
2700
2731
  }
2701
2732
  }, arguments) };
2702
2733
 
2703
- module.exports.__wbg_writevalue_db033c89e3cc6ce1 = function(arg0, arg1, arg2) {
2734
+ module.exports.__wbg_writevalue_2adf6c645dd74afb = function(arg0, arg1, arg2) {
2704
2735
  let deferred0_0;
2705
2736
  let deferred0_1;
2706
2737
  try {
@@ -2712,7 +2743,7 @@ module.exports.__wbg_writevalue_db033c89e3cc6ce1 = function(arg0, arg1, arg2) {
2712
2743
  }
2713
2744
  };
2714
2745
 
2715
- module.exports.__wbg_appendvalue_b71488e99c0b2acc = function(arg0, arg1, arg2) {
2746
+ module.exports.__wbg_appendvalue_af10138b206f4b36 = function(arg0, arg1, arg2) {
2716
2747
  let deferred0_0;
2717
2748
  let deferred0_1;
2718
2749
  try {
@@ -2724,7 +2755,7 @@ module.exports.__wbg_appendvalue_b71488e99c0b2acc = function(arg0, arg1, arg2) {
2724
2755
  }
2725
2756
  };
2726
2757
 
2727
- module.exports.__wbg_flushdata_9472c01596035377 = function(arg0, arg1) {
2758
+ module.exports.__wbg_flushdata_e7318828f427d963 = function(arg0, arg1) {
2728
2759
  let deferred0_0;
2729
2760
  let deferred0_1;
2730
2761
  try {
@@ -2736,7 +2767,7 @@ module.exports.__wbg_flushdata_9472c01596035377 = function(arg0, arg1) {
2736
2767
  }
2737
2768
  };
2738
2769
 
2739
- module.exports.__wbg_readvalue_52aaffc6b45c3221 = function() { return handleError(function (arg0, arg1) {
2770
+ module.exports.__wbg_readvalue_2f89ba1bc085a968 = function() { return handleError(function (arg0, arg1) {
2740
2771
  let deferred0_0;
2741
2772
  let deferred0_1;
2742
2773
  try {
@@ -2749,12 +2780,12 @@ module.exports.__wbg_readvalue_52aaffc6b45c3221 = function() { return handleErro
2749
2780
  }
2750
2781
  }, arguments) };
2751
2782
 
2752
- module.exports.__wbg_loadblockfilelist_a4e2a6d9d03ee691 = function() { return handleError(function () {
2783
+ module.exports.__wbg_loadblockfilelist_c8f907d0d8907617 = function() { return handleError(function () {
2753
2784
  const ret = MsgHandler.load_block_file_list();
2754
2785
  return addHeapObject(ret);
2755
2786
  }, arguments) };
2756
2787
 
2757
- module.exports.__wbg_isexistingfile_961bc3427edd9588 = function() { return handleError(function (arg0, arg1) {
2788
+ module.exports.__wbg_isexistingfile_0e3adedf12d11740 = function() { return handleError(function (arg0, arg1) {
2758
2789
  let deferred0_0;
2759
2790
  let deferred0_1;
2760
2791
  try {
@@ -2767,7 +2798,7 @@ module.exports.__wbg_isexistingfile_961bc3427edd9588 = function() { return handl
2767
2798
  }
2768
2799
  }, arguments) };
2769
2800
 
2770
- module.exports.__wbg_removevalue_04f5e8da4126f5ff = function() { return handleError(function (arg0, arg1) {
2801
+ module.exports.__wbg_removevalue_d87fb7513d9108b9 = function() { return handleError(function (arg0, arg1) {
2771
2802
  let deferred0_0;
2772
2803
  let deferred0_1;
2773
2804
  try {
@@ -2780,7 +2811,7 @@ module.exports.__wbg_removevalue_04f5e8da4126f5ff = function() { return handleEr
2780
2811
  }
2781
2812
  }, arguments) };
2782
2813
 
2783
- module.exports.__wbg_ensureblockdirectoryexists_a66636c752771723 = function() { return handleError(function (arg0, arg1) {
2814
+ module.exports.__wbg_ensureblockdirectoryexists_e99187ae3263c2f9 = function() { return handleError(function (arg0, arg1) {
2784
2815
  let deferred0_0;
2785
2816
  let deferred0_1;
2786
2817
  try {
@@ -2792,19 +2823,19 @@ module.exports.__wbg_ensureblockdirectoryexists_a66636c752771723 = function() {
2792
2823
  }
2793
2824
  }, arguments) };
2794
2825
 
2795
- module.exports.__wbg_processapicall_58ba2d9ccb130e31 = function(arg0, arg1, arg2) {
2826
+ module.exports.__wbg_processapicall_c559108554ea39c7 = function(arg0, arg1, arg2) {
2796
2827
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2797
2828
  };
2798
2829
 
2799
- module.exports.__wbg_processapisuccess_9ead7dfd1f7243b6 = function(arg0, arg1, arg2) {
2830
+ module.exports.__wbg_processapisuccess_8b26c4fdbc034c17 = function(arg0, arg1, arg2) {
2800
2831
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2801
2832
  };
2802
2833
 
2803
- module.exports.__wbg_processapierror_5edd170759073625 = function(arg0, arg1, arg2) {
2834
+ module.exports.__wbg_processapierror_8014e43129390345 = function(arg0, arg1, arg2) {
2804
2835
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2805
2836
  };
2806
2837
 
2807
- module.exports.__wbg_sendinterfaceevent_d7add55de27c21bc = function(arg0, arg1, arg2, arg3, arg4) {
2838
+ module.exports.__wbg_sendinterfaceevent_a4fd023480c030ca = function(arg0, arg1, arg2, arg3, arg4) {
2808
2839
  let deferred0_0;
2809
2840
  let deferred0_1;
2810
2841
  let deferred1_0;
@@ -2821,7 +2852,7 @@ module.exports.__wbg_sendinterfaceevent_d7add55de27c21bc = function(arg0, arg1,
2821
2852
  }
2822
2853
  };
2823
2854
 
2824
- module.exports.__wbg_sendblocksuccess_35d6fef02f71245a = function(arg0, arg1, arg2) {
2855
+ module.exports.__wbg_sendblocksuccess_f2022b2ffeeea2ad = function(arg0, arg1, arg2) {
2825
2856
  let deferred0_0;
2826
2857
  let deferred0_1;
2827
2858
  try {
@@ -2833,11 +2864,11 @@ module.exports.__wbg_sendblocksuccess_35d6fef02f71245a = function(arg0, arg1, ar
2833
2864
  }
2834
2865
  };
2835
2866
 
2836
- module.exports.__wbg_sendwalletupdate_7943305ec88b0155 = function() {
2867
+ module.exports.__wbg_sendwalletupdate_dd76c4952c23788b = function() {
2837
2868
  MsgHandler.send_wallet_update();
2838
2869
  };
2839
2870
 
2840
- module.exports.__wbg_sendnewversionalert_7edac17a51748e05 = function(arg0, arg1, arg2) {
2871
+ module.exports.__wbg_sendnewversionalert_4dacaca6a38d69a5 = function(arg0, arg1, arg2) {
2841
2872
  let deferred0_0;
2842
2873
  let deferred0_1;
2843
2874
  try {
@@ -2849,25 +2880,35 @@ module.exports.__wbg_sendnewversionalert_7edac17a51748e05 = function(arg0, arg1,
2849
2880
  }
2850
2881
  };
2851
2882
 
2852
- module.exports.__wbg_sendblockfetchstatusevent_87def7f265f52508 = function(arg0) {
2883
+ module.exports.__wbg_sendblockfetchstatusevent_5681b839f3966071 = function(arg0) {
2853
2884
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2854
2885
  };
2855
2886
 
2856
- module.exports.__wbg_savewallet_36ef14fa90357832 = function() {
2887
+ module.exports.__wbg_savewallet_22aad28d2ecb9c5b = function() {
2857
2888
  MsgHandler.save_wallet();
2858
2889
  };
2859
2890
 
2860
- module.exports.__wbg_loadwallet_c140164674179902 = function() {
2891
+ module.exports.__wbg_loadwallet_c3c32668ec8fdfec = function() {
2861
2892
  MsgHandler.load_wallet();
2862
2893
  };
2863
2894
 
2864
- module.exports.__wbg_getmyservices_3277a77e136f5719 = function() {
2895
+ module.exports.__wbg_getmyservices_db442a658d833e43 = function() {
2865
2896
  const ret = MsgHandler.get_my_services();
2866
2897
  _assertClass(ret, WasmPeerServiceList);
2867
2898
  var ptr1 = ret.__destroy_into_raw();
2868
2899
  return ptr1;
2869
2900
  };
2870
2901
 
2902
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2903
+ const ret = WasmPeerService.__wrap(arg0);
2904
+ return addHeapObject(ret);
2905
+ };
2906
+
2907
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2908
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2909
+ return addHeapObject(ret);
2910
+ };
2911
+
2871
2912
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2872
2913
  const ret = getObject(arg0) == getObject(arg1);
2873
2914
  return ret;
@@ -3136,7 +3177,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
3136
3177
  const a = state0.a;
3137
3178
  state0.a = 0;
3138
3179
  try {
3139
- return __wbg_adapter_421(a, state0.b, arg0, arg1);
3180
+ return __wbg_adapter_424(a, state0.b, arg0, arg1);
3140
3181
  } finally {
3141
3182
  state0.a = a;
3142
3183
  }
@@ -3234,8 +3275,8 @@ module.exports.__wbindgen_memory = function() {
3234
3275
  return addHeapObject(ret);
3235
3276
  };
3236
3277
 
3237
- module.exports.__wbindgen_closure_wrapper1475 = function(arg0, arg1, arg2) {
3238
- const ret = makeMutClosure(arg0, arg1, 519, __wbg_adapter_38);
3278
+ module.exports.__wbindgen_closure_wrapper1517 = function(arg0, arg1, arg2) {
3279
+ const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_38);
3239
3280
  return addHeapObject(ret);
3240
3281
  };
3241
3282
 
Binary file