saito-wasm 0.2.165 → 0.2.166

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-9c691657239d0ce9/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-083e81febfc0ef0c/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') } } );
@@ -223,7 +223,15 @@ 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__hf760697bf54687ef(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18f9d53151d93e96(arg0, arg1, addHeapObject(arg2));
227
+ }
228
+
229
+ let stack_pointer = 128;
230
+
231
+ function addBorrowedObject(obj) {
232
+ if (stack_pointer == 1) throw new Error('out of js stack');
233
+ heap[--stack_pointer] = obj;
234
+ return stack_pointer;
227
235
  }
228
236
 
229
237
  function _assertClass(instance, klass) {
@@ -233,38 +241,54 @@ function _assertClass(instance, klass) {
233
241
  return instance.ptr;
234
242
  }
235
243
 
236
- let stack_pointer = 128;
237
-
238
- function addBorrowedObject(obj) {
239
- if (stack_pointer == 1) throw new Error('out of js stack');
240
- heap[--stack_pointer] = obj;
241
- return stack_pointer;
244
+ function handleError(f, args) {
245
+ try {
246
+ return f.apply(this, args);
247
+ } catch (e) {
248
+ wasm.__wbindgen_exn_store(addHeapObject(e));
249
+ }
242
250
  }
243
251
  /**
244
252
  * @returns {Promise<string>}
245
253
  */
246
- export function get_latest_block_hash() {
247
- const ret = wasm.get_latest_block_hash();
254
+ export function get_congestion_stats() {
255
+ const ret = wasm.get_congestion_stats();
248
256
  return takeObject(ret);
249
257
  }
250
258
 
251
259
  /**
252
- * @returns {Promise<WasmWallet>}
260
+ * @param {WasmBalanceSnapshot} snapshot
261
+ * @returns {Promise<void>}
253
262
  */
254
- export function get_wallet() {
255
- const ret = wasm.get_wallet();
263
+ export function update_from_balance_snapshot(snapshot) {
264
+ _assertClass(snapshot, WasmBalanceSnapshot);
265
+ var ptr0 = snapshot.__destroy_into_raw();
266
+ const ret = wasm.update_from_balance_snapshot(ptr0);
256
267
  return takeObject(ret);
257
268
  }
258
269
 
259
270
  /**
260
- * @param {string} nft_id_hex
261
- * @param {Uint8Array} tx_msg
262
- * @returns {Promise<WasmTransaction>}
271
+ * @returns {Promise<void>}
263
272
  */
264
- export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
265
- const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
266
- const len0 = WASM_VECTOR_LEN;
267
- const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
273
+ export function disable_producing_blocks_by_timer() {
274
+ const ret = wasm.disable_producing_blocks_by_timer();
275
+ return takeObject(ret);
276
+ }
277
+
278
+ /**
279
+ * @returns {Promise<string>}
280
+ */
281
+ export function get_stats() {
282
+ const ret = wasm.get_stats();
283
+ return takeObject(ret);
284
+ }
285
+
286
+ /**
287
+ * @param {string} public_key
288
+ * @returns {Promise<Array<any>>}
289
+ */
290
+ export function get_account_slips(public_key) {
291
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
268
292
  return takeObject(ret);
269
293
  }
270
294
 
@@ -282,6 +306,32 @@ export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_pu
282
306
  return takeObject(ret);
283
307
  }
284
308
 
309
+ /**
310
+ * @param {bigint} peer_index
311
+ * @returns {Promise<void>}
312
+ */
313
+ export function remove_stun_peer(peer_index) {
314
+ const ret = wasm.remove_stun_peer(peer_index);
315
+ return takeObject(ret);
316
+ }
317
+
318
+ /**
319
+ * @returns {Promise<any>}
320
+ */
321
+ export function get_confirmations() {
322
+ const ret = wasm.get_confirmations();
323
+ return takeObject(ret);
324
+ }
325
+
326
+ /**
327
+ * @param {bigint} current_time
328
+ * @returns {Promise<void>}
329
+ */
330
+ export function process_stat_interval(current_time) {
331
+ const ret = wasm.process_stat_interval(current_time);
332
+ return takeObject(ret);
333
+ }
334
+
285
335
  /**
286
336
  * @param {string} key
287
337
  * @returns {boolean}
@@ -292,30 +342,40 @@ export function is_valid_public_key(key) {
292
342
  }
293
343
 
294
344
  /**
295
- * @returns {Promise<string>}
345
+ * @param {string} config_json
346
+ * @param {string} private_key
347
+ * @param {number} log_level_num
348
+ * @param {bigint} hasten_multiplier
349
+ * @param {boolean} delete_old_blocks
350
+ * @returns {Promise<any>}
296
351
  */
297
- export function get_congestion_stats() {
298
- const ret = wasm.get_congestion_stats();
352
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
353
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
299
354
  return takeObject(ret);
300
355
  }
301
356
 
302
357
  /**
303
- * @param {Array<any>} public_keys
304
- * @param {BigUint64Array} amounts
305
- * @param {bigint} fee
306
- * @param {boolean} _force_merge
358
+ * @param {bigint} amt
359
+ * @param {string} slip1_utxo_key
360
+ * @param {string} slip2_utxo_key
361
+ * @param {string} slip3_utxo_key
362
+ * @param {string} recipient_public_key
363
+ * @param {Uint8Array} tx_msg
307
364
  * @returns {Promise<WasmTransaction>}
308
365
  */
309
- export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
310
- const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
366
+ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
367
+ 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));
311
368
  return takeObject(ret);
312
369
  }
313
370
 
314
371
  /**
315
- * @returns {Promise<void>}
372
+ * @param {string} slip1_utxo_key
373
+ * @param {string} slip2_utxo_key
374
+ * @param {string} slip3_utxo_key
375
+ * @returns {Promise<WasmTransaction>}
316
376
  */
317
- export function start_from_received_ghost_chain() {
318
- const ret = wasm.start_from_received_ghost_chain();
377
+ export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
378
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
319
379
  return takeObject(ret);
320
380
  }
321
381
 
@@ -328,76 +388,93 @@ export function get_blockchain() {
328
388
  }
329
389
 
330
390
  /**
331
- * @param {Array<any>} keys
332
- * @returns {Promise<WasmBalanceSnapshot>}
391
+ * @returns {Promise<Array<any>>}
333
392
  */
334
- export function get_balance_snapshot(keys) {
335
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
393
+ export function get_mempool_txs() {
394
+ const ret = wasm.get_mempool_txs();
336
395
  return takeObject(ret);
337
396
  }
338
397
 
339
398
  /**
340
- * @returns {Promise<any>}
399
+ * @param {string} nft_id_hex
400
+ * @param {Uint8Array} tx_msg
401
+ * @returns {Promise<WasmTransaction>}
341
402
  */
342
- export function get_confirmations() {
343
- const ret = wasm.get_confirmations();
403
+ export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
404
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
405
+ const len0 = WASM_VECTOR_LEN;
406
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
344
407
  return takeObject(ret);
345
408
  }
346
409
 
347
410
  /**
348
411
  * @returns {Promise<Array<any>>}
349
412
  */
350
- export function get_peers() {
351
- const ret = wasm.get_peers();
413
+ export function get_nft_list() {
414
+ const ret = wasm.get_nft_list();
352
415
  return takeObject(ret);
353
416
  }
354
417
 
355
418
  /**
356
- * @param {bigint} peer_index
357
- * @param {string} ip
358
- * @returns {Promise<void>}
419
+ * @returns {Promise<string>}
359
420
  */
360
- export function process_new_peer(peer_index, ip) {
361
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
421
+ export function get_latest_block_hash() {
422
+ const ret = wasm.get_latest_block_hash();
362
423
  return takeObject(ret);
363
424
  }
364
425
 
365
426
  /**
366
427
  * @param {Uint8Array} buffer
428
+ * @param {string} private_key
367
429
  * @returns {string}
368
430
  */
369
- export function hash(buffer) {
370
- const ret = wasm.hash(addHeapObject(buffer));
371
- return takeObject(ret);
431
+ export function sign_buffer(buffer, private_key) {
432
+ try {
433
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
434
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
435
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
436
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
437
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
438
+ if (r2) {
439
+ throw takeObject(r1);
440
+ }
441
+ return takeObject(r0);
442
+ } finally {
443
+ wasm.__wbindgen_add_to_stack_pointer(16);
444
+ }
372
445
  }
373
446
 
374
447
  /**
375
- * @param {Uint8Array} buffer
376
- * @param {Uint8Array} hash
377
- * @param {bigint} block_id
378
448
  * @param {bigint} peer_index
379
- * @returns {Promise<void>}
449
+ * @returns {Promise<WasmPeer | undefined>}
380
450
  */
381
- export function process_fetched_block(buffer, hash, block_id, peer_index) {
382
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
451
+ export function get_peer(peer_index) {
452
+ const ret = wasm.get_peer(peer_index);
383
453
  return takeObject(ret);
384
454
  }
385
455
 
386
456
  /**
387
- * @param {bigint} peer_index
388
457
  * @returns {Promise<void>}
389
458
  */
390
- export function process_peer_disconnection(peer_index) {
391
- const ret = wasm.process_peer_disconnection(peer_index);
459
+ export function start_from_received_ghost_chain() {
460
+ const ret = wasm.start_from_received_ghost_chain();
392
461
  return takeObject(ret);
393
462
  }
394
463
 
395
464
  /**
396
- * @param {bigint} peer_index
397
- * @returns {Promise<WasmPeer | undefined>}
465
+ * @returns {string}
398
466
  */
399
- export function get_peer(peer_index) {
400
- const ret = wasm.get_peer(peer_index);
467
+ export function generate_private_key() {
468
+ const ret = wasm.generate_private_key();
469
+ return takeObject(ret);
470
+ }
471
+
472
+ /**
473
+ * @param {string} block_hash
474
+ * @returns {Promise<WasmBlock>}
475
+ */
476
+ export function get_block(block_hash) {
477
+ const ret = wasm.get_block(addHeapObject(block_hash));
401
478
  return takeObject(ret);
402
479
  }
403
480
 
@@ -413,64 +490,91 @@ export function send_api_error(buffer, msg_index, peer_index) {
413
490
  }
414
491
 
415
492
  /**
416
- * @returns {Promise<void>}
493
+ * @param {Array<any>} public_keys
494
+ * @param {BigUint64Array} amounts
495
+ * @param {bigint} fee
496
+ * @param {boolean} _force_merge
497
+ * @returns {Promise<WasmTransaction>}
417
498
  */
418
- export function disable_producing_blocks_by_timer() {
419
- const ret = wasm.disable_producing_blocks_by_timer();
499
+ export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
500
+ const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
420
501
  return takeObject(ret);
421
502
  }
422
503
 
423
504
  /**
424
- * @param {bigint} duration_in_ms
425
- * @returns {Promise<void>}
505
+ * @param {Uint8Array} buffer
506
+ * @returns {string}
426
507
  */
427
- export function process_timer_event(duration_in_ms) {
428
- const ret = wasm.process_timer_event(duration_in_ms);
508
+ export function hash(buffer) {
509
+ const ret = wasm.hash(addHeapObject(buffer));
429
510
  return takeObject(ret);
430
511
  }
431
512
 
432
513
  /**
433
- * @param {string} block_hash
434
- * @returns {Promise<WasmBlock>}
514
+ * @returns {Promise<boolean>}
435
515
  */
436
- export function get_block(block_hash) {
437
- const ret = wasm.get_block(addHeapObject(block_hash));
516
+ export function produce_block_with_gt() {
517
+ const ret = wasm.produce_block_with_gt();
438
518
  return takeObject(ret);
439
519
  }
440
520
 
441
521
  /**
442
- * @param {bigint} threshold
522
+ * @param {Uint8Array} hash
523
+ * @param {bigint} block_id
524
+ * @param {bigint} peer_index
443
525
  * @returns {Promise<void>}
444
526
  */
445
- export function write_issuance_file(threshold) {
446
- const ret = wasm.write_issuance_file(threshold);
527
+ export function process_failed_block_fetch(hash, block_id, peer_index) {
528
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
447
529
  return takeObject(ret);
448
530
  }
449
531
 
450
532
  /**
451
533
  * @param {Uint8Array} buffer
452
- * @param {number} msg_index
534
+ * @param {Uint8Array} hash
535
+ * @param {bigint} block_id
453
536
  * @param {bigint} peer_index
454
537
  * @returns {Promise<void>}
455
538
  */
456
- export function send_api_call(buffer, msg_index, peer_index) {
457
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
539
+ export function process_fetched_block(buffer, hash, block_id, peer_index) {
540
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
458
541
  return takeObject(ret);
459
542
  }
460
543
 
461
544
  /**
462
- * @returns {Promise<string>}
545
+ * @param {number} major
546
+ * @param {number} minor
547
+ * @param {number} patch
548
+ * @returns {Promise<void>}
463
549
  */
464
- export function get_peer_stats() {
465
- const ret = wasm.get_peer_stats();
550
+ export function set_wallet_version(major, minor, patch) {
551
+ const ret = wasm.set_wallet_version(major, minor, patch);
466
552
  return takeObject(ret);
467
553
  }
468
554
 
469
555
  /**
470
- * @returns {Promise<Array<any>>}
556
+ * @returns {Promise<boolean>}
471
557
  */
472
- export function get_mempool_txs() {
473
- const ret = wasm.get_mempool_txs();
558
+ export function produce_block_without_gt() {
559
+ const ret = wasm.produce_block_without_gt();
560
+ return takeObject(ret);
561
+ }
562
+
563
+ /**
564
+ * @param {bigint} threshold
565
+ * @returns {Promise<void>}
566
+ */
567
+ export function write_issuance_file(threshold) {
568
+ const ret = wasm.write_issuance_file(threshold);
569
+ return takeObject(ret);
570
+ }
571
+
572
+ /**
573
+ * @param {bigint} peer_index
574
+ * @returns {Promise<void>}
575
+ */
576
+ export function process_peer_disconnection(peer_index) {
577
+ const ret = wasm.process_peer_disconnection(peer_index);
474
578
  return takeObject(ret);
475
579
  }
476
580
 
@@ -487,76 +591,58 @@ export function create_transaction(public_key, amount, fee, force_merge) {
487
591
  }
488
592
 
489
593
  /**
490
- * @returns {Promise<boolean>}
491
- */
492
- export function produce_block_without_gt() {
493
- const ret = wasm.produce_block_without_gt();
494
- return takeObject(ret);
495
- }
496
-
497
- /**
498
- * @param {Uint8Array} buffer
499
- * @param {string} private_key
500
- * @returns {string}
594
+ * @param {Array<any>} keys
595
+ * @returns {Promise<WasmBalanceSnapshot>}
501
596
  */
502
- export function sign_buffer(buffer, private_key) {
503
- try {
504
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
505
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
506
- var r0 = getInt32Memory0()[retptr / 4 + 0];
507
- var r1 = getInt32Memory0()[retptr / 4 + 1];
508
- var r2 = getInt32Memory0()[retptr / 4 + 2];
509
- if (r2) {
510
- throw takeObject(r1);
511
- }
512
- return takeObject(r0);
513
- } finally {
514
- wasm.__wbindgen_add_to_stack_pointer(16);
515
- }
597
+ export function get_balance_snapshot(keys) {
598
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
599
+ return takeObject(ret);
516
600
  }
517
601
 
518
602
  /**
519
- * @returns {string}
603
+ * @param {Uint8Array} buffer
604
+ * @param {bigint} peer_index
605
+ * @returns {Promise<void>}
520
606
  */
521
- export function generate_private_key() {
522
- const ret = wasm.generate_private_key();
607
+ export function process_msg_buffer_from_peer(buffer, peer_index) {
608
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
523
609
  return takeObject(ret);
524
610
  }
525
611
 
526
612
  /**
527
- * @param {Uint8Array} hash
528
- * @param {bigint} block_id
529
613
  * @param {bigint} peer_index
614
+ * @param {string} public_key
530
615
  * @returns {Promise<void>}
531
616
  */
532
- export function process_failed_block_fetch(hash, block_id, peer_index) {
533
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
617
+ export function process_stun_peer(peer_index, public_key) {
618
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
534
619
  return takeObject(ret);
535
620
  }
536
621
 
537
622
  /**
623
+ * @param {Uint8Array} buffer
624
+ * @param {number} msg_index
538
625
  * @param {bigint} peer_index
539
626
  * @returns {Promise<void>}
540
627
  */
541
- export function remove_stun_peer(peer_index) {
542
- const ret = wasm.remove_stun_peer(peer_index);
628
+ export function send_api_success(buffer, msg_index, peer_index) {
629
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
543
630
  return takeObject(ret);
544
631
  }
545
632
 
546
633
  /**
547
- * @returns {Promise<string>}
634
+ * @returns {Promise<WasmWallet>}
548
635
  */
549
- export function get_stats() {
550
- const ret = wasm.get_stats();
636
+ export function get_wallet() {
637
+ const ret = wasm.get_wallet();
551
638
  return takeObject(ret);
552
639
  }
553
640
 
554
641
  /**
555
- * @param {string} public_key
556
642
  * @returns {Promise<Array<any>>}
557
643
  */
558
- export function get_account_slips(public_key) {
559
- const ret = wasm.get_account_slips(addHeapObject(public_key));
644
+ export function get_peers() {
645
+ const ret = wasm.get_peers();
560
646
  return takeObject(ret);
561
647
  }
562
648
 
@@ -566,49 +652,18 @@ export function get_account_slips(public_key) {
566
652
  * @param {bigint} peer_index
567
653
  * @returns {Promise<void>}
568
654
  */
569
- export function send_api_success(buffer, msg_index, peer_index) {
570
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
571
- return takeObject(ret);
572
- }
573
-
574
- /**
575
- * @param {string} config_json
576
- * @param {string} private_key
577
- * @param {number} log_level_num
578
- * @param {bigint} hasten_multiplier
579
- * @param {boolean} delete_old_blocks
580
- * @returns {Promise<any>}
581
- */
582
- export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
583
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
655
+ export function send_api_call(buffer, msg_index, peer_index) {
656
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
584
657
  return takeObject(ret);
585
658
  }
586
659
 
587
660
  /**
588
- * @param {string} private_key
589
- * @returns {string}
590
- */
591
- export function generate_public_key(private_key) {
592
- try {
593
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
594
- wasm.generate_public_key(retptr, addHeapObject(private_key));
595
- var r0 = getInt32Memory0()[retptr / 4 + 0];
596
- var r1 = getInt32Memory0()[retptr / 4 + 1];
597
- var r2 = getInt32Memory0()[retptr / 4 + 2];
598
- if (r2) {
599
- throw takeObject(r1);
600
- }
601
- return takeObject(r0);
602
- } finally {
603
- wasm.__wbindgen_add_to_stack_pointer(16);
604
- }
605
- }
606
-
607
- /**
608
- * @returns {Promise<bigint>}
661
+ * @param {bigint} peer_index
662
+ * @param {string} ip
663
+ * @returns {Promise<void>}
609
664
  */
610
- export function get_next_peer_index() {
611
- const ret = wasm.get_next_peer_index();
665
+ export function process_new_peer(peer_index, ip) {
666
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
612
667
  return takeObject(ret);
613
668
  }
614
669
 
@@ -622,6 +677,14 @@ export function propagate_transaction(tx) {
622
677
  return takeObject(ret);
623
678
  }
624
679
 
680
+ /**
681
+ * @returns {Promise<string>}
682
+ */
683
+ export function get_peer_stats() {
684
+ const ret = wasm.get_peer_stats();
685
+ return takeObject(ret);
686
+ }
687
+
625
688
  /**
626
689
  * @param {Uint8Array} buffer
627
690
  * @param {string} signature
@@ -634,45 +697,39 @@ export function verify_signature(buffer, signature, public_key) {
634
697
  }
635
698
 
636
699
  /**
637
- * @param {number} major
638
- * @param {number} minor
639
- * @param {number} patch
640
- * @returns {Promise<void>}
641
- */
642
- export function set_wallet_version(major, minor, patch) {
643
- const ret = wasm.set_wallet_version(major, minor, patch);
644
- return takeObject(ret);
645
- }
646
-
647
- /**
648
- * @param {bigint} peer_index
649
- * @param {string} public_key
650
- * @returns {Promise<void>}
700
+ * @returns {Promise<bigint>}
651
701
  */
652
- export function process_stun_peer(peer_index, public_key) {
653
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
702
+ export function get_next_peer_index() {
703
+ const ret = wasm.get_next_peer_index();
654
704
  return takeObject(ret);
655
705
  }
656
706
 
657
707
  /**
658
- * @returns {Promise<boolean>}
708
+ * @param {string} private_key
709
+ * @returns {string}
659
710
  */
660
- export function produce_block_with_gt() {
661
- const ret = wasm.produce_block_with_gt();
662
- return takeObject(ret);
711
+ export function generate_public_key(private_key) {
712
+ try {
713
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
714
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
715
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
716
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
717
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
718
+ if (r2) {
719
+ throw takeObject(r1);
720
+ }
721
+ return takeObject(r0);
722
+ } finally {
723
+ wasm.__wbindgen_add_to_stack_pointer(16);
724
+ }
663
725
  }
664
726
 
665
727
  /**
666
- * @param {bigint} amt
667
- * @param {string} slip1_utxo_key
668
- * @param {string} slip2_utxo_key
669
- * @param {string} slip3_utxo_key
670
- * @param {string} recipient_public_key
671
- * @param {Uint8Array} tx_msg
672
- * @returns {Promise<WasmTransaction>}
728
+ * @param {bigint} duration_in_ms
729
+ * @returns {Promise<void>}
673
730
  */
674
- export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
675
- 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));
731
+ export function process_timer_event(duration_in_ms) {
732
+ const ret = wasm.process_timer_event(duration_in_ms);
676
733
  return takeObject(ret);
677
734
  }
678
735
 
@@ -690,53 +747,8 @@ export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, s
690
747
  return takeObject(ret);
691
748
  }
692
749
 
693
- /**
694
- * @param {Uint8Array} buffer
695
- * @param {bigint} peer_index
696
- * @returns {Promise<void>}
697
- */
698
- export function process_msg_buffer_from_peer(buffer, peer_index) {
699
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
700
- return takeObject(ret);
701
- }
702
-
703
- /**
704
- * @returns {Promise<Array<any>>}
705
- */
706
- export function get_nft_list() {
707
- const ret = wasm.get_nft_list();
708
- return takeObject(ret);
709
- }
710
-
711
- /**
712
- * @param {WasmBalanceSnapshot} snapshot
713
- * @returns {Promise<void>}
714
- */
715
- export function update_from_balance_snapshot(snapshot) {
716
- _assertClass(snapshot, WasmBalanceSnapshot);
717
- var ptr0 = snapshot.__destroy_into_raw();
718
- const ret = wasm.update_from_balance_snapshot(ptr0);
719
- return takeObject(ret);
720
- }
721
-
722
- /**
723
- * @param {bigint} current_time
724
- * @returns {Promise<void>}
725
- */
726
- export function process_stat_interval(current_time) {
727
- const ret = wasm.process_stat_interval(current_time);
728
- return takeObject(ret);
729
- }
730
-
731
- function handleError(f, args) {
732
- try {
733
- return f.apply(this, args);
734
- } catch (e) {
735
- wasm.__wbindgen_exn_store(addHeapObject(e));
736
- }
737
- }
738
- function __wbg_adapter_393(arg0, arg1, arg2, arg3) {
739
- wasm.wasm_bindgen__convert__closures__invoke2_mut__hbc768321d477e205(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
750
+ function __wbg_adapter_406(arg0, arg1, arg2, arg3) {
751
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h58ba5fc31ee09770(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
740
752
  }
741
753
 
742
754
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2660,22 +2672,34 @@ function __wbg_get_imports() {
2660
2672
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2661
2673
  takeObject(arg0);
2662
2674
  };
2663
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2664
- const ret = BigInt.asUintN(64, arg0);
2665
- return addHeapObject(ret);
2666
- };
2667
2675
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2668
2676
  const ret = getStringFromWasm0(arg0, arg1);
2669
2677
  return addHeapObject(ret);
2670
2678
  };
2671
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2672
- const ret = WasmWalletSlip.__wrap(arg0);
2679
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2680
+ const ret = WasmPeer.__wrap(arg0);
2681
+ return addHeapObject(ret);
2682
+ };
2683
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2684
+ const ret = WasmTransaction.__wrap(arg0);
2685
+ return addHeapObject(ret);
2686
+ };
2687
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2688
+ const ret = BigInt.asUintN(64, arg0);
2689
+ return addHeapObject(ret);
2690
+ };
2691
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2692
+ const ret = WasmBlock.__wrap(arg0);
2673
2693
  return addHeapObject(ret);
2674
2694
  };
2675
2695
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2676
2696
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2677
2697
  return addHeapObject(ret);
2678
2698
  };
2699
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2700
+ const ret = WasmNFT.__wrap(arg0);
2701
+ return addHeapObject(ret);
2702
+ };
2679
2703
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2680
2704
  const obj = getObject(arg1);
2681
2705
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2684,36 +2708,32 @@ function __wbg_get_imports() {
2684
2708
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2685
2709
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2686
2710
  };
2687
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2688
- const ret = WasmTransaction.__wrap(arg0);
2689
- return addHeapObject(ret);
2690
- };
2691
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2692
- const ret = WasmBlockchain.__wrap(arg0);
2711
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2712
+ const ret = WasmWallet.__wrap(arg0);
2693
2713
  return addHeapObject(ret);
2694
2714
  };
2695
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2696
- const ret = WasmNFT.__wrap(arg0);
2715
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2716
+ const ret = getObject(arg0);
2697
2717
  return addHeapObject(ret);
2698
2718
  };
2699
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2700
- const ret = WasmPeer.__wrap(arg0);
2719
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2720
+ const ret = WasmSlip.__wrap(arg0);
2701
2721
  return addHeapObject(ret);
2702
2722
  };
2703
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2704
- const ret = WasmBlock.__wrap(arg0);
2723
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2724
+ const ret = WasmBlockchain.__wrap(arg0);
2705
2725
  return addHeapObject(ret);
2706
2726
  };
2707
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2708
- const ret = WasmWallet.__wrap(arg0);
2727
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2728
+ const ret = WasmWalletSlip.__wrap(arg0);
2709
2729
  return addHeapObject(ret);
2710
2730
  };
2711
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2712
- const ret = getObject(arg0);
2731
+ imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2732
+ const ret = WasmPeerService.__wrap(arg0);
2713
2733
  return addHeapObject(ret);
2714
2734
  };
2715
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2716
- const ret = WasmSlip.__wrap(arg0);
2735
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2736
+ const ret = WasmHop.__wrap(arg0);
2717
2737
  return addHeapObject(ret);
2718
2738
  };
2719
2739
  imports.wbg.__wbindgen_is_object = function(arg0) {
@@ -2729,19 +2749,7 @@ function __wbg_get_imports() {
2729
2749
  const ret = getObject(arg0) in getObject(arg1);
2730
2750
  return ret;
2731
2751
  };
2732
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2733
- const ret = WasmHop.__wrap(arg0);
2734
- return addHeapObject(ret);
2735
- };
2736
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2737
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2738
- return addHeapObject(ret);
2739
- };
2740
- imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2741
- const ret = WasmPeerService.__wrap(arg0);
2742
- return addHeapObject(ret);
2743
- };
2744
- imports.wbg.__wbg_flushdata_02f5939a34c7adf1 = function(arg0, arg1) {
2752
+ imports.wbg.__wbg_flushdata_3e493160b5623279 = function(arg0, arg1) {
2745
2753
  let deferred0_0;
2746
2754
  let deferred0_1;
2747
2755
  try {
@@ -2752,7 +2760,7 @@ function __wbg_get_imports() {
2752
2760
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2753
2761
  }
2754
2762
  };
2755
- imports.wbg.__wbg_readvalue_6f58b8d737c8947f = function() { return handleError(function (arg0, arg1) {
2763
+ imports.wbg.__wbg_readvalue_5d0f093e1595617d = function() { return handleError(function (arg0, arg1) {
2756
2764
  let deferred0_0;
2757
2765
  let deferred0_1;
2758
2766
  try {
@@ -2764,13 +2772,13 @@ function __wbg_get_imports() {
2764
2772
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2765
2773
  }
2766
2774
  }, arguments) };
2767
- imports.wbg.__wbg_loadwallet_4fa9260e0e5b29ad = function() {
2775
+ imports.wbg.__wbg_loadwallet_59081515a24e409d = function() {
2768
2776
  MsgHandler.load_wallet();
2769
2777
  };
2770
- imports.wbg.__wbg_savewallet_db43f92c74d98db4 = function() {
2778
+ imports.wbg.__wbg_savewallet_86e332f8fdf6bc63 = function() {
2771
2779
  MsgHandler.save_wallet();
2772
2780
  };
2773
- imports.wbg.__wbg_writevalue_64abf78ec7b7a0a7 = function(arg0, arg1, arg2) {
2781
+ imports.wbg.__wbg_writevalue_9f48cba844bce929 = function(arg0, arg1, arg2) {
2774
2782
  let deferred0_0;
2775
2783
  let deferred0_1;
2776
2784
  try {
@@ -2781,7 +2789,7 @@ function __wbg_get_imports() {
2781
2789
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2782
2790
  }
2783
2791
  };
2784
- imports.wbg.__wbg_appendvalue_dfb9143a42c8a96f = function(arg0, arg1, arg2) {
2792
+ imports.wbg.__wbg_appendvalue_e7ab232264abb10f = function(arg0, arg1, arg2) {
2785
2793
  let deferred0_0;
2786
2794
  let deferred0_1;
2787
2795
  try {
@@ -2792,7 +2800,7 @@ function __wbg_get_imports() {
2792
2800
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2793
2801
  }
2794
2802
  };
2795
- imports.wbg.__wbg_removevalue_54c2c52edfb40121 = function() { return handleError(function (arg0, arg1) {
2803
+ imports.wbg.__wbg_removevalue_c5af6fcdb8e65e93 = function() { return handleError(function (arg0, arg1) {
2796
2804
  let deferred0_0;
2797
2805
  let deferred0_1;
2798
2806
  try {
@@ -2804,10 +2812,10 @@ function __wbg_get_imports() {
2804
2812
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2805
2813
  }
2806
2814
  }, arguments) };
2807
- imports.wbg.__wbg_sendmessage_dd1c456fc24d6ae2 = function(arg0, arg1) {
2815
+ imports.wbg.__wbg_sendmessage_360fd9c5b7eb6710 = function(arg0, arg1) {
2808
2816
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2809
2817
  };
2810
- imports.wbg.__wbg_connecttopeer_2e3115f373923a34 = function() { return handleError(function (arg0, arg1, arg2) {
2818
+ imports.wbg.__wbg_connecttopeer_099b3d1c7c6e20da = function() { return handleError(function (arg0, arg1, arg2) {
2811
2819
  let deferred0_0;
2812
2820
  let deferred0_1;
2813
2821
  try {
@@ -2819,13 +2827,13 @@ function __wbg_get_imports() {
2819
2827
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2820
2828
  }
2821
2829
  }, arguments) };
2822
- imports.wbg.__wbg_getmyservices_247b7276a00aa7a1 = function() {
2830
+ imports.wbg.__wbg_getmyservices_012e89506828bc2f = function() {
2823
2831
  const ret = MsgHandler.get_my_services();
2824
2832
  _assertClass(ret, WasmPeerServiceList);
2825
2833
  var ptr1 = ret.__destroy_into_raw();
2826
2834
  return ptr1;
2827
2835
  };
2828
- imports.wbg.__wbg_isexistingfile_54560db336503ad5 = function() { return handleError(function (arg0, arg1) {
2836
+ imports.wbg.__wbg_isexistingfile_89e9eb758e45ff5e = function() { return handleError(function (arg0, arg1) {
2829
2837
  let deferred0_0;
2830
2838
  let deferred0_1;
2831
2839
  try {
@@ -2837,27 +2845,27 @@ function __wbg_get_imports() {
2837
2845
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2838
2846
  }
2839
2847
  }, arguments) };
2840
- imports.wbg.__wbg_processapicall_d409cedb7f665312 = function(arg0, arg1, arg2) {
2848
+ imports.wbg.__wbg_processapicall_06672752efc468c6 = function(arg0, arg1, arg2) {
2841
2849
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2842
2850
  };
2843
- imports.wbg.__wbg_processapierror_e2c1f858819cf5cf = function(arg0, arg1, arg2) {
2851
+ imports.wbg.__wbg_processapierror_f821f4aea886cad6 = function(arg0, arg1, arg2) {
2844
2852
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2845
2853
  };
2846
- imports.wbg.__wbg_processapisuccess_dc587307a8ec6a59 = function(arg0, arg1, arg2) {
2854
+ imports.wbg.__wbg_processapisuccess_b088c5350b1602ab = function(arg0, arg1, arg2) {
2847
2855
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2848
2856
  };
2849
- imports.wbg.__wbg_sendmessagetoall_5c38c389c7434159 = function(arg0, arg1) {
2857
+ imports.wbg.__wbg_sendmessagetoall_6fcbaa970ca58136 = function(arg0, arg1) {
2850
2858
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2851
2859
  };
2852
- imports.wbg.__wbg_disconnectfrompeer_41e790d250243fd7 = function() { return handleError(function (arg0) {
2860
+ imports.wbg.__wbg_disconnectfrompeer_300d63aa93f61d50 = function() { return handleError(function (arg0) {
2853
2861
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2854
2862
  return addHeapObject(ret);
2855
2863
  }, arguments) };
2856
- imports.wbg.__wbg_loadblockfilelist_5e719b9d74178df6 = function() { return handleError(function () {
2864
+ imports.wbg.__wbg_loadblockfilelist_7ebdc6dd8988f2e9 = function() { return handleError(function () {
2857
2865
  const ret = MsgHandler.load_block_file_list();
2858
2866
  return addHeapObject(ret);
2859
2867
  }, arguments) };
2860
- imports.wbg.__wbg_sendinterfaceevent_890fc416d90ba971 = function(arg0, arg1, arg2, arg3, arg4) {
2868
+ imports.wbg.__wbg_sendinterfaceevent_3091ea002268b66a = function(arg0, arg1, arg2, arg3, arg4) {
2861
2869
  let deferred0_0;
2862
2870
  let deferred0_1;
2863
2871
  let deferred1_0;
@@ -2873,7 +2881,7 @@ function __wbg_get_imports() {
2873
2881
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2874
2882
  }
2875
2883
  };
2876
- imports.wbg.__wbg_sendblocksuccess_294795b33a4eb2c8 = function(arg0, arg1, arg2) {
2884
+ imports.wbg.__wbg_sendblocksuccess_4076186533b0dd4b = function(arg0, arg1, arg2) {
2877
2885
  let deferred0_0;
2878
2886
  let deferred0_1;
2879
2887
  try {
@@ -2884,10 +2892,10 @@ function __wbg_get_imports() {
2884
2892
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2885
2893
  }
2886
2894
  };
2887
- imports.wbg.__wbg_sendwalletupdate_6128fb2a65955772 = function() {
2895
+ imports.wbg.__wbg_sendwalletupdate_a4a45445d63fa2a1 = function() {
2888
2896
  MsgHandler.send_wallet_update();
2889
2897
  };
2890
- imports.wbg.__wbg_sendnewversionalert_90c0405e8fc96529 = function(arg0, arg1, arg2) {
2898
+ imports.wbg.__wbg_sendnewversionalert_3ec71b6bf65d28d0 = function(arg0, arg1, arg2) {
2891
2899
  let deferred0_0;
2892
2900
  let deferred0_1;
2893
2901
  try {
@@ -2898,13 +2906,13 @@ function __wbg_get_imports() {
2898
2906
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2899
2907
  }
2900
2908
  };
2901
- imports.wbg.__wbg_sendblockfetchstatusevent_f8ad3e0c574a3d2f = function(arg0) {
2909
+ imports.wbg.__wbg_sendblockfetchstatusevent_23c7a26cfd3a5d15 = function(arg0) {
2902
2910
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2903
2911
  };
2904
- imports.wbg.__wbg_sendnewchaindetectedevent_814f1cb2a0968c86 = function() {
2912
+ imports.wbg.__wbg_sendnewchaindetectedevent_9814eea25ed127aa = function() {
2905
2913
  MsgHandler.send_new_chain_detected_event();
2906
2914
  };
2907
- imports.wbg.__wbg_fetchblockfrompeer_1ae370fdece9cb73 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2915
+ imports.wbg.__wbg_fetchblockfrompeer_ab58f5ed93834e68 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2908
2916
  let deferred0_0;
2909
2917
  let deferred0_1;
2910
2918
  try {
@@ -2916,7 +2924,7 @@ function __wbg_get_imports() {
2916
2924
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2917
2925
  }
2918
2926
  }, arguments) };
2919
- imports.wbg.__wbg_ensureblockdirectoryexists_7fcab2b9dc2610fe = function() { return handleError(function (arg0, arg1) {
2927
+ imports.wbg.__wbg_ensureblockdirectoryexists_e06f5acab13f0888 = function() { return handleError(function (arg0, arg1) {
2920
2928
  let deferred0_0;
2921
2929
  let deferred0_1;
2922
2930
  try {
@@ -2927,6 +2935,10 @@ function __wbg_get_imports() {
2927
2935
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2928
2936
  }
2929
2937
  }, arguments) };
2938
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2939
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2940
+ return addHeapObject(ret);
2941
+ };
2930
2942
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2931
2943
  const ret = getObject(arg0) == getObject(arg1);
2932
2944
  return ret;
@@ -3174,7 +3186,7 @@ function __wbg_get_imports() {
3174
3186
  const a = state0.a;
3175
3187
  state0.a = 0;
3176
3188
  try {
3177
- return __wbg_adapter_393(a, state0.b, arg0, arg1);
3189
+ return __wbg_adapter_406(a, state0.b, arg0, arg1);
3178
3190
  } finally {
3179
3191
  state0.a = a;
3180
3192
  }
@@ -3235,8 +3247,8 @@ function __wbg_get_imports() {
3235
3247
  getInt32Memory0()[arg0 / 4 + 1] = len1;
3236
3248
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3237
3249
  };
3238
- imports.wbg.__wbindgen_closure_wrapper1619 = function(arg0, arg1, arg2) {
3239
- const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_38);
3250
+ imports.wbg.__wbindgen_closure_wrapper1627 = function(arg0, arg1, arg2) {
3251
+ const ret = makeMutClosure(arg0, arg1, 581, __wbg_adapter_38);
3240
3252
  return addHeapObject(ret);
3241
3253
  };
3242
3254