@cardananium/cquisitor-lib 0.1.0-beta.3 → 0.1.0-beta.30

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.
@@ -306,6 +306,59 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
306
306
  }
307
307
  };
308
308
 
309
+ /**
310
+ * @param {string} hex
311
+ * @returns {any}
312
+ */
313
+ module.exports.decode_plutus_program_uplc_json = function(hex) {
314
+ try {
315
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
316
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
+ const len0 = WASM_VECTOR_LEN;
318
+ wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
319
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
320
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
321
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
322
+ if (r2) {
323
+ throw takeObject(r1);
324
+ }
325
+ return takeObject(r0);
326
+ } finally {
327
+ wasm.__wbindgen_add_to_stack_pointer(16);
328
+ }
329
+ };
330
+
331
+ /**
332
+ * @param {string} hex
333
+ * @returns {string}
334
+ */
335
+ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
336
+ let deferred3_0;
337
+ let deferred3_1;
338
+ try {
339
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
340
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
341
+ const len0 = WASM_VECTOR_LEN;
342
+ wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
343
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
344
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
345
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
346
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
347
+ var ptr2 = r0;
348
+ var len2 = r1;
349
+ if (r3) {
350
+ ptr2 = 0; len2 = 0;
351
+ throw takeObject(r2);
352
+ }
353
+ deferred3_0 = ptr2;
354
+ deferred3_1 = len2;
355
+ return getStringFromWasm0(ptr2, len2);
356
+ } finally {
357
+ wasm.__wbindgen_add_to_stack_pointer(16);
358
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
359
+ }
360
+ };
361
+
309
362
  /**
310
363
  * @param {string} tx_hex
311
364
  * @returns {(string)[]}
@@ -378,39 +431,49 @@ module.exports.cbor_to_json = function(cbor_hex) {
378
431
  };
379
432
 
380
433
  /**
381
- * @param {string} hex
382
- * @returns {any}
434
+ * @param {string} tx_hex
435
+ * @param {number} output_index
436
+ * @returns {string}
383
437
  */
384
- module.exports.decode_plutus_program_uplc_json = function(hex) {
438
+ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
439
+ let deferred3_0;
440
+ let deferred3_1;
385
441
  try {
386
442
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
387
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
443
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
388
444
  const len0 = WASM_VECTOR_LEN;
389
- wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
445
+ wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
390
446
  var r0 = getInt32Memory0()[retptr / 4 + 0];
391
447
  var r1 = getInt32Memory0()[retptr / 4 + 1];
392
448
  var r2 = getInt32Memory0()[retptr / 4 + 2];
393
- if (r2) {
394
- throw takeObject(r1);
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);
395
455
  }
396
- return takeObject(r0);
456
+ deferred3_0 = ptr2;
457
+ deferred3_1 = len2;
458
+ return getStringFromWasm0(ptr2, len2);
397
459
  } finally {
398
460
  wasm.__wbindgen_add_to_stack_pointer(16);
461
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
399
462
  }
400
463
  };
401
464
 
402
465
  /**
403
- * @param {string} hex
466
+ * @param {string} tx_hex
404
467
  * @returns {string}
405
468
  */
406
- module.exports.decode_plutus_program_pretty_uplc = function(hex) {
469
+ module.exports.get_necessary_data_list_js = function(tx_hex) {
407
470
  let deferred3_0;
408
471
  let deferred3_1;
409
472
  try {
410
473
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
411
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
474
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
475
  const len0 = WASM_VECTOR_LEN;
413
- wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
476
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
414
477
  var r0 = getInt32Memory0()[retptr / 4 + 0];
415
478
  var r1 = getInt32Memory0()[retptr / 4 + 1];
416
479
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -430,6 +493,40 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
430
493
  }
431
494
  };
432
495
 
496
+ /**
497
+ * @param {string} tx_hex
498
+ * @param {string} validation_context
499
+ * @returns {string}
500
+ */
501
+ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
502
+ let deferred4_0;
503
+ let deferred4_1;
504
+ try {
505
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
506
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
507
+ const len0 = WASM_VECTOR_LEN;
508
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
509
+ const len1 = WASM_VECTOR_LEN;
510
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
511
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
512
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
513
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
514
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
515
+ var ptr3 = r0;
516
+ var len3 = r1;
517
+ if (r3) {
518
+ ptr3 = 0; len3 = 0;
519
+ throw takeObject(r2);
520
+ }
521
+ deferred4_0 = ptr3;
522
+ deferred4_1 = len3;
523
+ return getStringFromWasm0(ptr3, len3);
524
+ } finally {
525
+ wasm.__wbindgen_add_to_stack_pointer(16);
526
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
527
+ }
528
+ };
529
+
433
530
  function getArrayU8FromWasm0(ptr, len) {
434
531
  ptr = ptr >>> 0;
435
532
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
@@ -448,6 +545,149 @@ function _assertClass(instance, klass) {
448
545
  }
449
546
  return instance.ptr;
450
547
  }
548
+ /**
549
+ * @param {string} json
550
+ * @param {PlutusDatumSchema} schema
551
+ * @returns {PlutusData}
552
+ */
553
+ module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
554
+ try {
555
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
556
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
557
+ const len0 = WASM_VECTOR_LEN;
558
+ wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
559
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
560
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
561
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
562
+ if (r2) {
563
+ throw takeObject(r1);
564
+ }
565
+ return PlutusData.__wrap(r0);
566
+ } finally {
567
+ wasm.__wbindgen_add_to_stack_pointer(16);
568
+ }
569
+ };
570
+
571
+ /**
572
+ * @param {PlutusData} datum
573
+ * @param {PlutusDatumSchema} schema
574
+ * @returns {string}
575
+ */
576
+ module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
577
+ let deferred2_0;
578
+ let deferred2_1;
579
+ try {
580
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
581
+ _assertClass(datum, PlutusData);
582
+ wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
583
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
584
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
585
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
586
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
587
+ var ptr1 = r0;
588
+ var len1 = r1;
589
+ if (r3) {
590
+ ptr1 = 0; len1 = 0;
591
+ throw takeObject(r2);
592
+ }
593
+ deferred2_0 = ptr1;
594
+ deferred2_1 = len1;
595
+ return getStringFromWasm0(ptr1, len1);
596
+ } finally {
597
+ wasm.__wbindgen_add_to_stack_pointer(16);
598
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
599
+ }
600
+ };
601
+
602
+ /**
603
+ * @param {Uint8Array} bytes
604
+ * @returns {TransactionMetadatum}
605
+ */
606
+ module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
607
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
608
+ const len0 = WASM_VECTOR_LEN;
609
+ const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
610
+ return TransactionMetadatum.__wrap(ret);
611
+ };
612
+
613
+ /**
614
+ * @param {TransactionMetadatum} metadata
615
+ * @returns {Uint8Array}
616
+ */
617
+ module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
618
+ try {
619
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
620
+ _assertClass(metadata, TransactionMetadatum);
621
+ wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
622
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
623
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
624
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
625
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
626
+ if (r3) {
627
+ throw takeObject(r2);
628
+ }
629
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
630
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
631
+ return v1;
632
+ } finally {
633
+ wasm.__wbindgen_add_to_stack_pointer(16);
634
+ }
635
+ };
636
+
637
+ /**
638
+ * @param {string} json
639
+ * @param {MetadataJsonSchema} schema
640
+ * @returns {TransactionMetadatum}
641
+ */
642
+ module.exports.encode_json_str_to_metadatum = function(json, schema) {
643
+ try {
644
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
645
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
646
+ const len0 = WASM_VECTOR_LEN;
647
+ wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
648
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
649
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
650
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
651
+ if (r2) {
652
+ throw takeObject(r1);
653
+ }
654
+ return TransactionMetadatum.__wrap(r0);
655
+ } finally {
656
+ wasm.__wbindgen_add_to_stack_pointer(16);
657
+ }
658
+ };
659
+
660
+ /**
661
+ * @param {TransactionMetadatum} metadatum
662
+ * @param {MetadataJsonSchema} schema
663
+ * @returns {string}
664
+ */
665
+ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
666
+ let deferred2_0;
667
+ let deferred2_1;
668
+ try {
669
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
670
+ _assertClass(metadatum, TransactionMetadatum);
671
+ wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
672
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
673
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
674
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
675
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
676
+ var ptr1 = r0;
677
+ var len1 = r1;
678
+ if (r3) {
679
+ ptr1 = 0; len1 = 0;
680
+ throw takeObject(r2);
681
+ }
682
+ deferred2_0 = ptr1;
683
+ deferred2_1 = len1;
684
+ return getStringFromWasm0(ptr1, len1);
685
+ } finally {
686
+ wasm.__wbindgen_add_to_stack_pointer(16);
687
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
688
+ }
689
+ };
690
+
451
691
  /**
452
692
  * @param {Transaction} tx
453
693
  * @param {LinearFee} linear_fee
@@ -765,31 +1005,6 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
765
1005
  }
766
1006
  };
767
1007
 
768
- /**
769
- * @param {Address} address
770
- * @param {TransactionUnspentOutputs} utxos
771
- * @param {TransactionBuilderConfig} config
772
- * @returns {TransactionBatchList}
773
- */
774
- module.exports.create_send_all = function(address, utxos, config) {
775
- try {
776
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
777
- _assertClass(address, Address);
778
- _assertClass(utxos, TransactionUnspentOutputs);
779
- _assertClass(config, TransactionBuilderConfig);
780
- wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
781
- var r0 = getInt32Memory0()[retptr / 4 + 0];
782
- var r1 = getInt32Memory0()[retptr / 4 + 1];
783
- var r2 = getInt32Memory0()[retptr / 4 + 2];
784
- if (r2) {
785
- throw takeObject(r1);
786
- }
787
- return TransactionBatchList.__wrap(r0);
788
- } finally {
789
- wasm.__wbindgen_add_to_stack_pointer(16);
790
- }
791
- };
792
-
793
1008
  /**
794
1009
  * @param {string} password
795
1010
  * @param {string} salt
@@ -865,145 +1080,27 @@ module.exports.decrypt_with_password = function(password, data) {
865
1080
  };
866
1081
 
867
1082
  /**
868
- * @param {string} json
869
- * @param {PlutusDatumSchema} schema
870
- * @returns {PlutusData}
871
- */
872
- module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
873
- try {
874
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
875
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
876
- const len0 = WASM_VECTOR_LEN;
877
- wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
878
- var r0 = getInt32Memory0()[retptr / 4 + 0];
879
- var r1 = getInt32Memory0()[retptr / 4 + 1];
880
- var r2 = getInt32Memory0()[retptr / 4 + 2];
881
- if (r2) {
882
- throw takeObject(r1);
883
- }
884
- return PlutusData.__wrap(r0);
885
- } finally {
886
- wasm.__wbindgen_add_to_stack_pointer(16);
887
- }
888
- };
889
-
890
- /**
891
- * @param {PlutusData} datum
892
- * @param {PlutusDatumSchema} schema
893
- * @returns {string}
894
- */
895
- module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
896
- let deferred2_0;
897
- let deferred2_1;
898
- try {
899
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
900
- _assertClass(datum, PlutusData);
901
- wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
902
- var r0 = getInt32Memory0()[retptr / 4 + 0];
903
- var r1 = getInt32Memory0()[retptr / 4 + 1];
904
- var r2 = getInt32Memory0()[retptr / 4 + 2];
905
- var r3 = getInt32Memory0()[retptr / 4 + 3];
906
- var ptr1 = r0;
907
- var len1 = r1;
908
- if (r3) {
909
- ptr1 = 0; len1 = 0;
910
- throw takeObject(r2);
911
- }
912
- deferred2_0 = ptr1;
913
- deferred2_1 = len1;
914
- return getStringFromWasm0(ptr1, len1);
915
- } finally {
916
- wasm.__wbindgen_add_to_stack_pointer(16);
917
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
918
- }
919
- };
920
-
921
- /**
922
- * @param {Uint8Array} bytes
923
- * @returns {TransactionMetadatum}
924
- */
925
- module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
926
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
927
- const len0 = WASM_VECTOR_LEN;
928
- const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
929
- return TransactionMetadatum.__wrap(ret);
930
- };
931
-
932
- /**
933
- * @param {TransactionMetadatum} metadata
934
- * @returns {Uint8Array}
935
- */
936
- module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
937
- try {
938
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
939
- _assertClass(metadata, TransactionMetadatum);
940
- wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
941
- var r0 = getInt32Memory0()[retptr / 4 + 0];
942
- var r1 = getInt32Memory0()[retptr / 4 + 1];
943
- var r2 = getInt32Memory0()[retptr / 4 + 2];
944
- var r3 = getInt32Memory0()[retptr / 4 + 3];
945
- if (r3) {
946
- throw takeObject(r2);
947
- }
948
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
949
- wasm.__wbindgen_free(r0, r1 * 1, 1);
950
- return v1;
951
- } finally {
952
- wasm.__wbindgen_add_to_stack_pointer(16);
953
- }
954
- };
955
-
956
- /**
957
- * @param {string} json
958
- * @param {MetadataJsonSchema} schema
959
- * @returns {TransactionMetadatum}
1083
+ * @param {Address} address
1084
+ * @param {TransactionUnspentOutputs} utxos
1085
+ * @param {TransactionBuilderConfig} config
1086
+ * @returns {TransactionBatchList}
960
1087
  */
961
- module.exports.encode_json_str_to_metadatum = function(json, schema) {
1088
+ module.exports.create_send_all = function(address, utxos, config) {
962
1089
  try {
963
1090
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
964
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
965
- const len0 = WASM_VECTOR_LEN;
966
- wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
1091
+ _assertClass(address, Address);
1092
+ _assertClass(utxos, TransactionUnspentOutputs);
1093
+ _assertClass(config, TransactionBuilderConfig);
1094
+ wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
967
1095
  var r0 = getInt32Memory0()[retptr / 4 + 0];
968
1096
  var r1 = getInt32Memory0()[retptr / 4 + 1];
969
1097
  var r2 = getInt32Memory0()[retptr / 4 + 2];
970
1098
  if (r2) {
971
1099
  throw takeObject(r1);
972
1100
  }
973
- return TransactionMetadatum.__wrap(r0);
974
- } finally {
975
- wasm.__wbindgen_add_to_stack_pointer(16);
976
- }
977
- };
978
-
979
- /**
980
- * @param {TransactionMetadatum} metadatum
981
- * @param {MetadataJsonSchema} schema
982
- * @returns {string}
983
- */
984
- module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
985
- let deferred2_0;
986
- let deferred2_1;
987
- try {
988
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
989
- _assertClass(metadatum, TransactionMetadatum);
990
- wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
991
- var r0 = getInt32Memory0()[retptr / 4 + 0];
992
- var r1 = getInt32Memory0()[retptr / 4 + 1];
993
- var r2 = getInt32Memory0()[retptr / 4 + 2];
994
- var r3 = getInt32Memory0()[retptr / 4 + 3];
995
- var ptr1 = r0;
996
- var len1 = r1;
997
- if (r3) {
998
- ptr1 = 0; len1 = 0;
999
- throw takeObject(r2);
1000
- }
1001
- deferred2_0 = ptr1;
1002
- deferred2_1 = len1;
1003
- return getStringFromWasm0(ptr1, len1);
1101
+ return TransactionBatchList.__wrap(r0);
1004
1102
  } finally {
1005
1103
  wasm.__wbindgen_add_to_stack_pointer(16);
1006
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1007
1104
  }
1008
1105
  };
1009
1106
 
@@ -1016,59 +1113,97 @@ function handleError(f, args) {
1016
1113
  }
1017
1114
  /**
1018
1115
  */
1116
+ 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", });
1117
+ /**
1118
+ */
1019
1119
  module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1020
1120
  /**
1021
1121
  */
1022
1122
  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", });
1023
1123
  /**
1024
1124
  */
1025
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1125
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1126
+ /**
1127
+ */
1128
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1026
1129
  /**
1027
1130
  * Used to choosed the schema for a script JSON string
1028
1131
  */
1029
1132
  module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1030
1133
  /**
1031
1134
  */
1032
- 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", });
1135
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1033
1136
  /**
1034
1137
  */
1035
- 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", });
1138
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1036
1139
  /**
1140
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1037
1141
  */
1038
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1142
+ LargestFirst:0,"0":"LargestFirst",
1039
1143
  /**
1144
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1040
1145
  */
1041
- 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", });
1146
+ RandomImprove:1,"1":"RandomImprove",
1042
1147
  /**
1148
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1043
1149
  */
1044
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1150
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1045
1151
  /**
1152
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1046
1153
  */
1047
- 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", });
1154
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1048
1155
  /**
1049
1156
  */
1050
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1157
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1051
1158
  /**
1052
1159
  */
1053
- 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", });
1160
+ module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1054
1161
  /**
1055
1162
  */
1056
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1163
+ 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", });
1057
1164
  /**
1165
+ * Each new language uses a different namespace for hashing its script
1166
+ * This is because you could have a language where the same bytes have different semantics
1167
+ * So this avoids scripts in different languages mapping to the same hash
1168
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1058
1169
  */
1059
- 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", });
1170
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1171
+ /**
1172
+ */
1173
+ 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", });
1174
+ /**
1175
+ */
1176
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1177
+ /**
1178
+ */
1179
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1060
1180
  /**
1061
1181
  */
1062
1182
  module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1063
1183
  /**
1064
1184
  */
1065
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1185
+ 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", });
1186
+ /**
1187
+ */
1188
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1189
+ /**
1190
+ */
1191
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1192
+ /**
1193
+ */
1194
+ 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", });
1066
1195
  /**
1067
1196
  */
1068
1197
  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", });
1069
1198
  /**
1070
1199
  */
1071
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1200
+ 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", });
1201
+ /**
1202
+ */
1203
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1204
+ /**
1205
+ */
1206
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1072
1207
  /**
1073
1208
  * JSON <-> PlutusData conversion schemas.
1074
1209
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1121,43 +1256,8 @@ BasicConversions:0,"0":"BasicConversions",
1121
1256
  */
1122
1257
  DetailedSchema:1,"1":"DetailedSchema", });
1123
1258
  /**
1124
- * Each new language uses a different namespace for hashing its script
1125
- * This is because you could have a language where the same bytes have different semantics
1126
- * So this avoids scripts in different languages mapping to the same hash
1127
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1128
- */
1129
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1130
- /**
1131
- */
1132
- module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1133
- /**
1134
- */
1135
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1136
- /**
1137
- */
1138
- 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", });
1139
- /**
1140
- */
1141
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1142
- /**
1143
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1144
- */
1145
- LargestFirst:0,"0":"LargestFirst",
1146
- /**
1147
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1148
- */
1149
- RandomImprove:1,"1":"RandomImprove",
1150
- /**
1151
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1152
- */
1153
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1154
- /**
1155
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1156
- */
1157
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1158
- /**
1159
1259
  */
1160
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1260
+ 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", });
1161
1261
 
1162
1262
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1163
1263
  ? { register: () => {}, unregister: () => {} }
@@ -2365,7 +2465,7 @@ class Assets {
2365
2465
  * @returns {number}
2366
2466
  */
2367
2467
  len() {
2368
- const ret = wasm.assetnames_len(this.__wbg_ptr);
2468
+ const ret = wasm.assets_len(this.__wbg_ptr);
2369
2469
  return ret >>> 0;
2370
2470
  }
2371
2471
  /**
@@ -5019,6 +5119,13 @@ class ByronAddress {
5019
5119
  return ret >>> 0;
5020
5120
  }
5021
5121
  /**
5122
+ * @returns {ByronAddressType}
5123
+ */
5124
+ byron_address_kind() {
5125
+ const ret = wasm.byronaddress_byron_address_kind(this.__wbg_ptr);
5126
+ return ret;
5127
+ }
5128
+ /**
5022
5129
  * @returns {Uint8Array}
5023
5130
  */
5024
5131
  attributes() {
@@ -8523,7 +8630,7 @@ class DRep {
8523
8630
  */
8524
8631
  static new_key_hash(key_hash) {
8525
8632
  _assertClass(key_hash, Ed25519KeyHash);
8526
- const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
8633
+ const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8527
8634
  return DRep.__wrap(ret);
8528
8635
  }
8529
8636
  /**
@@ -8532,7 +8639,7 @@ class DRep {
8532
8639
  */
8533
8640
  static new_script_hash(script_hash) {
8534
8641
  _assertClass(script_hash, ScriptHash);
8535
- const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
8642
+ const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8536
8643
  return DRep.__wrap(ret);
8537
8644
  }
8538
8645
  /**
@@ -8580,14 +8687,15 @@ class DRep {
8580
8687
  return ret === 0 ? undefined : ScriptHash.__wrap(ret);
8581
8688
  }
8582
8689
  /**
8690
+ * @param {boolean} cip_129_format
8583
8691
  * @returns {string}
8584
8692
  */
8585
- to_bech32() {
8693
+ to_bech32(cip_129_format) {
8586
8694
  let deferred2_0;
8587
8695
  let deferred2_1;
8588
8696
  try {
8589
8697
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
8590
- wasm.drep_to_bech32(retptr, this.__wbg_ptr);
8698
+ wasm.drep_to_bech32(retptr, this.__wbg_ptr, cip_129_format);
8591
8699
  var r0 = getInt32Memory0()[retptr / 4 + 0];
8592
8700
  var r1 = getInt32Memory0()[retptr / 4 + 1];
8593
8701
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -9541,7 +9649,7 @@ class DRepVotingThresholds {
9541
9649
  * @returns {UnitInterval}
9542
9650
  */
9543
9651
  motion_no_confidence() {
9544
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
9652
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
9545
9653
  return UnitInterval.__wrap(ret);
9546
9654
  }
9547
9655
  /**
@@ -10625,7 +10733,7 @@ class ExUnitPrices {
10625
10733
  * @returns {UnitInterval}
10626
10734
  */
10627
10735
  mem_price() {
10628
- const ret = wasm.exunitprices_mem_price(this.__wbg_ptr);
10736
+ const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
10629
10737
  return UnitInterval.__wrap(ret);
10630
10738
  }
10631
10739
  /**
@@ -10822,7 +10930,7 @@ class ExUnits {
10822
10930
  * @returns {BigNum}
10823
10931
  */
10824
10932
  mem() {
10825
- const ret = wasm.datacost_coins_per_byte(this.__wbg_ptr);
10933
+ const ret = wasm.exunits_mem(this.__wbg_ptr);
10826
10934
  return BigNum.__wrap(ret);
10827
10935
  }
10828
10936
  /**
@@ -12457,7 +12565,7 @@ class GenesisHashes {
12457
12565
  * @returns {number}
12458
12566
  */
12459
12567
  len() {
12460
- const ret = wasm.assetnames_len(this.__wbg_ptr);
12568
+ const ret = wasm.genesishashes_len(this.__wbg_ptr);
12461
12569
  return ret >>> 0;
12462
12570
  }
12463
12571
  /**
@@ -16302,7 +16410,7 @@ class Mint {
16302
16410
  * @returns {number}
16303
16411
  */
16304
16412
  len() {
16305
- const ret = wasm.assetnames_len(this.__wbg_ptr);
16413
+ const ret = wasm.mint_len(this.__wbg_ptr);
16306
16414
  return ret >>> 0;
16307
16415
  }
16308
16416
  /**
@@ -16410,7 +16518,7 @@ class MintAssets {
16410
16518
  * @returns {number}
16411
16519
  */
16412
16520
  len() {
16413
- const ret = wasm.assetnames_len(this.__wbg_ptr);
16521
+ const ret = wasm.assets_len(this.__wbg_ptr);
16414
16522
  return ret >>> 0;
16415
16523
  }
16416
16524
  /**
@@ -16484,7 +16592,7 @@ class MintBuilder {
16484
16592
  * @returns {MintBuilder}
16485
16593
  */
16486
16594
  static new() {
16487
- const ret = wasm.costmdls_new();
16595
+ const ret = wasm.mintbuilder_new();
16488
16596
  return MintBuilder.__wrap(ret);
16489
16597
  }
16490
16598
  /**
@@ -17365,7 +17473,7 @@ class MultiAsset {
17365
17473
  * @returns {number}
17366
17474
  */
17367
17475
  len() {
17368
- const ret = wasm.assetnames_len(this.__wbg_ptr);
17476
+ const ret = wasm.assets_len(this.__wbg_ptr);
17369
17477
  return ret >>> 0;
17370
17478
  }
17371
17479
  /**
@@ -18028,7 +18136,7 @@ class NativeScripts {
18028
18136
  * @returns {number}
18029
18137
  */
18030
18138
  len() {
18031
- const ret = wasm.costmdls_len(this.__wbg_ptr);
18139
+ const ret = wasm.nativescripts_len(this.__wbg_ptr);
18032
18140
  return ret >>> 0;
18033
18141
  }
18034
18142
  /**
@@ -20027,7 +20135,7 @@ class PlutusList {
20027
20135
  * @returns {number}
20028
20136
  */
20029
20137
  len() {
20030
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
20138
+ const ret = wasm.plutuslist_len(this.__wbg_ptr);
20031
20139
  return ret >>> 0;
20032
20140
  }
20033
20141
  /**
@@ -20228,14 +20336,14 @@ class PlutusMapValues {
20228
20336
  * @returns {PlutusMapValues}
20229
20337
  */
20230
20338
  static new() {
20231
- const ret = wasm.metadatalist_new();
20339
+ const ret = wasm.plutusmapvalues_new();
20232
20340
  return PlutusMapValues.__wrap(ret);
20233
20341
  }
20234
20342
  /**
20235
20343
  * @returns {number}
20236
20344
  */
20237
20345
  len() {
20238
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
20346
+ const ret = wasm.plutuslist_len(this.__wbg_ptr);
20239
20347
  return ret >>> 0;
20240
20348
  }
20241
20349
  /**
@@ -20803,7 +20911,7 @@ class PlutusScripts {
20803
20911
  * @returns {number}
20804
20912
  */
20805
20913
  len() {
20806
- const ret = wasm.certificates_len(this.__wbg_ptr);
20914
+ const ret = wasm.plutusscripts_len(this.__wbg_ptr);
20807
20915
  return ret >>> 0;
20808
20916
  }
20809
20917
  /**
@@ -20952,7 +21060,7 @@ class PlutusWitnesses {
20952
21060
  * @returns {PlutusWitnesses}
20953
21061
  */
20954
21062
  static new() {
20955
- const ret = wasm.plutuswitnesses_new();
21063
+ const ret = wasm.fixedtransactionbodies_new();
20956
21064
  return PlutusWitnesses.__wrap(ret);
20957
21065
  }
20958
21066
  /**
@@ -21104,7 +21212,7 @@ class Pointer {
21104
21212
  * @returns {BigNum}
21105
21213
  */
21106
21214
  cert_index_bignum() {
21107
- const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
21215
+ const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
21108
21216
  return BigNum.__wrap(ret);
21109
21217
  }
21110
21218
  }
@@ -22380,7 +22488,7 @@ class PoolVotingThresholds {
22380
22488
  * @returns {UnitInterval}
22381
22489
  */
22382
22490
  motion_no_confidence() {
22383
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
22491
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
22384
22492
  return UnitInterval.__wrap(ret);
22385
22493
  }
22386
22494
  /**
@@ -23947,7 +24055,7 @@ class PublicKeys {
23947
24055
  /**
23948
24056
  */
23949
24057
  constructor() {
23950
- const ret = wasm.genesishashes_new();
24058
+ const ret = wasm.publickeys_new();
23951
24059
  this.__wbg_ptr = ret >>> 0;
23952
24060
  return this;
23953
24061
  }
@@ -23955,7 +24063,7 @@ class PublicKeys {
23955
24063
  * @returns {number}
23956
24064
  */
23957
24065
  size() {
23958
- const ret = wasm.assetnames_len(this.__wbg_ptr);
24066
+ const ret = wasm.publickeys_size(this.__wbg_ptr);
23959
24067
  return ret >>> 0;
23960
24068
  }
23961
24069
  /**
@@ -24592,7 +24700,7 @@ class Redeemers {
24592
24700
  * @returns {number}
24593
24701
  */
24594
24702
  len() {
24595
- const ret = wasm.fixedtransactionbodies_len(this.__wbg_ptr);
24703
+ const ret = wasm.redeemers_len(this.__wbg_ptr);
24596
24704
  return ret >>> 0;
24597
24705
  }
24598
24706
  /**
@@ -25316,7 +25424,7 @@ class RewardAddresses {
25316
25424
  * @returns {number}
25317
25425
  */
25318
25426
  len() {
25319
- const ret = wasm.assetnames_len(this.__wbg_ptr);
25427
+ const ret = wasm.rewardaddresses_len(this.__wbg_ptr);
25320
25428
  return ret >>> 0;
25321
25429
  }
25322
25430
  /**
@@ -26207,7 +26315,7 @@ class ScriptHashes {
26207
26315
  * @returns {number}
26208
26316
  */
26209
26317
  len() {
26210
- const ret = wasm.assetnames_len(this.__wbg_ptr);
26318
+ const ret = wasm.genesishashes_len(this.__wbg_ptr);
26211
26319
  return ret >>> 0;
26212
26320
  }
26213
26321
  /**
@@ -28288,7 +28396,7 @@ class StakeRegistrationAndDelegation {
28288
28396
  * @returns {BigNum}
28289
28397
  */
28290
28398
  coin() {
28291
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28399
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28292
28400
  return BigNum.__wrap(ret);
28293
28401
  }
28294
28402
  /**
@@ -28494,7 +28602,7 @@ class StakeVoteRegistrationAndDelegation {
28494
28602
  * @returns {Ed25519KeyHash}
28495
28603
  */
28496
28604
  pool_keyhash() {
28497
- const ret = wasm.stakeregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28605
+ const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28498
28606
  return Ed25519KeyHash.__wrap(ret);
28499
28607
  }
28500
28608
  /**
@@ -28508,7 +28616,7 @@ class StakeVoteRegistrationAndDelegation {
28508
28616
  * @returns {BigNum}
28509
28617
  */
28510
28618
  coin() {
28511
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28619
+ const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
28512
28620
  return BigNum.__wrap(ret);
28513
28621
  }
28514
28622
  /**
@@ -28566,14 +28674,14 @@ class Strings {
28566
28674
  * @returns {Strings}
28567
28675
  */
28568
28676
  static new() {
28569
- const ret = wasm.strings_new();
28677
+ const ret = wasm.relays_new();
28570
28678
  return Strings.__wrap(ret);
28571
28679
  }
28572
28680
  /**
28573
28681
  * @returns {number}
28574
28682
  */
28575
28683
  len() {
28576
- const ret = wasm.costmodel_len(this.__wbg_ptr);
28684
+ const ret = wasm.strings_len(this.__wbg_ptr);
28577
28685
  return ret >>> 0;
28578
28686
  }
28579
28687
  /**
@@ -28798,7 +28906,7 @@ class TimelockExpiry {
28798
28906
  * @returns {BigNum}
28799
28907
  */
28800
28908
  slot_bignum() {
28801
- const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
28909
+ const ret = wasm.linearfee_constant(this.__wbg_ptr);
28802
28910
  return BigNum.__wrap(ret);
28803
28911
  }
28804
28912
  /**
@@ -29019,7 +29127,7 @@ class TimelockStart {
29019
29127
  * @returns {BigNum}
29020
29128
  */
29021
29129
  slot_bignum() {
29022
- const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
29130
+ const ret = wasm.linearfee_constant(this.__wbg_ptr);
29023
29131
  return BigNum.__wrap(ret);
29024
29132
  }
29025
29133
  /**
@@ -29298,7 +29406,7 @@ class TransactionBatch {
29298
29406
  * @returns {number}
29299
29407
  */
29300
29408
  len() {
29301
- const ret = wasm.costmdls_len(this.__wbg_ptr);
29409
+ const ret = wasm.transactionbatch_len(this.__wbg_ptr);
29302
29410
  return ret >>> 0;
29303
29411
  }
29304
29412
  /**
@@ -29342,7 +29450,7 @@ class TransactionBatchList {
29342
29450
  * @returns {number}
29343
29451
  */
29344
29452
  len() {
29345
- const ret = wasm.costmdls_len(this.__wbg_ptr);
29453
+ const ret = wasm.transactionbatchlist_len(this.__wbg_ptr);
29346
29454
  return ret >>> 0;
29347
29455
  }
29348
29456
  /**
@@ -29536,7 +29644,7 @@ class TransactionBodies {
29536
29644
  * @returns {number}
29537
29645
  */
29538
29646
  len() {
29539
- const ret = wasm.fixedtransactionbodies_len(this.__wbg_ptr);
29647
+ const ret = wasm.transactionbodies_len(this.__wbg_ptr);
29540
29648
  return ret >>> 0;
29541
29649
  }
29542
29650
  /**
@@ -31386,6 +31494,16 @@ class TransactionBuilderConfigBuilder {
31386
31494
  return TransactionBuilderConfigBuilder.__wrap(ret);
31387
31495
  }
31388
31496
  /**
31497
+ *If set to true, the transaction builder will not burn extra change if it's impossible to crate change output
31498
+ *due to the value being too small to cover min ada for change output. Instead, tx builder will throw an error.
31499
+ * @param {boolean} do_not_burn_extra_change
31500
+ * @returns {TransactionBuilderConfigBuilder}
31501
+ */
31502
+ do_not_burn_extra_change(do_not_burn_extra_change) {
31503
+ const ret = wasm.transactionbuilderconfigbuilder_do_not_burn_extra_change(this.__wbg_ptr, do_not_burn_extra_change);
31504
+ return TransactionBuilderConfigBuilder.__wrap(ret);
31505
+ }
31506
+ /**
31389
31507
  * @returns {TransactionBuilderConfig}
31390
31508
  */
31391
31509
  build() {
@@ -31939,7 +32057,7 @@ class TransactionInputs {
31939
32057
  * @returns {number}
31940
32058
  */
31941
32059
  len() {
31942
- const ret = wasm.costmdls_len(this.__wbg_ptr);
32060
+ const ret = wasm.transactioninputs_len(this.__wbg_ptr);
31943
32061
  return ret >>> 0;
31944
32062
  }
31945
32063
  /**
@@ -32147,7 +32265,7 @@ class TransactionMetadatum {
32147
32265
  * @returns {TransactionMetadatumKind}
32148
32266
  */
32149
32267
  kind() {
32150
- const ret = wasm.plutusdata_kind(this.__wbg_ptr);
32268
+ const ret = wasm.transactionmetadatum_kind(this.__wbg_ptr);
32151
32269
  return ret;
32152
32270
  }
32153
32271
  /**
@@ -32362,14 +32480,14 @@ class TransactionMetadatumLabels {
32362
32480
  * @returns {TransactionMetadatumLabels}
32363
32481
  */
32364
32482
  static new() {
32365
- const ret = wasm.metadatalist_new();
32483
+ const ret = wasm.plutusmapvalues_new();
32366
32484
  return TransactionMetadatumLabels.__wrap(ret);
32367
32485
  }
32368
32486
  /**
32369
32487
  * @returns {number}
32370
32488
  */
32371
32489
  len() {
32372
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
32490
+ const ret = wasm.transactionmetadatumlabels_len(this.__wbg_ptr);
32373
32491
  return ret >>> 0;
32374
32492
  }
32375
32493
  /**
@@ -33030,7 +33148,7 @@ class TransactionOutputs {
33030
33148
  * @returns {number}
33031
33149
  */
33032
33150
  len() {
33033
- const ret = wasm.assetnames_len(this.__wbg_ptr);
33151
+ const ret = wasm.transactionoutputs_len(this.__wbg_ptr);
33034
33152
  return ret >>> 0;
33035
33153
  }
33036
33154
  /**
@@ -33815,7 +33933,7 @@ class TransactionWitnessSets {
33815
33933
  * @returns {number}
33816
33934
  */
33817
33935
  len() {
33818
- const ret = wasm.costmdls_len(this.__wbg_ptr);
33936
+ const ret = wasm.transactionwitnesssets_len(this.__wbg_ptr);
33819
33937
  return ret >>> 0;
33820
33938
  }
33821
33939
  /**
@@ -33895,218 +34013,7 @@ class TreasuryWithdrawals {
33895
34013
  to_js_value() {
33896
34014
  try {
33897
34015
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
33898
- wasm.treasurywithdrawals_to_js_value(retptr, this.__wbg_ptr);
33899
- var r0 = getInt32Memory0()[retptr / 4 + 0];
33900
- var r1 = getInt32Memory0()[retptr / 4 + 1];
33901
- var r2 = getInt32Memory0()[retptr / 4 + 2];
33902
- if (r2) {
33903
- throw takeObject(r1);
33904
- }
33905
- return takeObject(r0);
33906
- } finally {
33907
- wasm.__wbindgen_add_to_stack_pointer(16);
33908
- }
33909
- }
33910
- /**
33911
- * @param {string} json
33912
- * @returns {TreasuryWithdrawals}
33913
- */
33914
- static from_json(json) {
33915
- try {
33916
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
33917
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
33918
- const len0 = WASM_VECTOR_LEN;
33919
- wasm.treasurywithdrawals_from_json(retptr, ptr0, len0);
33920
- var r0 = getInt32Memory0()[retptr / 4 + 0];
33921
- var r1 = getInt32Memory0()[retptr / 4 + 1];
33922
- var r2 = getInt32Memory0()[retptr / 4 + 2];
33923
- if (r2) {
33924
- throw takeObject(r1);
33925
- }
33926
- return TreasuryWithdrawals.__wrap(r0);
33927
- } finally {
33928
- wasm.__wbindgen_add_to_stack_pointer(16);
33929
- }
33930
- }
33931
- /**
33932
- * @returns {TreasuryWithdrawals}
33933
- */
33934
- static new() {
33935
- const ret = wasm.treasurywithdrawals_new();
33936
- return TreasuryWithdrawals.__wrap(ret);
33937
- }
33938
- /**
33939
- * @param {RewardAddress} key
33940
- * @returns {BigNum | undefined}
33941
- */
33942
- get(key) {
33943
- _assertClass(key, RewardAddress);
33944
- const ret = wasm.treasurywithdrawals_get(this.__wbg_ptr, key.__wbg_ptr);
33945
- return ret === 0 ? undefined : BigNum.__wrap(ret);
33946
- }
33947
- /**
33948
- * @param {RewardAddress} key
33949
- * @param {BigNum} value
33950
- */
33951
- insert(key, value) {
33952
- _assertClass(key, RewardAddress);
33953
- _assertClass(value, BigNum);
33954
- wasm.treasurywithdrawals_insert(this.__wbg_ptr, key.__wbg_ptr, value.__wbg_ptr);
33955
- }
33956
- /**
33957
- * @returns {RewardAddresses}
33958
- */
33959
- keys() {
33960
- const ret = wasm.treasurywithdrawals_keys(this.__wbg_ptr);
33961
- return RewardAddresses.__wrap(ret);
33962
- }
33963
- /**
33964
- * @returns {number}
33965
- */
33966
- len() {
33967
- const ret = wasm.relays_len(this.__wbg_ptr);
33968
- return ret >>> 0;
33969
- }
33970
- }
33971
- module.exports.TreasuryWithdrawals = TreasuryWithdrawals;
33972
-
33973
- const TreasuryWithdrawalsActionFinalization = (typeof FinalizationRegistry === 'undefined')
33974
- ? { register: () => {}, unregister: () => {} }
33975
- : new FinalizationRegistry(ptr => wasm.__wbg_treasurywithdrawalsaction_free(ptr >>> 0));
33976
- /**
33977
- */
33978
- class TreasuryWithdrawalsAction {
33979
-
33980
- static __wrap(ptr) {
33981
- ptr = ptr >>> 0;
33982
- const obj = Object.create(TreasuryWithdrawalsAction.prototype);
33983
- obj.__wbg_ptr = ptr;
33984
- TreasuryWithdrawalsActionFinalization.register(obj, obj.__wbg_ptr, obj);
33985
- return obj;
33986
- }
33987
-
33988
- __destroy_into_raw() {
33989
- const ptr = this.__wbg_ptr;
33990
- this.__wbg_ptr = 0;
33991
- TreasuryWithdrawalsActionFinalization.unregister(this);
33992
- return ptr;
33993
- }
33994
-
33995
- free() {
33996
- const ptr = this.__destroy_into_raw();
33997
- wasm.__wbg_treasurywithdrawalsaction_free(ptr);
33998
- }
33999
- /**
34000
- * @returns {Uint8Array}
34001
- */
34002
- to_bytes() {
34003
- try {
34004
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34005
- wasm.treasurywithdrawalsaction_to_bytes(retptr, this.__wbg_ptr);
34006
- var r0 = getInt32Memory0()[retptr / 4 + 0];
34007
- var r1 = getInt32Memory0()[retptr / 4 + 1];
34008
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
34009
- wasm.__wbindgen_free(r0, r1 * 1, 1);
34010
- return v1;
34011
- } finally {
34012
- wasm.__wbindgen_add_to_stack_pointer(16);
34013
- }
34014
- }
34015
- /**
34016
- * @param {Uint8Array} bytes
34017
- * @returns {TreasuryWithdrawalsAction}
34018
- */
34019
- static from_bytes(bytes) {
34020
- try {
34021
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34022
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
34023
- const len0 = WASM_VECTOR_LEN;
34024
- wasm.treasurywithdrawalsaction_from_bytes(retptr, ptr0, len0);
34025
- var r0 = getInt32Memory0()[retptr / 4 + 0];
34026
- var r1 = getInt32Memory0()[retptr / 4 + 1];
34027
- var r2 = getInt32Memory0()[retptr / 4 + 2];
34028
- if (r2) {
34029
- throw takeObject(r1);
34030
- }
34031
- return TreasuryWithdrawalsAction.__wrap(r0);
34032
- } finally {
34033
- wasm.__wbindgen_add_to_stack_pointer(16);
34034
- }
34035
- }
34036
- /**
34037
- * @returns {string}
34038
- */
34039
- to_hex() {
34040
- let deferred1_0;
34041
- let deferred1_1;
34042
- try {
34043
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34044
- wasm.treasurywithdrawalsaction_to_hex(retptr, this.__wbg_ptr);
34045
- var r0 = getInt32Memory0()[retptr / 4 + 0];
34046
- var r1 = getInt32Memory0()[retptr / 4 + 1];
34047
- deferred1_0 = r0;
34048
- deferred1_1 = r1;
34049
- return getStringFromWasm0(r0, r1);
34050
- } finally {
34051
- wasm.__wbindgen_add_to_stack_pointer(16);
34052
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
34053
- }
34054
- }
34055
- /**
34056
- * @param {string} hex_str
34057
- * @returns {TreasuryWithdrawalsAction}
34058
- */
34059
- static from_hex(hex_str) {
34060
- try {
34061
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34062
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
34063
- const len0 = WASM_VECTOR_LEN;
34064
- wasm.treasurywithdrawalsaction_from_hex(retptr, ptr0, len0);
34065
- var r0 = getInt32Memory0()[retptr / 4 + 0];
34066
- var r1 = getInt32Memory0()[retptr / 4 + 1];
34067
- var r2 = getInt32Memory0()[retptr / 4 + 2];
34068
- if (r2) {
34069
- throw takeObject(r1);
34070
- }
34071
- return TreasuryWithdrawalsAction.__wrap(r0);
34072
- } finally {
34073
- wasm.__wbindgen_add_to_stack_pointer(16);
34074
- }
34075
- }
34076
- /**
34077
- * @returns {string}
34078
- */
34079
- to_json() {
34080
- let deferred2_0;
34081
- let deferred2_1;
34082
- try {
34083
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34084
- wasm.treasurywithdrawalsaction_to_json(retptr, this.__wbg_ptr);
34085
- var r0 = getInt32Memory0()[retptr / 4 + 0];
34086
- var r1 = getInt32Memory0()[retptr / 4 + 1];
34087
- var r2 = getInt32Memory0()[retptr / 4 + 2];
34088
- var r3 = getInt32Memory0()[retptr / 4 + 3];
34089
- var ptr1 = r0;
34090
- var len1 = r1;
34091
- if (r3) {
34092
- ptr1 = 0; len1 = 0;
34093
- throw takeObject(r2);
34094
- }
34095
- deferred2_0 = ptr1;
34096
- deferred2_1 = len1;
34097
- return getStringFromWasm0(ptr1, len1);
34098
- } finally {
34099
- wasm.__wbindgen_add_to_stack_pointer(16);
34100
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
34101
- }
34102
- }
34103
- /**
34104
- * @returns {any}
34105
- */
34106
- to_js_value() {
34107
- try {
34108
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34109
- wasm.treasurywithdrawalsaction_to_js_value(retptr, this.__wbg_ptr);
34016
+ wasm.treasurywithdrawals_to_js_value(retptr, this.__wbg_ptr);
34110
34017
  var r0 = getInt32Memory0()[retptr / 4 + 0];
34111
34018
  var r1 = getInt32Memory0()[retptr / 4 + 1];
34112
34019
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -34120,21 +34027,21 @@ class TreasuryWithdrawalsAction {
34120
34027
  }
34121
34028
  /**
34122
34029
  * @param {string} json
34123
- * @returns {TreasuryWithdrawalsAction}
34030
+ * @returns {TreasuryWithdrawals}
34124
34031
  */
34125
34032
  static from_json(json) {
34126
34033
  try {
34127
34034
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34128
34035
  const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
34129
34036
  const len0 = WASM_VECTOR_LEN;
34130
- wasm.treasurywithdrawalsaction_from_json(retptr, ptr0, len0);
34037
+ wasm.treasurywithdrawals_from_json(retptr, ptr0, len0);
34131
34038
  var r0 = getInt32Memory0()[retptr / 4 + 0];
34132
34039
  var r1 = getInt32Memory0()[retptr / 4 + 1];
34133
34040
  var r2 = getInt32Memory0()[retptr / 4 + 2];
34134
34041
  if (r2) {
34135
34042
  throw takeObject(r1);
34136
34043
  }
34137
- return TreasuryWithdrawalsAction.__wrap(r0);
34044
+ return TreasuryWithdrawals.__wrap(r0);
34138
34045
  } finally {
34139
34046
  wasm.__wbindgen_add_to_stack_pointer(16);
34140
34047
  }
@@ -34142,88 +34049,250 @@ class TreasuryWithdrawalsAction {
34142
34049
  /**
34143
34050
  * @returns {TreasuryWithdrawals}
34144
34051
  */
34145
- withdrawals() {
34146
- const ret = wasm.treasurywithdrawalsaction_withdrawals(this.__wbg_ptr);
34052
+ static new() {
34053
+ const ret = wasm.treasurywithdrawals_new();
34147
34054
  return TreasuryWithdrawals.__wrap(ret);
34148
34055
  }
34149
34056
  /**
34150
- * @returns {ScriptHash | undefined}
34057
+ * @param {RewardAddress} key
34058
+ * @returns {BigNum | undefined}
34151
34059
  */
34152
- policy_hash() {
34153
- const ret = wasm.treasurywithdrawalsaction_policy_hash(this.__wbg_ptr);
34154
- return ret === 0 ? undefined : ScriptHash.__wrap(ret);
34060
+ get(key) {
34061
+ _assertClass(key, RewardAddress);
34062
+ const ret = wasm.treasurywithdrawals_get(this.__wbg_ptr, key.__wbg_ptr);
34063
+ return ret === 0 ? undefined : BigNum.__wrap(ret);
34155
34064
  }
34156
34065
  /**
34157
- * @param {TreasuryWithdrawals} withdrawals
34158
- * @returns {TreasuryWithdrawalsAction}
34066
+ * @param {RewardAddress} key
34067
+ * @param {BigNum} value
34159
34068
  */
34160
- static new(withdrawals) {
34161
- _assertClass(withdrawals, TreasuryWithdrawals);
34162
- const ret = wasm.treasurywithdrawalsaction_new(withdrawals.__wbg_ptr);
34163
- return TreasuryWithdrawalsAction.__wrap(ret);
34069
+ insert(key, value) {
34070
+ _assertClass(key, RewardAddress);
34071
+ _assertClass(value, BigNum);
34072
+ wasm.treasurywithdrawals_insert(this.__wbg_ptr, key.__wbg_ptr, value.__wbg_ptr);
34164
34073
  }
34165
34074
  /**
34166
- * @param {TreasuryWithdrawals} withdrawals
34167
- * @param {ScriptHash} policy_hash
34168
- * @returns {TreasuryWithdrawalsAction}
34075
+ * @returns {RewardAddresses}
34169
34076
  */
34170
- static new_with_policy_hash(withdrawals, policy_hash) {
34171
- _assertClass(withdrawals, TreasuryWithdrawals);
34172
- _assertClass(policy_hash, ScriptHash);
34173
- const ret = wasm.treasurywithdrawalsaction_new_with_policy_hash(withdrawals.__wbg_ptr, policy_hash.__wbg_ptr);
34174
- return TreasuryWithdrawalsAction.__wrap(ret);
34077
+ keys() {
34078
+ const ret = wasm.treasurywithdrawals_keys(this.__wbg_ptr);
34079
+ return RewardAddresses.__wrap(ret);
34080
+ }
34081
+ /**
34082
+ * @returns {number}
34083
+ */
34084
+ len() {
34085
+ const ret = wasm.treasurywithdrawals_len(this.__wbg_ptr);
34086
+ return ret >>> 0;
34175
34087
  }
34176
34088
  }
34177
- module.exports.TreasuryWithdrawalsAction = TreasuryWithdrawalsAction;
34089
+ module.exports.TreasuryWithdrawals = TreasuryWithdrawals;
34178
34090
 
34179
- const TxBuilderConstantsFinalization = (typeof FinalizationRegistry === 'undefined')
34091
+ const TreasuryWithdrawalsActionFinalization = (typeof FinalizationRegistry === 'undefined')
34180
34092
  ? { register: () => {}, unregister: () => {} }
34181
- : new FinalizationRegistry(ptr => wasm.__wbg_txbuilderconstants_free(ptr >>> 0));
34093
+ : new FinalizationRegistry(ptr => wasm.__wbg_treasurywithdrawalsaction_free(ptr >>> 0));
34182
34094
  /**
34183
34095
  */
34184
- class TxBuilderConstants {
34096
+ class TreasuryWithdrawalsAction {
34097
+
34098
+ static __wrap(ptr) {
34099
+ ptr = ptr >>> 0;
34100
+ const obj = Object.create(TreasuryWithdrawalsAction.prototype);
34101
+ obj.__wbg_ptr = ptr;
34102
+ TreasuryWithdrawalsActionFinalization.register(obj, obj.__wbg_ptr, obj);
34103
+ return obj;
34104
+ }
34185
34105
 
34186
34106
  __destroy_into_raw() {
34187
34107
  const ptr = this.__wbg_ptr;
34188
34108
  this.__wbg_ptr = 0;
34189
- TxBuilderConstantsFinalization.unregister(this);
34109
+ TreasuryWithdrawalsActionFinalization.unregister(this);
34190
34110
  return ptr;
34191
34111
  }
34192
34112
 
34193
34113
  free() {
34194
34114
  const ptr = this.__destroy_into_raw();
34195
- wasm.__wbg_txbuilderconstants_free(ptr);
34115
+ wasm.__wbg_treasurywithdrawalsaction_free(ptr);
34196
34116
  }
34197
34117
  /**
34198
- * @returns {Costmdls}
34118
+ * @returns {Uint8Array}
34199
34119
  */
34200
- static plutus_default_cost_models() {
34201
- const ret = wasm.txbuilderconstants_plutus_default_cost_models();
34202
- return Costmdls.__wrap(ret);
34120
+ to_bytes() {
34121
+ try {
34122
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34123
+ wasm.treasurywithdrawalsaction_to_bytes(retptr, this.__wbg_ptr);
34124
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34125
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34126
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
34127
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
34128
+ return v1;
34129
+ } finally {
34130
+ wasm.__wbindgen_add_to_stack_pointer(16);
34131
+ }
34203
34132
  }
34204
34133
  /**
34205
- * @returns {Costmdls}
34134
+ * @param {Uint8Array} bytes
34135
+ * @returns {TreasuryWithdrawalsAction}
34206
34136
  */
34207
- static plutus_alonzo_cost_models() {
34208
- const ret = wasm.txbuilderconstants_plutus_alonzo_cost_models();
34209
- return Costmdls.__wrap(ret);
34137
+ static from_bytes(bytes) {
34138
+ try {
34139
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34140
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
34141
+ const len0 = WASM_VECTOR_LEN;
34142
+ wasm.treasurywithdrawalsaction_from_bytes(retptr, ptr0, len0);
34143
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34144
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34145
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
34146
+ if (r2) {
34147
+ throw takeObject(r1);
34148
+ }
34149
+ return TreasuryWithdrawalsAction.__wrap(r0);
34150
+ } finally {
34151
+ wasm.__wbindgen_add_to_stack_pointer(16);
34152
+ }
34210
34153
  }
34211
34154
  /**
34212
- * @returns {Costmdls}
34155
+ * @returns {string}
34213
34156
  */
34214
- static plutus_vasil_cost_models() {
34215
- const ret = wasm.txbuilderconstants_plutus_default_cost_models();
34216
- return Costmdls.__wrap(ret);
34157
+ to_hex() {
34158
+ let deferred1_0;
34159
+ let deferred1_1;
34160
+ try {
34161
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34162
+ wasm.treasurywithdrawalsaction_to_hex(retptr, this.__wbg_ptr);
34163
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34164
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34165
+ deferred1_0 = r0;
34166
+ deferred1_1 = r1;
34167
+ return getStringFromWasm0(r0, r1);
34168
+ } finally {
34169
+ wasm.__wbindgen_add_to_stack_pointer(16);
34170
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
34171
+ }
34217
34172
  }
34218
34173
  /**
34219
- * @returns {Costmdls}
34174
+ * @param {string} hex_str
34175
+ * @returns {TreasuryWithdrawalsAction}
34220
34176
  */
34221
- static plutus_conway_cost_models() {
34222
- const ret = wasm.txbuilderconstants_plutus_conway_cost_models();
34223
- return Costmdls.__wrap(ret);
34177
+ static from_hex(hex_str) {
34178
+ try {
34179
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34180
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
34181
+ const len0 = WASM_VECTOR_LEN;
34182
+ wasm.treasurywithdrawalsaction_from_hex(retptr, ptr0, len0);
34183
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34184
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34185
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
34186
+ if (r2) {
34187
+ throw takeObject(r1);
34188
+ }
34189
+ return TreasuryWithdrawalsAction.__wrap(r0);
34190
+ } finally {
34191
+ wasm.__wbindgen_add_to_stack_pointer(16);
34192
+ }
34193
+ }
34194
+ /**
34195
+ * @returns {string}
34196
+ */
34197
+ to_json() {
34198
+ let deferred2_0;
34199
+ let deferred2_1;
34200
+ try {
34201
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34202
+ wasm.treasurywithdrawalsaction_to_json(retptr, this.__wbg_ptr);
34203
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34204
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34205
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
34206
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
34207
+ var ptr1 = r0;
34208
+ var len1 = r1;
34209
+ if (r3) {
34210
+ ptr1 = 0; len1 = 0;
34211
+ throw takeObject(r2);
34212
+ }
34213
+ deferred2_0 = ptr1;
34214
+ deferred2_1 = len1;
34215
+ return getStringFromWasm0(ptr1, len1);
34216
+ } finally {
34217
+ wasm.__wbindgen_add_to_stack_pointer(16);
34218
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
34219
+ }
34220
+ }
34221
+ /**
34222
+ * @returns {any}
34223
+ */
34224
+ to_js_value() {
34225
+ try {
34226
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34227
+ wasm.treasurywithdrawalsaction_to_js_value(retptr, this.__wbg_ptr);
34228
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34229
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34230
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
34231
+ if (r2) {
34232
+ throw takeObject(r1);
34233
+ }
34234
+ return takeObject(r0);
34235
+ } finally {
34236
+ wasm.__wbindgen_add_to_stack_pointer(16);
34237
+ }
34238
+ }
34239
+ /**
34240
+ * @param {string} json
34241
+ * @returns {TreasuryWithdrawalsAction}
34242
+ */
34243
+ static from_json(json) {
34244
+ try {
34245
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34246
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
34247
+ const len0 = WASM_VECTOR_LEN;
34248
+ wasm.treasurywithdrawalsaction_from_json(retptr, ptr0, len0);
34249
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34250
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34251
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
34252
+ if (r2) {
34253
+ throw takeObject(r1);
34254
+ }
34255
+ return TreasuryWithdrawalsAction.__wrap(r0);
34256
+ } finally {
34257
+ wasm.__wbindgen_add_to_stack_pointer(16);
34258
+ }
34259
+ }
34260
+ /**
34261
+ * @returns {TreasuryWithdrawals}
34262
+ */
34263
+ withdrawals() {
34264
+ const ret = wasm.treasurywithdrawalsaction_withdrawals(this.__wbg_ptr);
34265
+ return TreasuryWithdrawals.__wrap(ret);
34266
+ }
34267
+ /**
34268
+ * @returns {ScriptHash | undefined}
34269
+ */
34270
+ policy_hash() {
34271
+ const ret = wasm.treasurywithdrawalsaction_policy_hash(this.__wbg_ptr);
34272
+ return ret === 0 ? undefined : ScriptHash.__wrap(ret);
34273
+ }
34274
+ /**
34275
+ * @param {TreasuryWithdrawals} withdrawals
34276
+ * @returns {TreasuryWithdrawalsAction}
34277
+ */
34278
+ static new(withdrawals) {
34279
+ _assertClass(withdrawals, TreasuryWithdrawals);
34280
+ const ret = wasm.treasurywithdrawalsaction_new(withdrawals.__wbg_ptr);
34281
+ return TreasuryWithdrawalsAction.__wrap(ret);
34282
+ }
34283
+ /**
34284
+ * @param {TreasuryWithdrawals} withdrawals
34285
+ * @param {ScriptHash} policy_hash
34286
+ * @returns {TreasuryWithdrawalsAction}
34287
+ */
34288
+ static new_with_policy_hash(withdrawals, policy_hash) {
34289
+ _assertClass(withdrawals, TreasuryWithdrawals);
34290
+ _assertClass(policy_hash, ScriptHash);
34291
+ const ret = wasm.treasurywithdrawalsaction_new_with_policy_hash(withdrawals.__wbg_ptr, policy_hash.__wbg_ptr);
34292
+ return TreasuryWithdrawalsAction.__wrap(ret);
34224
34293
  }
34225
34294
  }
34226
- module.exports.TxBuilderConstants = TxBuilderConstants;
34295
+ module.exports.TreasuryWithdrawalsAction = TreasuryWithdrawalsAction;
34227
34296
 
34228
34297
  const TxInputsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
34229
34298
  ? { register: () => {}, unregister: () => {} }
@@ -34259,6 +34328,61 @@ class TxInputsBuilder {
34259
34328
  return TxInputsBuilder.__wrap(ret);
34260
34329
  }
34261
34330
  /**
34331
+ * @param {TransactionUnspentOutput} utxo
34332
+ */
34333
+ add_regular_utxo(utxo) {
34334
+ try {
34335
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34336
+ _assertClass(utxo, TransactionUnspentOutput);
34337
+ wasm.txinputsbuilder_add_regular_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr);
34338
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34339
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34340
+ if (r1) {
34341
+ throw takeObject(r0);
34342
+ }
34343
+ } finally {
34344
+ wasm.__wbindgen_add_to_stack_pointer(16);
34345
+ }
34346
+ }
34347
+ /**
34348
+ * @param {TransactionUnspentOutput} utxo
34349
+ * @param {PlutusWitness} witness
34350
+ */
34351
+ add_plutus_script_utxo(utxo, witness) {
34352
+ try {
34353
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34354
+ _assertClass(utxo, TransactionUnspentOutput);
34355
+ _assertClass(witness, PlutusWitness);
34356
+ wasm.txinputsbuilder_add_plutus_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
34357
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34358
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34359
+ if (r1) {
34360
+ throw takeObject(r0);
34361
+ }
34362
+ } finally {
34363
+ wasm.__wbindgen_add_to_stack_pointer(16);
34364
+ }
34365
+ }
34366
+ /**
34367
+ * @param {TransactionUnspentOutput} utxo
34368
+ * @param {NativeScriptSource} witness
34369
+ */
34370
+ add_native_script_utxo(utxo, witness) {
34371
+ try {
34372
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34373
+ _assertClass(utxo, TransactionUnspentOutput);
34374
+ _assertClass(witness, NativeScriptSource);
34375
+ wasm.txinputsbuilder_add_native_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
34376
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34377
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34378
+ if (r1) {
34379
+ throw takeObject(r0);
34380
+ }
34381
+ } finally {
34382
+ wasm.__wbindgen_add_to_stack_pointer(16);
34383
+ }
34384
+ }
34385
+ /**
34262
34386
  * We have to know what kind of inputs these are to know what kind of mock witnesses to create since
34263
34387
  * 1) mock witnesses have different lengths depending on the type which changes the expecting fee
34264
34388
  * 2) Witnesses are a set so we need to get rid of duplicates to avoid over-estimating the fee
@@ -34801,7 +34925,7 @@ class UnitInterval {
34801
34925
  * @returns {BigNum}
34802
34926
  */
34803
34927
  denominator() {
34804
- const ret = wasm.exunits_steps(this.__wbg_ptr);
34928
+ const ret = wasm.unitinterval_denominator(this.__wbg_ptr);
34805
34929
  return BigNum.__wrap(ret);
34806
34930
  }
34807
34931
  /**
@@ -34812,7 +34936,7 @@ class UnitInterval {
34812
34936
  static new(numerator, denominator) {
34813
34937
  _assertClass(numerator, BigNum);
34814
34938
  _assertClass(denominator, BigNum);
34815
- const ret = wasm.exunits_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
34939
+ const ret = wasm.unitinterval_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
34816
34940
  return UnitInterval.__wrap(ret);
34817
34941
  }
34818
34942
  }
@@ -36490,14 +36614,14 @@ class Vkeys {
36490
36614
  * @returns {Vkeys}
36491
36615
  */
36492
36616
  static new() {
36493
- const ret = wasm.vkeys_new();
36617
+ const ret = wasm.languages_new();
36494
36618
  return Vkeys.__wrap(ret);
36495
36619
  }
36496
36620
  /**
36497
36621
  * @returns {number}
36498
36622
  */
36499
36623
  len() {
36500
- const ret = wasm.relays_len(this.__wbg_ptr);
36624
+ const ret = wasm.vkeys_len(this.__wbg_ptr);
36501
36625
  return ret >>> 0;
36502
36626
  }
36503
36627
  /**
@@ -37311,7 +37435,7 @@ class VoteRegistrationAndDelegation {
37311
37435
  * @returns {BigNum}
37312
37436
  */
37313
37437
  coin() {
37314
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37438
+ const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
37315
37439
  return BigNum.__wrap(ret);
37316
37440
  }
37317
37441
  /**
@@ -37696,7 +37820,7 @@ class Voters {
37696
37820
  * @returns {number}
37697
37821
  */
37698
37822
  len() {
37699
- const ret = wasm.costmdls_len(this.__wbg_ptr);
37823
+ const ret = wasm.voters_len(this.__wbg_ptr);
37700
37824
  return ret >>> 0;
37701
37825
  }
37702
37826
  }
@@ -38217,7 +38341,7 @@ class VotingProcedures {
38217
38341
  * @returns {VotingProcedures}
38218
38342
  */
38219
38343
  static new() {
38220
- const ret = wasm.votingprocedures_new();
38344
+ const ret = wasm.votingbuilder_new();
38221
38345
  return VotingProcedures.__wrap(ret);
38222
38346
  }
38223
38347
  /**
@@ -38506,7 +38630,7 @@ class VotingProposalBuilder {
38506
38630
  * @returns {VotingProposalBuilder}
38507
38631
  */
38508
38632
  static new() {
38509
- const ret = wasm.costmdls_new();
38633
+ const ret = wasm.votingbuilder_new();
38510
38634
  return VotingProposalBuilder.__wrap(ret);
38511
38635
  }
38512
38636
  /**
@@ -38749,14 +38873,14 @@ class VotingProposals {
38749
38873
  * @returns {VotingProposals}
38750
38874
  */
38751
38875
  static new() {
38752
- const ret = wasm.certificates_new();
38876
+ const ret = wasm.credentials_new();
38753
38877
  return VotingProposals.__wrap(ret);
38754
38878
  }
38755
38879
  /**
38756
38880
  * @returns {number}
38757
38881
  */
38758
38882
  len() {
38759
- const ret = wasm.certificates_len(this.__wbg_ptr);
38883
+ const ret = wasm.credentials_len(this.__wbg_ptr);
38760
38884
  return ret >>> 0;
38761
38885
  }
38762
38886
  /**
@@ -39040,7 +39164,7 @@ class WithdrawalsBuilder {
39040
39164
  * @returns {WithdrawalsBuilder}
39041
39165
  */
39042
39166
  static new() {
39043
- const ret = wasm.withdrawalsbuilder_new();
39167
+ const ret = wasm.mintbuilder_new();
39044
39168
  return WithdrawalsBuilder.__wrap(ret);
39045
39169
  }
39046
39170
  /**
@@ -39169,11 +39293,6 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
39169
39293
  return addHeapObject(ret);
39170
39294
  };
39171
39295
 
39172
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
39173
- const ret = new Error(getStringFromWasm0(arg0, arg1));
39174
- return addHeapObject(ret);
39175
- };
39176
-
39177
39296
  module.exports.__wbindgen_is_undefined = function(arg0) {
39178
39297
  const ret = getObject(arg0) === undefined;
39179
39298
  return ret;
@@ -39219,6 +39338,11 @@ module.exports.__wbindgen_is_object = function(arg0) {
39219
39338
  return ret;
39220
39339
  };
39221
39340
 
39341
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
39342
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
39343
+ return addHeapObject(ret);
39344
+ };
39345
+
39222
39346
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
39223
39347
  const ret = getObject(arg0);
39224
39348
  return addHeapObject(ret);
@@ -39303,14 +39427,14 @@ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
39303
39427
  return addHeapObject(ret);
39304
39428
  };
39305
39429
 
39306
- module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
39307
- getObject(arg0).getRandomValues(getObject(arg1));
39308
- }, arguments) };
39309
-
39310
39430
  module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
39311
39431
  getObject(arg0).randomFillSync(takeObject(arg1));
39312
39432
  }, arguments) };
39313
39433
 
39434
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
39435
+ getObject(arg0).getRandomValues(getObject(arg1));
39436
+ }, arguments) };
39437
+
39314
39438
  module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
39315
39439
  const ret = getObject(arg0)[arg1 >>> 0];
39316
39440
  return addHeapObject(ret);