saito-wasm 0.2.98 → 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-8f3832290c6efbb8/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-e32b9725f8a9b3c0/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,15 +22,6 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
- function addHeapObject(obj) {
26
- if (heap_next === heap.length) heap.push(heap.length + 1);
27
- const idx = heap_next;
28
- heap_next = heap[idx];
29
-
30
- heap[idx] = obj;
31
- return idx;
32
- }
33
-
34
25
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
26
 
36
27
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -49,6 +40,15 @@ function getStringFromWasm0(ptr, len) {
49
40
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
41
  }
51
42
 
43
+ function addHeapObject(obj) {
44
+ if (heap_next === heap.length) heap.push(heap.length + 1);
45
+ const idx = heap_next;
46
+ heap_next = heap[idx];
47
+
48
+ heap[idx] = obj;
49
+ return idx;
50
+ }
51
+
52
52
  let WASM_VECTOR_LEN = 0;
53
53
 
54
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -226,14 +226,6 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
226
226
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
- function handleError(f, args) {
230
- try {
231
- return f.apply(this, args);
232
- } catch (e) {
233
- wasm.__wbindgen_exn_store(addHeapObject(e));
234
- }
235
- }
236
-
237
229
  function _assertClass(instance, klass) {
238
230
  if (!(instance instanceof klass)) {
239
231
  throw new Error(`expected instance of ${klass.name}`);
@@ -241,23 +233,23 @@ function _assertClass(instance, klass) {
241
233
  return instance.ptr;
242
234
  }
243
235
 
244
- let stack_pointer = 128;
245
-
246
- function addBorrowedObject(obj) {
247
- if (stack_pointer == 1) throw new Error('out of js stack');
248
- heap[--stack_pointer] = obj;
249
- return stack_pointer;
236
+ function handleError(f, args) {
237
+ try {
238
+ return f.apply(this, args);
239
+ } catch (e) {
240
+ wasm.__wbindgen_exn_store(addHeapObject(e));
241
+ }
250
242
  }
251
243
  /**
252
- * @param {string} json
244
+ * @param {string} config_json
253
245
  * @param {string} private_key
254
246
  * @param {number} log_level_num
255
247
  * @param {bigint} hasten_multiplier
256
248
  * @param {boolean} delete_old_blocks
257
249
  * @returns {Promise<any>}
258
250
  */
259
- export function initialize(json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
260
- const ret = wasm.initialize(addHeapObject(json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
251
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
252
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
261
253
  return takeObject(ret);
262
254
  }
263
255
 
@@ -286,23 +278,18 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
286
278
  }
287
279
 
288
280
  /**
289
- * @param {bigint} amt
290
- * @param {bigint} bid
291
- * @param {bigint} tid
292
- * @param {bigint} sid
293
- * @param {number} num
281
+ * @param {bigint} num
294
282
  * @param {bigint} deposit
295
- * @param {bigint} change
296
283
  * @param {string} data
297
284
  * @param {bigint} fee
298
285
  * @param {string} recipient_public_key
299
286
  * @param {string} nft_type
300
287
  * @returns {Promise<WasmTransaction>}
301
288
  */
302
- 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) {
303
290
  const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
291
  const len0 = WASM_VECTOR_LEN;
305
- 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));
306
293
  return takeObject(ret);
307
294
  }
308
295
 
@@ -322,6 +309,30 @@ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_ke
322
309
  return takeObject(ret);
323
310
  }
324
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
+
325
336
  /**
326
337
  * @returns {Promise<Array<any>>}
327
338
  */
@@ -695,7 +706,22 @@ export function get_peer_stats() {
695
706
  return takeObject(ret);
696
707
  }
697
708
 
698
- function __wbg_adapter_420(arg0, arg1, arg2, arg3) {
709
+ /**
710
+ * @returns {Promise<string>}
711
+ */
712
+ export function get_congestion_stats() {
713
+ const ret = wasm.get_congestion_stats();
714
+ return takeObject(ret);
715
+ }
716
+
717
+ let stack_pointer = 128;
718
+
719
+ function addBorrowedObject(obj) {
720
+ if (stack_pointer == 1) throw new Error('out of js stack');
721
+ heap[--stack_pointer] = obj;
722
+ return stack_pointer;
723
+ }
724
+ function __wbg_adapter_424(arg0, arg1, arg2, arg3) {
699
725
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
700
726
  }
701
727
 
@@ -2396,6 +2422,28 @@ export class WasmWallet {
2396
2422
  const ret = wasm.wasmwallet_set_key_list(this.__wbg_ptr, addHeapObject(key_list));
2397
2423
  return takeObject(ret);
2398
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
+ }
2399
2447
  }
2400
2448
 
2401
2449
  const WasmWalletSlipFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2441,40 +2489,40 @@ export class WasmWalletSlip {
2441
2489
  * @returns {bigint}
2442
2490
  */
2443
2491
  get_amount() {
2444
- const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
2492
+ const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2445
2493
  return BigInt.asUintN(64, ret);
2446
2494
  }
2447
2495
  /**
2448
2496
  * @param {bigint} amount
2449
2497
  */
2450
2498
  set_amount(amount) {
2451
- wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2499
+ wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2452
2500
  }
2453
2501
  /**
2454
2502
  * @returns {bigint}
2455
2503
  */
2456
2504
  get_block_id() {
2457
- const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2505
+ const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2458
2506
  return BigInt.asUintN(64, ret);
2459
2507
  }
2460
2508
  /**
2461
2509
  * @param {bigint} block_id
2462
2510
  */
2463
2511
  set_block_id(block_id) {
2464
- wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2512
+ wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2465
2513
  }
2466
2514
  /**
2467
2515
  * @returns {bigint}
2468
2516
  */
2469
2517
  get_tx_ordinal() {
2470
- const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2518
+ const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2471
2519
  return BigInt.asUintN(64, ret);
2472
2520
  }
2473
2521
  /**
2474
2522
  * @param {bigint} ordinal
2475
2523
  */
2476
2524
  set_tx_ordinal(ordinal) {
2477
- wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2525
+ wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2478
2526
  }
2479
2527
  /**
2480
2528
  * @returns {number}
@@ -2574,44 +2622,48 @@ function __wbg_get_imports() {
2574
2622
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2575
2623
  takeObject(arg0);
2576
2624
  };
2577
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2578
- const ret = BigInt.asUintN(64, arg0);
2579
- return addHeapObject(ret);
2580
- };
2581
2625
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2582
2626
  const ret = getStringFromWasm0(arg0, arg1);
2583
2627
  return addHeapObject(ret);
2584
2628
  };
2629
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2630
+ const obj = getObject(arg1);
2631
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2632
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2633
+ var len1 = WASM_VECTOR_LEN;
2634
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2635
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2636
+ };
2585
2637
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2586
2638
  const ret = WasmTransaction.__wrap(arg0);
2587
2639
  return addHeapObject(ret);
2588
2640
  };
2589
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2590
- const ret = WasmNFT.__wrap(arg0);
2641
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2642
+ const ret = BigInt.asUintN(64, arg0);
2591
2643
  return addHeapObject(ret);
2592
2644
  };
2593
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2594
- const ret = WasmSlip.__wrap(arg0);
2645
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2646
+ const ret = WasmBlock.__wrap(arg0);
2647
+ return addHeapObject(ret);
2648
+ };
2649
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2650
+ const ret = WasmBlockchain.__wrap(arg0);
2595
2651
  return addHeapObject(ret);
2596
2652
  };
2597
2653
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2598
2654
  const ret = WasmWalletSlip.__wrap(arg0);
2599
2655
  return addHeapObject(ret);
2600
2656
  };
2601
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2602
- const obj = getObject(arg1);
2603
- const ret = typeof(obj) === 'string' ? obj : undefined;
2604
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2605
- var len1 = WASM_VECTOR_LEN;
2606
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2607
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2657
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2658
+ const ret = WasmSlip.__wrap(arg0);
2659
+ return addHeapObject(ret);
2608
2660
  };
2609
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2610
- const ret = WasmPeer.__wrap(arg0);
2661
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2662
+ const ret = WasmNFT.__wrap(arg0);
2611
2663
  return addHeapObject(ret);
2612
2664
  };
2613
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2614
- const ret = WasmBlock.__wrap(arg0);
2665
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2666
+ const ret = WasmPeer.__wrap(arg0);
2615
2667
  return addHeapObject(ret);
2616
2668
  };
2617
2669
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
@@ -2622,12 +2674,8 @@ function __wbg_get_imports() {
2622
2674
  const ret = WasmWallet.__wrap(arg0);
2623
2675
  return addHeapObject(ret);
2624
2676
  };
2625
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2626
- const ret = WasmBlockchain.__wrap(arg0);
2627
- return addHeapObject(ret);
2628
- };
2629
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2630
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2677
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2678
+ const ret = WasmHop.__wrap(arg0);
2631
2679
  return addHeapObject(ret);
2632
2680
  };
2633
2681
  imports.wbg.__wbindgen_is_object = function(arg0) {
@@ -2643,13 +2691,13 @@ function __wbg_get_imports() {
2643
2691
  const ret = getObject(arg0) in getObject(arg1);
2644
2692
  return ret;
2645
2693
  };
2646
- imports.wbg.__wbg_sendmessage_e3719ad51d14714c = function(arg0, arg1) {
2694
+ imports.wbg.__wbg_sendmessage_04cd2cc296291ab1 = function(arg0, arg1) {
2647
2695
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2648
2696
  };
2649
- imports.wbg.__wbg_sendmessagetoall_fce9e8a9b1520b50 = function(arg0, arg1) {
2697
+ imports.wbg.__wbg_sendmessagetoall_d871d7ab994e5ca3 = function(arg0, arg1) {
2650
2698
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2651
2699
  };
2652
- imports.wbg.__wbg_connecttopeer_493c98d991aeec52 = function() { return handleError(function (arg0, arg1, arg2) {
2700
+ imports.wbg.__wbg_connecttopeer_96ce8deb117f8977 = function() { return handleError(function (arg0, arg1, arg2) {
2653
2701
  let deferred0_0;
2654
2702
  let deferred0_1;
2655
2703
  try {
@@ -2661,11 +2709,11 @@ function __wbg_get_imports() {
2661
2709
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2662
2710
  }
2663
2711
  }, arguments) };
2664
- imports.wbg.__wbg_disconnectfrompeer_15eb16e5f3b58569 = function() { return handleError(function (arg0) {
2712
+ imports.wbg.__wbg_disconnectfrompeer_f91565d689c4018e = function() { return handleError(function (arg0) {
2665
2713
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2666
2714
  return addHeapObject(ret);
2667
2715
  }, arguments) };
2668
- imports.wbg.__wbg_fetchblockfrompeer_c2a8fd4e320c63a0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2716
+ imports.wbg.__wbg_fetchblockfrompeer_26f935292dd4740a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2669
2717
  let deferred0_0;
2670
2718
  let deferred0_1;
2671
2719
  try {
@@ -2677,7 +2725,7 @@ function __wbg_get_imports() {
2677
2725
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2678
2726
  }
2679
2727
  }, arguments) };
2680
- imports.wbg.__wbg_writevalue_532d3d2233e98f52 = function(arg0, arg1, arg2) {
2728
+ imports.wbg.__wbg_writevalue_2adf6c645dd74afb = function(arg0, arg1, arg2) {
2681
2729
  let deferred0_0;
2682
2730
  let deferred0_1;
2683
2731
  try {
@@ -2688,7 +2736,7 @@ function __wbg_get_imports() {
2688
2736
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2689
2737
  }
2690
2738
  };
2691
- imports.wbg.__wbg_appendvalue_662936daac4a5b0e = function(arg0, arg1, arg2) {
2739
+ imports.wbg.__wbg_appendvalue_af10138b206f4b36 = function(arg0, arg1, arg2) {
2692
2740
  let deferred0_0;
2693
2741
  let deferred0_1;
2694
2742
  try {
@@ -2699,7 +2747,7 @@ function __wbg_get_imports() {
2699
2747
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2700
2748
  }
2701
2749
  };
2702
- imports.wbg.__wbg_flushdata_511d8aa6d443a83d = function(arg0, arg1) {
2750
+ imports.wbg.__wbg_flushdata_e7318828f427d963 = function(arg0, arg1) {
2703
2751
  let deferred0_0;
2704
2752
  let deferred0_1;
2705
2753
  try {
@@ -2710,7 +2758,7 @@ function __wbg_get_imports() {
2710
2758
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2711
2759
  }
2712
2760
  };
2713
- imports.wbg.__wbg_readvalue_0bfb240761c739d6 = function() { return handleError(function (arg0, arg1) {
2761
+ imports.wbg.__wbg_readvalue_2f89ba1bc085a968 = function() { return handleError(function (arg0, arg1) {
2714
2762
  let deferred0_0;
2715
2763
  let deferred0_1;
2716
2764
  try {
@@ -2722,11 +2770,11 @@ function __wbg_get_imports() {
2722
2770
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2723
2771
  }
2724
2772
  }, arguments) };
2725
- imports.wbg.__wbg_loadblockfilelist_878f4d10d309f4cf = function() { return handleError(function () {
2773
+ imports.wbg.__wbg_loadblockfilelist_c8f907d0d8907617 = function() { return handleError(function () {
2726
2774
  const ret = MsgHandler.load_block_file_list();
2727
2775
  return addHeapObject(ret);
2728
2776
  }, arguments) };
2729
- imports.wbg.__wbg_isexistingfile_b472c19fc3f3e390 = function() { return handleError(function (arg0, arg1) {
2777
+ imports.wbg.__wbg_isexistingfile_0e3adedf12d11740 = function() { return handleError(function (arg0, arg1) {
2730
2778
  let deferred0_0;
2731
2779
  let deferred0_1;
2732
2780
  try {
@@ -2738,7 +2786,7 @@ function __wbg_get_imports() {
2738
2786
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2739
2787
  }
2740
2788
  }, arguments) };
2741
- imports.wbg.__wbg_removevalue_8e6e2c062de19687 = function() { return handleError(function (arg0, arg1) {
2789
+ imports.wbg.__wbg_removevalue_d87fb7513d9108b9 = function() { return handleError(function (arg0, arg1) {
2742
2790
  let deferred0_0;
2743
2791
  let deferred0_1;
2744
2792
  try {
@@ -2750,7 +2798,7 @@ function __wbg_get_imports() {
2750
2798
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2751
2799
  }
2752
2800
  }, arguments) };
2753
- imports.wbg.__wbg_ensureblockdirectoryexists_26facff149bb01da = function() { return handleError(function (arg0, arg1) {
2801
+ imports.wbg.__wbg_ensureblockdirectoryexists_e99187ae3263c2f9 = function() { return handleError(function (arg0, arg1) {
2754
2802
  let deferred0_0;
2755
2803
  let deferred0_1;
2756
2804
  try {
@@ -2761,16 +2809,16 @@ function __wbg_get_imports() {
2761
2809
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2762
2810
  }
2763
2811
  }, arguments) };
2764
- imports.wbg.__wbg_processapicall_e83f36d0ce3d92d4 = function(arg0, arg1, arg2) {
2812
+ imports.wbg.__wbg_processapicall_c559108554ea39c7 = function(arg0, arg1, arg2) {
2765
2813
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2766
2814
  };
2767
- imports.wbg.__wbg_processapisuccess_787755255636720f = function(arg0, arg1, arg2) {
2815
+ imports.wbg.__wbg_processapisuccess_8b26c4fdbc034c17 = function(arg0, arg1, arg2) {
2768
2816
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2769
2817
  };
2770
- imports.wbg.__wbg_processapierror_84940f170aadbc5b = function(arg0, arg1, arg2) {
2818
+ imports.wbg.__wbg_processapierror_8014e43129390345 = function(arg0, arg1, arg2) {
2771
2819
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2772
2820
  };
2773
- imports.wbg.__wbg_sendinterfaceevent_7dc37fec97ed4c9b = function(arg0, arg1, arg2, arg3, arg4) {
2821
+ imports.wbg.__wbg_sendinterfaceevent_a4fd023480c030ca = function(arg0, arg1, arg2, arg3, arg4) {
2774
2822
  let deferred0_0;
2775
2823
  let deferred0_1;
2776
2824
  let deferred1_0;
@@ -2786,7 +2834,7 @@ function __wbg_get_imports() {
2786
2834
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2787
2835
  }
2788
2836
  };
2789
- imports.wbg.__wbg_sendblocksuccess_dbde6f387ab3df0f = function(arg0, arg1, arg2) {
2837
+ imports.wbg.__wbg_sendblocksuccess_f2022b2ffeeea2ad = function(arg0, arg1, arg2) {
2790
2838
  let deferred0_0;
2791
2839
  let deferred0_1;
2792
2840
  try {
@@ -2797,10 +2845,10 @@ function __wbg_get_imports() {
2797
2845
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2798
2846
  }
2799
2847
  };
2800
- imports.wbg.__wbg_sendwalletupdate_e7184da62c027e89 = function() {
2848
+ imports.wbg.__wbg_sendwalletupdate_dd76c4952c23788b = function() {
2801
2849
  MsgHandler.send_wallet_update();
2802
2850
  };
2803
- imports.wbg.__wbg_sendnewversionalert_0611167010c3d4ac = function(arg0, arg1, arg2) {
2851
+ imports.wbg.__wbg_sendnewversionalert_4dacaca6a38d69a5 = function(arg0, arg1, arg2) {
2804
2852
  let deferred0_0;
2805
2853
  let deferred0_1;
2806
2854
  try {
@@ -2811,16 +2859,16 @@ function __wbg_get_imports() {
2811
2859
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2812
2860
  }
2813
2861
  };
2814
- imports.wbg.__wbg_sendblockfetchstatusevent_2331bb7e64d955c5 = function(arg0) {
2862
+ imports.wbg.__wbg_sendblockfetchstatusevent_5681b839f3966071 = function(arg0) {
2815
2863
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2816
2864
  };
2817
- imports.wbg.__wbg_savewallet_e688fddb51819f02 = function() {
2865
+ imports.wbg.__wbg_savewallet_22aad28d2ecb9c5b = function() {
2818
2866
  MsgHandler.save_wallet();
2819
2867
  };
2820
- imports.wbg.__wbg_loadwallet_f26fea4dfa2a73a7 = function() {
2868
+ imports.wbg.__wbg_loadwallet_c3c32668ec8fdfec = function() {
2821
2869
  MsgHandler.load_wallet();
2822
2870
  };
2823
- imports.wbg.__wbg_getmyservices_ae02468ad22df4ca = function() {
2871
+ imports.wbg.__wbg_getmyservices_db442a658d833e43 = function() {
2824
2872
  const ret = MsgHandler.get_my_services();
2825
2873
  _assertClass(ret, WasmPeerServiceList);
2826
2874
  var ptr1 = ret.__destroy_into_raw();
@@ -2830,8 +2878,8 @@ function __wbg_get_imports() {
2830
2878
  const ret = WasmPeerService.__wrap(arg0);
2831
2879
  return addHeapObject(ret);
2832
2880
  };
2833
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2834
- const ret = WasmHop.__wrap(arg0);
2881
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2882
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2835
2883
  return addHeapObject(ret);
2836
2884
  };
2837
2885
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
@@ -3053,7 +3101,7 @@ function __wbg_get_imports() {
3053
3101
  const a = state0.a;
3054
3102
  state0.a = 0;
3055
3103
  try {
3056
- return __wbg_adapter_420(a, state0.b, arg0, arg1);
3104
+ return __wbg_adapter_424(a, state0.b, arg0, arg1);
3057
3105
  } finally {
3058
3106
  state0.a = a;
3059
3107
  }
@@ -3134,8 +3182,8 @@ function __wbg_get_imports() {
3134
3182
  const ret = wasm.memory;
3135
3183
  return addHeapObject(ret);
3136
3184
  };
3137
- imports.wbg.__wbindgen_closure_wrapper1372 = function(arg0, arg1, arg2) {
3138
- const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_38);
3185
+ imports.wbg.__wbindgen_closure_wrapper1517 = function(arg0, arg1, arg2) {
3186
+ const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_38);
3139
3187
  return addHeapObject(ret);
3140
3188
  };
3141
3189
 
Binary file