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/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-4375448d2b4dc1d8/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-e32b9725f8a9b3c0/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -232,6 +232,14 @@ function _assertClass(instance, klass) {
232
232
  }
233
233
  return instance.ptr;
234
234
  }
235
+
236
+ function handleError(f, args) {
237
+ try {
238
+ return f.apply(this, args);
239
+ } catch (e) {
240
+ wasm.__wbindgen_exn_store(addHeapObject(e));
241
+ }
242
+ }
235
243
  /**
236
244
  * @param {string} config_json
237
245
  * @param {string} private_key
@@ -270,23 +278,18 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
270
278
  }
271
279
 
272
280
  /**
273
- * @param {bigint} amt
274
- * @param {bigint} bid
275
- * @param {bigint} tid
276
- * @param {bigint} sid
277
- * @param {number} num
281
+ * @param {bigint} num
278
282
  * @param {bigint} deposit
279
- * @param {bigint} change
280
283
  * @param {string} data
281
284
  * @param {bigint} fee
282
285
  * @param {string} recipient_public_key
283
286
  * @param {string} nft_type
284
287
  * @returns {Promise<WasmTransaction>}
285
288
  */
286
- export function create_bound_transaction(amt, bid, tid, sid, num, deposit, change, data, fee, recipient_public_key, nft_type) {
289
+ export function create_bound_transaction(num, deposit, data, fee, recipient_public_key, nft_type) {
287
290
  const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
288
291
  const len0 = WASM_VECTOR_LEN;
289
- const ret = wasm.create_bound_transaction(amt, bid, tid, sid, num, deposit, change, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
292
+ const ret = wasm.create_bound_transaction(num, deposit, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
290
293
  return takeObject(ret);
291
294
  }
292
295
 
@@ -306,6 +309,30 @@ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_ke
306
309
  return takeObject(ret);
307
310
  }
308
311
 
312
+ /**
313
+ * @param {string} slip1_utxo_key
314
+ * @param {string} slip2_utxo_key
315
+ * @param {string} slip3_utxo_key
316
+ * @param {number} left_count
317
+ * @param {number} right_count
318
+ * @returns {Promise<WasmTransaction>}
319
+ */
320
+ export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count) {
321
+ const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count);
322
+ return takeObject(ret);
323
+ }
324
+
325
+ /**
326
+ * @param {string} nft_id_hex
327
+ * @returns {Promise<WasmTransaction>}
328
+ */
329
+ export function create_merge_bound_transaction(nft_id_hex) {
330
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
331
+ const len0 = WASM_VECTOR_LEN;
332
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0);
333
+ return takeObject(ret);
334
+ }
335
+
309
336
  /**
310
337
  * @returns {Promise<Array<any>>}
311
338
  */
@@ -694,15 +721,7 @@ function addBorrowedObject(obj) {
694
721
  heap[--stack_pointer] = obj;
695
722
  return stack_pointer;
696
723
  }
697
-
698
- function handleError(f, args) {
699
- try {
700
- return f.apply(this, args);
701
- } catch (e) {
702
- wasm.__wbindgen_exn_store(addHeapObject(e));
703
- }
704
- }
705
- function __wbg_adapter_421(arg0, arg1, arg2, arg3) {
724
+ function __wbg_adapter_424(arg0, arg1, arg2, arg3) {
706
725
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
707
726
  }
708
727
 
@@ -2403,6 +2422,28 @@ export class WasmWallet {
2403
2422
  const ret = wasm.wasmwallet_set_key_list(this.__wbg_ptr, addHeapObject(key_list));
2404
2423
  return takeObject(ret);
2405
2424
  }
2425
+ /**
2426
+ * @param {string} slip1_hex
2427
+ * @param {string} slip2_hex
2428
+ * @param {string} slip3_hex
2429
+ * @param {string} id_hex
2430
+ * @param {string} sig_hex
2431
+ * @returns {Promise<void>}
2432
+ */
2433
+ add_nft(slip1_hex, slip2_hex, slip3_hex, id_hex, sig_hex) {
2434
+ const ptr0 = passStringToWasm0(slip1_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2435
+ const len0 = WASM_VECTOR_LEN;
2436
+ const ptr1 = passStringToWasm0(slip2_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2437
+ const len1 = WASM_VECTOR_LEN;
2438
+ const ptr2 = passStringToWasm0(slip3_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2439
+ const len2 = WASM_VECTOR_LEN;
2440
+ const ptr3 = passStringToWasm0(id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2441
+ const len3 = WASM_VECTOR_LEN;
2442
+ const ptr4 = passStringToWasm0(sig_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2443
+ const len4 = WASM_VECTOR_LEN;
2444
+ const ret = wasm.wasmwallet_add_nft(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
2445
+ return takeObject(ret);
2446
+ }
2406
2447
  }
2407
2448
 
2408
2449
  const WasmWalletSlipFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2448,40 +2489,40 @@ export class WasmWalletSlip {
2448
2489
  * @returns {bigint}
2449
2490
  */
2450
2491
  get_amount() {
2451
- const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
2492
+ const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2452
2493
  return BigInt.asUintN(64, ret);
2453
2494
  }
2454
2495
  /**
2455
2496
  * @param {bigint} amount
2456
2497
  */
2457
2498
  set_amount(amount) {
2458
- wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2499
+ wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2459
2500
  }
2460
2501
  /**
2461
2502
  * @returns {bigint}
2462
2503
  */
2463
2504
  get_block_id() {
2464
- const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2505
+ const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2465
2506
  return BigInt.asUintN(64, ret);
2466
2507
  }
2467
2508
  /**
2468
2509
  * @param {bigint} block_id
2469
2510
  */
2470
2511
  set_block_id(block_id) {
2471
- wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2512
+ wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2472
2513
  }
2473
2514
  /**
2474
2515
  * @returns {bigint}
2475
2516
  */
2476
2517
  get_tx_ordinal() {
2477
- const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2518
+ const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2478
2519
  return BigInt.asUintN(64, ret);
2479
2520
  }
2480
2521
  /**
2481
2522
  * @param {bigint} ordinal
2482
2523
  */
2483
2524
  set_tx_ordinal(ordinal) {
2484
- wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2525
+ wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2485
2526
  }
2486
2527
  /**
2487
2528
  * @returns {number}
@@ -2585,18 +2626,6 @@ function __wbg_get_imports() {
2585
2626
  const ret = getStringFromWasm0(arg0, arg1);
2586
2627
  return addHeapObject(ret);
2587
2628
  };
2588
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2589
- const ret = BigInt.asUintN(64, arg0);
2590
- return addHeapObject(ret);
2591
- };
2592
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2593
- const ret = WasmSlip.__wrap(arg0);
2594
- return addHeapObject(ret);
2595
- };
2596
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2597
- const ret = WasmTransaction.__wrap(arg0);
2598
- return addHeapObject(ret);
2599
- };
2600
2629
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2601
2630
  const obj = getObject(arg1);
2602
2631
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2605,16 +2634,12 @@ function __wbg_get_imports() {
2605
2634
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2606
2635
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2607
2636
  };
2608
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2609
- const ret = WasmWalletSlip.__wrap(arg0);
2610
- return addHeapObject(ret);
2611
- };
2612
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2613
- const ret = WasmPeer.__wrap(arg0);
2637
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2638
+ const ret = WasmTransaction.__wrap(arg0);
2614
2639
  return addHeapObject(ret);
2615
2640
  };
2616
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2617
- const ret = WasmNFT.__wrap(arg0);
2641
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2642
+ const ret = BigInt.asUintN(64, arg0);
2618
2643
  return addHeapObject(ret);
2619
2644
  };
2620
2645
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
@@ -2625,24 +2650,32 @@ function __wbg_get_imports() {
2625
2650
  const ret = WasmBlockchain.__wrap(arg0);
2626
2651
  return addHeapObject(ret);
2627
2652
  };
2628
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2629
- const ret = WasmWallet.__wrap(arg0);
2653
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2654
+ const ret = WasmWalletSlip.__wrap(arg0);
2630
2655
  return addHeapObject(ret);
2631
2656
  };
2632
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2633
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2657
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2658
+ const ret = WasmSlip.__wrap(arg0);
2634
2659
  return addHeapObject(ret);
2635
2660
  };
2636
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2637
- const ret = WasmHop.__wrap(arg0);
2661
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2662
+ const ret = WasmNFT.__wrap(arg0);
2638
2663
  return addHeapObject(ret);
2639
2664
  };
2640
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2641
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2665
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2666
+ const ret = WasmPeer.__wrap(arg0);
2642
2667
  return addHeapObject(ret);
2643
2668
  };
2644
- imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2645
- const ret = WasmPeerService.__wrap(arg0);
2669
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2670
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2671
+ return addHeapObject(ret);
2672
+ };
2673
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2674
+ const ret = WasmWallet.__wrap(arg0);
2675
+ return addHeapObject(ret);
2676
+ };
2677
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2678
+ const ret = WasmHop.__wrap(arg0);
2646
2679
  return addHeapObject(ret);
2647
2680
  };
2648
2681
  imports.wbg.__wbindgen_is_object = function(arg0) {
@@ -2658,13 +2691,13 @@ function __wbg_get_imports() {
2658
2691
  const ret = getObject(arg0) in getObject(arg1);
2659
2692
  return ret;
2660
2693
  };
2661
- imports.wbg.__wbg_sendmessage_97d7f022a877467e = function(arg0, arg1) {
2694
+ imports.wbg.__wbg_sendmessage_04cd2cc296291ab1 = function(arg0, arg1) {
2662
2695
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2663
2696
  };
2664
- imports.wbg.__wbg_sendmessagetoall_ba211b96dfa65fe5 = function(arg0, arg1) {
2697
+ imports.wbg.__wbg_sendmessagetoall_d871d7ab994e5ca3 = function(arg0, arg1) {
2665
2698
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2666
2699
  };
2667
- imports.wbg.__wbg_connecttopeer_2ab190f6ca71f5f7 = function() { return handleError(function (arg0, arg1, arg2) {
2700
+ imports.wbg.__wbg_connecttopeer_96ce8deb117f8977 = function() { return handleError(function (arg0, arg1, arg2) {
2668
2701
  let deferred0_0;
2669
2702
  let deferred0_1;
2670
2703
  try {
@@ -2676,11 +2709,11 @@ function __wbg_get_imports() {
2676
2709
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2677
2710
  }
2678
2711
  }, arguments) };
2679
- imports.wbg.__wbg_disconnectfrompeer_fa7180862666085b = function() { return handleError(function (arg0) {
2712
+ imports.wbg.__wbg_disconnectfrompeer_f91565d689c4018e = function() { return handleError(function (arg0) {
2680
2713
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2681
2714
  return addHeapObject(ret);
2682
2715
  }, arguments) };
2683
- imports.wbg.__wbg_fetchblockfrompeer_ebaf495142809113 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2716
+ imports.wbg.__wbg_fetchblockfrompeer_26f935292dd4740a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2684
2717
  let deferred0_0;
2685
2718
  let deferred0_1;
2686
2719
  try {
@@ -2692,7 +2725,7 @@ function __wbg_get_imports() {
2692
2725
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2693
2726
  }
2694
2727
  }, arguments) };
2695
- imports.wbg.__wbg_writevalue_db033c89e3cc6ce1 = function(arg0, arg1, arg2) {
2728
+ imports.wbg.__wbg_writevalue_2adf6c645dd74afb = function(arg0, arg1, arg2) {
2696
2729
  let deferred0_0;
2697
2730
  let deferred0_1;
2698
2731
  try {
@@ -2703,7 +2736,7 @@ function __wbg_get_imports() {
2703
2736
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2704
2737
  }
2705
2738
  };
2706
- imports.wbg.__wbg_appendvalue_b71488e99c0b2acc = function(arg0, arg1, arg2) {
2739
+ imports.wbg.__wbg_appendvalue_af10138b206f4b36 = function(arg0, arg1, arg2) {
2707
2740
  let deferred0_0;
2708
2741
  let deferred0_1;
2709
2742
  try {
@@ -2714,7 +2747,7 @@ function __wbg_get_imports() {
2714
2747
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2715
2748
  }
2716
2749
  };
2717
- imports.wbg.__wbg_flushdata_9472c01596035377 = function(arg0, arg1) {
2750
+ imports.wbg.__wbg_flushdata_e7318828f427d963 = function(arg0, arg1) {
2718
2751
  let deferred0_0;
2719
2752
  let deferred0_1;
2720
2753
  try {
@@ -2725,7 +2758,7 @@ function __wbg_get_imports() {
2725
2758
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2726
2759
  }
2727
2760
  };
2728
- imports.wbg.__wbg_readvalue_52aaffc6b45c3221 = function() { return handleError(function (arg0, arg1) {
2761
+ imports.wbg.__wbg_readvalue_2f89ba1bc085a968 = function() { return handleError(function (arg0, arg1) {
2729
2762
  let deferred0_0;
2730
2763
  let deferred0_1;
2731
2764
  try {
@@ -2737,11 +2770,11 @@ function __wbg_get_imports() {
2737
2770
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2738
2771
  }
2739
2772
  }, arguments) };
2740
- imports.wbg.__wbg_loadblockfilelist_a4e2a6d9d03ee691 = function() { return handleError(function () {
2773
+ imports.wbg.__wbg_loadblockfilelist_c8f907d0d8907617 = function() { return handleError(function () {
2741
2774
  const ret = MsgHandler.load_block_file_list();
2742
2775
  return addHeapObject(ret);
2743
2776
  }, arguments) };
2744
- imports.wbg.__wbg_isexistingfile_961bc3427edd9588 = function() { return handleError(function (arg0, arg1) {
2777
+ imports.wbg.__wbg_isexistingfile_0e3adedf12d11740 = function() { return handleError(function (arg0, arg1) {
2745
2778
  let deferred0_0;
2746
2779
  let deferred0_1;
2747
2780
  try {
@@ -2753,7 +2786,7 @@ function __wbg_get_imports() {
2753
2786
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2754
2787
  }
2755
2788
  }, arguments) };
2756
- imports.wbg.__wbg_removevalue_04f5e8da4126f5ff = function() { return handleError(function (arg0, arg1) {
2789
+ imports.wbg.__wbg_removevalue_d87fb7513d9108b9 = function() { return handleError(function (arg0, arg1) {
2757
2790
  let deferred0_0;
2758
2791
  let deferred0_1;
2759
2792
  try {
@@ -2765,7 +2798,7 @@ function __wbg_get_imports() {
2765
2798
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2766
2799
  }
2767
2800
  }, arguments) };
2768
- imports.wbg.__wbg_ensureblockdirectoryexists_a66636c752771723 = function() { return handleError(function (arg0, arg1) {
2801
+ imports.wbg.__wbg_ensureblockdirectoryexists_e99187ae3263c2f9 = function() { return handleError(function (arg0, arg1) {
2769
2802
  let deferred0_0;
2770
2803
  let deferred0_1;
2771
2804
  try {
@@ -2776,16 +2809,16 @@ function __wbg_get_imports() {
2776
2809
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2777
2810
  }
2778
2811
  }, arguments) };
2779
- imports.wbg.__wbg_processapicall_58ba2d9ccb130e31 = function(arg0, arg1, arg2) {
2812
+ imports.wbg.__wbg_processapicall_c559108554ea39c7 = function(arg0, arg1, arg2) {
2780
2813
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2781
2814
  };
2782
- imports.wbg.__wbg_processapisuccess_9ead7dfd1f7243b6 = function(arg0, arg1, arg2) {
2815
+ imports.wbg.__wbg_processapisuccess_8b26c4fdbc034c17 = function(arg0, arg1, arg2) {
2783
2816
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2784
2817
  };
2785
- imports.wbg.__wbg_processapierror_5edd170759073625 = function(arg0, arg1, arg2) {
2818
+ imports.wbg.__wbg_processapierror_8014e43129390345 = function(arg0, arg1, arg2) {
2786
2819
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2787
2820
  };
2788
- imports.wbg.__wbg_sendinterfaceevent_d7add55de27c21bc = function(arg0, arg1, arg2, arg3, arg4) {
2821
+ imports.wbg.__wbg_sendinterfaceevent_a4fd023480c030ca = function(arg0, arg1, arg2, arg3, arg4) {
2789
2822
  let deferred0_0;
2790
2823
  let deferred0_1;
2791
2824
  let deferred1_0;
@@ -2801,7 +2834,7 @@ function __wbg_get_imports() {
2801
2834
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2802
2835
  }
2803
2836
  };
2804
- imports.wbg.__wbg_sendblocksuccess_35d6fef02f71245a = function(arg0, arg1, arg2) {
2837
+ imports.wbg.__wbg_sendblocksuccess_f2022b2ffeeea2ad = function(arg0, arg1, arg2) {
2805
2838
  let deferred0_0;
2806
2839
  let deferred0_1;
2807
2840
  try {
@@ -2812,10 +2845,10 @@ function __wbg_get_imports() {
2812
2845
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2813
2846
  }
2814
2847
  };
2815
- imports.wbg.__wbg_sendwalletupdate_7943305ec88b0155 = function() {
2848
+ imports.wbg.__wbg_sendwalletupdate_dd76c4952c23788b = function() {
2816
2849
  MsgHandler.send_wallet_update();
2817
2850
  };
2818
- imports.wbg.__wbg_sendnewversionalert_7edac17a51748e05 = function(arg0, arg1, arg2) {
2851
+ imports.wbg.__wbg_sendnewversionalert_4dacaca6a38d69a5 = function(arg0, arg1, arg2) {
2819
2852
  let deferred0_0;
2820
2853
  let deferred0_1;
2821
2854
  try {
@@ -2826,21 +2859,29 @@ function __wbg_get_imports() {
2826
2859
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2827
2860
  }
2828
2861
  };
2829
- imports.wbg.__wbg_sendblockfetchstatusevent_87def7f265f52508 = function(arg0) {
2862
+ imports.wbg.__wbg_sendblockfetchstatusevent_5681b839f3966071 = function(arg0) {
2830
2863
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2831
2864
  };
2832
- imports.wbg.__wbg_savewallet_36ef14fa90357832 = function() {
2865
+ imports.wbg.__wbg_savewallet_22aad28d2ecb9c5b = function() {
2833
2866
  MsgHandler.save_wallet();
2834
2867
  };
2835
- imports.wbg.__wbg_loadwallet_c140164674179902 = function() {
2868
+ imports.wbg.__wbg_loadwallet_c3c32668ec8fdfec = function() {
2836
2869
  MsgHandler.load_wallet();
2837
2870
  };
2838
- imports.wbg.__wbg_getmyservices_3277a77e136f5719 = function() {
2871
+ imports.wbg.__wbg_getmyservices_db442a658d833e43 = function() {
2839
2872
  const ret = MsgHandler.get_my_services();
2840
2873
  _assertClass(ret, WasmPeerServiceList);
2841
2874
  var ptr1 = ret.__destroy_into_raw();
2842
2875
  return ptr1;
2843
2876
  };
2877
+ imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2878
+ const ret = WasmPeerService.__wrap(arg0);
2879
+ return addHeapObject(ret);
2880
+ };
2881
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2882
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2883
+ return addHeapObject(ret);
2884
+ };
2844
2885
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2845
2886
  const ret = getObject(arg0) == getObject(arg1);
2846
2887
  return ret;
@@ -3060,7 +3101,7 @@ function __wbg_get_imports() {
3060
3101
  const a = state0.a;
3061
3102
  state0.a = 0;
3062
3103
  try {
3063
- return __wbg_adapter_421(a, state0.b, arg0, arg1);
3104
+ return __wbg_adapter_424(a, state0.b, arg0, arg1);
3064
3105
  } finally {
3065
3106
  state0.a = a;
3066
3107
  }
@@ -3141,8 +3182,8 @@ function __wbg_get_imports() {
3141
3182
  const ret = wasm.memory;
3142
3183
  return addHeapObject(ret);
3143
3184
  };
3144
- imports.wbg.__wbindgen_closure_wrapper1475 = function(arg0, arg1, arg2) {
3145
- const ret = makeMutClosure(arg0, arg1, 519, __wbg_adapter_38);
3185
+ imports.wbg.__wbindgen_closure_wrapper1517 = function(arg0, arg1, arg2) {
3186
+ const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_38);
3146
3187
  return addHeapObject(ret);
3147
3188
  };
3148
3189
 
Binary file