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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.2.98"
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.98",
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",
@@ -1,14 +1,14 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} json
4
+ * @param {string} config_json
5
5
  * @param {string} private_key
6
6
  * @param {number} log_level_num
7
7
  * @param {bigint} hasten_multiplier
8
8
  * @param {boolean} delete_old_blocks
9
9
  * @returns {Promise<any>}
10
10
  */
11
- export function initialize(json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
11
+ export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
12
12
  /**
13
13
  * @param {string} public_key
14
14
  * @param {bigint} amount
@@ -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>>;
@@ -247,6 +256,10 @@ export function get_stats(): Promise<string>;
247
256
  */
248
257
  export function get_peer_stats(): Promise<string>;
249
258
  /**
259
+ * @returns {Promise<string>}
260
+ */
261
+ export function get_congestion_stats(): Promise<string>;
262
+ /**
250
263
  */
251
264
  export class SaitoWasm {
252
265
  free(): void;
@@ -842,6 +855,15 @@ export class WasmWallet {
842
855
  * @returns {Promise<void>}
843
856
  */
844
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>;
845
867
  }
846
868
  /**
847
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-8f3832290c6efbb8/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);
@@ -24,15 +24,6 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
27
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
28
 
38
29
  cachedTextDecoder.decode();
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
51
42
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
43
  }
53
44
 
45
+ function addHeapObject(obj) {
46
+ if (heap_next === heap.length) heap.push(heap.length + 1);
47
+ const idx = heap_next;
48
+ heap_next = heap[idx];
49
+
50
+ heap[idx] = obj;
51
+ return idx;
52
+ }
53
+
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -228,14 +228,6 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
228
228
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
- function handleError(f, args) {
232
- try {
233
- return f.apply(this, args);
234
- } catch (e) {
235
- wasm.__wbindgen_exn_store(addHeapObject(e));
236
- }
237
- }
238
-
239
231
  function _assertClass(instance, klass) {
240
232
  if (!(instance instanceof klass)) {
241
233
  throw new Error(`expected instance of ${klass.name}`);
@@ -243,23 +235,23 @@ function _assertClass(instance, klass) {
243
235
  return instance.ptr;
244
236
  }
245
237
 
246
- let stack_pointer = 128;
247
-
248
- function addBorrowedObject(obj) {
249
- if (stack_pointer == 1) throw new Error('out of js stack');
250
- heap[--stack_pointer] = obj;
251
- return stack_pointer;
238
+ function handleError(f, args) {
239
+ try {
240
+ return f.apply(this, args);
241
+ } catch (e) {
242
+ wasm.__wbindgen_exn_store(addHeapObject(e));
243
+ }
252
244
  }
253
245
  /**
254
- * @param {string} json
246
+ * @param {string} config_json
255
247
  * @param {string} private_key
256
248
  * @param {number} log_level_num
257
249
  * @param {bigint} hasten_multiplier
258
250
  * @param {boolean} delete_old_blocks
259
251
  * @returns {Promise<any>}
260
252
  */
261
- module.exports.initialize = function(json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
262
- const ret = wasm.initialize(addHeapObject(json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
253
+ module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
254
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
263
255
  return takeObject(ret);
264
256
  };
265
257
 
@@ -288,23 +280,18 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
288
280
  };
289
281
 
290
282
  /**
291
- * @param {bigint} amt
292
- * @param {bigint} bid
293
- * @param {bigint} tid
294
- * @param {bigint} sid
295
- * @param {number} num
283
+ * @param {bigint} num
296
284
  * @param {bigint} deposit
297
- * @param {bigint} change
298
285
  * @param {string} data
299
286
  * @param {bigint} fee
300
287
  * @param {string} recipient_public_key
301
288
  * @param {string} nft_type
302
289
  * @returns {Promise<WasmTransaction>}
303
290
  */
304
- 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) {
305
292
  const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
293
  const len0 = WASM_VECTOR_LEN;
307
- 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));
308
295
  return takeObject(ret);
309
296
  };
310
297
 
@@ -324,6 +311,30 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
324
311
  return takeObject(ret);
325
312
  };
326
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
+
327
338
  /**
328
339
  * @returns {Promise<Array<any>>}
329
340
  */
@@ -697,7 +708,22 @@ module.exports.get_peer_stats = function() {
697
708
  return takeObject(ret);
698
709
  };
699
710
 
700
- function __wbg_adapter_420(arg0, arg1, arg2, arg3) {
711
+ /**
712
+ * @returns {Promise<string>}
713
+ */
714
+ module.exports.get_congestion_stats = function() {
715
+ const ret = wasm.get_congestion_stats();
716
+ return takeObject(ret);
717
+ };
718
+
719
+ let stack_pointer = 128;
720
+
721
+ function addBorrowedObject(obj) {
722
+ if (stack_pointer == 1) throw new Error('out of js stack');
723
+ heap[--stack_pointer] = obj;
724
+ return stack_pointer;
725
+ }
726
+ function __wbg_adapter_424(arg0, arg1, arg2, arg3) {
701
727
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
702
728
  }
703
729
 
@@ -2412,6 +2438,28 @@ class WasmWallet {
2412
2438
  const ret = wasm.wasmwallet_set_key_list(this.__wbg_ptr, addHeapObject(key_list));
2413
2439
  return takeObject(ret);
2414
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
+ }
2415
2463
  }
2416
2464
  module.exports.WasmWallet = WasmWallet;
2417
2465
 
@@ -2458,40 +2506,40 @@ class WasmWalletSlip {
2458
2506
  * @returns {bigint}
2459
2507
  */
2460
2508
  get_amount() {
2461
- const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
2509
+ const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2462
2510
  return BigInt.asUintN(64, ret);
2463
2511
  }
2464
2512
  /**
2465
2513
  * @param {bigint} amount
2466
2514
  */
2467
2515
  set_amount(amount) {
2468
- wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2516
+ wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2469
2517
  }
2470
2518
  /**
2471
2519
  * @returns {bigint}
2472
2520
  */
2473
2521
  get_block_id() {
2474
- const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2522
+ const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2475
2523
  return BigInt.asUintN(64, ret);
2476
2524
  }
2477
2525
  /**
2478
2526
  * @param {bigint} block_id
2479
2527
  */
2480
2528
  set_block_id(block_id) {
2481
- wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2529
+ wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2482
2530
  }
2483
2531
  /**
2484
2532
  * @returns {bigint}
2485
2533
  */
2486
2534
  get_tx_ordinal() {
2487
- const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2535
+ const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2488
2536
  return BigInt.asUintN(64, ret);
2489
2537
  }
2490
2538
  /**
2491
2539
  * @param {bigint} ordinal
2492
2540
  */
2493
2541
  set_tx_ordinal(ordinal) {
2494
- wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2542
+ wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2495
2543
  }
2496
2544
  /**
2497
2545
  * @returns {number}
@@ -2559,28 +2607,37 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2559
2607
  takeObject(arg0);
2560
2608
  };
2561
2609
 
2562
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2563
- const ret = BigInt.asUintN(64, arg0);
2564
- return addHeapObject(ret);
2565
- };
2566
-
2567
2610
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2568
2611
  const ret = getStringFromWasm0(arg0, arg1);
2569
2612
  return addHeapObject(ret);
2570
2613
  };
2571
2614
 
2615
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2616
+ const obj = getObject(arg1);
2617
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2618
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2619
+ var len1 = WASM_VECTOR_LEN;
2620
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2621
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2622
+ };
2623
+
2572
2624
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
2573
2625
  const ret = WasmTransaction.__wrap(arg0);
2574
2626
  return addHeapObject(ret);
2575
2627
  };
2576
2628
 
2577
- module.exports.__wbg_wasmnft_new = function(arg0) {
2578
- const ret = WasmNFT.__wrap(arg0);
2629
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2630
+ const ret = BigInt.asUintN(64, arg0);
2579
2631
  return addHeapObject(ret);
2580
2632
  };
2581
2633
 
2582
- module.exports.__wbg_wasmslip_new = function(arg0) {
2583
- const ret = WasmSlip.__wrap(arg0);
2634
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2635
+ const ret = WasmBlock.__wrap(arg0);
2636
+ return addHeapObject(ret);
2637
+ };
2638
+
2639
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2640
+ const ret = WasmBlockchain.__wrap(arg0);
2584
2641
  return addHeapObject(ret);
2585
2642
  };
2586
2643
 
@@ -2589,22 +2646,18 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2589
2646
  return addHeapObject(ret);
2590
2647
  };
2591
2648
 
2592
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2593
- const obj = getObject(arg1);
2594
- const ret = typeof(obj) === 'string' ? obj : undefined;
2595
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2596
- var len1 = WASM_VECTOR_LEN;
2597
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2598
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2649
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2650
+ const ret = WasmSlip.__wrap(arg0);
2651
+ return addHeapObject(ret);
2599
2652
  };
2600
2653
 
2601
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2602
- const ret = WasmPeer.__wrap(arg0);
2654
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2655
+ const ret = WasmNFT.__wrap(arg0);
2603
2656
  return addHeapObject(ret);
2604
2657
  };
2605
2658
 
2606
- module.exports.__wbg_wasmblock_new = function(arg0) {
2607
- const ret = WasmBlock.__wrap(arg0);
2659
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2660
+ const ret = WasmPeer.__wrap(arg0);
2608
2661
  return addHeapObject(ret);
2609
2662
  };
2610
2663
 
@@ -2618,13 +2671,8 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2618
2671
  return addHeapObject(ret);
2619
2672
  };
2620
2673
 
2621
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2622
- const ret = WasmBlockchain.__wrap(arg0);
2623
- return addHeapObject(ret);
2624
- };
2625
-
2626
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2627
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2674
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2675
+ const ret = WasmHop.__wrap(arg0);
2628
2676
  return addHeapObject(ret);
2629
2677
  };
2630
2678
 
@@ -2644,15 +2692,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2644
2692
  return ret;
2645
2693
  };
2646
2694
 
2647
- module.exports.__wbg_sendmessage_e3719ad51d14714c = function(arg0, arg1) {
2695
+ module.exports.__wbg_sendmessage_04cd2cc296291ab1 = function(arg0, arg1) {
2648
2696
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2649
2697
  };
2650
2698
 
2651
- module.exports.__wbg_sendmessagetoall_fce9e8a9b1520b50 = function(arg0, arg1) {
2699
+ module.exports.__wbg_sendmessagetoall_d871d7ab994e5ca3 = function(arg0, arg1) {
2652
2700
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2653
2701
  };
2654
2702
 
2655
- module.exports.__wbg_connecttopeer_493c98d991aeec52 = function() { return handleError(function (arg0, arg1, arg2) {
2703
+ module.exports.__wbg_connecttopeer_96ce8deb117f8977 = function() { return handleError(function (arg0, arg1, arg2) {
2656
2704
  let deferred0_0;
2657
2705
  let deferred0_1;
2658
2706
  try {
@@ -2665,12 +2713,12 @@ module.exports.__wbg_connecttopeer_493c98d991aeec52 = function() { return handle
2665
2713
  }
2666
2714
  }, arguments) };
2667
2715
 
2668
- module.exports.__wbg_disconnectfrompeer_15eb16e5f3b58569 = function() { return handleError(function (arg0) {
2716
+ module.exports.__wbg_disconnectfrompeer_f91565d689c4018e = function() { return handleError(function (arg0) {
2669
2717
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2670
2718
  return addHeapObject(ret);
2671
2719
  }, arguments) };
2672
2720
 
2673
- module.exports.__wbg_fetchblockfrompeer_c2a8fd4e320c63a0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2721
+ module.exports.__wbg_fetchblockfrompeer_26f935292dd4740a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2674
2722
  let deferred0_0;
2675
2723
  let deferred0_1;
2676
2724
  try {
@@ -2683,7 +2731,7 @@ module.exports.__wbg_fetchblockfrompeer_c2a8fd4e320c63a0 = function() { return h
2683
2731
  }
2684
2732
  }, arguments) };
2685
2733
 
2686
- module.exports.__wbg_writevalue_532d3d2233e98f52 = function(arg0, arg1, arg2) {
2734
+ module.exports.__wbg_writevalue_2adf6c645dd74afb = function(arg0, arg1, arg2) {
2687
2735
  let deferred0_0;
2688
2736
  let deferred0_1;
2689
2737
  try {
@@ -2695,7 +2743,7 @@ module.exports.__wbg_writevalue_532d3d2233e98f52 = function(arg0, arg1, arg2) {
2695
2743
  }
2696
2744
  };
2697
2745
 
2698
- module.exports.__wbg_appendvalue_662936daac4a5b0e = function(arg0, arg1, arg2) {
2746
+ module.exports.__wbg_appendvalue_af10138b206f4b36 = function(arg0, arg1, arg2) {
2699
2747
  let deferred0_0;
2700
2748
  let deferred0_1;
2701
2749
  try {
@@ -2707,7 +2755,7 @@ module.exports.__wbg_appendvalue_662936daac4a5b0e = function(arg0, arg1, arg2) {
2707
2755
  }
2708
2756
  };
2709
2757
 
2710
- module.exports.__wbg_flushdata_511d8aa6d443a83d = function(arg0, arg1) {
2758
+ module.exports.__wbg_flushdata_e7318828f427d963 = function(arg0, arg1) {
2711
2759
  let deferred0_0;
2712
2760
  let deferred0_1;
2713
2761
  try {
@@ -2719,7 +2767,7 @@ module.exports.__wbg_flushdata_511d8aa6d443a83d = function(arg0, arg1) {
2719
2767
  }
2720
2768
  };
2721
2769
 
2722
- module.exports.__wbg_readvalue_0bfb240761c739d6 = function() { return handleError(function (arg0, arg1) {
2770
+ module.exports.__wbg_readvalue_2f89ba1bc085a968 = function() { return handleError(function (arg0, arg1) {
2723
2771
  let deferred0_0;
2724
2772
  let deferred0_1;
2725
2773
  try {
@@ -2732,12 +2780,12 @@ module.exports.__wbg_readvalue_0bfb240761c739d6 = function() { return handleErro
2732
2780
  }
2733
2781
  }, arguments) };
2734
2782
 
2735
- module.exports.__wbg_loadblockfilelist_878f4d10d309f4cf = function() { return handleError(function () {
2783
+ module.exports.__wbg_loadblockfilelist_c8f907d0d8907617 = function() { return handleError(function () {
2736
2784
  const ret = MsgHandler.load_block_file_list();
2737
2785
  return addHeapObject(ret);
2738
2786
  }, arguments) };
2739
2787
 
2740
- module.exports.__wbg_isexistingfile_b472c19fc3f3e390 = function() { return handleError(function (arg0, arg1) {
2788
+ module.exports.__wbg_isexistingfile_0e3adedf12d11740 = function() { return handleError(function (arg0, arg1) {
2741
2789
  let deferred0_0;
2742
2790
  let deferred0_1;
2743
2791
  try {
@@ -2750,7 +2798,7 @@ module.exports.__wbg_isexistingfile_b472c19fc3f3e390 = function() { return handl
2750
2798
  }
2751
2799
  }, arguments) };
2752
2800
 
2753
- module.exports.__wbg_removevalue_8e6e2c062de19687 = function() { return handleError(function (arg0, arg1) {
2801
+ module.exports.__wbg_removevalue_d87fb7513d9108b9 = function() { return handleError(function (arg0, arg1) {
2754
2802
  let deferred0_0;
2755
2803
  let deferred0_1;
2756
2804
  try {
@@ -2763,7 +2811,7 @@ module.exports.__wbg_removevalue_8e6e2c062de19687 = function() { return handleEr
2763
2811
  }
2764
2812
  }, arguments) };
2765
2813
 
2766
- module.exports.__wbg_ensureblockdirectoryexists_26facff149bb01da = function() { return handleError(function (arg0, arg1) {
2814
+ module.exports.__wbg_ensureblockdirectoryexists_e99187ae3263c2f9 = function() { return handleError(function (arg0, arg1) {
2767
2815
  let deferred0_0;
2768
2816
  let deferred0_1;
2769
2817
  try {
@@ -2775,19 +2823,19 @@ module.exports.__wbg_ensureblockdirectoryexists_26facff149bb01da = function() {
2775
2823
  }
2776
2824
  }, arguments) };
2777
2825
 
2778
- module.exports.__wbg_processapicall_e83f36d0ce3d92d4 = function(arg0, arg1, arg2) {
2826
+ module.exports.__wbg_processapicall_c559108554ea39c7 = function(arg0, arg1, arg2) {
2779
2827
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2780
2828
  };
2781
2829
 
2782
- module.exports.__wbg_processapisuccess_787755255636720f = function(arg0, arg1, arg2) {
2830
+ module.exports.__wbg_processapisuccess_8b26c4fdbc034c17 = function(arg0, arg1, arg2) {
2783
2831
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2784
2832
  };
2785
2833
 
2786
- module.exports.__wbg_processapierror_84940f170aadbc5b = function(arg0, arg1, arg2) {
2834
+ module.exports.__wbg_processapierror_8014e43129390345 = function(arg0, arg1, arg2) {
2787
2835
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2788
2836
  };
2789
2837
 
2790
- module.exports.__wbg_sendinterfaceevent_7dc37fec97ed4c9b = function(arg0, arg1, arg2, arg3, arg4) {
2838
+ module.exports.__wbg_sendinterfaceevent_a4fd023480c030ca = function(arg0, arg1, arg2, arg3, arg4) {
2791
2839
  let deferred0_0;
2792
2840
  let deferred0_1;
2793
2841
  let deferred1_0;
@@ -2804,7 +2852,7 @@ module.exports.__wbg_sendinterfaceevent_7dc37fec97ed4c9b = function(arg0, arg1,
2804
2852
  }
2805
2853
  };
2806
2854
 
2807
- module.exports.__wbg_sendblocksuccess_dbde6f387ab3df0f = function(arg0, arg1, arg2) {
2855
+ module.exports.__wbg_sendblocksuccess_f2022b2ffeeea2ad = function(arg0, arg1, arg2) {
2808
2856
  let deferred0_0;
2809
2857
  let deferred0_1;
2810
2858
  try {
@@ -2816,11 +2864,11 @@ module.exports.__wbg_sendblocksuccess_dbde6f387ab3df0f = function(arg0, arg1, ar
2816
2864
  }
2817
2865
  };
2818
2866
 
2819
- module.exports.__wbg_sendwalletupdate_e7184da62c027e89 = function() {
2867
+ module.exports.__wbg_sendwalletupdate_dd76c4952c23788b = function() {
2820
2868
  MsgHandler.send_wallet_update();
2821
2869
  };
2822
2870
 
2823
- module.exports.__wbg_sendnewversionalert_0611167010c3d4ac = function(arg0, arg1, arg2) {
2871
+ module.exports.__wbg_sendnewversionalert_4dacaca6a38d69a5 = function(arg0, arg1, arg2) {
2824
2872
  let deferred0_0;
2825
2873
  let deferred0_1;
2826
2874
  try {
@@ -2832,19 +2880,19 @@ module.exports.__wbg_sendnewversionalert_0611167010c3d4ac = function(arg0, arg1,
2832
2880
  }
2833
2881
  };
2834
2882
 
2835
- module.exports.__wbg_sendblockfetchstatusevent_2331bb7e64d955c5 = function(arg0) {
2883
+ module.exports.__wbg_sendblockfetchstatusevent_5681b839f3966071 = function(arg0) {
2836
2884
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2837
2885
  };
2838
2886
 
2839
- module.exports.__wbg_savewallet_e688fddb51819f02 = function() {
2887
+ module.exports.__wbg_savewallet_22aad28d2ecb9c5b = function() {
2840
2888
  MsgHandler.save_wallet();
2841
2889
  };
2842
2890
 
2843
- module.exports.__wbg_loadwallet_f26fea4dfa2a73a7 = function() {
2891
+ module.exports.__wbg_loadwallet_c3c32668ec8fdfec = function() {
2844
2892
  MsgHandler.load_wallet();
2845
2893
  };
2846
2894
 
2847
- module.exports.__wbg_getmyservices_ae02468ad22df4ca = function() {
2895
+ module.exports.__wbg_getmyservices_db442a658d833e43 = function() {
2848
2896
  const ret = MsgHandler.get_my_services();
2849
2897
  _assertClass(ret, WasmPeerServiceList);
2850
2898
  var ptr1 = ret.__destroy_into_raw();
@@ -2856,8 +2904,8 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2856
2904
  return addHeapObject(ret);
2857
2905
  };
2858
2906
 
2859
- module.exports.__wbg_wasmhop_new = function(arg0) {
2860
- const ret = WasmHop.__wrap(arg0);
2907
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2908
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2861
2909
  return addHeapObject(ret);
2862
2910
  };
2863
2911
 
@@ -3129,7 +3177,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
3129
3177
  const a = state0.a;
3130
3178
  state0.a = 0;
3131
3179
  try {
3132
- return __wbg_adapter_420(a, state0.b, arg0, arg1);
3180
+ return __wbg_adapter_424(a, state0.b, arg0, arg1);
3133
3181
  } finally {
3134
3182
  state0.a = a;
3135
3183
  }
@@ -3227,8 +3275,8 @@ module.exports.__wbindgen_memory = function() {
3227
3275
  return addHeapObject(ret);
3228
3276
  };
3229
3277
 
3230
- module.exports.__wbindgen_closure_wrapper1372 = function(arg0, arg1, arg2) {
3231
- const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_38);
3278
+ module.exports.__wbindgen_closure_wrapper1517 = function(arg0, arg1, arg2) {
3279
+ const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_38);
3232
3280
  return addHeapObject(ret);
3233
3281
  };
3234
3282
 
Binary file