saito-wasm 0.2.181 → 0.2.182

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-f4f63644dad58d74/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-738821f4f6a305ee/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,21 +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__h0f20d323127f6aa2(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
- function _assertClass(instance, klass) {
238
- if (!(instance instanceof klass)) {
239
- throw new Error(`expected instance of ${klass.name}`);
240
- }
241
- return instance.ptr;
242
- }
243
-
244
229
  let stack_pointer = 128;
245
230
 
246
231
  function addBorrowedObject(obj) {
@@ -248,115 +233,122 @@ function addBorrowedObject(obj) {
248
233
  heap[--stack_pointer] = obj;
249
234
  return stack_pointer;
250
235
  }
251
- /**
252
- * @returns {string}
253
- */
254
- export function generate_private_key() {
255
- const ret = wasm.generate_private_key();
256
- return takeObject(ret);
257
- }
258
236
 
237
+ function _assertClass(instance, klass) {
238
+ if (!(instance instanceof klass)) {
239
+ throw new Error(`expected instance of ${klass.name}`);
240
+ }
241
+ return instance.ptr;
242
+ }
259
243
  /**
244
+ * @param {Uint8Array} buffer
245
+ * @param {number} msg_index
260
246
  * @param {bigint} peer_index
261
- * @param {string} ip
262
247
  * @returns {Promise<void>}
263
248
  */
264
- export function process_new_peer(peer_index, ip) {
265
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
249
+ export function send_api_call(buffer, msg_index, peer_index) {
250
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
266
251
  return takeObject(ret);
267
252
  }
268
253
 
269
254
  /**
270
- * @param {bigint} peer_index
271
- * @returns {Promise<void>}
255
+ * @returns {Promise<string>}
272
256
  */
273
- export function remove_stun_peer(peer_index) {
274
- const ret = wasm.remove_stun_peer(peer_index);
257
+ export function get_peer_stats() {
258
+ const ret = wasm.get_peer_stats();
275
259
  return takeObject(ret);
276
260
  }
277
261
 
278
262
  /**
279
- * @param {string} nft_id_hex
280
- * @param {Uint8Array} tx_msg
281
- * @returns {Promise<WasmTransaction>}
263
+ * @param {WasmBalanceSnapshot} snapshot
264
+ * @returns {Promise<void>}
282
265
  */
283
- export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
284
- const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
285
- const len0 = WASM_VECTOR_LEN;
286
- const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
266
+ export function update_from_balance_snapshot(snapshot) {
267
+ _assertClass(snapshot, WasmBalanceSnapshot);
268
+ var ptr0 = snapshot.__destroy_into_raw();
269
+ const ret = wasm.update_from_balance_snapshot(ptr0);
287
270
  return takeObject(ret);
288
271
  }
289
272
 
290
273
  /**
291
- * @param {Array<any>} public_keys
292
- * @param {BigUint64Array} amounts
293
- * @param {bigint} fee
294
- * @param {boolean} _force_merge
295
- * @returns {Promise<WasmTransaction>}
274
+ * @param {Uint8Array} buffer
275
+ * @param {string} private_key
276
+ * @returns {string}
296
277
  */
297
- export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
298
- const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
299
- return takeObject(ret);
278
+ export function sign_buffer(buffer, private_key) {
279
+ try {
280
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
281
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
282
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
283
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
284
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
285
+ if (r2) {
286
+ throw takeObject(r1);
287
+ }
288
+ return takeObject(r0);
289
+ } finally {
290
+ wasm.__wbindgen_add_to_stack_pointer(16);
291
+ }
300
292
  }
301
293
 
302
294
  /**
303
- * @param {bigint} peer_index
304
- * @returns {Promise<WasmPeer | undefined>}
295
+ * @returns {Promise<WasmBlockchain>}
305
296
  */
306
- export function get_peer(peer_index) {
307
- const ret = wasm.get_peer(peer_index);
297
+ export function get_blockchain() {
298
+ const ret = wasm.get_blockchain();
308
299
  return takeObject(ret);
309
300
  }
310
301
 
311
302
  /**
312
- * @returns {Promise<string>}
303
+ * @returns {Promise<boolean>}
313
304
  */
314
- export function get_stats() {
315
- const ret = wasm.get_stats();
305
+ export function produce_block_without_gt() {
306
+ const ret = wasm.produce_block_without_gt();
316
307
  return takeObject(ret);
317
308
  }
318
309
 
319
310
  /**
320
311
  * @param {string} public_key
321
- * @param {bigint} amount
322
- * @param {bigint} fee
323
- * @param {boolean} force_merge
324
- * @returns {Promise<WasmTransaction>}
312
+ * @returns {Promise<Array<any>>}
325
313
  */
326
- export function create_transaction(public_key, amount, fee, force_merge) {
327
- const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
314
+ export function get_account_slips(public_key) {
315
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
328
316
  return takeObject(ret);
329
317
  }
330
318
 
331
319
  /**
332
- * @returns {Promise<boolean>}
320
+ * @param {Uint8Array} buffer
321
+ * @param {number} msg_index
322
+ * @param {bigint} peer_index
323
+ * @returns {Promise<void>}
333
324
  */
334
- export function produce_block_with_gt() {
335
- const ret = wasm.produce_block_with_gt();
325
+ export function send_api_success(buffer, msg_index, peer_index) {
326
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
336
327
  return takeObject(ret);
337
328
  }
338
329
 
339
330
  /**
340
- * @returns {Promise<WasmBlockchain>}
331
+ * @param {bigint} peer_index
332
+ * @returns {Promise<WasmPeer | undefined>}
341
333
  */
342
- export function get_blockchain() {
343
- const ret = wasm.get_blockchain();
334
+ export function get_peer(peer_index) {
335
+ const ret = wasm.get_peer(peer_index);
344
336
  return takeObject(ret);
345
337
  }
346
338
 
347
339
  /**
348
- * @returns {Promise<string>}
340
+ * @returns {Promise<Array<any>>}
349
341
  */
350
- export function get_peer_stats() {
351
- const ret = wasm.get_peer_stats();
342
+ export function get_mempool_txs() {
343
+ const ret = wasm.get_mempool_txs();
352
344
  return takeObject(ret);
353
345
  }
354
346
 
355
347
  /**
356
- * @returns {Promise<boolean>}
348
+ * @returns {Promise<Array<any>>}
357
349
  */
358
- export function produce_block_without_gt() {
359
- const ret = wasm.produce_block_without_gt();
350
+ export function get_nft_list() {
351
+ const ret = wasm.get_nft_list();
360
352
  return takeObject(ret);
361
353
  }
362
354
 
@@ -374,152 +366,129 @@ export function set_wallet_version(major, minor, patch) {
374
366
  /**
375
367
  * @returns {Promise<Array<any>>}
376
368
  */
377
- export function get_mempool_txs() {
378
- const ret = wasm.get_mempool_txs();
379
- return takeObject(ret);
380
- }
381
-
382
- /**
383
- * @param {string} public_key
384
- * @returns {Promise<Array<any>>}
385
- */
386
- export function get_account_slips(public_key) {
387
- const ret = wasm.get_account_slips(addHeapObject(public_key));
369
+ export function get_peers() {
370
+ const ret = wasm.get_peers();
388
371
  return takeObject(ret);
389
372
  }
390
373
 
391
374
  /**
392
- * @param {bigint} peer_index
393
- * @param {string} public_key
375
+ * @param {bigint} current_time
394
376
  * @returns {Promise<void>}
395
377
  */
396
- export function process_stun_peer(peer_index, public_key) {
397
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
378
+ export function process_stat_interval(current_time) {
379
+ const ret = wasm.process_stat_interval(current_time);
398
380
  return takeObject(ret);
399
381
  }
400
382
 
401
383
  /**
402
- * @param {Uint8Array} hash
403
- * @param {bigint} block_id
404
384
  * @param {bigint} peer_index
405
385
  * @returns {Promise<void>}
406
386
  */
407
- export function process_failed_block_fetch(hash, block_id, peer_index) {
408
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
387
+ export function remove_stun_peer(peer_index) {
388
+ const ret = wasm.remove_stun_peer(peer_index);
409
389
  return takeObject(ret);
410
390
  }
411
391
 
412
392
  /**
413
393
  * @param {Uint8Array} buffer
414
- * @param {number} msg_index
415
- * @param {bigint} peer_index
416
- * @returns {Promise<void>}
394
+ * @param {string} signature
395
+ * @param {string} public_key
396
+ * @returns {boolean}
417
397
  */
418
- export function send_api_call(buffer, msg_index, peer_index) {
419
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
420
- return takeObject(ret);
398
+ export function verify_signature(buffer, signature, public_key) {
399
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
400
+ return ret !== 0;
421
401
  }
422
402
 
423
403
  /**
424
- * @param {Uint8Array} buffer
425
- * @param {number} msg_index
426
- * @param {bigint} peer_index
427
- * @returns {Promise<void>}
404
+ * @param {Array<any>} keys
405
+ * @returns {Promise<WasmBalanceSnapshot>}
428
406
  */
429
- export function send_api_error(buffer, msg_index, peer_index) {
430
- const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
407
+ export function get_balance_snapshot(keys) {
408
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
431
409
  return takeObject(ret);
432
410
  }
433
411
 
434
412
  /**
435
- * @param {WasmBalanceSnapshot} snapshot
436
413
  * @returns {Promise<void>}
437
414
  */
438
- export function update_from_balance_snapshot(snapshot) {
439
- _assertClass(snapshot, WasmBalanceSnapshot);
440
- var ptr0 = snapshot.__destroy_into_raw();
441
- const ret = wasm.update_from_balance_snapshot(ptr0);
415
+ export function disable_producing_blocks_by_timer() {
416
+ const ret = wasm.disable_producing_blocks_by_timer();
442
417
  return takeObject(ret);
443
418
  }
444
419
 
445
420
  /**
446
- * @param {string} slip1_utxo_key
447
- * @param {string} slip2_utxo_key
448
- * @param {string} slip3_utxo_key
449
- * @param {Uint8Array} tx_msg
450
- * @returns {Promise<WasmTransaction>}
421
+ * @param {bigint} peer_index
422
+ * @returns {Promise<void>}
451
423
  */
452
- export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
453
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
424
+ export function process_peer_disconnection(peer_index) {
425
+ const ret = wasm.process_peer_disconnection(peer_index);
454
426
  return takeObject(ret);
455
427
  }
456
428
 
457
429
  /**
458
- * @returns {Promise<Array<any>>}
430
+ * @param {Uint8Array} hash
431
+ * @param {bigint} block_id
432
+ * @param {bigint} peer_index
433
+ * @returns {Promise<void>}
459
434
  */
460
- export function get_peers() {
461
- const ret = wasm.get_peers();
435
+ export function process_failed_block_fetch(hash, block_id, peer_index) {
436
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
462
437
  return takeObject(ret);
463
438
  }
464
439
 
465
440
  /**
466
- * @param {string} slip1_utxo_key
467
- * @param {string} slip2_utxo_key
468
- * @param {string} slip3_utxo_key
469
- * @param {number} left_count
470
- * @param {number} right_count
471
- * @param {Uint8Array} tx_msg
472
- * @returns {Promise<WasmTransaction>}
441
+ * @returns {string}
473
442
  */
474
- export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
475
- 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));
443
+ export function generate_private_key() {
444
+ const ret = wasm.generate_private_key();
476
445
  return takeObject(ret);
477
446
  }
478
447
 
479
448
  /**
480
- * @param {bigint} current_time
481
- * @returns {Promise<void>}
449
+ * @returns {Promise<boolean>}
482
450
  */
483
- export function process_stat_interval(current_time) {
484
- const ret = wasm.process_stat_interval(current_time);
451
+ export function produce_block_with_gt() {
452
+ const ret = wasm.produce_block_with_gt();
485
453
  return takeObject(ret);
486
454
  }
487
455
 
488
456
  /**
489
- * @param {bigint} threshold
457
+ * @param {bigint} peer_index
458
+ * @param {string} public_key
490
459
  * @returns {Promise<void>}
491
460
  */
492
- export function write_issuance_file(threshold) {
493
- const ret = wasm.write_issuance_file(threshold);
461
+ export function process_stun_peer(peer_index, public_key) {
462
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
494
463
  return takeObject(ret);
495
464
  }
496
465
 
497
466
  /**
498
- * @param {string} key
499
- * @returns {boolean}
467
+ * @returns {Promise<WasmWallet>}
500
468
  */
501
- export function is_valid_public_key(key) {
502
- const ret = wasm.is_valid_public_key(addHeapObject(key));
503
- return ret !== 0;
469
+ export function get_wallet() {
470
+ const ret = wasm.get_wallet();
471
+ return takeObject(ret);
504
472
  }
505
473
 
506
474
  /**
507
- * @param {Uint8Array} buffer
508
- * @param {string} signature
509
- * @param {string} public_key
510
- * @returns {boolean}
475
+ * @param {string} config_json
476
+ * @param {string} private_key
477
+ * @param {number} log_level_num
478
+ * @param {bigint} hasten_multiplier
479
+ * @param {boolean} delete_old_blocks
480
+ * @returns {Promise<any>}
511
481
  */
512
- export function verify_signature(buffer, signature, public_key) {
513
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
514
- return ret !== 0;
482
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
483
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
484
+ return takeObject(ret);
515
485
  }
516
486
 
517
487
  /**
518
- * @param {Uint8Array} buffer
519
- * @returns {string}
488
+ * @returns {Promise<bigint>}
520
489
  */
521
- export function hash(buffer) {
522
- const ret = wasm.hash(addHeapObject(buffer));
490
+ export function get_next_peer_index() {
491
+ const ret = wasm.get_next_peer_index();
523
492
  return takeObject(ret);
524
493
  }
525
494
 
@@ -532,68 +501,51 @@ export function get_confirmations() {
532
501
  }
533
502
 
534
503
  /**
535
- * @returns {Promise<string>}
536
- */
537
- export function get_congestion_stats() {
538
- const ret = wasm.get_congestion_stats();
539
- return takeObject(ret);
540
- }
541
-
542
- /**
543
- * @param {Uint8Array} buffer
544
- * @param {bigint} peer_index
545
504
  * @returns {Promise<void>}
546
505
  */
547
- export function process_msg_buffer_from_peer(buffer, peer_index) {
548
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
506
+ export function start_from_received_ghost_chain() {
507
+ const ret = wasm.start_from_received_ghost_chain();
549
508
  return takeObject(ret);
550
509
  }
551
510
 
552
511
  /**
512
+ * @param {bigint} duration_in_ms
553
513
  * @returns {Promise<void>}
554
514
  */
555
- export function disable_producing_blocks_by_timer() {
556
- const ret = wasm.disable_producing_blocks_by_timer();
557
- return takeObject(ret);
558
- }
559
-
560
- /**
561
- * @param {Array<any>} keys
562
- * @returns {Promise<WasmBalanceSnapshot>}
563
- */
564
- export function get_balance_snapshot(keys) {
565
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
515
+ export function process_timer_event(duration_in_ms) {
516
+ const ret = wasm.process_timer_event(duration_in_ms);
566
517
  return takeObject(ret);
567
518
  }
568
519
 
569
520
  /**
570
- * @param {bigint} amt
571
- * @param {string} slip1_utxo_key
572
- * @param {string} slip2_utxo_key
573
- * @param {string} slip3_utxo_key
574
- * @param {string} recipient_public_key
575
- * @param {Uint8Array} tx_msg
576
- * @returns {Promise<WasmTransaction>}
521
+ * @param {Uint8Array} buffer
522
+ * @param {number} msg_index
523
+ * @param {bigint} peer_index
524
+ * @returns {Promise<void>}
577
525
  */
578
- export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
579
- 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));
526
+ export function send_api_error(buffer, msg_index, peer_index) {
527
+ const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
580
528
  return takeObject(ret);
581
529
  }
582
530
 
583
531
  /**
584
- * @returns {Promise<void>}
532
+ * @param {string} block_hash
533
+ * @returns {Promise<WasmBlock>}
585
534
  */
586
- export function start_from_received_ghost_chain() {
587
- const ret = wasm.start_from_received_ghost_chain();
535
+ export function get_block(block_hash) {
536
+ const ret = wasm.get_block(addHeapObject(block_hash));
588
537
  return takeObject(ret);
589
538
  }
590
539
 
591
540
  /**
541
+ * @param {Uint8Array} buffer
542
+ * @param {Uint8Array} hash
543
+ * @param {bigint} block_id
592
544
  * @param {bigint} peer_index
593
545
  * @returns {Promise<void>}
594
- */
595
- export function process_peer_disconnection(peer_index) {
596
- const ret = wasm.process_peer_disconnection(peer_index);
546
+ */
547
+ export function process_fetched_block(buffer, hash, block_id, peer_index) {
548
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
597
549
  return takeObject(ret);
598
550
  }
599
551
 
@@ -608,109 +560,116 @@ export function propagate_transaction(tx) {
608
560
  }
609
561
 
610
562
  /**
611
- * @param {Uint8Array} buffer
612
- * @param {Uint8Array} hash
613
- * @param {bigint} block_id
614
- * @param {bigint} peer_index
615
- * @returns {Promise<void>}
563
+ * @param {string} slip1_utxo_key
564
+ * @param {string} slip2_utxo_key
565
+ * @param {string} slip3_utxo_key
566
+ * @param {Uint8Array} tx_msg
567
+ * @returns {Promise<WasmTransaction>}
616
568
  */
617
- export function process_fetched_block(buffer, hash, block_id, peer_index) {
618
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
569
+ export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
570
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
619
571
  return takeObject(ret);
620
572
  }
621
573
 
622
574
  /**
623
- * @param {bigint} num
624
- * @param {bigint} deposit
575
+ * @param {string} nft_id_hex
625
576
  * @param {Uint8Array} tx_msg
626
- * @param {bigint} fee
627
- * @param {string} recipient_public_key
628
- * @param {string} nft_type
629
577
  * @returns {Promise<WasmTransaction>}
630
578
  */
631
- export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
632
- const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
579
+ export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
580
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
581
+ const len0 = WASM_VECTOR_LEN;
582
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
633
583
  return takeObject(ret);
634
584
  }
635
585
 
636
586
  /**
637
- * @returns {Promise<string>}
587
+ * @param {Uint8Array} buffer
588
+ * @returns {string}
638
589
  */
639
- export function get_latest_block_hash() {
640
- const ret = wasm.get_latest_block_hash();
590
+ export function hash(buffer) {
591
+ const ret = wasm.hash(addHeapObject(buffer));
641
592
  return takeObject(ret);
642
593
  }
643
594
 
644
595
  /**
645
- * @param {string} private_key
646
- * @returns {string}
596
+ * @returns {Promise<string>}
647
597
  */
648
- export function generate_public_key(private_key) {
649
- try {
650
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
651
- wasm.generate_public_key(retptr, addHeapObject(private_key));
652
- var r0 = getInt32Memory0()[retptr / 4 + 0];
653
- var r1 = getInt32Memory0()[retptr / 4 + 1];
654
- var r2 = getInt32Memory0()[retptr / 4 + 2];
655
- if (r2) {
656
- throw takeObject(r1);
657
- }
658
- return takeObject(r0);
659
- } finally {
660
- wasm.__wbindgen_add_to_stack_pointer(16);
661
- }
598
+ export function get_stats() {
599
+ const ret = wasm.get_stats();
600
+ return takeObject(ret);
662
601
  }
663
602
 
664
603
  /**
665
- * @param {Uint8Array} buffer
666
- * @param {number} msg_index
667
604
  * @param {bigint} peer_index
605
+ * @param {string} ip
668
606
  * @returns {Promise<void>}
669
607
  */
670
- export function send_api_success(buffer, msg_index, peer_index) {
671
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
608
+ export function process_new_peer(peer_index, ip) {
609
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
672
610
  return takeObject(ret);
673
611
  }
674
612
 
675
613
  /**
676
- * @returns {Promise<WasmWallet>}
614
+ * @param {string} key
615
+ * @returns {boolean}
677
616
  */
678
- export function get_wallet() {
679
- const ret = wasm.get_wallet();
617
+ export function is_valid_public_key(key) {
618
+ const ret = wasm.is_valid_public_key(addHeapObject(key));
619
+ return ret !== 0;
620
+ }
621
+
622
+ /**
623
+ * @param {Array<any>} public_keys
624
+ * @param {BigUint64Array} amounts
625
+ * @param {bigint} fee
626
+ * @param {boolean} _force_merge
627
+ * @returns {Promise<WasmTransaction>}
628
+ */
629
+ export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
630
+ const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
680
631
  return takeObject(ret);
681
632
  }
682
633
 
683
634
  /**
684
- * @param {string} config_json
685
- * @param {string} private_key
686
- * @param {number} log_level_num
687
- * @param {bigint} hasten_multiplier
688
- * @param {boolean} delete_old_blocks
689
- * @returns {Promise<any>}
635
+ * @param {string} slip1_utxo_key
636
+ * @param {string} slip2_utxo_key
637
+ * @param {string} slip3_utxo_key
638
+ * @param {number} left_count
639
+ * @param {number} right_count
640
+ * @param {Uint8Array} tx_msg
641
+ * @returns {Promise<WasmTransaction>}
690
642
  */
691
- export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
692
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
643
+ export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
644
+ 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));
693
645
  return takeObject(ret);
694
646
  }
695
647
 
696
648
  /**
697
- * @param {bigint} duration_in_ms
649
+ * @returns {Promise<string>}
650
+ */
651
+ export function get_congestion_stats() {
652
+ const ret = wasm.get_congestion_stats();
653
+ return takeObject(ret);
654
+ }
655
+
656
+ /**
657
+ * @param {bigint} threshold
698
658
  * @returns {Promise<void>}
699
659
  */
700
- export function process_timer_event(duration_in_ms) {
701
- const ret = wasm.process_timer_event(duration_in_ms);
660
+ export function write_issuance_file(threshold) {
661
+ const ret = wasm.write_issuance_file(threshold);
702
662
  return takeObject(ret);
703
663
  }
704
664
 
705
665
  /**
706
- * @param {Uint8Array} buffer
707
666
  * @param {string} private_key
708
667
  * @returns {string}
709
668
  */
710
- export function sign_buffer(buffer, private_key) {
669
+ export function generate_public_key(private_key) {
711
670
  try {
712
671
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
713
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
672
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
714
673
  var r0 = getInt32Memory0()[retptr / 4 + 0];
715
674
  var r1 = getInt32Memory0()[retptr / 4 + 1];
716
675
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -724,30 +683,70 @@ export function sign_buffer(buffer, private_key) {
724
683
  }
725
684
 
726
685
  /**
727
- * @returns {Promise<bigint>}
686
+ * @returns {Promise<string>}
728
687
  */
729
- export function get_next_peer_index() {
730
- const ret = wasm.get_next_peer_index();
688
+ export function get_latest_block_hash() {
689
+ const ret = wasm.get_latest_block_hash();
731
690
  return takeObject(ret);
732
691
  }
733
692
 
734
693
  /**
735
- * @returns {Promise<Array<any>>}
694
+ * @param {bigint} amt
695
+ * @param {string} slip1_utxo_key
696
+ * @param {string} slip2_utxo_key
697
+ * @param {string} slip3_utxo_key
698
+ * @param {string} recipient_public_key
699
+ * @param {Uint8Array} tx_msg
700
+ * @returns {Promise<WasmTransaction>}
736
701
  */
737
- export function get_nft_list() {
738
- const ret = wasm.get_nft_list();
702
+ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
703
+ 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));
739
704
  return takeObject(ret);
740
705
  }
741
706
 
742
707
  /**
743
- * @param {string} block_hash
744
- * @returns {Promise<WasmBlock>}
708
+ * @param {bigint} num
709
+ * @param {bigint} deposit
710
+ * @param {Uint8Array} tx_msg
711
+ * @param {bigint} fee
712
+ * @param {string} recipient_public_key
713
+ * @param {string} nft_type
714
+ * @returns {Promise<WasmTransaction>}
745
715
  */
746
- export function get_block(block_hash) {
747
- const ret = wasm.get_block(addHeapObject(block_hash));
716
+ export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
717
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
718
+ return takeObject(ret);
719
+ }
720
+
721
+ /**
722
+ * @param {string} public_key
723
+ * @param {bigint} amount
724
+ * @param {bigint} fee
725
+ * @param {boolean} force_merge
726
+ * @returns {Promise<WasmTransaction>}
727
+ */
728
+ export function create_transaction(public_key, amount, fee, force_merge) {
729
+ const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
730
+ return takeObject(ret);
731
+ }
732
+
733
+ /**
734
+ * @param {Uint8Array} buffer
735
+ * @param {bigint} peer_index
736
+ * @returns {Promise<void>}
737
+ */
738
+ export function process_msg_buffer_from_peer(buffer, peer_index) {
739
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
748
740
  return takeObject(ret);
749
741
  }
750
742
 
743
+ function handleError(f, args) {
744
+ try {
745
+ return f.apply(this, args);
746
+ } catch (e) {
747
+ wasm.__wbindgen_exn_store(addHeapObject(e));
748
+ }
749
+ }
751
750
  function __wbg_adapter_454(arg0, arg1, arg2, arg3) {
752
751
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h67b6352f6b82f267(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
753
752
  }
@@ -2701,14 +2700,6 @@ function __wbg_get_imports() {
2701
2700
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2702
2701
  takeObject(arg0);
2703
2702
  };
2704
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2705
- const ret = WasmNFT.__wrap(arg0);
2706
- return addHeapObject(ret);
2707
- };
2708
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2709
- const ret = BigInt.asUintN(64, arg0);
2710
- return addHeapObject(ret);
2711
- };
2712
2703
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2713
2704
  const ret = getStringFromWasm0(arg0, arg1);
2714
2705
  return addHeapObject(ret);
@@ -2717,10 +2708,6 @@ function __wbg_get_imports() {
2717
2708
  const ret = WasmTransaction.__wrap(arg0);
2718
2709
  return addHeapObject(ret);
2719
2710
  };
2720
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2721
- const ret = WasmPeer.__wrap(arg0);
2722
- return addHeapObject(ret);
2723
- };
2724
2711
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2725
2712
  const obj = getObject(arg1);
2726
2713
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2729,39 +2716,68 @@ function __wbg_get_imports() {
2729
2716
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2730
2717
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2731
2718
  };
2732
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2733
- const ret = WasmWallet.__wrap(arg0);
2719
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2720
+ const ret = WasmBlockchain.__wrap(arg0);
2734
2721
  return addHeapObject(ret);
2735
2722
  };
2736
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2737
- const ret = WasmWalletSlip.__wrap(arg0);
2723
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2724
+ const ret = getObject(arg0);
2738
2725
  return addHeapObject(ret);
2739
2726
  };
2740
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2741
- const ret = WasmBlock.__wrap(arg0);
2727
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2728
+ const ret = BigInt.asUintN(64, arg0);
2742
2729
  return addHeapObject(ret);
2743
2730
  };
2744
2731
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2745
2732
  const ret = WasmSlip.__wrap(arg0);
2746
2733
  return addHeapObject(ret);
2747
2734
  };
2748
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2749
- const ret = WasmBlockchain.__wrap(arg0);
2735
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2736
+ const ret = WasmPeer.__wrap(arg0);
2750
2737
  return addHeapObject(ret);
2751
2738
  };
2752
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2753
- const ret = getObject(arg0);
2739
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2740
+ const ret = WasmNFT.__wrap(arg0);
2741
+ return addHeapObject(ret);
2742
+ };
2743
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2744
+ const ret = WasmWallet.__wrap(arg0);
2745
+ return addHeapObject(ret);
2746
+ };
2747
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2748
+ const ret = WasmBlock.__wrap(arg0);
2754
2749
  return addHeapObject(ret);
2755
2750
  };
2756
2751
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2757
2752
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2758
2753
  return addHeapObject(ret);
2759
2754
  };
2755
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2756
+ const ret = WasmWalletSlip.__wrap(arg0);
2757
+ return addHeapObject(ret);
2758
+ };
2759
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2760
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2761
+ return addHeapObject(ret);
2762
+ };
2763
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2764
+ const val = getObject(arg0);
2765
+ const ret = typeof(val) === 'object' && val !== null;
2766
+ return ret;
2767
+ };
2768
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2769
+ const ret = getObject(arg0) === undefined;
2770
+ return ret;
2771
+ };
2772
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2773
+ const ret = getObject(arg0) in getObject(arg1);
2774
+ return ret;
2775
+ };
2760
2776
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2761
2777
  const ret = WasmPeerService.__wrap(arg0);
2762
2778
  return addHeapObject(ret);
2763
2779
  };
2764
- imports.wbg.__wbg_flushdata_959afdb00fed879c = function(arg0, arg1) {
2780
+ imports.wbg.__wbg_flushdata_17337f72ec8e6e09 = function(arg0, arg1) {
2765
2781
  let deferred0_0;
2766
2782
  let deferred0_1;
2767
2783
  try {
@@ -2772,7 +2788,7 @@ function __wbg_get_imports() {
2772
2788
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2773
2789
  }
2774
2790
  };
2775
- imports.wbg.__wbg_readvalue_ea1167df5f332782 = function() { return handleError(function (arg0, arg1) {
2791
+ imports.wbg.__wbg_readvalue_f2875585bf446959 = function() { return handleError(function (arg0, arg1) {
2776
2792
  let deferred0_0;
2777
2793
  let deferred0_1;
2778
2794
  try {
@@ -2784,13 +2800,13 @@ function __wbg_get_imports() {
2784
2800
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2785
2801
  }
2786
2802
  }, arguments) };
2787
- imports.wbg.__wbg_loadwallet_395dfbc45ae2aaf0 = function() {
2803
+ imports.wbg.__wbg_loadwallet_04e52008f0776d60 = function() {
2788
2804
  MsgHandler.load_wallet();
2789
2805
  };
2790
- imports.wbg.__wbg_savewallet_2f07cd5cab536147 = function() {
2806
+ imports.wbg.__wbg_savewallet_becb4655d80262d2 = function() {
2791
2807
  MsgHandler.save_wallet();
2792
2808
  };
2793
- imports.wbg.__wbg_writevalue_3af441dae37fc973 = function(arg0, arg1, arg2) {
2809
+ imports.wbg.__wbg_writevalue_cd1222422756c3f8 = function(arg0, arg1, arg2) {
2794
2810
  let deferred0_0;
2795
2811
  let deferred0_1;
2796
2812
  try {
@@ -2801,7 +2817,7 @@ function __wbg_get_imports() {
2801
2817
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2802
2818
  }
2803
2819
  };
2804
- imports.wbg.__wbg_appendvalue_2b22bd5343efc7c2 = function(arg0, arg1, arg2) {
2820
+ imports.wbg.__wbg_appendvalue_cf4ce4315e6fb97f = function(arg0, arg1, arg2) {
2805
2821
  let deferred0_0;
2806
2822
  let deferred0_1;
2807
2823
  try {
@@ -2812,7 +2828,7 @@ function __wbg_get_imports() {
2812
2828
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2813
2829
  }
2814
2830
  };
2815
- imports.wbg.__wbg_removevalue_69013304fe546803 = function() { return handleError(function (arg0, arg1) {
2831
+ imports.wbg.__wbg_removevalue_356861bc270dc84e = function() { return handleError(function (arg0, arg1) {
2816
2832
  let deferred0_0;
2817
2833
  let deferred0_1;
2818
2834
  try {
@@ -2824,10 +2840,10 @@ function __wbg_get_imports() {
2824
2840
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2825
2841
  }
2826
2842
  }, arguments) };
2827
- imports.wbg.__wbg_sendmessage_7c26f1bbbed9e46f = function(arg0, arg1) {
2843
+ imports.wbg.__wbg_sendmessage_051cfb7324f93ff3 = function(arg0, arg1) {
2828
2844
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2829
2845
  };
2830
- imports.wbg.__wbg_connecttopeer_79cdb3724b71d924 = function() { return handleError(function (arg0, arg1, arg2) {
2846
+ imports.wbg.__wbg_connecttopeer_f550df4f9d866a37 = function() { return handleError(function (arg0, arg1, arg2) {
2831
2847
  let deferred0_0;
2832
2848
  let deferred0_1;
2833
2849
  try {
@@ -2839,13 +2855,13 @@ function __wbg_get_imports() {
2839
2855
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2840
2856
  }
2841
2857
  }, arguments) };
2842
- imports.wbg.__wbg_getmyservices_a79be7195bd7d49f = function() {
2858
+ imports.wbg.__wbg_getmyservices_0b730dd5f1b95d34 = function() {
2843
2859
  const ret = MsgHandler.get_my_services();
2844
2860
  _assertClass(ret, WasmPeerServiceList);
2845
2861
  var ptr1 = ret.__destroy_into_raw();
2846
2862
  return ptr1;
2847
2863
  };
2848
- imports.wbg.__wbg_isexistingfile_bffa862b84480286 = function() { return handleError(function (arg0, arg1) {
2864
+ imports.wbg.__wbg_isexistingfile_98478315e5531faa = function() { return handleError(function (arg0, arg1) {
2849
2865
  let deferred0_0;
2850
2866
  let deferred0_1;
2851
2867
  try {
@@ -2857,27 +2873,27 @@ function __wbg_get_imports() {
2857
2873
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2858
2874
  }
2859
2875
  }, arguments) };
2860
- imports.wbg.__wbg_processapicall_5367cc54306e9ccc = function(arg0, arg1, arg2) {
2876
+ imports.wbg.__wbg_processapicall_1acce0068b9d9801 = function(arg0, arg1, arg2) {
2861
2877
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2862
2878
  };
2863
- imports.wbg.__wbg_processapierror_e0b780889405b986 = function(arg0, arg1, arg2) {
2879
+ imports.wbg.__wbg_processapierror_2f4df3f9ad87ae1d = function(arg0, arg1, arg2) {
2864
2880
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2865
2881
  };
2866
- imports.wbg.__wbg_processapisuccess_25c8ef9b4d599f7e = function(arg0, arg1, arg2) {
2882
+ imports.wbg.__wbg_processapisuccess_35d7c395811dd201 = function(arg0, arg1, arg2) {
2867
2883
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2868
2884
  };
2869
- imports.wbg.__wbg_sendmessagetoall_b1e4b08013617c3e = function(arg0, arg1) {
2885
+ imports.wbg.__wbg_sendmessagetoall_ecfdc9b526aa9b29 = function(arg0, arg1) {
2870
2886
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2871
2887
  };
2872
- imports.wbg.__wbg_disconnectfrompeer_ad36a1191cdd63d9 = function() { return handleError(function (arg0) {
2888
+ imports.wbg.__wbg_disconnectfrompeer_e568c1b999e9cf19 = function() { return handleError(function (arg0) {
2873
2889
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2874
2890
  return addHeapObject(ret);
2875
2891
  }, arguments) };
2876
- imports.wbg.__wbg_loadblockfilelist_0b20ccd3a40cc11e = function() { return handleError(function () {
2892
+ imports.wbg.__wbg_loadblockfilelist_e3e261aff16bba51 = function() { return handleError(function () {
2877
2893
  const ret = MsgHandler.load_block_file_list();
2878
2894
  return addHeapObject(ret);
2879
2895
  }, arguments) };
2880
- imports.wbg.__wbg_sendinterfaceevent_1bf1119883a70f22 = function(arg0, arg1, arg2, arg3, arg4) {
2896
+ imports.wbg.__wbg_sendinterfaceevent_02f5607a0e7532b2 = function(arg0, arg1, arg2, arg3, arg4) {
2881
2897
  let deferred0_0;
2882
2898
  let deferred0_1;
2883
2899
  let deferred1_0;
@@ -2893,7 +2909,7 @@ function __wbg_get_imports() {
2893
2909
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2894
2910
  }
2895
2911
  };
2896
- imports.wbg.__wbg_sendblocksuccess_c442d2ce9efb1187 = function(arg0, arg1, arg2) {
2912
+ imports.wbg.__wbg_sendblocksuccess_c655a28c1f0711cd = function(arg0, arg1, arg2) {
2897
2913
  let deferred0_0;
2898
2914
  let deferred0_1;
2899
2915
  try {
@@ -2904,10 +2920,10 @@ function __wbg_get_imports() {
2904
2920
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2905
2921
  }
2906
2922
  };
2907
- imports.wbg.__wbg_sendwalletupdate_66ded07a4706255d = function() {
2923
+ imports.wbg.__wbg_sendwalletupdate_bdc4bfc338d78f5f = function() {
2908
2924
  MsgHandler.send_wallet_update();
2909
2925
  };
2910
- imports.wbg.__wbg_sendnewversionalert_9dac92e834ff2f84 = function(arg0, arg1, arg2) {
2926
+ imports.wbg.__wbg_sendnewversionalert_8053996bd4e58ad3 = function(arg0, arg1, arg2) {
2911
2927
  let deferred0_0;
2912
2928
  let deferred0_1;
2913
2929
  try {
@@ -2918,13 +2934,13 @@ function __wbg_get_imports() {
2918
2934
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2919
2935
  }
2920
2936
  };
2921
- imports.wbg.__wbg_sendblockfetchstatusevent_635077591c78fdf6 = function(arg0) {
2937
+ imports.wbg.__wbg_sendblockfetchstatusevent_e063be23da95d41c = function(arg0) {
2922
2938
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2923
2939
  };
2924
- imports.wbg.__wbg_sendnewchaindetectedevent_321961fd17df51e4 = function() {
2940
+ imports.wbg.__wbg_sendnewchaindetectedevent_3a894b00a6cac212 = function() {
2925
2941
  MsgHandler.send_new_chain_detected_event();
2926
2942
  };
2927
- imports.wbg.__wbg_fetchblockfrompeer_7a7842160f45322b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2943
+ imports.wbg.__wbg_fetchblockfrompeer_ea9e000bde4317e0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2928
2944
  let deferred0_0;
2929
2945
  let deferred0_1;
2930
2946
  try {
@@ -2936,7 +2952,7 @@ function __wbg_get_imports() {
2936
2952
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2937
2953
  }
2938
2954
  }, arguments) };
2939
- imports.wbg.__wbg_ensuredirectoryexists_ace1c9a1ec876037 = function() { return handleError(function (arg0, arg1) {
2955
+ imports.wbg.__wbg_ensuredirectoryexists_21d4f4206cc948d1 = function() { return handleError(function (arg0, arg1) {
2940
2956
  let deferred0_0;
2941
2957
  let deferred0_1;
2942
2958
  try {
@@ -2951,23 +2967,6 @@ function __wbg_get_imports() {
2951
2967
  const ret = WasmHop.__wrap(arg0);
2952
2968
  return addHeapObject(ret);
2953
2969
  };
2954
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2955
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2956
- return addHeapObject(ret);
2957
- };
2958
- imports.wbg.__wbindgen_is_object = function(arg0) {
2959
- const val = getObject(arg0);
2960
- const ret = typeof(val) === 'object' && val !== null;
2961
- return ret;
2962
- };
2963
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2964
- const ret = getObject(arg0) === undefined;
2965
- return ret;
2966
- };
2967
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2968
- const ret = getObject(arg0) in getObject(arg1);
2969
- return ret;
2970
- };
2971
2970
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2972
2971
  const ret = getObject(arg0) == getObject(arg1);
2973
2972
  return ret;
@@ -3276,8 +3275,8 @@ function __wbg_get_imports() {
3276
3275
  getInt32Memory0()[arg0 / 4 + 1] = len1;
3277
3276
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3278
3277
  };
3279
- imports.wbg.__wbindgen_closure_wrapper1616 = function(arg0, arg1, arg2) {
3280
- const ret = makeMutClosure(arg0, arg1, 596, __wbg_adapter_38);
3278
+ imports.wbg.__wbindgen_closure_wrapper1618 = function(arg0, arg1, arg2) {
3279
+ const ret = makeMutClosure(arg0, arg1, 602, __wbg_adapter_38);
3281
3280
  return addHeapObject(ret);
3282
3281
  };
3283
3282