@cardananium/cquisitor-lib 0.1.0-beta.37 → 0.1.0-beta.39

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.
@@ -285,15 +285,15 @@ module.exports.get_possible_types_for_input = function(input) {
285
285
  };
286
286
 
287
287
  /**
288
- * @param {string} cbor_hex
288
+ * @param {string} hex_str
289
289
  * @returns {any}
290
290
  */
291
- module.exports.cbor_to_json = function(cbor_hex) {
291
+ module.exports.check_block_or_tx_signatures = function(hex_str) {
292
292
  try {
293
293
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
294
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
294
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
295
  const len0 = WASM_VECTOR_LEN;
296
- wasm.cbor_to_json(retptr, ptr0, len0);
296
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
297
297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
298
298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
299
299
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -307,24 +307,70 @@ module.exports.cbor_to_json = function(cbor_hex) {
307
307
  };
308
308
 
309
309
  /**
310
- * @param {string} hex_str
311
- * @returns {any}
310
+ * @param {string} tx_hex
311
+ * @param {string} network_type
312
+ * @returns {string}
312
313
  */
313
- module.exports.check_block_or_tx_signatures = function(hex_str) {
314
+ module.exports.get_necessary_data_list_js = function(tx_hex, network_type) {
315
+ let deferred4_0;
316
+ let deferred4_1;
314
317
  try {
315
318
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
316
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
319
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
320
  const len0 = WASM_VECTOR_LEN;
318
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
321
+ const ptr1 = passStringToWasm0(network_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
+ const len1 = WASM_VECTOR_LEN;
323
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0, ptr1, len1);
319
324
  var r0 = getInt32Memory0()[retptr / 4 + 0];
320
325
  var r1 = getInt32Memory0()[retptr / 4 + 1];
321
326
  var r2 = getInt32Memory0()[retptr / 4 + 2];
322
- if (r2) {
323
- throw takeObject(r1);
327
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
328
+ var ptr3 = r0;
329
+ var len3 = r1;
330
+ if (r3) {
331
+ ptr3 = 0; len3 = 0;
332
+ throw takeObject(r2);
324
333
  }
325
- return takeObject(r0);
334
+ deferred4_0 = ptr3;
335
+ deferred4_1 = len3;
336
+ return getStringFromWasm0(ptr3, len3);
326
337
  } finally {
327
338
  wasm.__wbindgen_add_to_stack_pointer(16);
339
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
340
+ }
341
+ };
342
+
343
+ /**
344
+ * @param {string} tx_hex
345
+ * @param {string} validation_context
346
+ * @returns {string}
347
+ */
348
+ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
349
+ let deferred4_0;
350
+ let deferred4_1;
351
+ try {
352
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
353
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
354
+ const len0 = WASM_VECTOR_LEN;
355
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
356
+ const len1 = WASM_VECTOR_LEN;
357
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
358
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
359
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
360
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
361
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
362
+ var ptr3 = r0;
363
+ var len3 = r1;
364
+ if (r3) {
365
+ ptr3 = 0; len3 = 0;
366
+ throw takeObject(r2);
367
+ }
368
+ deferred4_0 = ptr3;
369
+ deferred4_1 = len3;
370
+ return getStringFromWasm0(ptr3, len3);
371
+ } finally {
372
+ wasm.__wbindgen_add_to_stack_pointer(16);
373
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
328
374
  }
329
375
  };
330
376
 
@@ -431,102 +477,56 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
431
477
  };
432
478
 
433
479
  /**
434
- * @param {string} tx_hex
435
- * @param {number} output_index
436
- * @returns {string}
437
- */
438
- module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
439
- let deferred3_0;
440
- let deferred3_1;
441
- try {
442
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
443
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
444
- const len0 = WASM_VECTOR_LEN;
445
- wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
446
- var r0 = getInt32Memory0()[retptr / 4 + 0];
447
- var r1 = getInt32Memory0()[retptr / 4 + 1];
448
- var r2 = getInt32Memory0()[retptr / 4 + 2];
449
- var r3 = getInt32Memory0()[retptr / 4 + 3];
450
- var ptr2 = r0;
451
- var len2 = r1;
452
- if (r3) {
453
- ptr2 = 0; len2 = 0;
454
- throw takeObject(r2);
455
- }
456
- deferred3_0 = ptr2;
457
- deferred3_1 = len2;
458
- return getStringFromWasm0(ptr2, len2);
459
- } finally {
460
- wasm.__wbindgen_add_to_stack_pointer(16);
461
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
462
- }
463
- };
464
-
465
- /**
466
- * @param {string} tx_hex
467
- * @param {string} network_type
468
- * @returns {string}
480
+ * @param {string} cbor_hex
481
+ * @returns {any}
469
482
  */
470
- module.exports.get_necessary_data_list_js = function(tx_hex, network_type) {
471
- let deferred4_0;
472
- let deferred4_1;
483
+ module.exports.cbor_to_json = function(cbor_hex) {
473
484
  try {
474
485
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
475
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
486
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
476
487
  const len0 = WASM_VECTOR_LEN;
477
- const ptr1 = passStringToWasm0(network_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
478
- const len1 = WASM_VECTOR_LEN;
479
- wasm.get_necessary_data_list_js(retptr, ptr0, len0, ptr1, len1);
488
+ wasm.cbor_to_json(retptr, ptr0, len0);
480
489
  var r0 = getInt32Memory0()[retptr / 4 + 0];
481
490
  var r1 = getInt32Memory0()[retptr / 4 + 1];
482
491
  var r2 = getInt32Memory0()[retptr / 4 + 2];
483
- var r3 = getInt32Memory0()[retptr / 4 + 3];
484
- var ptr3 = r0;
485
- var len3 = r1;
486
- if (r3) {
487
- ptr3 = 0; len3 = 0;
488
- throw takeObject(r2);
492
+ if (r2) {
493
+ throw takeObject(r1);
489
494
  }
490
- deferred4_0 = ptr3;
491
- deferred4_1 = len3;
492
- return getStringFromWasm0(ptr3, len3);
495
+ return takeObject(r0);
493
496
  } finally {
494
497
  wasm.__wbindgen_add_to_stack_pointer(16);
495
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
496
498
  }
497
499
  };
498
500
 
499
501
  /**
500
502
  * @param {string} tx_hex
501
- * @param {string} validation_context
503
+ * @param {number} output_index
502
504
  * @returns {string}
503
505
  */
504
- module.exports.validate_transaction_js = function(tx_hex, validation_context) {
505
- let deferred4_0;
506
- let deferred4_1;
506
+ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
507
+ let deferred3_0;
508
+ let deferred3_1;
507
509
  try {
508
510
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
509
511
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
510
512
  const len0 = WASM_VECTOR_LEN;
511
- const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
512
- const len1 = WASM_VECTOR_LEN;
513
- wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
513
+ wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
514
514
  var r0 = getInt32Memory0()[retptr / 4 + 0];
515
515
  var r1 = getInt32Memory0()[retptr / 4 + 1];
516
516
  var r2 = getInt32Memory0()[retptr / 4 + 2];
517
517
  var r3 = getInt32Memory0()[retptr / 4 + 3];
518
- var ptr3 = r0;
519
- var len3 = r1;
518
+ var ptr2 = r0;
519
+ var len2 = r1;
520
520
  if (r3) {
521
- ptr3 = 0; len3 = 0;
521
+ ptr2 = 0; len2 = 0;
522
522
  throw takeObject(r2);
523
523
  }
524
- deferred4_0 = ptr3;
525
- deferred4_1 = len3;
526
- return getStringFromWasm0(ptr3, len3);
524
+ deferred3_0 = ptr2;
525
+ deferred3_1 = len2;
526
+ return getStringFromWasm0(ptr2, len2);
527
527
  } finally {
528
528
  wasm.__wbindgen_add_to_stack_pointer(16);
529
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
529
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
530
530
  }
531
531
  };
532
532
 
@@ -563,266 +563,26 @@ module.exports.extract_hashes_from_transaction_js = function(tx_hex) {
563
563
  }
564
564
  };
565
565
 
566
- function getArrayU8FromWasm0(ptr, len) {
567
- ptr = ptr >>> 0;
568
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
569
- }
570
-
571
- function passArray8ToWasm0(arg, malloc) {
572
- const ptr = malloc(arg.length * 1, 1) >>> 0;
573
- getUint8Memory0().set(arg, ptr / 1);
574
- WASM_VECTOR_LEN = arg.length;
575
- return ptr;
576
- }
577
-
578
566
  function _assertClass(instance, klass) {
579
567
  if (!(instance instanceof klass)) {
580
568
  throw new Error(`expected instance of ${klass.name}`);
581
569
  }
582
570
  return instance.ptr;
583
571
  }
584
- /**
585
- * @param {string} json
586
- * @param {PlutusDatumSchema} schema
587
- * @returns {PlutusData}
588
- */
589
- module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
590
- try {
591
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
592
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
593
- const len0 = WASM_VECTOR_LEN;
594
- wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
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 PlutusData.__wrap(r0);
602
- } finally {
603
- wasm.__wbindgen_add_to_stack_pointer(16);
604
- }
605
- };
606
-
607
- /**
608
- * @param {PlutusData} datum
609
- * @param {PlutusDatumSchema} schema
610
- * @returns {string}
611
- */
612
- module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
613
- let deferred2_0;
614
- let deferred2_1;
615
- try {
616
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
617
- _assertClass(datum, PlutusData);
618
- wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
619
- var r0 = getInt32Memory0()[retptr / 4 + 0];
620
- var r1 = getInt32Memory0()[retptr / 4 + 1];
621
- var r2 = getInt32Memory0()[retptr / 4 + 2];
622
- var r3 = getInt32Memory0()[retptr / 4 + 3];
623
- var ptr1 = r0;
624
- var len1 = r1;
625
- if (r3) {
626
- ptr1 = 0; len1 = 0;
627
- throw takeObject(r2);
628
- }
629
- deferred2_0 = ptr1;
630
- deferred2_1 = len1;
631
- return getStringFromWasm0(ptr1, len1);
632
- } finally {
633
- wasm.__wbindgen_add_to_stack_pointer(16);
634
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
635
- }
636
- };
637
-
638
- /**
639
- * @param {Uint8Array} bytes
640
- * @returns {TransactionMetadatum}
641
- */
642
- module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
643
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
644
- const len0 = WASM_VECTOR_LEN;
645
- const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
646
- return TransactionMetadatum.__wrap(ret);
647
- };
648
-
649
- /**
650
- * @param {TransactionMetadatum} metadata
651
- * @returns {Uint8Array}
652
- */
653
- module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
654
- try {
655
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
656
- _assertClass(metadata, TransactionMetadatum);
657
- wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
658
- var r0 = getInt32Memory0()[retptr / 4 + 0];
659
- var r1 = getInt32Memory0()[retptr / 4 + 1];
660
- var r2 = getInt32Memory0()[retptr / 4 + 2];
661
- var r3 = getInt32Memory0()[retptr / 4 + 3];
662
- if (r3) {
663
- throw takeObject(r2);
664
- }
665
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
666
- wasm.__wbindgen_free(r0, r1 * 1, 1);
667
- return v1;
668
- } finally {
669
- wasm.__wbindgen_add_to_stack_pointer(16);
670
- }
671
- };
672
-
673
- /**
674
- * @param {string} json
675
- * @param {MetadataJsonSchema} schema
676
- * @returns {TransactionMetadatum}
677
- */
678
- module.exports.encode_json_str_to_metadatum = function(json, schema) {
679
- try {
680
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
681
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
682
- const len0 = WASM_VECTOR_LEN;
683
- wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
684
- var r0 = getInt32Memory0()[retptr / 4 + 0];
685
- var r1 = getInt32Memory0()[retptr / 4 + 1];
686
- var r2 = getInt32Memory0()[retptr / 4 + 2];
687
- if (r2) {
688
- throw takeObject(r1);
689
- }
690
- return TransactionMetadatum.__wrap(r0);
691
- } finally {
692
- wasm.__wbindgen_add_to_stack_pointer(16);
693
- }
694
- };
695
-
696
- /**
697
- * @param {TransactionMetadatum} metadatum
698
- * @param {MetadataJsonSchema} schema
699
- * @returns {string}
700
- */
701
- module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
702
- let deferred2_0;
703
- let deferred2_1;
704
- try {
705
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
706
- _assertClass(metadatum, TransactionMetadatum);
707
- wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
708
- var r0 = getInt32Memory0()[retptr / 4 + 0];
709
- var r1 = getInt32Memory0()[retptr / 4 + 1];
710
- var r2 = getInt32Memory0()[retptr / 4 + 2];
711
- var r3 = getInt32Memory0()[retptr / 4 + 3];
712
- var ptr1 = r0;
713
- var len1 = r1;
714
- if (r3) {
715
- ptr1 = 0; len1 = 0;
716
- throw takeObject(r2);
717
- }
718
- deferred2_0 = ptr1;
719
- deferred2_1 = len1;
720
- return getStringFromWasm0(ptr1, len1);
721
- } finally {
722
- wasm.__wbindgen_add_to_stack_pointer(16);
723
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
724
- }
725
- };
726
-
727
- /**
728
- * @param {Transaction} tx
729
- * @param {LinearFee} linear_fee
730
- * @returns {BigNum}
731
- */
732
- module.exports.min_fee = function(tx, linear_fee) {
733
- try {
734
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
735
- _assertClass(tx, Transaction);
736
- _assertClass(linear_fee, LinearFee);
737
- wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
738
- var r0 = getInt32Memory0()[retptr / 4 + 0];
739
- var r1 = getInt32Memory0()[retptr / 4 + 1];
740
- var r2 = getInt32Memory0()[retptr / 4 + 2];
741
- if (r2) {
742
- throw takeObject(r1);
743
- }
744
- return BigNum.__wrap(r0);
745
- } finally {
746
- wasm.__wbindgen_add_to_stack_pointer(16);
747
- }
748
- };
749
-
750
- /**
751
- * @param {ExUnits} ex_units
752
- * @param {ExUnitPrices} ex_unit_prices
753
- * @returns {BigNum}
754
- */
755
- module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
756
- try {
757
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
758
- _assertClass(ex_units, ExUnits);
759
- _assertClass(ex_unit_prices, ExUnitPrices);
760
- wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
761
- var r0 = getInt32Memory0()[retptr / 4 + 0];
762
- var r1 = getInt32Memory0()[retptr / 4 + 1];
763
- var r2 = getInt32Memory0()[retptr / 4 + 2];
764
- if (r2) {
765
- throw takeObject(r1);
766
- }
767
- return BigNum.__wrap(r0);
768
- } finally {
769
- wasm.__wbindgen_add_to_stack_pointer(16);
770
- }
771
- };
772
-
773
- /**
774
- * @param {Transaction} tx
775
- * @param {ExUnitPrices} ex_unit_prices
776
- * @returns {BigNum}
777
- */
778
- module.exports.min_script_fee = function(tx, ex_unit_prices) {
779
- try {
780
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
781
- _assertClass(tx, Transaction);
782
- _assertClass(ex_unit_prices, ExUnitPrices);
783
- wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
784
- var r0 = getInt32Memory0()[retptr / 4 + 0];
785
- var r1 = getInt32Memory0()[retptr / 4 + 1];
786
- var r2 = getInt32Memory0()[retptr / 4 + 2];
787
- if (r2) {
788
- throw takeObject(r1);
789
- }
790
- return BigNum.__wrap(r0);
791
- } finally {
792
- wasm.__wbindgen_add_to_stack_pointer(16);
793
- }
794
- };
795
-
796
- /**
797
- * @param {number} total_ref_scripts_size
798
- * @param {UnitInterval} ref_script_coins_per_byte
799
- * @returns {BigNum}
800
- */
801
- module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
802
- try {
803
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
804
- _assertClass(ref_script_coins_per_byte, UnitInterval);
805
- wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
806
- var r0 = getInt32Memory0()[retptr / 4 + 0];
807
- var r1 = getInt32Memory0()[retptr / 4 + 1];
808
- var r2 = getInt32Memory0()[retptr / 4 + 2];
809
- if (r2) {
810
- throw takeObject(r1);
811
- }
812
- return BigNum.__wrap(r0);
813
- } finally {
814
- wasm.__wbindgen_add_to_stack_pointer(16);
815
- }
816
- };
817
572
 
818
573
  function getArrayU32FromWasm0(ptr, len) {
819
574
  ptr = ptr >>> 0;
820
575
  return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
821
576
  }
822
577
 
823
- function passArray32ToWasm0(arg, malloc) {
824
- const ptr = malloc(arg.length * 4, 4) >>> 0;
825
- getUint32Memory0().set(arg, ptr / 4);
578
+ function getArrayU8FromWasm0(ptr, len) {
579
+ ptr = ptr >>> 0;
580
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
581
+ }
582
+
583
+ function passArray8ToWasm0(arg, malloc) {
584
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
585
+ getUint8Memory0().set(arg, ptr / 1);
826
586
  WASM_VECTOR_LEN = arg.length;
827
587
  return ptr;
828
588
  }
@@ -1041,6 +801,60 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
1041
801
  }
1042
802
  };
1043
803
 
804
+ /**
805
+ * @param {string} json
806
+ * @param {PlutusDatumSchema} schema
807
+ * @returns {PlutusData}
808
+ */
809
+ module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
810
+ try {
811
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
812
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
813
+ const len0 = WASM_VECTOR_LEN;
814
+ wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
815
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
816
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
817
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
818
+ if (r2) {
819
+ throw takeObject(r1);
820
+ }
821
+ return PlutusData.__wrap(r0);
822
+ } finally {
823
+ wasm.__wbindgen_add_to_stack_pointer(16);
824
+ }
825
+ };
826
+
827
+ /**
828
+ * @param {PlutusData} datum
829
+ * @param {PlutusDatumSchema} schema
830
+ * @returns {string}
831
+ */
832
+ module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
833
+ let deferred2_0;
834
+ let deferred2_1;
835
+ try {
836
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
837
+ _assertClass(datum, PlutusData);
838
+ wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
839
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
840
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
841
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
842
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
843
+ var ptr1 = r0;
844
+ var len1 = r1;
845
+ if (r3) {
846
+ ptr1 = 0; len1 = 0;
847
+ throw takeObject(r2);
848
+ }
849
+ deferred2_0 = ptr1;
850
+ deferred2_1 = len1;
851
+ return getStringFromWasm0(ptr1, len1);
852
+ } finally {
853
+ wasm.__wbindgen_add_to_stack_pointer(16);
854
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
855
+ }
856
+ };
857
+
1044
858
  /**
1045
859
  * @param {string} password
1046
860
  * @param {string} salt
@@ -1140,6 +954,193 @@ module.exports.create_send_all = function(address, utxos, config) {
1140
954
  }
1141
955
  };
1142
956
 
957
+ /**
958
+ * @param {Transaction} tx
959
+ * @param {LinearFee} linear_fee
960
+ * @returns {BigNum}
961
+ */
962
+ module.exports.min_fee = function(tx, linear_fee) {
963
+ try {
964
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
965
+ _assertClass(tx, Transaction);
966
+ _assertClass(linear_fee, LinearFee);
967
+ wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
968
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
969
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
970
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
971
+ if (r2) {
972
+ throw takeObject(r1);
973
+ }
974
+ return BigNum.__wrap(r0);
975
+ } finally {
976
+ wasm.__wbindgen_add_to_stack_pointer(16);
977
+ }
978
+ };
979
+
980
+ /**
981
+ * @param {ExUnits} ex_units
982
+ * @param {ExUnitPrices} ex_unit_prices
983
+ * @returns {BigNum}
984
+ */
985
+ module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
986
+ try {
987
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
988
+ _assertClass(ex_units, ExUnits);
989
+ _assertClass(ex_unit_prices, ExUnitPrices);
990
+ wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
991
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
992
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
993
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
994
+ if (r2) {
995
+ throw takeObject(r1);
996
+ }
997
+ return BigNum.__wrap(r0);
998
+ } finally {
999
+ wasm.__wbindgen_add_to_stack_pointer(16);
1000
+ }
1001
+ };
1002
+
1003
+ /**
1004
+ * @param {Transaction} tx
1005
+ * @param {ExUnitPrices} ex_unit_prices
1006
+ * @returns {BigNum}
1007
+ */
1008
+ module.exports.min_script_fee = function(tx, ex_unit_prices) {
1009
+ try {
1010
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1011
+ _assertClass(tx, Transaction);
1012
+ _assertClass(ex_unit_prices, ExUnitPrices);
1013
+ wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
1014
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1015
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1016
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1017
+ if (r2) {
1018
+ throw takeObject(r1);
1019
+ }
1020
+ return BigNum.__wrap(r0);
1021
+ } finally {
1022
+ wasm.__wbindgen_add_to_stack_pointer(16);
1023
+ }
1024
+ };
1025
+
1026
+ /**
1027
+ * @param {number} total_ref_scripts_size
1028
+ * @param {UnitInterval} ref_script_coins_per_byte
1029
+ * @returns {BigNum}
1030
+ */
1031
+ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
1032
+ try {
1033
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1034
+ _assertClass(ref_script_coins_per_byte, UnitInterval);
1035
+ wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
1036
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1037
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1038
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1039
+ if (r2) {
1040
+ throw takeObject(r1);
1041
+ }
1042
+ return BigNum.__wrap(r0);
1043
+ } finally {
1044
+ wasm.__wbindgen_add_to_stack_pointer(16);
1045
+ }
1046
+ };
1047
+
1048
+ /**
1049
+ * @param {Uint8Array} bytes
1050
+ * @returns {TransactionMetadatum}
1051
+ */
1052
+ module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
1053
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
1054
+ const len0 = WASM_VECTOR_LEN;
1055
+ const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
1056
+ return TransactionMetadatum.__wrap(ret);
1057
+ };
1058
+
1059
+ /**
1060
+ * @param {TransactionMetadatum} metadata
1061
+ * @returns {Uint8Array}
1062
+ */
1063
+ module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
1064
+ try {
1065
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1066
+ _assertClass(metadata, TransactionMetadatum);
1067
+ wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
1068
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1069
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1070
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1071
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
1072
+ if (r3) {
1073
+ throw takeObject(r2);
1074
+ }
1075
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1076
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1077
+ return v1;
1078
+ } finally {
1079
+ wasm.__wbindgen_add_to_stack_pointer(16);
1080
+ }
1081
+ };
1082
+
1083
+ /**
1084
+ * @param {string} json
1085
+ * @param {MetadataJsonSchema} schema
1086
+ * @returns {TransactionMetadatum}
1087
+ */
1088
+ module.exports.encode_json_str_to_metadatum = function(json, schema) {
1089
+ try {
1090
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1091
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1092
+ const len0 = WASM_VECTOR_LEN;
1093
+ wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
1094
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1095
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1096
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1097
+ if (r2) {
1098
+ throw takeObject(r1);
1099
+ }
1100
+ return TransactionMetadatum.__wrap(r0);
1101
+ } finally {
1102
+ wasm.__wbindgen_add_to_stack_pointer(16);
1103
+ }
1104
+ };
1105
+
1106
+ /**
1107
+ * @param {TransactionMetadatum} metadatum
1108
+ * @param {MetadataJsonSchema} schema
1109
+ * @returns {string}
1110
+ */
1111
+ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
1112
+ let deferred2_0;
1113
+ let deferred2_1;
1114
+ try {
1115
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1116
+ _assertClass(metadatum, TransactionMetadatum);
1117
+ wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
1118
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1119
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1120
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1121
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
1122
+ var ptr1 = r0;
1123
+ var len1 = r1;
1124
+ if (r3) {
1125
+ ptr1 = 0; len1 = 0;
1126
+ throw takeObject(r2);
1127
+ }
1128
+ deferred2_0 = ptr1;
1129
+ deferred2_1 = len1;
1130
+ return getStringFromWasm0(ptr1, len1);
1131
+ } finally {
1132
+ wasm.__wbindgen_add_to_stack_pointer(16);
1133
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1134
+ }
1135
+ };
1136
+
1137
+ function passArray32ToWasm0(arg, malloc) {
1138
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
1139
+ getUint32Memory0().set(arg, ptr / 4);
1140
+ WASM_VECTOR_LEN = arg.length;
1141
+ return ptr;
1142
+ }
1143
+
1143
1144
  function handleError(f, args) {
1144
1145
  try {
1145
1146
  return f.apply(this, args);
@@ -1148,6 +1149,68 @@ function handleError(f, args) {
1148
1149
  }
1149
1150
  }
1150
1151
  /**
1152
+ */
1153
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1154
+ /**
1155
+ */
1156
+ module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1157
+ /**
1158
+ */
1159
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1160
+ /**
1161
+ */
1162
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1163
+ /**
1164
+ */
1165
+ module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
1166
+ /**
1167
+ */
1168
+ module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
1169
+ /**
1170
+ * Each new language uses a different namespace for hashing its script
1171
+ * This is because you could have a language where the same bytes have different semantics
1172
+ * So this avoids scripts in different languages mapping to the same hash
1173
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1174
+ */
1175
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1176
+ /**
1177
+ */
1178
+ module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
1179
+ /**
1180
+ * Used to choosed the schema for a script JSON string
1181
+ */
1182
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1183
+ /**
1184
+ */
1185
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1186
+ /**
1187
+ */
1188
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1189
+ /**
1190
+ */
1191
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1192
+ /**
1193
+ */
1194
+ module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1195
+ /**
1196
+ */
1197
+ module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
1198
+ /**
1199
+ */
1200
+ module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
1201
+ /**
1202
+ */
1203
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1204
+ /**
1205
+ */
1206
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1207
+ /**
1208
+ */
1209
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1210
+ /**
1211
+ */
1212
+ module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
1213
+ /**
1151
1214
  * JSON <-> PlutusData conversion schemas.
1152
1215
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
1153
1216
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -1200,83 +1263,21 @@ BasicConversions:0,"0":"BasicConversions",
1200
1263
  DetailedSchema:1,"1":"DetailedSchema", });
1201
1264
  /**
1202
1265
  */
1203
- module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
1266
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1204
1267
  /**
1205
1268
  */
1206
- module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
1269
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1207
1270
  /**
1208
1271
  */
1209
1272
  module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
1210
1273
  /**
1211
1274
  */
1212
- module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1213
- /**
1214
- */
1215
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1216
- /**
1217
- * Used to choosed the schema for a script JSON string
1218
- */
1219
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1220
- /**
1221
- */
1222
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1223
- /**
1224
- */
1225
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1226
- /**
1227
- */
1228
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1229
- /**
1230
- */
1231
1275
  module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1232
1276
  /**
1233
1277
  */
1234
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1235
- /**
1236
- */
1237
- module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
1238
- /**
1239
- */
1240
- module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
1241
- /**
1242
- */
1243
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1244
- /**
1245
- */
1246
- module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
1247
- /**
1248
- */
1249
1278
  module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1250
1279
  /**
1251
1280
  */
1252
- module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1253
- /**
1254
- */
1255
- module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
1256
- /**
1257
- */
1258
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1259
- /**
1260
- */
1261
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1262
- /**
1263
- */
1264
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1265
- /**
1266
- */
1267
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1268
- /**
1269
- */
1270
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1271
- /**
1272
- * Each new language uses a different namespace for hashing its script
1273
- * This is because you could have a language where the same bytes have different semantics
1274
- * So this avoids scripts in different languages mapping to the same hash
1275
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1276
- */
1277
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1278
- /**
1279
- */
1280
1281
  module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1281
1282
  /**
1282
1283
  * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
@@ -8477,7 +8478,7 @@ class DNSRecordSRV {
8477
8478
  let deferred1_1;
8478
8479
  try {
8479
8480
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
8480
- wasm.dnsrecordaoraaaa_record(retptr, this.__wbg_ptr);
8481
+ wasm.dnsrecordsrv_record(retptr, this.__wbg_ptr);
8481
8482
  var r0 = getInt32Memory0()[retptr / 4 + 0];
8482
8483
  var r1 = getInt32Memory0()[retptr / 4 + 1];
8483
8484
  deferred1_0 = r0;
@@ -8666,7 +8667,7 @@ class DRep {
8666
8667
  */
8667
8668
  static new_key_hash(key_hash) {
8668
8669
  _assertClass(key_hash, Ed25519KeyHash);
8669
- const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8670
+ const ret = wasm.credential_from_scripthash(key_hash.__wbg_ptr);
8670
8671
  return DRep.__wrap(ret);
8671
8672
  }
8672
8673
  /**
@@ -8675,7 +8676,7 @@ class DRep {
8675
8676
  */
8676
8677
  static new_script_hash(script_hash) {
8677
8678
  _assertClass(script_hash, ScriptHash);
8678
- const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8679
+ const ret = wasm.credential_from_keyhash(script_hash.__wbg_ptr);
8679
8680
  return DRep.__wrap(ret);
8680
8681
  }
8681
8682
  /**
@@ -8954,7 +8955,7 @@ class DRepDeregistration {
8954
8955
  * @returns {BigNum}
8955
8956
  */
8956
8957
  coin() {
8957
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
8958
+ const ret = wasm.datacost_coins_per_byte(this.__wbg_ptr);
8958
8959
  return BigNum.__wrap(ret);
8959
8960
  }
8960
8961
  /**
@@ -9158,7 +9159,7 @@ class DRepRegistration {
9158
9159
  * @returns {BigNum}
9159
9160
  */
9160
9161
  coin() {
9161
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
9162
+ const ret = wasm.drepregistration_coin(this.__wbg_ptr);
9162
9163
  return BigNum.__wrap(ret);
9163
9164
  }
9164
9165
  /**
@@ -9375,14 +9376,14 @@ class DRepUpdate {
9375
9376
  * @returns {Credential}
9376
9377
  */
9377
9378
  voting_credential() {
9378
- const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
9379
+ const ret = wasm.drepupdate_voting_credential(this.__wbg_ptr);
9379
9380
  return Credential.__wrap(ret);
9380
9381
  }
9381
9382
  /**
9382
9383
  * @returns {Anchor | undefined}
9383
9384
  */
9384
9385
  anchor() {
9385
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
9386
+ const ret = wasm.drepupdate_anchor(this.__wbg_ptr);
9386
9387
  return ret === 0 ? undefined : Anchor.__wrap(ret);
9387
9388
  }
9388
9389
  /**
@@ -9391,7 +9392,7 @@ class DRepUpdate {
9391
9392
  */
9392
9393
  static new(voting_credential) {
9393
9394
  _assertClass(voting_credential, Credential);
9394
- const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
9395
+ const ret = wasm.drepupdate_new(voting_credential.__wbg_ptr);
9395
9396
  return DRepUpdate.__wrap(ret);
9396
9397
  }
9397
9398
  /**
@@ -9402,14 +9403,14 @@ class DRepUpdate {
9402
9403
  static new_with_anchor(voting_credential, anchor) {
9403
9404
  _assertClass(voting_credential, Credential);
9404
9405
  _assertClass(anchor, Anchor);
9405
- const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9406
+ const ret = wasm.drepupdate_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9406
9407
  return DRepUpdate.__wrap(ret);
9407
9408
  }
9408
9409
  /**
9409
9410
  * @returns {boolean}
9410
9411
  */
9411
9412
  has_script_credentials() {
9412
- const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
9413
+ const ret = wasm.drepupdate_has_script_credentials(this.__wbg_ptr);
9413
9414
  return ret !== 0;
9414
9415
  }
9415
9416
  }
@@ -10769,14 +10770,14 @@ class ExUnitPrices {
10769
10770
  * @returns {UnitInterval}
10770
10771
  */
10771
10772
  mem_price() {
10772
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
10773
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
10773
10774
  return UnitInterval.__wrap(ret);
10774
10775
  }
10775
10776
  /**
10776
10777
  * @returns {UnitInterval}
10777
10778
  */
10778
10779
  step_price() {
10779
- const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
10780
+ const ret = wasm.drepvotingthresholds_committee_normal(this.__wbg_ptr);
10780
10781
  return UnitInterval.__wrap(ret);
10781
10782
  }
10782
10783
  /**
@@ -11687,7 +11688,7 @@ class FixedTransactionBody {
11687
11688
  * @returns {TransactionBody}
11688
11689
  */
11689
11690
  transaction_body() {
11690
- const ret = wasm.fixedtransaction_body(this.__wbg_ptr);
11691
+ const ret = wasm.fixedtransactionbody_transaction_body(this.__wbg_ptr);
11691
11692
  return TransactionBody.__wrap(ret);
11692
11693
  }
11693
11694
  /**
@@ -15779,14 +15780,14 @@ class MIRToStakeCredentials {
15779
15780
  * @returns {MIRToStakeCredentials}
15780
15781
  */
15781
15782
  static new() {
15782
- const ret = wasm.mirtostakecredentials_new();
15783
+ const ret = wasm.generaltransactionmetadata_new();
15783
15784
  return MIRToStakeCredentials.__wrap(ret);
15784
15785
  }
15785
15786
  /**
15786
15787
  * @returns {number}
15787
15788
  */
15788
15789
  len() {
15789
- const ret = wasm.mirtostakecredentials_len(this.__wbg_ptr);
15790
+ const ret = wasm.generaltransactionmetadata_len(this.__wbg_ptr);
15790
15791
  return ret >>> 0;
15791
15792
  }
15792
15793
  /**
@@ -18775,7 +18776,7 @@ class NewConstitutionAction {
18775
18776
  * @returns {GovernanceActionId | undefined}
18776
18777
  */
18777
18778
  gov_action_id() {
18778
- const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
18779
+ const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18779
18780
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18780
18781
  }
18781
18782
  /**
@@ -20299,7 +20300,7 @@ class PlutusMap {
20299
20300
  * @returns {PlutusMap}
20300
20301
  */
20301
20302
  static new() {
20302
- const ret = wasm.generaltransactionmetadata_new();
20303
+ const ret = wasm.plutusmap_new();
20303
20304
  return PlutusMap.__wrap(ret);
20304
20305
  }
20305
20306
  /**
@@ -20307,7 +20308,7 @@ class PlutusMap {
20307
20308
  * @returns {number}
20308
20309
  */
20309
20310
  len() {
20310
- const ret = wasm.generaltransactionmetadata_len(this.__wbg_ptr);
20311
+ const ret = wasm.plutusmap_len(this.__wbg_ptr);
20311
20312
  return ret >>> 0;
20312
20313
  }
20313
20314
  /**
@@ -21505,7 +21506,7 @@ class PoolMetadata {
21505
21506
  * @returns {URL}
21506
21507
  */
21507
21508
  url() {
21508
- const ret = wasm.multihostname_dns_name(this.__wbg_ptr);
21509
+ const ret = wasm.poolmetadata_url(this.__wbg_ptr);
21509
21510
  return URL.__wrap(ret);
21510
21511
  }
21511
21512
  /**
@@ -26552,7 +26553,7 @@ class ScriptNOfK {
26552
26553
  * @returns {NativeScripts}
26553
26554
  */
26554
26555
  native_scripts() {
26555
- const ret = wasm.scriptall_native_scripts(this.__wbg_ptr);
26556
+ const ret = wasm.scriptnofk_native_scripts(this.__wbg_ptr);
26556
26557
  return NativeScripts.__wrap(ret);
26557
26558
  }
26558
26559
  /**
@@ -27386,7 +27387,7 @@ class SingleHostName {
27386
27387
  * @returns {DNSRecordAorAAAA}
27387
27388
  */
27388
27389
  dns_name() {
27389
- const ret = wasm.multihostname_dns_name(this.__wbg_ptr);
27390
+ const ret = wasm.singlehostname_dns_name(this.__wbg_ptr);
27390
27391
  return DNSRecordAorAAAA.__wrap(ret);
27391
27392
  }
27392
27393
  /**
@@ -27575,7 +27576,7 @@ class StakeAndVoteDelegation {
27575
27576
  * @returns {Credential}
27576
27577
  */
27577
27578
  stake_credential() {
27578
- const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
27579
+ const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
27579
27580
  return Credential.__wrap(ret);
27580
27581
  }
27581
27582
  /**
@@ -27609,7 +27610,7 @@ class StakeAndVoteDelegation {
27609
27610
  * @returns {boolean}
27610
27611
  */
27611
27612
  has_script_credentials() {
27612
- const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
27613
+ const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
27613
27614
  return ret !== 0;
27614
27615
  }
27615
27616
  }
@@ -28205,14 +28206,14 @@ class StakeRegistration {
28205
28206
  * @returns {Credential}
28206
28207
  */
28207
28208
  stake_credential() {
28208
- const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
28209
+ const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
28209
28210
  return Credential.__wrap(ret);
28210
28211
  }
28211
28212
  /**
28212
28213
  * @returns {BigNum | undefined}
28213
28214
  */
28214
28215
  coin() {
28215
- const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
28216
+ const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
28216
28217
  return ret === 0 ? undefined : BigNum.__wrap(ret);
28217
28218
  }
28218
28219
  /**
@@ -28221,7 +28222,7 @@ class StakeRegistration {
28221
28222
  */
28222
28223
  static new(stake_credential) {
28223
28224
  _assertClass(stake_credential, Credential);
28224
- const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
28225
+ const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
28225
28226
  return StakeRegistration.__wrap(ret);
28226
28227
  }
28227
28228
  /**
@@ -28232,14 +28233,14 @@ class StakeRegistration {
28232
28233
  static new_with_explicit_deposit(stake_credential, coin) {
28233
28234
  _assertClass(stake_credential, Credential);
28234
28235
  _assertClass(coin, BigNum);
28235
- const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28236
+ const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28236
28237
  return StakeRegistration.__wrap(ret);
28237
28238
  }
28238
28239
  /**
28239
28240
  * @returns {boolean}
28240
28241
  */
28241
28242
  has_script_credentials() {
28242
- const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
28243
+ const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
28243
28244
  return ret !== 0;
28244
28245
  }
28245
28246
  }
@@ -28432,7 +28433,7 @@ class StakeRegistrationAndDelegation {
28432
28433
  * @returns {BigNum}
28433
28434
  */
28434
28435
  coin() {
28435
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28436
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28436
28437
  return BigNum.__wrap(ret);
28437
28438
  }
28438
28439
  /**
@@ -28638,7 +28639,7 @@ class StakeVoteRegistrationAndDelegation {
28638
28639
  * @returns {Ed25519KeyHash}
28639
28640
  */
28640
28641
  pool_keyhash() {
28641
- const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28642
+ const ret = wasm.stakeregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28642
28643
  return Ed25519KeyHash.__wrap(ret);
28643
28644
  }
28644
28645
  /**
@@ -28652,7 +28653,7 @@ class StakeVoteRegistrationAndDelegation {
28652
28653
  * @returns {BigNum}
28653
28654
  */
28654
28655
  coin() {
28655
- const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
28656
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28656
28657
  return BigNum.__wrap(ret);
28657
28658
  }
28658
28659
  /**
@@ -28710,14 +28711,14 @@ class Strings {
28710
28711
  * @returns {Strings}
28711
28712
  */
28712
28713
  static new() {
28713
- const ret = wasm.relays_new();
28714
+ const ret = wasm.assetnames_new();
28714
28715
  return Strings.__wrap(ret);
28715
28716
  }
28716
28717
  /**
28717
28718
  * @returns {number}
28718
28719
  */
28719
28720
  len() {
28720
- const ret = wasm.strings_len(this.__wbg_ptr);
28721
+ const ret = wasm.assetnames_len(this.__wbg_ptr);
28721
28722
  return ret >>> 0;
28722
28723
  }
28723
28724
  /**
@@ -28942,7 +28943,7 @@ class TimelockExpiry {
28942
28943
  * @returns {BigNum}
28943
28944
  */
28944
28945
  slot_bignum() {
28945
- const ret = wasm.linearfee_constant(this.__wbg_ptr);
28946
+ const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
28946
28947
  return BigNum.__wrap(ret);
28947
28948
  }
28948
28949
  /**
@@ -29163,7 +29164,7 @@ class TimelockStart {
29163
29164
  * @returns {BigNum}
29164
29165
  */
29165
29166
  slot_bignum() {
29166
- const ret = wasm.linearfee_constant(this.__wbg_ptr);
29167
+ const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
29167
29168
  return BigNum.__wrap(ret);
29168
29169
  }
29169
29170
  /**
@@ -29673,7 +29674,7 @@ class TransactionBodies {
29673
29674
  * @returns {TransactionBodies}
29674
29675
  */
29675
29676
  static new() {
29676
- const ret = wasm.fixedtransactionbodies_new();
29677
+ const ret = wasm.transactionbodies_new();
29677
29678
  return TransactionBodies.__wrap(ret);
29678
29679
  }
29679
29680
  /**
@@ -32516,7 +32517,7 @@ class TransactionMetadatumLabels {
32516
32517
  * @returns {TransactionMetadatumLabels}
32517
32518
  */
32518
32519
  static new() {
32519
- const ret = wasm.plutusmapvalues_new();
32520
+ const ret = wasm.transactionmetadatumlabels_new();
32520
32521
  return TransactionMetadatumLabels.__wrap(ret);
32521
32522
  }
32522
32523
  /**
@@ -33962,7 +33963,7 @@ class TransactionWitnessSets {
33962
33963
  * @returns {TransactionWitnessSets}
33963
33964
  */
33964
33965
  static new() {
33965
- const ret = wasm.transactionwitnesssets_new();
33966
+ const ret = wasm.fixedtransactionbodies_new();
33966
33967
  return TransactionWitnessSets.__wrap(ret);
33967
33968
  }
33968
33969
  /**
@@ -34767,7 +34768,7 @@ class URL {
34767
34768
  let deferred1_1;
34768
34769
  try {
34769
34770
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34770
- wasm.dnsrecordaoraaaa_record(retptr, this.__wbg_ptr);
34771
+ wasm.url_url(retptr, this.__wbg_ptr);
34771
34772
  var r0 = getInt32Memory0()[retptr / 4 + 0];
34772
34773
  var r1 = getInt32Memory0()[retptr / 4 + 1];
34773
34774
  deferred1_0 = r0;
@@ -36650,14 +36651,14 @@ class Vkeys {
36650
36651
  * @returns {Vkeys}
36651
36652
  */
36652
36653
  static new() {
36653
- const ret = wasm.languages_new();
36654
+ const ret = wasm.publickeys_new();
36654
36655
  return Vkeys.__wrap(ret);
36655
36656
  }
36656
36657
  /**
36657
36658
  * @returns {number}
36658
36659
  */
36659
36660
  len() {
36660
- const ret = wasm.vkeys_len(this.__wbg_ptr);
36661
+ const ret = wasm.publickeys_size(this.__wbg_ptr);
36661
36662
  return ret >>> 0;
36662
36663
  }
36663
36664
  /**
@@ -36869,7 +36870,7 @@ class Vkeywitness {
36869
36870
  * @returns {Ed25519Signature}
36870
36871
  */
36871
36872
  signature() {
36872
- const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
36873
+ const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
36873
36874
  return Ed25519Signature.__wrap(ret);
36874
36875
  }
36875
36876
  }
@@ -37048,14 +37049,14 @@ class Vkeywitnesses {
37048
37049
  * @returns {Vkeywitnesses}
37049
37050
  */
37050
37051
  static new() {
37051
- const ret = wasm.bootstrapwitnesses_new();
37052
+ const ret = wasm.vkeywitnesses_new();
37052
37053
  return Vkeywitnesses.__wrap(ret);
37053
37054
  }
37054
37055
  /**
37055
37056
  * @returns {number}
37056
37057
  */
37057
37058
  len() {
37058
- const ret = wasm.bootstrapwitnesses_len(this.__wbg_ptr);
37059
+ const ret = wasm.vkeywitnesses_len(this.__wbg_ptr);
37059
37060
  return ret >>> 0;
37060
37061
  }
37061
37062
  /**
@@ -37253,7 +37254,7 @@ class VoteDelegation {
37253
37254
  * @returns {Credential}
37254
37255
  */
37255
37256
  stake_credential() {
37256
- const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
37257
+ const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
37257
37258
  return Credential.__wrap(ret);
37258
37259
  }
37259
37260
  /**
@@ -37278,7 +37279,7 @@ class VoteDelegation {
37278
37279
  * @returns {boolean}
37279
37280
  */
37280
37281
  has_script_credentials() {
37281
- const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
37282
+ const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
37282
37283
  return ret !== 0;
37283
37284
  }
37284
37285
  }
@@ -37471,7 +37472,7 @@ class VoteRegistrationAndDelegation {
37471
37472
  * @returns {BigNum}
37472
37473
  */
37473
37474
  coin() {
37474
- const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
37475
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37475
37476
  return BigNum.__wrap(ret);
37476
37477
  }
37477
37478
  /**
@@ -37892,7 +37893,7 @@ class VotingBuilder {
37892
37893
  * @returns {VotingBuilder}
37893
37894
  */
37894
37895
  static new() {
37895
- const ret = wasm.votingbuilder_new();
37896
+ const ret = wasm.costmdls_new();
37896
37897
  return VotingBuilder.__wrap(ret);
37897
37898
  }
37898
37899
  /**
@@ -38198,7 +38199,7 @@ class VotingProcedure {
38198
38199
  * @returns {Anchor | undefined}
38199
38200
  */
38200
38201
  anchor() {
38201
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
38202
+ const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
38202
38203
  return ret === 0 ? undefined : Anchor.__wrap(ret);
38203
38204
  }
38204
38205
  }
@@ -38377,7 +38378,7 @@ class VotingProcedures {
38377
38378
  * @returns {VotingProcedures}
38378
38379
  */
38379
38380
  static new() {
38380
- const ret = wasm.votingbuilder_new();
38381
+ const ret = wasm.treasurywithdrawals_new();
38381
38382
  return VotingProcedures.__wrap(ret);
38382
38383
  }
38383
38384
  /**
@@ -38666,7 +38667,7 @@ class VotingProposalBuilder {
38666
38667
  * @returns {VotingProposalBuilder}
38667
38668
  */
38668
38669
  static new() {
38669
- const ret = wasm.votingbuilder_new();
38670
+ const ret = wasm.mintbuilder_new();
38670
38671
  return VotingProposalBuilder.__wrap(ret);
38671
38672
  }
38672
38673
  /**
@@ -38909,14 +38910,14 @@ class VotingProposals {
38909
38910
  * @returns {VotingProposals}
38910
38911
  */
38911
38912
  static new() {
38912
- const ret = wasm.credentials_new();
38913
+ const ret = wasm.votingproposals_new();
38913
38914
  return VotingProposals.__wrap(ret);
38914
38915
  }
38915
38916
  /**
38916
38917
  * @returns {number}
38917
38918
  */
38918
38919
  len() {
38919
- const ret = wasm.credentials_len(this.__wbg_ptr);
38920
+ const ret = wasm.votingproposals_len(this.__wbg_ptr);
38920
38921
  return ret >>> 0;
38921
38922
  }
38922
38923
  /**
@@ -39200,7 +39201,7 @@ class WithdrawalsBuilder {
39200
39201
  * @returns {WithdrawalsBuilder}
39201
39202
  */
39202
39203
  static new() {
39203
- const ret = wasm.mintbuilder_new();
39204
+ const ret = wasm.costmdls_new();
39204
39205
  return WithdrawalsBuilder.__wrap(ret);
39205
39206
  }
39206
39207
  /**
@@ -39676,14 +39677,14 @@ module.exports.__wbg_getRandomValues_dc67302a7bd1aec5 = function(arg0) {
39676
39677
  return addHeapObject(ret);
39677
39678
  };
39678
39679
 
39679
- module.exports.__wbg_randomFillSync_dd2297de5917c74e = function(arg0, arg1, arg2) {
39680
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
39681
- };
39682
-
39683
39680
  module.exports.__wbg_getRandomValues_02639197c8166a96 = function(arg0, arg1, arg2) {
39684
39681
  getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
39685
39682
  };
39686
39683
 
39684
+ module.exports.__wbg_randomFillSync_dd2297de5917c74e = function(arg0, arg1, arg2) {
39685
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
39686
+ };
39687
+
39687
39688
  module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
39688
39689
  const v = getObject(arg1);
39689
39690
  const ret = typeof(v) === 'bigint' ? v : undefined;