saito-wasm 0.2.173 → 0.2.175

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-7be8883e9ab9764a/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-c6993c19012bb0e6/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -8,23 +8,7 @@ heap.push(undefined, null, true, false);
8
8
 
9
9
  function getObject(idx) { return heap[idx]; }
10
10
 
11
- let heap_next = heap.length;
12
-
13
- function dropObject(idx) {
14
- if (idx < 132) return;
15
- heap[idx] = heap_next;
16
- heap_next = idx;
17
- }
18
-
19
- function takeObject(idx) {
20
- const ret = getObject(idx);
21
- dropObject(idx);
22
- return ret;
23
- }
24
-
25
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
-
27
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
11
+ let WASM_VECTOR_LEN = 0;
28
12
 
29
13
  let cachedUint8Memory0 = null;
30
14
 
@@ -35,22 +19,6 @@ function getUint8Memory0() {
35
19
  return cachedUint8Memory0;
36
20
  }
37
21
 
38
- function getStringFromWasm0(ptr, len) {
39
- ptr = ptr >>> 0;
40
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
- }
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
- let WASM_VECTOR_LEN = 0;
53
-
54
22
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
55
23
 
56
24
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,6 +86,38 @@ function getInt32Memory0() {
118
86
  return cachedInt32Memory0;
119
87
  }
120
88
 
89
+ let heap_next = heap.length;
90
+
91
+ function dropObject(idx) {
92
+ if (idx < 132) return;
93
+ heap[idx] = heap_next;
94
+ heap_next = idx;
95
+ }
96
+
97
+ function takeObject(idx) {
98
+ const ret = getObject(idx);
99
+ dropObject(idx);
100
+ return ret;
101
+ }
102
+
103
+ function addHeapObject(obj) {
104
+ if (heap_next === heap.length) heap.push(heap.length + 1);
105
+ const idx = heap_next;
106
+ heap_next = heap[idx];
107
+
108
+ heap[idx] = obj;
109
+ return idx;
110
+ }
111
+
112
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
113
+
114
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
115
+
116
+ function getStringFromWasm0(ptr, len) {
117
+ ptr = ptr >>> 0;
118
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
119
+ }
120
+
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_38(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18f9d53151d93e96(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f20d323127f6aa2(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function _assertClass(instance, klass) {
@@ -243,51 +243,89 @@ function addBorrowedObject(obj) {
243
243
  /**
244
244
  * @returns {Promise<string>}
245
245
  */
246
- export function get_peer_stats() {
247
- const ret = wasm.get_peer_stats();
246
+ export function get_latest_block_hash() {
247
+ const ret = wasm.get_latest_block_hash();
248
+ return takeObject(ret);
249
+ }
250
+
251
+ /**
252
+ * @param {string} public_key
253
+ * @returns {Promise<Array<any>>}
254
+ */
255
+ export function get_account_slips(public_key) {
256
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
257
+ return takeObject(ret);
258
+ }
259
+
260
+ /**
261
+ * @param {bigint} peer_index
262
+ * @returns {Promise<void>}
263
+ */
264
+ export function process_peer_disconnection(peer_index) {
265
+ const ret = wasm.process_peer_disconnection(peer_index);
266
+ return takeObject(ret);
267
+ }
268
+
269
+ /**
270
+ * @returns {Promise<any>}
271
+ */
272
+ export function get_confirmations() {
273
+ const ret = wasm.get_confirmations();
248
274
  return takeObject(ret);
249
275
  }
250
276
 
251
277
  /**
278
+ * @param {bigint} amt
252
279
  * @param {string} slip1_utxo_key
253
280
  * @param {string} slip2_utxo_key
254
281
  * @param {string} slip3_utxo_key
255
- * @param {number} left_count
256
- * @param {number} right_count
282
+ * @param {string} recipient_public_key
257
283
  * @param {Uint8Array} tx_msg
258
284
  * @returns {Promise<WasmTransaction>}
259
285
  */
260
- export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
261
- const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
286
+ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
287
+ const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
262
288
  return takeObject(ret);
263
289
  }
264
290
 
265
291
  /**
266
- * @param {Uint8Array} buffer
267
- * @param {bigint} peer_index
268
- * @returns {Promise<void>}
292
+ * @param {string} config_json
293
+ * @param {string} private_key
294
+ * @param {number} log_level_num
295
+ * @param {bigint} hasten_multiplier
296
+ * @param {boolean} delete_old_blocks
297
+ * @returns {Promise<any>}
269
298
  */
270
- export function process_msg_buffer_from_peer(buffer, peer_index) {
271
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
299
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
300
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
272
301
  return takeObject(ret);
273
302
  }
274
303
 
275
304
  /**
276
- * @param {number} major
277
- * @param {number} minor
278
- * @param {number} patch
305
+ * @param {WasmTransaction} tx
279
306
  * @returns {Promise<void>}
280
307
  */
281
- export function set_wallet_version(major, minor, patch) {
282
- const ret = wasm.set_wallet_version(major, minor, patch);
308
+ export function propagate_transaction(tx) {
309
+ _assertClass(tx, WasmTransaction);
310
+ const ret = wasm.propagate_transaction(tx.__wbg_ptr);
283
311
  return takeObject(ret);
284
312
  }
285
313
 
286
314
  /**
315
+ * @param {Array<any>} keys
316
+ * @returns {Promise<WasmBalanceSnapshot>}
317
+ */
318
+ export function get_balance_snapshot(keys) {
319
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
320
+ return takeObject(ret);
321
+ }
322
+
323
+ /**
324
+ * @param {Uint8Array} buffer
287
325
  * @returns {string}
288
326
  */
289
- export function generate_private_key() {
290
- const ret = wasm.generate_private_key();
327
+ export function hash(buffer) {
328
+ const ret = wasm.hash(addHeapObject(buffer));
291
329
  return takeObject(ret);
292
330
  }
293
331
 
@@ -304,18 +342,14 @@ export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
304
342
  }
305
343
 
306
344
  /**
307
- * @returns {Promise<boolean>}
308
- */
309
- export function produce_block_with_gt() {
310
- const ret = wasm.produce_block_with_gt();
311
- return takeObject(ret);
312
- }
313
-
314
- /**
315
- * @returns {Promise<Array<any>>}
345
+ * @param {Uint8Array} buffer
346
+ * @param {Uint8Array} hash
347
+ * @param {bigint} block_id
348
+ * @param {bigint} peer_index
349
+ * @returns {Promise<void>}
316
350
  */
317
- export function get_nft_list() {
318
- const ret = wasm.get_nft_list();
351
+ export function process_fetched_block(buffer, hash, block_id, peer_index) {
352
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
319
353
  return takeObject(ret);
320
354
  }
321
355
 
@@ -331,213 +365,237 @@ export function process_failed_block_fetch(hash, block_id, peer_index) {
331
365
  }
332
366
 
333
367
  /**
334
- * @returns {Promise<WasmBlockchain>}
368
+ * @param {number} major
369
+ * @param {number} minor
370
+ * @param {number} patch
371
+ * @returns {Promise<void>}
335
372
  */
336
- export function get_blockchain() {
337
- const ret = wasm.get_blockchain();
373
+ export function set_wallet_version(major, minor, patch) {
374
+ const ret = wasm.set_wallet_version(major, minor, patch);
338
375
  return takeObject(ret);
339
376
  }
340
377
 
341
378
  /**
342
- * @param {bigint} peer_index
343
- * @param {string} public_key
379
+ * @param {WasmBalanceSnapshot} snapshot
344
380
  * @returns {Promise<void>}
345
381
  */
346
- export function process_stun_peer(peer_index, public_key) {
347
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
382
+ export function update_from_balance_snapshot(snapshot) {
383
+ _assertClass(snapshot, WasmBalanceSnapshot);
384
+ var ptr0 = snapshot.__destroy_into_raw();
385
+ const ret = wasm.update_from_balance_snapshot(ptr0);
348
386
  return takeObject(ret);
349
387
  }
350
388
 
351
389
  /**
352
- * @param {bigint} num
353
- * @param {bigint} deposit
354
- * @param {Uint8Array} tx_msg
355
- * @param {bigint} fee
356
- * @param {string} recipient_public_key
357
- * @param {string} nft_type
358
- * @returns {Promise<WasmTransaction>}
390
+ * @param {string} private_key
391
+ * @returns {string}
359
392
  */
360
- export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
361
- const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
362
- return takeObject(ret);
393
+ export function generate_public_key(private_key) {
394
+ try {
395
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
396
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
397
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
398
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
399
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
400
+ if (r2) {
401
+ throw takeObject(r1);
402
+ }
403
+ return takeObject(r0);
404
+ } finally {
405
+ wasm.__wbindgen_add_to_stack_pointer(16);
406
+ }
363
407
  }
364
408
 
365
409
  /**
366
- * @param {WasmBalanceSnapshot} snapshot
410
+ * @param {Uint8Array} buffer
411
+ * @param {string} signature
412
+ * @param {string} public_key
413
+ * @returns {boolean}
414
+ */
415
+ export function verify_signature(buffer, signature, public_key) {
416
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
417
+ return ret !== 0;
418
+ }
419
+
420
+ /**
421
+ * @param {Uint8Array} buffer
422
+ * @param {bigint} peer_index
367
423
  * @returns {Promise<void>}
368
424
  */
369
- export function update_from_balance_snapshot(snapshot) {
370
- _assertClass(snapshot, WasmBalanceSnapshot);
371
- var ptr0 = snapshot.__destroy_into_raw();
372
- const ret = wasm.update_from_balance_snapshot(ptr0);
425
+ export function process_msg_buffer_from_peer(buffer, peer_index) {
426
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
373
427
  return takeObject(ret);
374
428
  }
375
429
 
376
430
  /**
377
- * @returns {Promise<string>}
431
+ * @param {bigint} threshold
432
+ * @returns {Promise<void>}
378
433
  */
379
- export function get_latest_block_hash() {
380
- const ret = wasm.get_latest_block_hash();
434
+ export function write_issuance_file(threshold) {
435
+ const ret = wasm.write_issuance_file(threshold);
381
436
  return takeObject(ret);
382
437
  }
383
438
 
384
439
  /**
385
- * @param {Array<any>} keys
386
- * @returns {Promise<WasmBalanceSnapshot>}
440
+ * @returns {Promise<bigint>}
387
441
  */
388
- export function get_balance_snapshot(keys) {
389
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
442
+ export function get_next_peer_index() {
443
+ const ret = wasm.get_next_peer_index();
390
444
  return takeObject(ret);
391
445
  }
392
446
 
393
447
  /**
394
448
  * @returns {Promise<string>}
395
449
  */
396
- export function get_stats() {
397
- const ret = wasm.get_stats();
450
+ export function get_congestion_stats() {
451
+ const ret = wasm.get_congestion_stats();
398
452
  return takeObject(ret);
399
453
  }
400
454
 
401
455
  /**
402
- * @param {Uint8Array} buffer
403
- * @returns {string}
456
+ * @param {bigint} num
457
+ * @param {bigint} deposit
458
+ * @param {Uint8Array} tx_msg
459
+ * @param {bigint} fee
460
+ * @param {string} recipient_public_key
461
+ * @param {string} nft_type
462
+ * @returns {Promise<WasmTransaction>}
404
463
  */
405
- export function hash(buffer) {
406
- const ret = wasm.hash(addHeapObject(buffer));
464
+ export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
465
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
407
466
  return takeObject(ret);
408
467
  }
409
468
 
410
469
  /**
411
- * @returns {Promise<string>}
470
+ * @returns {Promise<Array<any>>}
412
471
  */
413
- export function get_congestion_stats() {
414
- const ret = wasm.get_congestion_stats();
472
+ export function get_mempool_txs() {
473
+ const ret = wasm.get_mempool_txs();
415
474
  return takeObject(ret);
416
475
  }
417
476
 
418
477
  /**
419
- * @param {Uint8Array} buffer
420
- * @param {Uint8Array} hash
421
- * @param {bigint} block_id
422
- * @param {bigint} peer_index
423
478
  * @returns {Promise<void>}
424
479
  */
425
- export function process_fetched_block(buffer, hash, block_id, peer_index) {
426
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
480
+ export function start_from_received_ghost_chain() {
481
+ const ret = wasm.start_from_received_ghost_chain();
427
482
  return takeObject(ret);
428
483
  }
429
484
 
430
485
  /**
431
- * @param {Uint8Array} buffer
432
- * @param {number} msg_index
433
- * @param {bigint} peer_index
486
+ * @param {bigint} duration_in_ms
434
487
  * @returns {Promise<void>}
435
488
  */
436
- export function send_api_success(buffer, msg_index, peer_index) {
437
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
489
+ export function process_timer_event(duration_in_ms) {
490
+ const ret = wasm.process_timer_event(duration_in_ms);
438
491
  return takeObject(ret);
439
492
  }
440
493
 
441
494
  /**
442
- * @param {string} slip1_utxo_key
443
- * @param {string} slip2_utxo_key
444
- * @param {string} slip3_utxo_key
445
- * @returns {Promise<WasmTransaction>}
495
+ * @param {bigint} peer_index
496
+ * @param {string} ip
497
+ * @returns {Promise<void>}
446
498
  */
447
- export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
448
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
499
+ export function process_new_peer(peer_index, ip) {
500
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
449
501
  return takeObject(ret);
450
502
  }
451
503
 
452
504
  /**
453
- * @param {bigint} amt
454
- * @param {string} slip1_utxo_key
455
- * @param {string} slip2_utxo_key
456
- * @param {string} slip3_utxo_key
457
- * @param {string} recipient_public_key
458
- * @param {Uint8Array} tx_msg
459
- * @returns {Promise<WasmTransaction>}
505
+ * @param {bigint} current_time
506
+ * @returns {Promise<void>}
460
507
  */
461
- export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
462
- const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
508
+ export function process_stat_interval(current_time) {
509
+ const ret = wasm.process_stat_interval(current_time);
463
510
  return takeObject(ret);
464
511
  }
465
512
 
466
513
  /**
467
514
  * @param {bigint} peer_index
468
- * @returns {Promise<void>}
515
+ * @returns {Promise<WasmPeer | undefined>}
469
516
  */
470
- export function process_peer_disconnection(peer_index) {
471
- const ret = wasm.process_peer_disconnection(peer_index);
517
+ export function get_peer(peer_index) {
518
+ const ret = wasm.get_peer(peer_index);
472
519
  return takeObject(ret);
473
520
  }
474
521
 
475
522
  /**
476
- * @returns {Promise<bigint>}
523
+ * @param {Uint8Array} buffer
524
+ * @param {number} msg_index
525
+ * @param {bigint} peer_index
526
+ * @returns {Promise<void>}
477
527
  */
478
- export function get_next_peer_index() {
479
- const ret = wasm.get_next_peer_index();
528
+ export function send_api_call(buffer, msg_index, peer_index) {
529
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
480
530
  return takeObject(ret);
481
531
  }
482
532
 
483
533
  /**
484
- * @param {string} public_key
485
- * @param {bigint} amount
486
- * @param {bigint} fee
487
- * @param {boolean} force_merge
534
+ * @param {string} slip1_utxo_key
535
+ * @param {string} slip2_utxo_key
536
+ * @param {string} slip3_utxo_key
537
+ * @param {Uint8Array} tx_msg
488
538
  * @returns {Promise<WasmTransaction>}
489
539
  */
490
- export function create_transaction(public_key, amount, fee, force_merge) {
491
- const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
540
+ export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
541
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
492
542
  return takeObject(ret);
493
543
  }
494
544
 
495
545
  /**
496
546
  * @param {Uint8Array} buffer
497
- * @param {string} signature
498
- * @param {string} public_key
499
- * @returns {boolean}
547
+ * @param {string} private_key
548
+ * @returns {string}
500
549
  */
501
- export function verify_signature(buffer, signature, public_key) {
502
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
503
- return ret !== 0;
550
+ export function sign_buffer(buffer, private_key) {
551
+ try {
552
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
553
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
554
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
555
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
556
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
557
+ if (r2) {
558
+ throw takeObject(r1);
559
+ }
560
+ return takeObject(r0);
561
+ } finally {
562
+ wasm.__wbindgen_add_to_stack_pointer(16);
563
+ }
504
564
  }
505
565
 
506
566
  /**
507
- * @returns {Promise<void>}
567
+ * @param {string} key
568
+ * @returns {boolean}
508
569
  */
509
- export function start_from_received_ghost_chain() {
510
- const ret = wasm.start_from_received_ghost_chain();
511
- return takeObject(ret);
570
+ export function is_valid_public_key(key) {
571
+ const ret = wasm.is_valid_public_key(addHeapObject(key));
572
+ return ret !== 0;
512
573
  }
513
574
 
514
575
  /**
515
- * @param {bigint} peer_index
516
- * @returns {Promise<void>}
576
+ * @returns {Promise<WasmWallet>}
517
577
  */
518
- export function remove_stun_peer(peer_index) {
519
- const ret = wasm.remove_stun_peer(peer_index);
578
+ export function get_wallet() {
579
+ const ret = wasm.get_wallet();
520
580
  return takeObject(ret);
521
581
  }
522
582
 
523
583
  /**
524
- * @param {string} config_json
525
- * @param {string} private_key
526
- * @param {number} log_level_num
527
- * @param {bigint} hasten_multiplier
528
- * @param {boolean} delete_old_blocks
529
- * @returns {Promise<any>}
530
- */
531
- export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
532
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
584
+ * @param {string} block_hash
585
+ * @returns {Promise<WasmBlock>}
586
+ */
587
+ export function get_block(block_hash) {
588
+ const ret = wasm.get_block(addHeapObject(block_hash));
533
589
  return takeObject(ret);
534
590
  }
535
591
 
536
592
  /**
537
- * @returns {Promise<WasmWallet>}
593
+ * @param {bigint} peer_index
594
+ * @param {string} public_key
595
+ * @returns {Promise<void>}
538
596
  */
539
- export function get_wallet() {
540
- const ret = wasm.get_wallet();
597
+ export function process_stun_peer(peer_index, public_key) {
598
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
541
599
  return takeObject(ret);
542
600
  }
543
601
 
@@ -553,110 +611,100 @@ export function send_api_error(buffer, msg_index, peer_index) {
553
611
  }
554
612
 
555
613
  /**
556
- * @returns {Promise<any>}
614
+ * @returns {Promise<WasmBlockchain>}
557
615
  */
558
- export function get_confirmations() {
559
- const ret = wasm.get_confirmations();
616
+ export function get_blockchain() {
617
+ const ret = wasm.get_blockchain();
560
618
  return takeObject(ret);
561
619
  }
562
620
 
563
621
  /**
564
- * @returns {Promise<Array<any>>}
622
+ * @returns {Promise<void>}
565
623
  */
566
- export function get_mempool_txs() {
567
- const ret = wasm.get_mempool_txs();
624
+ export function disable_producing_blocks_by_timer() {
625
+ const ret = wasm.disable_producing_blocks_by_timer();
568
626
  return takeObject(ret);
569
627
  }
570
628
 
571
629
  /**
572
- * @param {WasmTransaction} tx
573
- * @returns {Promise<void>}
630
+ * @returns {Promise<string>}
574
631
  */
575
- export function propagate_transaction(tx) {
576
- _assertClass(tx, WasmTransaction);
577
- const ret = wasm.propagate_transaction(tx.__wbg_ptr);
632
+ export function get_stats() {
633
+ const ret = wasm.get_stats();
578
634
  return takeObject(ret);
579
635
  }
580
636
 
581
637
  /**
582
- * @returns {Promise<void>}
638
+ * @returns {Promise<Array<any>>}
583
639
  */
584
- export function disable_producing_blocks_by_timer() {
585
- const ret = wasm.disable_producing_blocks_by_timer();
640
+ export function get_nft_list() {
641
+ const ret = wasm.get_nft_list();
586
642
  return takeObject(ret);
587
643
  }
588
644
 
589
645
  /**
590
- * @param {bigint} peer_index
591
- * @param {string} ip
592
- * @returns {Promise<void>}
646
+ * @returns {Promise<Array<any>>}
593
647
  */
594
- export function process_new_peer(peer_index, ip) {
595
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
648
+ export function get_peers() {
649
+ const ret = wasm.get_peers();
596
650
  return takeObject(ret);
597
651
  }
598
652
 
599
653
  /**
600
654
  * @param {bigint} peer_index
601
- * @returns {Promise<WasmPeer | undefined>}
655
+ * @returns {Promise<void>}
602
656
  */
603
- export function get_peer(peer_index) {
604
- const ret = wasm.get_peer(peer_index);
657
+ export function remove_stun_peer(peer_index) {
658
+ const ret = wasm.remove_stun_peer(peer_index);
605
659
  return takeObject(ret);
606
660
  }
607
661
 
608
662
  /**
609
- * @param {string} key
610
- * @returns {boolean}
611
- */
612
- export function is_valid_public_key(key) {
613
- const ret = wasm.is_valid_public_key(addHeapObject(key));
614
- return ret !== 0;
615
- }
616
-
617
- /**
618
- * @param {bigint} duration_in_ms
663
+ * @param {Uint8Array} buffer
664
+ * @param {number} msg_index
665
+ * @param {bigint} peer_index
619
666
  * @returns {Promise<void>}
620
667
  */
621
- export function process_timer_event(duration_in_ms) {
622
- const ret = wasm.process_timer_event(duration_in_ms);
668
+ export function send_api_success(buffer, msg_index, peer_index) {
669
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
623
670
  return takeObject(ret);
624
671
  }
625
672
 
626
673
  /**
627
- * @param {bigint} threshold
628
- * @returns {Promise<void>}
674
+ * @returns {Promise<boolean>}
629
675
  */
630
- export function write_issuance_file(threshold) {
631
- const ret = wasm.write_issuance_file(threshold);
676
+ export function produce_block_with_gt() {
677
+ const ret = wasm.produce_block_with_gt();
632
678
  return takeObject(ret);
633
679
  }
634
680
 
635
681
  /**
636
- * @returns {Promise<Array<any>>}
682
+ * @param {string} slip1_utxo_key
683
+ * @param {string} slip2_utxo_key
684
+ * @param {string} slip3_utxo_key
685
+ * @param {number} left_count
686
+ * @param {number} right_count
687
+ * @param {Uint8Array} tx_msg
688
+ * @returns {Promise<WasmTransaction>}
637
689
  */
638
- export function get_peers() {
639
- const ret = wasm.get_peers();
690
+ export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
691
+ const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
640
692
  return takeObject(ret);
641
693
  }
642
694
 
643
695
  /**
644
- * @param {Uint8Array} buffer
645
- * @param {number} msg_index
646
- * @param {bigint} peer_index
647
- * @returns {Promise<void>}
696
+ * @returns {string}
648
697
  */
649
- export function send_api_call(buffer, msg_index, peer_index) {
650
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
698
+ export function generate_private_key() {
699
+ const ret = wasm.generate_private_key();
651
700
  return takeObject(ret);
652
701
  }
653
702
 
654
703
  /**
655
- * @param {bigint} current_time
656
- * @returns {Promise<void>}
704
+ * @returns {Promise<string>}
657
705
  */
658
- export function process_stat_interval(current_time) {
659
- const ret = wasm.process_stat_interval(current_time);
706
+ export function get_peer_stats() {
707
+ const ret = wasm.get_peer_stats();
660
708
  return takeObject(ret);
661
709
  }
662
710
 
@@ -672,70 +720,23 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
672
720
  return takeObject(ret);
673
721
  }
674
722
 
675
- /**
676
- * @returns {Promise<boolean>}
677
- */
678
- export function produce_block_without_gt() {
679
- const ret = wasm.produce_block_without_gt();
680
- return takeObject(ret);
681
- }
682
-
683
723
  /**
684
724
  * @param {string} public_key
685
- * @returns {Promise<Array<any>>}
725
+ * @param {bigint} amount
726
+ * @param {bigint} fee
727
+ * @param {boolean} force_merge
728
+ * @returns {Promise<WasmTransaction>}
686
729
  */
687
- export function get_account_slips(public_key) {
688
- const ret = wasm.get_account_slips(addHeapObject(public_key));
730
+ export function create_transaction(public_key, amount, fee, force_merge) {
731
+ const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
689
732
  return takeObject(ret);
690
733
  }
691
734
 
692
735
  /**
693
- * @param {Uint8Array} buffer
694
- * @param {string} private_key
695
- * @returns {string}
696
- */
697
- export function sign_buffer(buffer, private_key) {
698
- try {
699
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
700
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
701
- var r0 = getInt32Memory0()[retptr / 4 + 0];
702
- var r1 = getInt32Memory0()[retptr / 4 + 1];
703
- var r2 = getInt32Memory0()[retptr / 4 + 2];
704
- if (r2) {
705
- throw takeObject(r1);
706
- }
707
- return takeObject(r0);
708
- } finally {
709
- wasm.__wbindgen_add_to_stack_pointer(16);
710
- }
711
- }
712
-
713
- /**
714
- * @param {string} private_key
715
- * @returns {string}
716
- */
717
- export function generate_public_key(private_key) {
718
- try {
719
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
720
- wasm.generate_public_key(retptr, addHeapObject(private_key));
721
- var r0 = getInt32Memory0()[retptr / 4 + 0];
722
- var r1 = getInt32Memory0()[retptr / 4 + 1];
723
- var r2 = getInt32Memory0()[retptr / 4 + 2];
724
- if (r2) {
725
- throw takeObject(r1);
726
- }
727
- return takeObject(r0);
728
- } finally {
729
- wasm.__wbindgen_add_to_stack_pointer(16);
730
- }
731
- }
732
-
733
- /**
734
- * @param {string} block_hash
735
- * @returns {Promise<WasmBlock>}
736
+ * @returns {Promise<boolean>}
736
737
  */
737
- export function get_block(block_hash) {
738
- const ret = wasm.get_block(addHeapObject(block_hash));
738
+ export function produce_block_without_gt() {
739
+ const ret = wasm.produce_block_without_gt();
739
740
  return takeObject(ret);
740
741
  }
741
742
 
@@ -746,8 +747,8 @@ function handleError(f, args) {
746
747
  wasm.__wbindgen_exn_store(addHeapObject(e));
747
748
  }
748
749
  }
749
- function __wbg_adapter_410(arg0, arg1, arg2, arg3) {
750
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h58ba5fc31ee09770(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
750
+ function __wbg_adapter_454(arg0, arg1, arg2, arg3) {
751
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h67b6352f6b82f267(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
751
752
  }
752
753
 
753
754
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2696,13 +2697,6 @@ async function __wbg_load(module, imports) {
2696
2697
  function __wbg_get_imports() {
2697
2698
  const imports = {};
2698
2699
  imports.wbg = {};
2699
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2700
- takeObject(arg0);
2701
- };
2702
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2703
- const ret = getStringFromWasm0(arg0, arg1);
2704
- return addHeapObject(ret);
2705
- };
2706
2700
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2707
2701
  const obj = getObject(arg1);
2708
2702
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2711,48 +2705,67 @@ function __wbg_get_imports() {
2711
2705
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2712
2706
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2713
2707
  };
2714
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2715
- const ret = WasmTransaction.__wrap(arg0);
2708
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2709
+ takeObject(arg0);
2710
+ };
2711
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2712
+ const ret = getObject(arg0);
2716
2713
  return addHeapObject(ret);
2717
2714
  };
2718
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2719
- const ret = BigInt.asUintN(64, arg0);
2715
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2716
+ const ret = getStringFromWasm0(arg0, arg1);
2720
2717
  return addHeapObject(ret);
2721
2718
  };
2722
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2723
- const ret = WasmPeer.__wrap(arg0);
2719
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2720
+ const ret = WasmBlock.__wrap(arg0);
2724
2721
  return addHeapObject(ret);
2725
2722
  };
2726
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2727
- const ret = WasmWallet.__wrap(arg0);
2723
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2724
+ const ret = WasmTransaction.__wrap(arg0);
2728
2725
  return addHeapObject(ret);
2729
2726
  };
2730
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2731
- const ret = WasmBlockchain.__wrap(arg0);
2727
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2728
+ const ret = BigInt.asUintN(64, arg0);
2732
2729
  return addHeapObject(ret);
2733
2730
  };
2734
2731
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2735
2732
  const ret = WasmWalletSlip.__wrap(arg0);
2736
2733
  return addHeapObject(ret);
2737
2734
  };
2738
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2739
- const ret = WasmBlock.__wrap(arg0);
2735
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2736
+ const ret = WasmWallet.__wrap(arg0);
2737
+ return addHeapObject(ret);
2738
+ };
2739
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2740
+ const ret = WasmNFT.__wrap(arg0);
2740
2741
  return addHeapObject(ret);
2741
2742
  };
2742
2743
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2743
2744
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2744
2745
  return addHeapObject(ret);
2745
2746
  };
2746
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2747
- const ret = WasmNFT.__wrap(arg0);
2747
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2748
+ const ret = WasmPeer.__wrap(arg0);
2748
2749
  return addHeapObject(ret);
2749
2750
  };
2750
2751
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2751
2752
  const ret = WasmSlip.__wrap(arg0);
2752
2753
  return addHeapObject(ret);
2753
2754
  };
2754
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2755
- const ret = getObject(arg0);
2755
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2756
+ const ret = WasmBlockchain.__wrap(arg0);
2757
+ return addHeapObject(ret);
2758
+ };
2759
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2760
+ const ret = WasmHop.__wrap(arg0);
2761
+ return addHeapObject(ret);
2762
+ };
2763
+ imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2764
+ const ret = WasmPeerService.__wrap(arg0);
2765
+ return addHeapObject(ret);
2766
+ };
2767
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2768
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2756
2769
  return addHeapObject(ret);
2757
2770
  };
2758
2771
  imports.wbg.__wbindgen_is_object = function(arg0) {
@@ -2768,11 +2781,7 @@ function __wbg_get_imports() {
2768
2781
  const ret = getObject(arg0) in getObject(arg1);
2769
2782
  return ret;
2770
2783
  };
2771
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2772
- const ret = WasmHop.__wrap(arg0);
2773
- return addHeapObject(ret);
2774
- };
2775
- imports.wbg.__wbg_flushdata_782694d9b96c64ed = function(arg0, arg1) {
2784
+ imports.wbg.__wbg_flushdata_e95c407e1e0bc0ed = function(arg0, arg1) {
2776
2785
  let deferred0_0;
2777
2786
  let deferred0_1;
2778
2787
  try {
@@ -2783,7 +2792,7 @@ function __wbg_get_imports() {
2783
2792
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2784
2793
  }
2785
2794
  };
2786
- imports.wbg.__wbg_readvalue_c97d73d5a2788af3 = function() { return handleError(function (arg0, arg1) {
2795
+ imports.wbg.__wbg_readvalue_6ebbd343ed520a97 = function() { return handleError(function (arg0, arg1) {
2787
2796
  let deferred0_0;
2788
2797
  let deferred0_1;
2789
2798
  try {
@@ -2795,13 +2804,13 @@ function __wbg_get_imports() {
2795
2804
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2796
2805
  }
2797
2806
  }, arguments) };
2798
- imports.wbg.__wbg_loadwallet_195579a7d3db528c = function() {
2807
+ imports.wbg.__wbg_loadwallet_4611bb91011ed68d = function() {
2799
2808
  MsgHandler.load_wallet();
2800
2809
  };
2801
- imports.wbg.__wbg_savewallet_33279d81a586665d = function() {
2810
+ imports.wbg.__wbg_savewallet_be5ed22d23a8d22b = function() {
2802
2811
  MsgHandler.save_wallet();
2803
2812
  };
2804
- imports.wbg.__wbg_writevalue_463aeeb91d56f3d5 = function(arg0, arg1, arg2) {
2813
+ imports.wbg.__wbg_writevalue_a7a3857c8de8fe9b = function(arg0, arg1, arg2) {
2805
2814
  let deferred0_0;
2806
2815
  let deferred0_1;
2807
2816
  try {
@@ -2812,7 +2821,7 @@ function __wbg_get_imports() {
2812
2821
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2813
2822
  }
2814
2823
  };
2815
- imports.wbg.__wbg_appendvalue_b427962970b5abb6 = function(arg0, arg1, arg2) {
2824
+ imports.wbg.__wbg_appendvalue_10c14942126ab54a = function(arg0, arg1, arg2) {
2816
2825
  let deferred0_0;
2817
2826
  let deferred0_1;
2818
2827
  try {
@@ -2823,7 +2832,7 @@ function __wbg_get_imports() {
2823
2832
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2824
2833
  }
2825
2834
  };
2826
- imports.wbg.__wbg_removevalue_3c1595639830a6b1 = function() { return handleError(function (arg0, arg1) {
2835
+ imports.wbg.__wbg_removevalue_c76dfa9feb88807e = function() { return handleError(function (arg0, arg1) {
2827
2836
  let deferred0_0;
2828
2837
  let deferred0_1;
2829
2838
  try {
@@ -2835,10 +2844,10 @@ function __wbg_get_imports() {
2835
2844
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2836
2845
  }
2837
2846
  }, arguments) };
2838
- imports.wbg.__wbg_sendmessage_315b5ec1a9b4580d = function(arg0, arg1) {
2847
+ imports.wbg.__wbg_sendmessage_22f62139ce41353a = function(arg0, arg1) {
2839
2848
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2840
2849
  };
2841
- imports.wbg.__wbg_connecttopeer_3cdd1ebe4a6a8f2a = function() { return handleError(function (arg0, arg1, arg2) {
2850
+ imports.wbg.__wbg_connecttopeer_6c04afe8364b7cf3 = function() { return handleError(function (arg0, arg1, arg2) {
2842
2851
  let deferred0_0;
2843
2852
  let deferred0_1;
2844
2853
  try {
@@ -2850,13 +2859,13 @@ function __wbg_get_imports() {
2850
2859
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2851
2860
  }
2852
2861
  }, arguments) };
2853
- imports.wbg.__wbg_getmyservices_6c00e5de42eb7e4d = function() {
2862
+ imports.wbg.__wbg_getmyservices_d92480755161663e = function() {
2854
2863
  const ret = MsgHandler.get_my_services();
2855
2864
  _assertClass(ret, WasmPeerServiceList);
2856
2865
  var ptr1 = ret.__destroy_into_raw();
2857
2866
  return ptr1;
2858
2867
  };
2859
- imports.wbg.__wbg_isexistingfile_f87b68e97a90dba1 = function() { return handleError(function (arg0, arg1) {
2868
+ imports.wbg.__wbg_isexistingfile_85c80475e06ba07f = function() { return handleError(function (arg0, arg1) {
2860
2869
  let deferred0_0;
2861
2870
  let deferred0_1;
2862
2871
  try {
@@ -2868,27 +2877,27 @@ function __wbg_get_imports() {
2868
2877
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2869
2878
  }
2870
2879
  }, arguments) };
2871
- imports.wbg.__wbg_processapicall_90eb27310b01c5c9 = function(arg0, arg1, arg2) {
2880
+ imports.wbg.__wbg_processapicall_1f6a45361c80a202 = function(arg0, arg1, arg2) {
2872
2881
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2873
2882
  };
2874
- imports.wbg.__wbg_processapierror_0c077a8fbc642abd = function(arg0, arg1, arg2) {
2883
+ imports.wbg.__wbg_processapierror_5be3075a9e01e034 = function(arg0, arg1, arg2) {
2875
2884
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2876
2885
  };
2877
- imports.wbg.__wbg_processapisuccess_83cda5fc8f709984 = function(arg0, arg1, arg2) {
2886
+ imports.wbg.__wbg_processapisuccess_c356c59e3b2ab942 = function(arg0, arg1, arg2) {
2878
2887
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2879
2888
  };
2880
- imports.wbg.__wbg_sendmessagetoall_65c26d42cf5ec0b1 = function(arg0, arg1) {
2889
+ imports.wbg.__wbg_sendmessagetoall_2ed176436bb0fafc = function(arg0, arg1) {
2881
2890
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2882
2891
  };
2883
- imports.wbg.__wbg_disconnectfrompeer_84bb5ae1a11275a2 = function() { return handleError(function (arg0) {
2892
+ imports.wbg.__wbg_disconnectfrompeer_1e04c9dfd2862c76 = function() { return handleError(function (arg0) {
2884
2893
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2885
2894
  return addHeapObject(ret);
2886
2895
  }, arguments) };
2887
- imports.wbg.__wbg_loadblockfilelist_5c427c4886a9b35f = function() { return handleError(function () {
2896
+ imports.wbg.__wbg_loadblockfilelist_5e3ff98c60a2a07f = function() { return handleError(function () {
2888
2897
  const ret = MsgHandler.load_block_file_list();
2889
2898
  return addHeapObject(ret);
2890
2899
  }, arguments) };
2891
- imports.wbg.__wbg_sendinterfaceevent_545684113f494709 = function(arg0, arg1, arg2, arg3, arg4) {
2900
+ imports.wbg.__wbg_sendinterfaceevent_2481d64d2d629fce = function(arg0, arg1, arg2, arg3, arg4) {
2892
2901
  let deferred0_0;
2893
2902
  let deferred0_1;
2894
2903
  let deferred1_0;
@@ -2904,7 +2913,7 @@ function __wbg_get_imports() {
2904
2913
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2905
2914
  }
2906
2915
  };
2907
- imports.wbg.__wbg_sendblocksuccess_38e53e8b93e087a7 = function(arg0, arg1, arg2) {
2916
+ imports.wbg.__wbg_sendblocksuccess_0e0fa53d03cc8ee0 = function(arg0, arg1, arg2) {
2908
2917
  let deferred0_0;
2909
2918
  let deferred0_1;
2910
2919
  try {
@@ -2915,10 +2924,10 @@ function __wbg_get_imports() {
2915
2924
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2916
2925
  }
2917
2926
  };
2918
- imports.wbg.__wbg_sendwalletupdate_ca4df5bf41062961 = function() {
2927
+ imports.wbg.__wbg_sendwalletupdate_3f10039b18efd40b = function() {
2919
2928
  MsgHandler.send_wallet_update();
2920
2929
  };
2921
- imports.wbg.__wbg_sendnewversionalert_905be141c7705d0a = function(arg0, arg1, arg2) {
2930
+ imports.wbg.__wbg_sendnewversionalert_dfe7cede819b908a = function(arg0, arg1, arg2) {
2922
2931
  let deferred0_0;
2923
2932
  let deferred0_1;
2924
2933
  try {
@@ -2929,13 +2938,13 @@ function __wbg_get_imports() {
2929
2938
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2930
2939
  }
2931
2940
  };
2932
- imports.wbg.__wbg_sendblockfetchstatusevent_b85682b36072bc70 = function(arg0) {
2941
+ imports.wbg.__wbg_sendblockfetchstatusevent_16ec9b84c8c4b37e = function(arg0) {
2933
2942
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2934
2943
  };
2935
- imports.wbg.__wbg_sendnewchaindetectedevent_2716566461445c2c = function() {
2944
+ imports.wbg.__wbg_sendnewchaindetectedevent_b70b153e73432ccb = function() {
2936
2945
  MsgHandler.send_new_chain_detected_event();
2937
2946
  };
2938
- imports.wbg.__wbg_fetchblockfrompeer_e64e17797e6e941b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2947
+ imports.wbg.__wbg_fetchblockfrompeer_010d85cda12b2b4a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2939
2948
  let deferred0_0;
2940
2949
  let deferred0_1;
2941
2950
  try {
@@ -2947,7 +2956,7 @@ function __wbg_get_imports() {
2947
2956
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2948
2957
  }
2949
2958
  }, arguments) };
2950
- imports.wbg.__wbg_ensuredirectoryexists_9256ee76e227cc2c = function() { return handleError(function (arg0, arg1) {
2959
+ imports.wbg.__wbg_ensuredirectoryexists_0950f22a5900a1dc = function() { return handleError(function (arg0, arg1) {
2951
2960
  let deferred0_0;
2952
2961
  let deferred0_1;
2953
2962
  try {
@@ -2958,14 +2967,6 @@ function __wbg_get_imports() {
2958
2967
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2959
2968
  }
2960
2969
  }, arguments) };
2961
- imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2962
- const ret = WasmPeerService.__wrap(arg0);
2963
- return addHeapObject(ret);
2964
- };
2965
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2966
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2967
- return addHeapObject(ret);
2968
- };
2969
2970
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2970
2971
  const ret = getObject(arg0) == getObject(arg1);
2971
2972
  return ret;
@@ -2985,6 +2986,15 @@ function __wbg_get_imports() {
2985
2986
  const ret = getObject(arg0)[getObject(arg1)];
2986
2987
  return addHeapObject(ret);
2987
2988
  };
2989
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
2990
+ const obj = takeObject(arg0).original;
2991
+ if (obj.cnt-- == 1) {
2992
+ obj.a = 0;
2993
+ return true;
2994
+ }
2995
+ const ret = false;
2996
+ return ret;
2997
+ };
2988
2998
  imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2989
2999
  queueMicrotask(getObject(arg0));
2990
3000
  };
@@ -2996,15 +3006,6 @@ function __wbg_get_imports() {
2996
3006
  const ret = typeof(getObject(arg0)) === 'function';
2997
3007
  return ret;
2998
3008
  };
2999
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
3000
- const obj = takeObject(arg0).original;
3001
- if (obj.cnt-- == 1) {
3002
- obj.a = 0;
3003
- return true;
3004
- }
3005
- const ret = false;
3006
- return ret;
3007
- };
3008
3009
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
3009
3010
  const ret = new Error();
3010
3011
  return addHeapObject(ret);
@@ -3213,7 +3214,7 @@ function __wbg_get_imports() {
3213
3214
  const a = state0.a;
3214
3215
  state0.a = 0;
3215
3216
  try {
3216
- return __wbg_adapter_410(a, state0.b, arg0, arg1);
3217
+ return __wbg_adapter_454(a, state0.b, arg0, arg1);
3217
3218
  } finally {
3218
3219
  state0.a = a;
3219
3220
  }
@@ -3274,8 +3275,8 @@ function __wbg_get_imports() {
3274
3275
  getInt32Memory0()[arg0 / 4 + 1] = len1;
3275
3276
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3276
3277
  };
3277
- imports.wbg.__wbindgen_closure_wrapper1558 = function(arg0, arg1, arg2) {
3278
- const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_38);
3278
+ imports.wbg.__wbindgen_closure_wrapper1585 = function(arg0, arg1, arg2) {
3279
+ const ret = makeMutClosure(arg0, arg1, 594, __wbg_adapter_38);
3279
3280
  return addHeapObject(ret);
3280
3281
  };
3281
3282