saito-wasm 0.2.173 → 0.2.174

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/node/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-7be8883e9ab9764a/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ae65b4fbc9a49f9c/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -243,34 +243,37 @@ function addBorrowedObject(obj) {
243
243
  return stack_pointer;
244
244
  }
245
245
  /**
246
- * @returns {Promise<string>}
246
+ * @param {Uint8Array} buffer
247
+ * @param {Uint8Array} hash
248
+ * @param {bigint} block_id
249
+ * @param {bigint} peer_index
250
+ * @returns {Promise<void>}
247
251
  */
248
- module.exports.get_peer_stats = function() {
249
- const ret = wasm.get_peer_stats();
252
+ module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
253
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
250
254
  return takeObject(ret);
251
255
  };
252
256
 
253
257
  /**
254
- * @param {string} slip1_utxo_key
255
- * @param {string} slip2_utxo_key
256
- * @param {string} slip3_utxo_key
257
- * @param {number} left_count
258
- * @param {number} right_count
259
- * @param {Uint8Array} tx_msg
260
- * @returns {Promise<WasmTransaction>}
258
+ * @param {Uint8Array} buffer
259
+ * @param {number} msg_index
260
+ * @param {bigint} peer_index
261
+ * @returns {Promise<void>}
261
262
  */
262
- module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
263
- 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));
263
+ module.exports.send_api_call = function(buffer, msg_index, peer_index) {
264
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
264
265
  return takeObject(ret);
265
266
  };
266
267
 
267
268
  /**
268
- * @param {Uint8Array} buffer
269
- * @param {bigint} peer_index
270
- * @returns {Promise<void>}
269
+ * @param {string} public_key
270
+ * @param {bigint} amount
271
+ * @param {bigint} fee
272
+ * @param {boolean} force_merge
273
+ * @returns {Promise<WasmTransaction>}
271
274
  */
272
- module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
273
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
275
+ module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
276
+ const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
274
277
  return takeObject(ret);
275
278
  };
276
279
 
@@ -286,60 +289,85 @@ module.exports.set_wallet_version = function(major, minor, patch) {
286
289
  };
287
290
 
288
291
  /**
289
- * @returns {string}
292
+ * @returns {Promise<string>}
290
293
  */
291
- module.exports.generate_private_key = function() {
292
- const ret = wasm.generate_private_key();
294
+ module.exports.get_stats = function() {
295
+ const ret = wasm.get_stats();
293
296
  return takeObject(ret);
294
297
  };
295
298
 
296
299
  /**
297
- * @param {string} nft_id_hex
298
- * @param {Uint8Array} tx_msg
299
- * @returns {Promise<WasmTransaction>}
300
+ * @returns {Promise<string>}
300
301
  */
301
- module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
302
- const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
303
- const len0 = WASM_VECTOR_LEN;
304
- const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
302
+ module.exports.get_peer_stats = function() {
303
+ const ret = wasm.get_peer_stats();
305
304
  return takeObject(ret);
306
305
  };
307
306
 
308
307
  /**
309
- * @returns {Promise<boolean>}
308
+ * @param {string} key
309
+ * @returns {boolean}
310
310
  */
311
- module.exports.produce_block_with_gt = function() {
312
- const ret = wasm.produce_block_with_gt();
313
- return takeObject(ret);
311
+ module.exports.is_valid_public_key = function(key) {
312
+ const ret = wasm.is_valid_public_key(addHeapObject(key));
313
+ return ret !== 0;
314
314
  };
315
315
 
316
316
  /**
317
- * @returns {Promise<Array<any>>}
317
+ * @param {bigint} amt
318
+ * @param {string} slip1_utxo_key
319
+ * @param {string} slip2_utxo_key
320
+ * @param {string} slip3_utxo_key
321
+ * @param {string} recipient_public_key
322
+ * @param {Uint8Array} tx_msg
323
+ * @returns {Promise<WasmTransaction>}
318
324
  */
319
- module.exports.get_nft_list = function() {
320
- const ret = wasm.get_nft_list();
325
+ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
326
+ 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));
321
327
  return takeObject(ret);
322
328
  };
323
329
 
324
330
  /**
325
- * @param {Uint8Array} hash
326
- * @param {bigint} block_id
327
331
  * @param {bigint} peer_index
328
332
  * @returns {Promise<void>}
329
333
  */
330
- module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
331
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
334
+ module.exports.process_peer_disconnection = function(peer_index) {
335
+ const ret = wasm.process_peer_disconnection(peer_index);
332
336
  return takeObject(ret);
333
337
  };
334
338
 
335
339
  /**
336
- * @returns {Promise<WasmBlockchain>}
340
+ * @param {string} nft_id_hex
341
+ * @param {Uint8Array} tx_msg
342
+ * @returns {Promise<WasmTransaction>}
337
343
  */
338
- module.exports.get_blockchain = function() {
339
- const ret = wasm.get_blockchain();
344
+ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
345
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
+ const len0 = WASM_VECTOR_LEN;
347
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
340
348
  return takeObject(ret);
341
349
  };
342
350
 
351
+ /**
352
+ * @param {string} private_key
353
+ * @returns {string}
354
+ */
355
+ module.exports.generate_public_key = function(private_key) {
356
+ try {
357
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
358
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
359
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
360
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
361
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
362
+ if (r2) {
363
+ throw takeObject(r1);
364
+ }
365
+ return takeObject(r0);
366
+ } finally {
367
+ wasm.__wbindgen_add_to_stack_pointer(16);
368
+ }
369
+ };
370
+
343
371
  /**
344
372
  * @param {bigint} peer_index
345
373
  * @param {string} public_key
@@ -351,232 +379,244 @@ module.exports.process_stun_peer = function(peer_index, public_key) {
351
379
  };
352
380
 
353
381
  /**
354
- * @param {bigint} num
355
- * @param {bigint} deposit
356
- * @param {Uint8Array} tx_msg
357
- * @param {bigint} fee
358
- * @param {string} recipient_public_key
359
- * @param {string} nft_type
360
- * @returns {Promise<WasmTransaction>}
382
+ * @param {Array<any>} keys
383
+ * @returns {Promise<WasmBalanceSnapshot>}
361
384
  */
362
- module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
363
- const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
385
+ module.exports.get_balance_snapshot = function(keys) {
386
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
364
387
  return takeObject(ret);
365
388
  };
366
389
 
367
390
  /**
368
- * @param {WasmBalanceSnapshot} snapshot
369
- * @returns {Promise<void>}
391
+ * @returns {Promise<WasmWallet>}
370
392
  */
371
- module.exports.update_from_balance_snapshot = function(snapshot) {
372
- _assertClass(snapshot, WasmBalanceSnapshot);
373
- var ptr0 = snapshot.__destroy_into_raw();
374
- const ret = wasm.update_from_balance_snapshot(ptr0);
393
+ module.exports.get_wallet = function() {
394
+ const ret = wasm.get_wallet();
375
395
  return takeObject(ret);
376
396
  };
377
397
 
378
398
  /**
379
- * @returns {Promise<string>}
399
+ * @param {string} config_json
400
+ * @param {string} private_key
401
+ * @param {number} log_level_num
402
+ * @param {bigint} hasten_multiplier
403
+ * @param {boolean} delete_old_blocks
404
+ * @returns {Promise<any>}
380
405
  */
381
- module.exports.get_latest_block_hash = function() {
382
- const ret = wasm.get_latest_block_hash();
406
+ module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
407
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
383
408
  return takeObject(ret);
384
409
  };
385
410
 
386
411
  /**
387
- * @param {Array<any>} keys
388
- * @returns {Promise<WasmBalanceSnapshot>}
412
+ * @param {bigint} peer_index
413
+ * @returns {Promise<void>}
389
414
  */
390
- module.exports.get_balance_snapshot = function(keys) {
391
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
415
+ module.exports.remove_stun_peer = function(peer_index) {
416
+ const ret = wasm.remove_stun_peer(peer_index);
392
417
  return takeObject(ret);
393
418
  };
394
419
 
395
420
  /**
396
- * @returns {Promise<string>}
421
+ * @param {bigint} num
422
+ * @param {bigint} deposit
423
+ * @param {Uint8Array} tx_msg
424
+ * @param {bigint} fee
425
+ * @param {string} recipient_public_key
426
+ * @param {string} nft_type
427
+ * @returns {Promise<WasmTransaction>}
397
428
  */
398
- module.exports.get_stats = function() {
399
- const ret = wasm.get_stats();
429
+ module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
430
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
400
431
  return takeObject(ret);
401
432
  };
402
433
 
403
434
  /**
404
- * @param {Uint8Array} buffer
405
- * @returns {string}
435
+ * @param {string} slip1_utxo_key
436
+ * @param {string} slip2_utxo_key
437
+ * @param {string} slip3_utxo_key
438
+ * @returns {Promise<WasmTransaction>}
406
439
  */
407
- module.exports.hash = function(buffer) {
408
- const ret = wasm.hash(addHeapObject(buffer));
440
+ module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
441
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
409
442
  return takeObject(ret);
410
443
  };
411
444
 
412
445
  /**
413
- * @returns {Promise<string>}
446
+ * @param {bigint} current_time
447
+ * @returns {Promise<void>}
414
448
  */
415
- module.exports.get_congestion_stats = function() {
416
- const ret = wasm.get_congestion_stats();
449
+ module.exports.process_stat_interval = function(current_time) {
450
+ const ret = wasm.process_stat_interval(current_time);
417
451
  return takeObject(ret);
418
452
  };
419
453
 
420
454
  /**
421
- * @param {Uint8Array} buffer
422
- * @param {Uint8Array} hash
423
- * @param {bigint} block_id
424
- * @param {bigint} peer_index
425
- * @returns {Promise<void>}
455
+ * @param {Array<any>} public_keys
456
+ * @param {BigUint64Array} amounts
457
+ * @param {bigint} fee
458
+ * @param {boolean} _force_merge
459
+ * @returns {Promise<WasmTransaction>}
426
460
  */
427
- module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
428
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
461
+ module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
462
+ const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
429
463
  return takeObject(ret);
430
464
  };
431
465
 
432
466
  /**
433
- * @param {Uint8Array} buffer
434
- * @param {number} msg_index
435
- * @param {bigint} peer_index
436
- * @returns {Promise<void>}
467
+ * @returns {Promise<bigint>}
437
468
  */
438
- module.exports.send_api_success = function(buffer, msg_index, peer_index) {
439
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
469
+ module.exports.get_next_peer_index = function() {
470
+ const ret = wasm.get_next_peer_index();
440
471
  return takeObject(ret);
441
472
  };
442
473
 
443
474
  /**
444
- * @param {string} slip1_utxo_key
445
- * @param {string} slip2_utxo_key
446
- * @param {string} slip3_utxo_key
447
- * @returns {Promise<WasmTransaction>}
475
+ * @param {bigint} duration_in_ms
476
+ * @returns {Promise<void>}
448
477
  */
449
- module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
450
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
478
+ module.exports.process_timer_event = function(duration_in_ms) {
479
+ const ret = wasm.process_timer_event(duration_in_ms);
451
480
  return takeObject(ret);
452
481
  };
453
482
 
454
483
  /**
455
- * @param {bigint} amt
456
- * @param {string} slip1_utxo_key
457
- * @param {string} slip2_utxo_key
458
- * @param {string} slip3_utxo_key
459
- * @param {string} recipient_public_key
460
- * @param {Uint8Array} tx_msg
461
- * @returns {Promise<WasmTransaction>}
484
+ * @returns {Promise<any>}
462
485
  */
463
- module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
464
- 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));
486
+ module.exports.get_confirmations = function() {
487
+ const ret = wasm.get_confirmations();
465
488
  return takeObject(ret);
466
489
  };
467
490
 
468
491
  /**
492
+ * @param {Uint8Array} buffer
469
493
  * @param {bigint} peer_index
470
494
  * @returns {Promise<void>}
471
495
  */
472
- module.exports.process_peer_disconnection = function(peer_index) {
473
- const ret = wasm.process_peer_disconnection(peer_index);
496
+ module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
497
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
474
498
  return takeObject(ret);
475
499
  };
476
500
 
477
501
  /**
478
- * @returns {Promise<bigint>}
502
+ * @param {Uint8Array} buffer
503
+ * @param {number} msg_index
504
+ * @param {bigint} peer_index
505
+ * @returns {Promise<void>}
479
506
  */
480
- module.exports.get_next_peer_index = function() {
481
- const ret = wasm.get_next_peer_index();
507
+ module.exports.send_api_success = function(buffer, msg_index, peer_index) {
508
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
482
509
  return takeObject(ret);
483
510
  };
484
511
 
485
512
  /**
486
- * @param {string} public_key
487
- * @param {bigint} amount
488
- * @param {bigint} fee
489
- * @param {boolean} force_merge
490
- * @returns {Promise<WasmTransaction>}
513
+ * @returns {Promise<Array<any>>}
491
514
  */
492
- module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
493
- const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
515
+ module.exports.get_nft_list = function() {
516
+ const ret = wasm.get_nft_list();
494
517
  return takeObject(ret);
495
518
  };
496
519
 
497
520
  /**
498
521
  * @param {Uint8Array} buffer
499
- * @param {string} signature
500
- * @param {string} public_key
501
- * @returns {boolean}
522
+ * @param {string} private_key
523
+ * @returns {string}
502
524
  */
503
- module.exports.verify_signature = function(buffer, signature, public_key) {
504
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
505
- return ret !== 0;
525
+ module.exports.sign_buffer = function(buffer, private_key) {
526
+ try {
527
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
528
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
529
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
530
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
531
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
532
+ if (r2) {
533
+ throw takeObject(r1);
534
+ }
535
+ return takeObject(r0);
536
+ } finally {
537
+ wasm.__wbindgen_add_to_stack_pointer(16);
538
+ }
506
539
  };
507
540
 
508
541
  /**
542
+ * @param {WasmBalanceSnapshot} snapshot
509
543
  * @returns {Promise<void>}
510
544
  */
511
- module.exports.start_from_received_ghost_chain = function() {
512
- const ret = wasm.start_from_received_ghost_chain();
545
+ module.exports.update_from_balance_snapshot = function(snapshot) {
546
+ _assertClass(snapshot, WasmBalanceSnapshot);
547
+ var ptr0 = snapshot.__destroy_into_raw();
548
+ const ret = wasm.update_from_balance_snapshot(ptr0);
513
549
  return takeObject(ret);
514
550
  };
515
551
 
516
552
  /**
517
- * @param {bigint} peer_index
553
+ * @param {WasmTransaction} tx
518
554
  * @returns {Promise<void>}
519
555
  */
520
- module.exports.remove_stun_peer = function(peer_index) {
521
- const ret = wasm.remove_stun_peer(peer_index);
556
+ module.exports.propagate_transaction = function(tx) {
557
+ _assertClass(tx, WasmTransaction);
558
+ const ret = wasm.propagate_transaction(tx.__wbg_ptr);
522
559
  return takeObject(ret);
523
560
  };
524
561
 
525
562
  /**
526
- * @param {string} config_json
527
- * @param {string} private_key
528
- * @param {number} log_level_num
529
- * @param {bigint} hasten_multiplier
530
- * @param {boolean} delete_old_blocks
531
- * @returns {Promise<any>}
563
+ * @returns {Promise<string>}
532
564
  */
533
- module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
534
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
565
+ module.exports.get_latest_block_hash = function() {
566
+ const ret = wasm.get_latest_block_hash();
535
567
  return takeObject(ret);
536
568
  };
537
569
 
538
570
  /**
539
- * @returns {Promise<WasmWallet>}
571
+ * @returns {Promise<boolean>}
540
572
  */
541
- module.exports.get_wallet = function() {
542
- const ret = wasm.get_wallet();
573
+ module.exports.produce_block_with_gt = function() {
574
+ const ret = wasm.produce_block_with_gt();
543
575
  return takeObject(ret);
544
576
  };
545
577
 
546
578
  /**
547
- * @param {Uint8Array} buffer
548
- * @param {number} msg_index
549
- * @param {bigint} peer_index
550
- * @returns {Promise<void>}
579
+ * @returns {Promise<boolean>}
551
580
  */
552
- module.exports.send_api_error = function(buffer, msg_index, peer_index) {
553
- const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
581
+ module.exports.produce_block_without_gt = function() {
582
+ const ret = wasm.produce_block_without_gt();
554
583
  return takeObject(ret);
555
584
  };
556
585
 
557
586
  /**
558
- * @returns {Promise<any>}
587
+ * @param {Uint8Array} buffer
588
+ * @param {string} signature
589
+ * @param {string} public_key
590
+ * @returns {boolean}
559
591
  */
560
- module.exports.get_confirmations = function() {
561
- const ret = wasm.get_confirmations();
562
- return takeObject(ret);
592
+ module.exports.verify_signature = function(buffer, signature, public_key) {
593
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
594
+ return ret !== 0;
563
595
  };
564
596
 
565
597
  /**
566
- * @returns {Promise<Array<any>>}
598
+ * @returns {string}
567
599
  */
568
- module.exports.get_mempool_txs = function() {
569
- const ret = wasm.get_mempool_txs();
600
+ module.exports.generate_private_key = function() {
601
+ const ret = wasm.generate_private_key();
570
602
  return takeObject(ret);
571
603
  };
572
604
 
573
605
  /**
574
- * @param {WasmTransaction} tx
606
+ * @param {bigint} threshold
575
607
  * @returns {Promise<void>}
576
608
  */
577
- module.exports.propagate_transaction = function(tx) {
578
- _assertClass(tx, WasmTransaction);
579
- const ret = wasm.propagate_transaction(tx.__wbg_ptr);
609
+ module.exports.write_issuance_file = function(threshold) {
610
+ const ret = wasm.write_issuance_file(threshold);
611
+ return takeObject(ret);
612
+ };
613
+
614
+ /**
615
+ * @param {Uint8Array} buffer
616
+ * @returns {string}
617
+ */
618
+ module.exports.hash = function(buffer) {
619
+ const ret = wasm.hash(addHeapObject(buffer));
580
620
  return takeObject(ret);
581
621
  };
582
622
 
@@ -589,48 +629,45 @@ module.exports.disable_producing_blocks_by_timer = function() {
589
629
  };
590
630
 
591
631
  /**
592
- * @param {bigint} peer_index
593
- * @param {string} ip
594
- * @returns {Promise<void>}
632
+ * @returns {Promise<string>}
595
633
  */
596
- module.exports.process_new_peer = function(peer_index, ip) {
597
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
634
+ module.exports.get_congestion_stats = function() {
635
+ const ret = wasm.get_congestion_stats();
598
636
  return takeObject(ret);
599
637
  };
600
638
 
601
639
  /**
640
+ * @param {Uint8Array} hash
641
+ * @param {bigint} block_id
602
642
  * @param {bigint} peer_index
603
- * @returns {Promise<WasmPeer | undefined>}
643
+ * @returns {Promise<void>}
604
644
  */
605
- module.exports.get_peer = function(peer_index) {
606
- const ret = wasm.get_peer(peer_index);
645
+ module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
646
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
607
647
  return takeObject(ret);
608
648
  };
609
649
 
610
650
  /**
611
- * @param {string} key
612
- * @returns {boolean}
651
+ * @returns {Promise<WasmBlockchain>}
613
652
  */
614
- module.exports.is_valid_public_key = function(key) {
615
- const ret = wasm.is_valid_public_key(addHeapObject(key));
616
- return ret !== 0;
653
+ module.exports.get_blockchain = function() {
654
+ const ret = wasm.get_blockchain();
655
+ return takeObject(ret);
617
656
  };
618
657
 
619
658
  /**
620
- * @param {bigint} duration_in_ms
621
659
  * @returns {Promise<void>}
622
660
  */
623
- module.exports.process_timer_event = function(duration_in_ms) {
624
- const ret = wasm.process_timer_event(duration_in_ms);
661
+ module.exports.start_from_received_ghost_chain = function() {
662
+ const ret = wasm.start_from_received_ghost_chain();
625
663
  return takeObject(ret);
626
664
  };
627
665
 
628
666
  /**
629
- * @param {bigint} threshold
630
- * @returns {Promise<void>}
667
+ * @returns {Promise<Array<any>>}
631
668
  */
632
- module.exports.write_issuance_file = function(threshold) {
633
- const ret = wasm.write_issuance_file(threshold);
669
+ module.exports.get_mempool_txs = function() {
670
+ const ret = wasm.get_mempool_txs();
634
671
  return takeObject(ret);
635
672
  };
636
673
 
@@ -643,101 +680,64 @@ module.exports.get_peers = function() {
643
680
  };
644
681
 
645
682
  /**
646
- * @param {Uint8Array} buffer
647
- * @param {number} msg_index
648
- * @param {bigint} peer_index
649
- * @returns {Promise<void>}
683
+ * @param {string} slip1_utxo_key
684
+ * @param {string} slip2_utxo_key
685
+ * @param {string} slip3_utxo_key
686
+ * @param {number} left_count
687
+ * @param {number} right_count
688
+ * @param {Uint8Array} tx_msg
689
+ * @returns {Promise<WasmTransaction>}
650
690
  */
651
- module.exports.send_api_call = function(buffer, msg_index, peer_index) {
652
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
691
+ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
692
+ 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));
653
693
  return takeObject(ret);
654
694
  };
655
695
 
656
696
  /**
657
- * @param {bigint} current_time
658
- * @returns {Promise<void>}
697
+ * @param {string} public_key
698
+ * @returns {Promise<Array<any>>}
659
699
  */
660
- module.exports.process_stat_interval = function(current_time) {
661
- const ret = wasm.process_stat_interval(current_time);
700
+ module.exports.get_account_slips = function(public_key) {
701
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
662
702
  return takeObject(ret);
663
703
  };
664
704
 
665
705
  /**
666
- * @param {Array<any>} public_keys
667
- * @param {BigUint64Array} amounts
668
- * @param {bigint} fee
669
- * @param {boolean} _force_merge
670
- * @returns {Promise<WasmTransaction>}
706
+ * @param {string} block_hash
707
+ * @returns {Promise<WasmBlock>}
671
708
  */
672
- module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
673
- const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
709
+ module.exports.get_block = function(block_hash) {
710
+ const ret = wasm.get_block(addHeapObject(block_hash));
674
711
  return takeObject(ret);
675
712
  };
676
713
 
677
714
  /**
678
- * @returns {Promise<boolean>}
715
+ * @param {bigint} peer_index
716
+ * @returns {Promise<WasmPeer | undefined>}
679
717
  */
680
- module.exports.produce_block_without_gt = function() {
681
- const ret = wasm.produce_block_without_gt();
718
+ module.exports.get_peer = function(peer_index) {
719
+ const ret = wasm.get_peer(peer_index);
682
720
  return takeObject(ret);
683
721
  };
684
722
 
685
723
  /**
686
- * @param {string} public_key
687
- * @returns {Promise<Array<any>>}
724
+ * @param {bigint} peer_index
725
+ * @param {string} ip
726
+ * @returns {Promise<void>}
688
727
  */
689
- module.exports.get_account_slips = function(public_key) {
690
- const ret = wasm.get_account_slips(addHeapObject(public_key));
728
+ module.exports.process_new_peer = function(peer_index, ip) {
729
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
691
730
  return takeObject(ret);
692
731
  };
693
732
 
694
733
  /**
695
734
  * @param {Uint8Array} buffer
696
- * @param {string} private_key
697
- * @returns {string}
698
- */
699
- module.exports.sign_buffer = function(buffer, private_key) {
700
- try {
701
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
702
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
703
- var r0 = getInt32Memory0()[retptr / 4 + 0];
704
- var r1 = getInt32Memory0()[retptr / 4 + 1];
705
- var r2 = getInt32Memory0()[retptr / 4 + 2];
706
- if (r2) {
707
- throw takeObject(r1);
708
- }
709
- return takeObject(r0);
710
- } finally {
711
- wasm.__wbindgen_add_to_stack_pointer(16);
712
- }
713
- };
714
-
715
- /**
716
- * @param {string} private_key
717
- * @returns {string}
718
- */
719
- module.exports.generate_public_key = function(private_key) {
720
- try {
721
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
722
- wasm.generate_public_key(retptr, addHeapObject(private_key));
723
- var r0 = getInt32Memory0()[retptr / 4 + 0];
724
- var r1 = getInt32Memory0()[retptr / 4 + 1];
725
- var r2 = getInt32Memory0()[retptr / 4 + 2];
726
- if (r2) {
727
- throw takeObject(r1);
728
- }
729
- return takeObject(r0);
730
- } finally {
731
- wasm.__wbindgen_add_to_stack_pointer(16);
732
- }
733
- };
734
-
735
- /**
736
- * @param {string} block_hash
737
- * @returns {Promise<WasmBlock>}
735
+ * @param {number} msg_index
736
+ * @param {bigint} peer_index
737
+ * @returns {Promise<void>}
738
738
  */
739
- module.exports.get_block = function(block_hash) {
740
- const ret = wasm.get_block(addHeapObject(block_hash));
739
+ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
740
+ const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
741
741
  return takeObject(ret);
742
742
  };
743
743
 
@@ -2684,18 +2684,14 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2684
2684
  takeObject(arg0);
2685
2685
  };
2686
2686
 
2687
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2688
- const ret = getStringFromWasm0(arg0, arg1);
2687
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2688
+ const ret = WasmNFT.__wrap(arg0);
2689
2689
  return addHeapObject(ret);
2690
2690
  };
2691
2691
 
2692
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2693
- const obj = getObject(arg1);
2694
- const ret = typeof(obj) === 'string' ? obj : undefined;
2695
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2696
- var len1 = WASM_VECTOR_LEN;
2697
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2698
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2692
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2693
+ const ret = getStringFromWasm0(arg0, arg1);
2694
+ return addHeapObject(ret);
2699
2695
  };
2700
2696
 
2701
2697
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
@@ -2703,23 +2699,18 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2703
2699
  return addHeapObject(ret);
2704
2700
  };
2705
2701
 
2706
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2707
- const ret = BigInt.asUintN(64, arg0);
2708
- return addHeapObject(ret);
2709
- };
2710
-
2711
2702
  module.exports.__wbg_wasmpeer_new = function(arg0) {
2712
2703
  const ret = WasmPeer.__wrap(arg0);
2713
2704
  return addHeapObject(ret);
2714
2705
  };
2715
2706
 
2716
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2717
- const ret = WasmWallet.__wrap(arg0);
2707
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2708
+ const ret = BigInt.asUintN(64, arg0);
2718
2709
  return addHeapObject(ret);
2719
2710
  };
2720
2711
 
2721
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2722
- const ret = WasmBlockchain.__wrap(arg0);
2712
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2713
+ const ret = getObject(arg0);
2723
2714
  return addHeapObject(ret);
2724
2715
  };
2725
2716
 
@@ -2738,9 +2729,13 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2738
2729
  return addHeapObject(ret);
2739
2730
  };
2740
2731
 
2741
- module.exports.__wbg_wasmnft_new = function(arg0) {
2742
- const ret = WasmNFT.__wrap(arg0);
2743
- return addHeapObject(ret);
2732
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2733
+ const obj = getObject(arg1);
2734
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2735
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2736
+ var len1 = WASM_VECTOR_LEN;
2737
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2738
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2744
2739
  };
2745
2740
 
2746
2741
  module.exports.__wbg_wasmslip_new = function(arg0) {
@@ -2748,8 +2743,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2748
2743
  return addHeapObject(ret);
2749
2744
  };
2750
2745
 
2751
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2752
- const ret = getObject(arg0);
2746
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2747
+ const ret = WasmBlockchain.__wrap(arg0);
2748
+ return addHeapObject(ret);
2749
+ };
2750
+
2751
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2752
+ const ret = WasmWallet.__wrap(arg0);
2753
2753
  return addHeapObject(ret);
2754
2754
  };
2755
2755
 
@@ -2774,7 +2774,7 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
2774
2774
  return addHeapObject(ret);
2775
2775
  };
2776
2776
 
2777
- module.exports.__wbg_flushdata_782694d9b96c64ed = function(arg0, arg1) {
2777
+ module.exports.__wbg_flushdata_69f5339cf155fcf4 = function(arg0, arg1) {
2778
2778
  let deferred0_0;
2779
2779
  let deferred0_1;
2780
2780
  try {
@@ -2786,7 +2786,7 @@ module.exports.__wbg_flushdata_782694d9b96c64ed = function(arg0, arg1) {
2786
2786
  }
2787
2787
  };
2788
2788
 
2789
- module.exports.__wbg_readvalue_c97d73d5a2788af3 = function() { return handleError(function (arg0, arg1) {
2789
+ module.exports.__wbg_readvalue_db587e79e6f3fb9e = function() { return handleError(function (arg0, arg1) {
2790
2790
  let deferred0_0;
2791
2791
  let deferred0_1;
2792
2792
  try {
@@ -2799,15 +2799,15 @@ module.exports.__wbg_readvalue_c97d73d5a2788af3 = function() { return handleErro
2799
2799
  }
2800
2800
  }, arguments) };
2801
2801
 
2802
- module.exports.__wbg_loadwallet_195579a7d3db528c = function() {
2802
+ module.exports.__wbg_loadwallet_9a8ac44bd0e449f2 = function() {
2803
2803
  MsgHandler.load_wallet();
2804
2804
  };
2805
2805
 
2806
- module.exports.__wbg_savewallet_33279d81a586665d = function() {
2806
+ module.exports.__wbg_savewallet_08659aa41a3a3b8c = function() {
2807
2807
  MsgHandler.save_wallet();
2808
2808
  };
2809
2809
 
2810
- module.exports.__wbg_writevalue_463aeeb91d56f3d5 = function(arg0, arg1, arg2) {
2810
+ module.exports.__wbg_writevalue_829d6afba3d7e073 = function(arg0, arg1, arg2) {
2811
2811
  let deferred0_0;
2812
2812
  let deferred0_1;
2813
2813
  try {
@@ -2819,7 +2819,7 @@ module.exports.__wbg_writevalue_463aeeb91d56f3d5 = function(arg0, arg1, arg2) {
2819
2819
  }
2820
2820
  };
2821
2821
 
2822
- module.exports.__wbg_appendvalue_b427962970b5abb6 = function(arg0, arg1, arg2) {
2822
+ module.exports.__wbg_appendvalue_717ada2450cd8353 = function(arg0, arg1, arg2) {
2823
2823
  let deferred0_0;
2824
2824
  let deferred0_1;
2825
2825
  try {
@@ -2831,7 +2831,7 @@ module.exports.__wbg_appendvalue_b427962970b5abb6 = function(arg0, arg1, arg2) {
2831
2831
  }
2832
2832
  };
2833
2833
 
2834
- module.exports.__wbg_removevalue_3c1595639830a6b1 = function() { return handleError(function (arg0, arg1) {
2834
+ module.exports.__wbg_removevalue_5e61c5d5776e1642 = function() { return handleError(function (arg0, arg1) {
2835
2835
  let deferred0_0;
2836
2836
  let deferred0_1;
2837
2837
  try {
@@ -2844,11 +2844,11 @@ module.exports.__wbg_removevalue_3c1595639830a6b1 = function() { return handleEr
2844
2844
  }
2845
2845
  }, arguments) };
2846
2846
 
2847
- module.exports.__wbg_sendmessage_315b5ec1a9b4580d = function(arg0, arg1) {
2847
+ module.exports.__wbg_sendmessage_a2d8f51709ef90ba = function(arg0, arg1) {
2848
2848
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2849
2849
  };
2850
2850
 
2851
- module.exports.__wbg_connecttopeer_3cdd1ebe4a6a8f2a = function() { return handleError(function (arg0, arg1, arg2) {
2851
+ module.exports.__wbg_connecttopeer_044f65cc51be6b22 = function() { return handleError(function (arg0, arg1, arg2) {
2852
2852
  let deferred0_0;
2853
2853
  let deferred0_1;
2854
2854
  try {
@@ -2861,14 +2861,14 @@ module.exports.__wbg_connecttopeer_3cdd1ebe4a6a8f2a = function() { return handle
2861
2861
  }
2862
2862
  }, arguments) };
2863
2863
 
2864
- module.exports.__wbg_getmyservices_6c00e5de42eb7e4d = function() {
2864
+ module.exports.__wbg_getmyservices_1954474087b66484 = function() {
2865
2865
  const ret = MsgHandler.get_my_services();
2866
2866
  _assertClass(ret, WasmPeerServiceList);
2867
2867
  var ptr1 = ret.__destroy_into_raw();
2868
2868
  return ptr1;
2869
2869
  };
2870
2870
 
2871
- module.exports.__wbg_isexistingfile_f87b68e97a90dba1 = function() { return handleError(function (arg0, arg1) {
2871
+ module.exports.__wbg_isexistingfile_b160b225b0ebf317 = function() { return handleError(function (arg0, arg1) {
2872
2872
  let deferred0_0;
2873
2873
  let deferred0_1;
2874
2874
  try {
@@ -2881,33 +2881,33 @@ module.exports.__wbg_isexistingfile_f87b68e97a90dba1 = function() { return handl
2881
2881
  }
2882
2882
  }, arguments) };
2883
2883
 
2884
- module.exports.__wbg_processapicall_90eb27310b01c5c9 = function(arg0, arg1, arg2) {
2884
+ module.exports.__wbg_processapicall_a09661040af24e29 = function(arg0, arg1, arg2) {
2885
2885
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2886
2886
  };
2887
2887
 
2888
- module.exports.__wbg_processapierror_0c077a8fbc642abd = function(arg0, arg1, arg2) {
2888
+ module.exports.__wbg_processapierror_c889a2b7d06c4549 = function(arg0, arg1, arg2) {
2889
2889
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2890
2890
  };
2891
2891
 
2892
- module.exports.__wbg_processapisuccess_83cda5fc8f709984 = function(arg0, arg1, arg2) {
2892
+ module.exports.__wbg_processapisuccess_f458fbe6c019cc75 = function(arg0, arg1, arg2) {
2893
2893
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2894
2894
  };
2895
2895
 
2896
- module.exports.__wbg_sendmessagetoall_65c26d42cf5ec0b1 = function(arg0, arg1) {
2896
+ module.exports.__wbg_sendmessagetoall_caeb7aa562fdcf58 = function(arg0, arg1) {
2897
2897
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2898
2898
  };
2899
2899
 
2900
- module.exports.__wbg_disconnectfrompeer_84bb5ae1a11275a2 = function() { return handleError(function (arg0) {
2900
+ module.exports.__wbg_disconnectfrompeer_77faa63c7da71011 = function() { return handleError(function (arg0) {
2901
2901
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2902
2902
  return addHeapObject(ret);
2903
2903
  }, arguments) };
2904
2904
 
2905
- module.exports.__wbg_loadblockfilelist_5c427c4886a9b35f = function() { return handleError(function () {
2905
+ module.exports.__wbg_loadblockfilelist_d0b9744f9ef2f6e5 = function() { return handleError(function () {
2906
2906
  const ret = MsgHandler.load_block_file_list();
2907
2907
  return addHeapObject(ret);
2908
2908
  }, arguments) };
2909
2909
 
2910
- module.exports.__wbg_sendinterfaceevent_545684113f494709 = function(arg0, arg1, arg2, arg3, arg4) {
2910
+ module.exports.__wbg_sendinterfaceevent_6d41a333bfd8a21a = function(arg0, arg1, arg2, arg3, arg4) {
2911
2911
  let deferred0_0;
2912
2912
  let deferred0_1;
2913
2913
  let deferred1_0;
@@ -2924,7 +2924,7 @@ module.exports.__wbg_sendinterfaceevent_545684113f494709 = function(arg0, arg1,
2924
2924
  }
2925
2925
  };
2926
2926
 
2927
- module.exports.__wbg_sendblocksuccess_38e53e8b93e087a7 = function(arg0, arg1, arg2) {
2927
+ module.exports.__wbg_sendblocksuccess_468375797025263d = function(arg0, arg1, arg2) {
2928
2928
  let deferred0_0;
2929
2929
  let deferred0_1;
2930
2930
  try {
@@ -2936,11 +2936,11 @@ module.exports.__wbg_sendblocksuccess_38e53e8b93e087a7 = function(arg0, arg1, ar
2936
2936
  }
2937
2937
  };
2938
2938
 
2939
- module.exports.__wbg_sendwalletupdate_ca4df5bf41062961 = function() {
2939
+ module.exports.__wbg_sendwalletupdate_f76f3cac797fc3dd = function() {
2940
2940
  MsgHandler.send_wallet_update();
2941
2941
  };
2942
2942
 
2943
- module.exports.__wbg_sendnewversionalert_905be141c7705d0a = function(arg0, arg1, arg2) {
2943
+ module.exports.__wbg_sendnewversionalert_6352ce612552e34f = function(arg0, arg1, arg2) {
2944
2944
  let deferred0_0;
2945
2945
  let deferred0_1;
2946
2946
  try {
@@ -2952,15 +2952,15 @@ module.exports.__wbg_sendnewversionalert_905be141c7705d0a = function(arg0, arg1,
2952
2952
  }
2953
2953
  };
2954
2954
 
2955
- module.exports.__wbg_sendblockfetchstatusevent_b85682b36072bc70 = function(arg0) {
2955
+ module.exports.__wbg_sendblockfetchstatusevent_c3fac19845f73f2d = function(arg0) {
2956
2956
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2957
2957
  };
2958
2958
 
2959
- module.exports.__wbg_sendnewchaindetectedevent_2716566461445c2c = function() {
2959
+ module.exports.__wbg_sendnewchaindetectedevent_1ae7c31138b2d482 = function() {
2960
2960
  MsgHandler.send_new_chain_detected_event();
2961
2961
  };
2962
2962
 
2963
- module.exports.__wbg_fetchblockfrompeer_e64e17797e6e941b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2963
+ module.exports.__wbg_fetchblockfrompeer_3cbbc387243e2582 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2964
2964
  let deferred0_0;
2965
2965
  let deferred0_1;
2966
2966
  try {
@@ -2973,7 +2973,7 @@ module.exports.__wbg_fetchblockfrompeer_e64e17797e6e941b = function() { return h
2973
2973
  }
2974
2974
  }, arguments) };
2975
2975
 
2976
- module.exports.__wbg_ensuredirectoryexists_9256ee76e227cc2c = function() { return handleError(function (arg0, arg1) {
2976
+ module.exports.__wbg_ensuredirectoryexists_45bb4c871cc81be6 = function() { return handleError(function (arg0, arg1) {
2977
2977
  let deferred0_0;
2978
2978
  let deferred0_1;
2979
2979
  try {
@@ -3371,7 +3371,7 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
3371
3371
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3372
3372
  };
3373
3373
 
3374
- module.exports.__wbindgen_closure_wrapper1558 = function(arg0, arg1, arg2) {
3374
+ module.exports.__wbindgen_closure_wrapper1559 = function(arg0, arg1, arg2) {
3375
3375
  const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_38);
3376
3376
  return addHeapObject(ret);
3377
3377
  };