@cardananium/cquisitor-lib 0.1.0-beta.36 → 0.1.0-beta.38

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.
@@ -284,28 +284,6 @@ module.exports.get_possible_types_for_input = function(input) {
284
284
  }
285
285
  };
286
286
 
287
- /**
288
- * @param {string} cbor_hex
289
- * @returns {any}
290
- */
291
- module.exports.cbor_to_json = function(cbor_hex) {
292
- try {
293
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
294
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
- const len0 = WASM_VECTOR_LEN;
296
- wasm.cbor_to_json(retptr, ptr0, len0);
297
- var r0 = getInt32Memory0()[retptr / 4 + 0];
298
- var r1 = getInt32Memory0()[retptr / 4 + 1];
299
- var r2 = getInt32Memory0()[retptr / 4 + 2];
300
- if (r2) {
301
- throw takeObject(r1);
302
- }
303
- return takeObject(r0);
304
- } finally {
305
- wasm.__wbindgen_add_to_stack_pointer(16);
306
- }
307
- };
308
-
309
287
  /**
310
288
  * @param {string} hex_str
311
289
  * @returns {any}
@@ -396,39 +374,6 @@ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
396
374
  }
397
375
  };
398
376
 
399
- /**
400
- * WASM export: Extracts all script and datum hashes from a transaction
401
- * Returns JSON string with ExtractedHashes structure
402
- * @param {string} tx_hex
403
- * @returns {string}
404
- */
405
- module.exports.extract_hashes_from_transaction_js = function(tx_hex) {
406
- let deferred3_0;
407
- let deferred3_1;
408
- try {
409
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
410
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
- const len0 = WASM_VECTOR_LEN;
412
- wasm.extract_hashes_from_transaction_js(retptr, ptr0, len0);
413
- var r0 = getInt32Memory0()[retptr / 4 + 0];
414
- var r1 = getInt32Memory0()[retptr / 4 + 1];
415
- var r2 = getInt32Memory0()[retptr / 4 + 2];
416
- var r3 = getInt32Memory0()[retptr / 4 + 3];
417
- var ptr2 = r0;
418
- var len2 = r1;
419
- if (r3) {
420
- ptr2 = 0; len2 = 0;
421
- throw takeObject(r2);
422
- }
423
- deferred3_0 = ptr2;
424
- deferred3_1 = len2;
425
- return getStringFromWasm0(ptr2, len2);
426
- } finally {
427
- wasm.__wbindgen_add_to_stack_pointer(16);
428
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
429
- }
430
- };
431
-
432
377
  /**
433
378
  * @param {string} hex
434
379
  * @returns {any}
@@ -532,297 +477,112 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
532
477
  };
533
478
 
534
479
  /**
535
- * @param {string} tx_hex
536
- * @param {number} output_index
537
- * @returns {string}
538
- */
539
- module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
540
- let deferred3_0;
541
- let deferred3_1;
542
- try {
543
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
544
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
545
- const len0 = WASM_VECTOR_LEN;
546
- wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
547
- var r0 = getInt32Memory0()[retptr / 4 + 0];
548
- var r1 = getInt32Memory0()[retptr / 4 + 1];
549
- var r2 = getInt32Memory0()[retptr / 4 + 2];
550
- var r3 = getInt32Memory0()[retptr / 4 + 3];
551
- var ptr2 = r0;
552
- var len2 = r1;
553
- if (r3) {
554
- ptr2 = 0; len2 = 0;
555
- throw takeObject(r2);
556
- }
557
- deferred3_0 = ptr2;
558
- deferred3_1 = len2;
559
- return getStringFromWasm0(ptr2, len2);
560
- } finally {
561
- wasm.__wbindgen_add_to_stack_pointer(16);
562
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
563
- }
564
- };
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
- function _assertClass(instance, klass) {
579
- if (!(instance instanceof klass)) {
580
- throw new Error(`expected instance of ${klass.name}`);
581
- }
582
- return instance.ptr;
583
- }
584
- /**
585
- * @param {string} json
586
- * @param {PlutusDatumSchema} schema
587
- * @returns {PlutusData}
480
+ * @param {string} cbor_hex
481
+ * @returns {any}
588
482
  */
589
- module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
483
+ module.exports.cbor_to_json = function(cbor_hex) {
590
484
  try {
591
485
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
592
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
486
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
593
487
  const len0 = WASM_VECTOR_LEN;
594
- wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
488
+ wasm.cbor_to_json(retptr, ptr0, len0);
595
489
  var r0 = getInt32Memory0()[retptr / 4 + 0];
596
490
  var r1 = getInt32Memory0()[retptr / 4 + 1];
597
491
  var r2 = getInt32Memory0()[retptr / 4 + 2];
598
492
  if (r2) {
599
493
  throw takeObject(r1);
600
494
  }
601
- return PlutusData.__wrap(r0);
495
+ return takeObject(r0);
602
496
  } finally {
603
497
  wasm.__wbindgen_add_to_stack_pointer(16);
604
498
  }
605
499
  };
606
500
 
607
501
  /**
608
- * @param {PlutusData} datum
609
- * @param {PlutusDatumSchema} schema
502
+ * @param {string} tx_hex
503
+ * @param {number} output_index
610
504
  * @returns {string}
611
505
  */
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) {
506
+ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
507
+ let deferred3_0;
508
+ let deferred3_1;
654
509
  try {
655
510
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
656
- _assertClass(metadata, TransactionMetadatum);
657
- wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
511
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
512
+ const len0 = WASM_VECTOR_LEN;
513
+ wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
658
514
  var r0 = getInt32Memory0()[retptr / 4 + 0];
659
515
  var r1 = getInt32Memory0()[retptr / 4 + 1];
660
516
  var r2 = getInt32Memory0()[retptr / 4 + 2];
661
517
  var r3 = getInt32Memory0()[retptr / 4 + 3];
518
+ var ptr2 = r0;
519
+ var len2 = r1;
662
520
  if (r3) {
521
+ ptr2 = 0; len2 = 0;
663
522
  throw takeObject(r2);
664
523
  }
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);
524
+ deferred3_0 = ptr2;
525
+ deferred3_1 = len2;
526
+ return getStringFromWasm0(ptr2, len2);
691
527
  } finally {
692
528
  wasm.__wbindgen_add_to_stack_pointer(16);
529
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
693
530
  }
694
531
  };
695
532
 
696
533
  /**
697
- * @param {TransactionMetadatum} metadatum
698
- * @param {MetadataJsonSchema} schema
534
+ * WASM export: Extracts all script and datum hashes from a transaction
535
+ * Returns JSON string with ExtractedHashes structure
536
+ * @param {string} tx_hex
699
537
  * @returns {string}
700
538
  */
701
- module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
702
- let deferred2_0;
703
- let deferred2_1;
539
+ module.exports.extract_hashes_from_transaction_js = function(tx_hex) {
540
+ let deferred3_0;
541
+ let deferred3_1;
704
542
  try {
705
543
  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);
544
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
545
+ const len0 = WASM_VECTOR_LEN;
546
+ wasm.extract_hashes_from_transaction_js(retptr, ptr0, len0);
708
547
  var r0 = getInt32Memory0()[retptr / 4 + 0];
709
548
  var r1 = getInt32Memory0()[retptr / 4 + 1];
710
549
  var r2 = getInt32Memory0()[retptr / 4 + 2];
711
550
  var r3 = getInt32Memory0()[retptr / 4 + 3];
712
- var ptr1 = r0;
713
- var len1 = r1;
551
+ var ptr2 = r0;
552
+ var len2 = r1;
714
553
  if (r3) {
715
- ptr1 = 0; len1 = 0;
554
+ ptr2 = 0; len2 = 0;
716
555
  throw takeObject(r2);
717
556
  }
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);
557
+ deferred3_0 = ptr2;
558
+ deferred3_1 = len2;
559
+ return getStringFromWasm0(ptr2, len2);
791
560
  } finally {
792
561
  wasm.__wbindgen_add_to_stack_pointer(16);
562
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
793
563
  }
794
564
  };
795
565
 
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);
566
+ function _assertClass(instance, klass) {
567
+ if (!(instance instanceof klass)) {
568
+ throw new Error(`expected instance of ${klass.name}`);
815
569
  }
816
- };
570
+ return instance.ptr;
571
+ }
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);
@@ -1149,8 +1150,55 @@ function handleError(f, args) {
1149
1150
  }
1150
1151
  /**
1151
1152
  */
1153
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1154
+ /**
1155
+ */
1156
+ 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", });
1157
+ /**
1158
+ * Used to choosed the schema for a script JSON string
1159
+ */
1160
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1161
+ /**
1162
+ */
1163
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1164
+ /**
1165
+ */
1166
+ 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", });
1167
+ /**
1168
+ */
1152
1169
  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", });
1153
1170
  /**
1171
+ */
1172
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1173
+ /**
1174
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1175
+ */
1176
+ LargestFirst:0,"0":"LargestFirst",
1177
+ /**
1178
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1179
+ */
1180
+ RandomImprove:1,"1":"RandomImprove",
1181
+ /**
1182
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1183
+ */
1184
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1185
+ /**
1186
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1187
+ */
1188
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1189
+ /**
1190
+ */
1191
+ 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", });
1192
+ /**
1193
+ */
1194
+ 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", });
1195
+ /**
1196
+ */
1197
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1198
+ /**
1199
+ */
1200
+ module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1201
+ /**
1154
1202
  * JSON <-> PlutusData conversion schemas.
1155
1203
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
1156
1204
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -1203,84 +1251,40 @@ BasicConversions:0,"0":"BasicConversions",
1203
1251
  DetailedSchema:1,"1":"DetailedSchema", });
1204
1252
  /**
1205
1253
  */
1206
- 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", });
1207
- /**
1208
- */
1209
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1254
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1210
1255
  /**
1211
1256
  */
1212
1257
  module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1213
1258
  /**
1214
1259
  */
1215
- 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", });
1216
- /**
1217
- */
1218
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1260
+ 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", });
1219
1261
  /**
1220
1262
  */
1221
1263
  module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1222
1264
  /**
1223
1265
  */
1224
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1225
- /**
1226
- */
1227
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1228
- /**
1229
- */
1230
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1231
- /**
1232
- */
1233
- 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", });
1234
- /**
1235
- */
1236
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1237
- /**
1238
- */
1239
- 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", });
1240
- /**
1241
- */
1242
- 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", });
1243
- /**
1244
- */
1245
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1246
- /**
1247
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1248
- */
1249
- LargestFirst:0,"0":"LargestFirst",
1266
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1250
1267
  /**
1251
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1252
1268
  */
1253
- RandomImprove:1,"1":"RandomImprove",
1269
+ 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", });
1254
1270
  /**
1255
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1256
1271
  */
1257
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1272
+ 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", });
1258
1273
  /**
1259
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1260
1274
  */
1261
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1275
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1262
1276
  /**
1263
1277
  */
1264
1278
  module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1265
1279
  /**
1266
1280
  */
1267
- module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1268
- /**
1269
- */
1270
- 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", });
1281
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1271
1282
  /**
1272
1283
  */
1273
1284
  module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1274
1285
  /**
1275
- * Used to choosed the schema for a script JSON string
1276
1286
  */
1277
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1278
- /**
1279
- */
1280
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1281
- /**
1282
- */
1283
- 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", });
1287
+ 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", });
1284
1288
  /**
1285
1289
  * Each new language uses a different namespace for hashing its script
1286
1290
  * This is because you could have a language where the same bytes have different semantics
@@ -1290,10 +1294,7 @@ module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"Met
1290
1294
  module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1291
1295
  /**
1292
1296
  */
1293
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1294
- /**
1295
- */
1296
- 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", });
1297
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1297
1298
 
1298
1299
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1299
1300
  ? { register: () => {}, unregister: () => {} }
@@ -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;