@cardananium/cquisitor-lib 0.1.0-beta.4 → 0.1.0-beta.6

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.
@@ -355,28 +355,6 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
355
355
  }
356
356
  };
357
357
 
358
- /**
359
- * @param {string} cbor_hex
360
- * @returns {any}
361
- */
362
- module.exports.cbor_to_json = function(cbor_hex) {
363
- try {
364
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
365
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
366
- const len0 = WASM_VECTOR_LEN;
367
- wasm.cbor_to_json(retptr, ptr0, len0);
368
- var r0 = getInt32Memory0()[retptr / 4 + 0];
369
- var r1 = getInt32Memory0()[retptr / 4 + 1];
370
- var r2 = getInt32Memory0()[retptr / 4 + 2];
371
- if (r2) {
372
- throw takeObject(r1);
373
- }
374
- return takeObject(r0);
375
- } finally {
376
- wasm.__wbindgen_add_to_stack_pointer(16);
377
- }
378
- };
379
-
380
358
  /**
381
359
  * @param {string} hex
382
360
  * @returns {any}
@@ -430,126 +408,51 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
430
408
  }
431
409
  };
432
410
 
433
- function getArrayU8FromWasm0(ptr, len) {
434
- ptr = ptr >>> 0;
435
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
436
- }
437
-
438
- function passArray8ToWasm0(arg, malloc) {
439
- const ptr = malloc(arg.length * 1, 1) >>> 0;
440
- getUint8Memory0().set(arg, ptr / 1);
441
- WASM_VECTOR_LEN = arg.length;
442
- return ptr;
443
- }
444
-
445
- function _assertClass(instance, klass) {
446
- if (!(instance instanceof klass)) {
447
- throw new Error(`expected instance of ${klass.name}`);
448
- }
449
- return instance.ptr;
450
- }
451
411
  /**
452
- * @param {Transaction} tx
453
- * @param {LinearFee} linear_fee
454
- * @returns {BigNum}
412
+ * @param {string} cbor_hex
413
+ * @returns {any}
455
414
  */
456
- module.exports.min_fee = function(tx, linear_fee) {
415
+ module.exports.cbor_to_json = function(cbor_hex) {
457
416
  try {
458
417
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
459
- _assertClass(tx, Transaction);
460
- _assertClass(linear_fee, LinearFee);
461
- wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
418
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
419
+ const len0 = WASM_VECTOR_LEN;
420
+ wasm.cbor_to_json(retptr, ptr0, len0);
462
421
  var r0 = getInt32Memory0()[retptr / 4 + 0];
463
422
  var r1 = getInt32Memory0()[retptr / 4 + 1];
464
423
  var r2 = getInt32Memory0()[retptr / 4 + 2];
465
424
  if (r2) {
466
425
  throw takeObject(r1);
467
426
  }
468
- return BigNum.__wrap(r0);
427
+ return takeObject(r0);
469
428
  } finally {
470
429
  wasm.__wbindgen_add_to_stack_pointer(16);
471
430
  }
472
431
  };
473
432
 
474
- /**
475
- * @param {ExUnits} ex_units
476
- * @param {ExUnitPrices} ex_unit_prices
477
- * @returns {BigNum}
478
- */
479
- module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
480
- try {
481
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
482
- _assertClass(ex_units, ExUnits);
483
- _assertClass(ex_unit_prices, ExUnitPrices);
484
- wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
485
- var r0 = getInt32Memory0()[retptr / 4 + 0];
486
- var r1 = getInt32Memory0()[retptr / 4 + 1];
487
- var r2 = getInt32Memory0()[retptr / 4 + 2];
488
- if (r2) {
489
- throw takeObject(r1);
490
- }
491
- return BigNum.__wrap(r0);
492
- } finally {
493
- wasm.__wbindgen_add_to_stack_pointer(16);
494
- }
495
- };
433
+ function getArrayU8FromWasm0(ptr, len) {
434
+ ptr = ptr >>> 0;
435
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
436
+ }
496
437
 
497
- /**
498
- * @param {Transaction} tx
499
- * @param {ExUnitPrices} ex_unit_prices
500
- * @returns {BigNum}
501
- */
502
- module.exports.min_script_fee = function(tx, ex_unit_prices) {
503
- try {
504
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
505
- _assertClass(tx, Transaction);
506
- _assertClass(ex_unit_prices, ExUnitPrices);
507
- wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
508
- var r0 = getInt32Memory0()[retptr / 4 + 0];
509
- var r1 = getInt32Memory0()[retptr / 4 + 1];
510
- var r2 = getInt32Memory0()[retptr / 4 + 2];
511
- if (r2) {
512
- throw takeObject(r1);
513
- }
514
- return BigNum.__wrap(r0);
515
- } finally {
516
- wasm.__wbindgen_add_to_stack_pointer(16);
517
- }
518
- };
438
+ function passArray8ToWasm0(arg, malloc) {
439
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
440
+ getUint8Memory0().set(arg, ptr / 1);
441
+ WASM_VECTOR_LEN = arg.length;
442
+ return ptr;
443
+ }
519
444
 
520
- /**
521
- * @param {number} total_ref_scripts_size
522
- * @param {UnitInterval} ref_script_coins_per_byte
523
- * @returns {BigNum}
524
- */
525
- module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
526
- try {
527
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
528
- _assertClass(ref_script_coins_per_byte, UnitInterval);
529
- wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
530
- var r0 = getInt32Memory0()[retptr / 4 + 0];
531
- var r1 = getInt32Memory0()[retptr / 4 + 1];
532
- var r2 = getInt32Memory0()[retptr / 4 + 2];
533
- if (r2) {
534
- throw takeObject(r1);
535
- }
536
- return BigNum.__wrap(r0);
537
- } finally {
538
- wasm.__wbindgen_add_to_stack_pointer(16);
445
+ function _assertClass(instance, klass) {
446
+ if (!(instance instanceof klass)) {
447
+ throw new Error(`expected instance of ${klass.name}`);
539
448
  }
540
- };
449
+ return instance.ptr;
450
+ }
541
451
 
542
452
  function getArrayU32FromWasm0(ptr, len) {
543
453
  ptr = ptr >>> 0;
544
454
  return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
545
455
  }
546
-
547
- function passArray32ToWasm0(arg, malloc) {
548
- const ptr = malloc(arg.length * 4, 4) >>> 0;
549
- getUint32Memory0().set(arg, ptr / 4);
550
- WASM_VECTOR_LEN = arg.length;
551
- return ptr;
552
- }
553
456
  /**
554
457
  * @param {TransactionHash} tx_body_hash
555
458
  * @param {ByronAddress} addr
@@ -765,31 +668,6 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
765
668
  }
766
669
  };
767
670
 
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
671
  /**
794
672
  * @param {string} password
795
673
  * @param {string} salt
@@ -864,6 +742,122 @@ module.exports.decrypt_with_password = function(password, data) {
864
742
  }
865
743
  };
866
744
 
745
+ /**
746
+ * @param {Address} address
747
+ * @param {TransactionUnspentOutputs} utxos
748
+ * @param {TransactionBuilderConfig} config
749
+ * @returns {TransactionBatchList}
750
+ */
751
+ module.exports.create_send_all = function(address, utxos, config) {
752
+ try {
753
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
754
+ _assertClass(address, Address);
755
+ _assertClass(utxos, TransactionUnspentOutputs);
756
+ _assertClass(config, TransactionBuilderConfig);
757
+ wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
758
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
759
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
760
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
761
+ if (r2) {
762
+ throw takeObject(r1);
763
+ }
764
+ return TransactionBatchList.__wrap(r0);
765
+ } finally {
766
+ wasm.__wbindgen_add_to_stack_pointer(16);
767
+ }
768
+ };
769
+
770
+ /**
771
+ * @param {Transaction} tx
772
+ * @param {LinearFee} linear_fee
773
+ * @returns {BigNum}
774
+ */
775
+ module.exports.min_fee = function(tx, linear_fee) {
776
+ try {
777
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
778
+ _assertClass(tx, Transaction);
779
+ _assertClass(linear_fee, LinearFee);
780
+ wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__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 BigNum.__wrap(r0);
788
+ } finally {
789
+ wasm.__wbindgen_add_to_stack_pointer(16);
790
+ }
791
+ };
792
+
793
+ /**
794
+ * @param {ExUnits} ex_units
795
+ * @param {ExUnitPrices} ex_unit_prices
796
+ * @returns {BigNum}
797
+ */
798
+ module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
799
+ try {
800
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
801
+ _assertClass(ex_units, ExUnits);
802
+ _assertClass(ex_unit_prices, ExUnitPrices);
803
+ wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
804
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
805
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
806
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
807
+ if (r2) {
808
+ throw takeObject(r1);
809
+ }
810
+ return BigNum.__wrap(r0);
811
+ } finally {
812
+ wasm.__wbindgen_add_to_stack_pointer(16);
813
+ }
814
+ };
815
+
816
+ /**
817
+ * @param {Transaction} tx
818
+ * @param {ExUnitPrices} ex_unit_prices
819
+ * @returns {BigNum}
820
+ */
821
+ module.exports.min_script_fee = function(tx, ex_unit_prices) {
822
+ try {
823
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
824
+ _assertClass(tx, Transaction);
825
+ _assertClass(ex_unit_prices, ExUnitPrices);
826
+ wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
827
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
828
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
829
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
830
+ if (r2) {
831
+ throw takeObject(r1);
832
+ }
833
+ return BigNum.__wrap(r0);
834
+ } finally {
835
+ wasm.__wbindgen_add_to_stack_pointer(16);
836
+ }
837
+ };
838
+
839
+ /**
840
+ * @param {number} total_ref_scripts_size
841
+ * @param {UnitInterval} ref_script_coins_per_byte
842
+ * @returns {BigNum}
843
+ */
844
+ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
845
+ try {
846
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
847
+ _assertClass(ref_script_coins_per_byte, UnitInterval);
848
+ wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
849
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
850
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
851
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
852
+ if (r2) {
853
+ throw takeObject(r1);
854
+ }
855
+ return BigNum.__wrap(r0);
856
+ } finally {
857
+ wasm.__wbindgen_add_to_stack_pointer(16);
858
+ }
859
+ };
860
+
867
861
  /**
868
862
  * @param {string} json
869
863
  * @param {PlutusDatumSchema} schema
@@ -1007,6 +1001,13 @@ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
1007
1001
  }
1008
1002
  };
1009
1003
 
1004
+ function passArray32ToWasm0(arg, malloc) {
1005
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
1006
+ getUint32Memory0().set(arg, ptr / 4);
1007
+ WASM_VECTOR_LEN = arg.length;
1008
+ return ptr;
1009
+ }
1010
+
1010
1011
  function handleError(f, args) {
1011
1012
  try {
1012
1013
  return f.apply(this, args);
@@ -1016,22 +1017,29 @@ function handleError(f, args) {
1016
1017
  }
1017
1018
  /**
1018
1019
  */
1019
- 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", });
1020
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1020
1021
  /**
1021
1022
  */
1022
- 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", });
1023
+ 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", });
1023
1024
  /**
1025
+ * Used to choosed the schema for a script JSON string
1024
1026
  */
1025
- 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", });
1027
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1026
1028
  /**
1027
1029
  */
1028
- 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", });
1030
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1029
1031
  /**
1030
1032
  */
1031
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1033
+ 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", });
1032
1034
  /**
1033
1035
  */
1034
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1036
+ 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", });
1037
+ /**
1038
+ */
1039
+ 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", });
1040
+ /**
1041
+ */
1042
+ 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", });
1035
1043
  /**
1036
1044
  * JSON <-> PlutusData conversion schemas.
1037
1045
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1088,22 +1096,29 @@ DetailedSchema:1,"1":"DetailedSchema", });
1088
1096
  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", });
1089
1097
  /**
1090
1098
  */
1091
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1099
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1092
1100
  /**
1093
1101
  */
1094
- 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", });
1102
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1095
1103
  /**
1104
+ * Each new language uses a different namespace for hashing its script
1105
+ * This is because you could have a language where the same bytes have different semantics
1106
+ * So this avoids scripts in different languages mapping to the same hash
1107
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1096
1108
  */
1097
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1109
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1098
1110
  /**
1099
1111
  */
1100
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1112
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1101
1113
  /**
1102
1114
  */
1103
1115
  module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1104
1116
  /**
1105
1117
  */
1106
- 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", });
1118
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1119
+ /**
1120
+ */
1121
+ 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", });
1107
1122
  /**
1108
1123
  */
1109
1124
  module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
@@ -1124,13 +1139,6 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1124
1139
  */
1125
1140
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1126
1141
  /**
1127
- * Each new language uses a different namespace for hashing its script
1128
- * This is because you could have a language where the same bytes have different semantics
1129
- * So this avoids scripts in different languages mapping to the same hash
1130
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1131
- */
1132
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1133
- /**
1134
1142
  */
1135
1143
  module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1136
1144
  /**
@@ -1138,26 +1146,22 @@ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:
1138
1146
  module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1139
1147
  /**
1140
1148
  */
1141
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1149
+ 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", });
1142
1150
  /**
1143
1151
  */
1144
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1152
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1145
1153
  /**
1146
1154
  */
1147
- 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", });
1155
+ 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", });
1148
1156
  /**
1149
1157
  */
1150
1158
  module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1151
1159
  /**
1152
- * Used to choosed the schema for a script JSON string
1153
- */
1154
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1155
- /**
1156
1160
  */
1157
- 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", });
1161
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1158
1162
  /**
1159
1163
  */
1160
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1164
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1161
1165
 
1162
1166
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1163
1167
  ? { register: () => {}, unregister: () => {} }
@@ -5019,6 +5023,13 @@ class ByronAddress {
5019
5023
  return ret >>> 0;
5020
5024
  }
5021
5025
  /**
5026
+ * @returns {ByronAddressType}
5027
+ */
5028
+ byron_address_kind() {
5029
+ const ret = wasm.byronaddress_byron_address_kind(this.__wbg_ptr);
5030
+ return ret;
5031
+ }
5032
+ /**
5022
5033
  * @returns {Uint8Array}
5023
5034
  */
5024
5035
  attributes() {
@@ -8523,7 +8534,7 @@ class DRep {
8523
8534
  */
8524
8535
  static new_key_hash(key_hash) {
8525
8536
  _assertClass(key_hash, Ed25519KeyHash);
8526
- const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
8537
+ const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8527
8538
  return DRep.__wrap(ret);
8528
8539
  }
8529
8540
  /**
@@ -8532,7 +8543,7 @@ class DRep {
8532
8543
  */
8533
8544
  static new_script_hash(script_hash) {
8534
8545
  _assertClass(script_hash, ScriptHash);
8535
- const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
8546
+ const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8536
8547
  return DRep.__wrap(ret);
8537
8548
  }
8538
8549
  /**
@@ -8580,14 +8591,15 @@ class DRep {
8580
8591
  return ret === 0 ? undefined : ScriptHash.__wrap(ret);
8581
8592
  }
8582
8593
  /**
8594
+ * @param {boolean} cip_129_format
8583
8595
  * @returns {string}
8584
8596
  */
8585
- to_bech32() {
8597
+ to_bech32(cip_129_format) {
8586
8598
  let deferred2_0;
8587
8599
  let deferred2_1;
8588
8600
  try {
8589
8601
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
8590
- wasm.drep_to_bech32(retptr, this.__wbg_ptr);
8602
+ wasm.drep_to_bech32(retptr, this.__wbg_ptr, cip_129_format);
8591
8603
  var r0 = getInt32Memory0()[retptr / 4 + 0];
8592
8604
  var r1 = getInt32Memory0()[retptr / 4 + 1];
8593
8605
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -9014,7 +9026,7 @@ class DRepRegistration {
9014
9026
  * @returns {BigNum}
9015
9027
  */
9016
9028
  coin() {
9017
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
9029
+ const ret = wasm.drepregistration_coin(this.__wbg_ptr);
9018
9030
  return BigNum.__wrap(ret);
9019
9031
  }
9020
9032
  /**
@@ -9231,14 +9243,14 @@ class DRepUpdate {
9231
9243
  * @returns {Credential}
9232
9244
  */
9233
9245
  voting_credential() {
9234
- const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
9246
+ const ret = wasm.drepupdate_voting_credential(this.__wbg_ptr);
9235
9247
  return Credential.__wrap(ret);
9236
9248
  }
9237
9249
  /**
9238
9250
  * @returns {Anchor | undefined}
9239
9251
  */
9240
9252
  anchor() {
9241
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
9253
+ const ret = wasm.drepupdate_anchor(this.__wbg_ptr);
9242
9254
  return ret === 0 ? undefined : Anchor.__wrap(ret);
9243
9255
  }
9244
9256
  /**
@@ -9247,7 +9259,7 @@ class DRepUpdate {
9247
9259
  */
9248
9260
  static new(voting_credential) {
9249
9261
  _assertClass(voting_credential, Credential);
9250
- const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
9262
+ const ret = wasm.drepupdate_new(voting_credential.__wbg_ptr);
9251
9263
  return DRepUpdate.__wrap(ret);
9252
9264
  }
9253
9265
  /**
@@ -9258,14 +9270,14 @@ class DRepUpdate {
9258
9270
  static new_with_anchor(voting_credential, anchor) {
9259
9271
  _assertClass(voting_credential, Credential);
9260
9272
  _assertClass(anchor, Anchor);
9261
- const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9273
+ const ret = wasm.drepupdate_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9262
9274
  return DRepUpdate.__wrap(ret);
9263
9275
  }
9264
9276
  /**
9265
9277
  * @returns {boolean}
9266
9278
  */
9267
9279
  has_script_credentials() {
9268
- const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
9280
+ const ret = wasm.drepupdate_has_script_credentials(this.__wbg_ptr);
9269
9281
  return ret !== 0;
9270
9282
  }
9271
9283
  }
@@ -9541,7 +9553,7 @@ class DRepVotingThresholds {
9541
9553
  * @returns {UnitInterval}
9542
9554
  */
9543
9555
  motion_no_confidence() {
9544
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
9556
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
9545
9557
  return UnitInterval.__wrap(ret);
9546
9558
  }
9547
9559
  /**
@@ -9642,7 +9654,7 @@ class DataCost {
9642
9654
  */
9643
9655
  static new_coins_per_byte(coins_per_byte) {
9644
9656
  _assertClass(coins_per_byte, BigNum);
9645
- const ret = wasm.datacost_new_coins_per_byte(coins_per_byte.__wbg_ptr);
9657
+ const ret = wasm.datacost_coins_per_byte(coins_per_byte.__wbg_ptr);
9646
9658
  return DataCost.__wrap(ret);
9647
9659
  }
9648
9660
  /**
@@ -10625,14 +10637,14 @@ class ExUnitPrices {
10625
10637
  * @returns {UnitInterval}
10626
10638
  */
10627
10639
  mem_price() {
10628
- const ret = wasm.exunitprices_mem_price(this.__wbg_ptr);
10640
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
10629
10641
  return UnitInterval.__wrap(ret);
10630
10642
  }
10631
10643
  /**
10632
10644
  * @returns {UnitInterval}
10633
10645
  */
10634
10646
  step_price() {
10635
- const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
10647
+ const ret = wasm.drepvotingthresholds_committee_normal(this.__wbg_ptr);
10636
10648
  return UnitInterval.__wrap(ret);
10637
10649
  }
10638
10650
  /**
@@ -10822,7 +10834,7 @@ class ExUnits {
10822
10834
  * @returns {BigNum}
10823
10835
  */
10824
10836
  mem() {
10825
- const ret = wasm.datacost_coins_per_byte(this.__wbg_ptr);
10837
+ const ret = wasm.exunits_mem(this.__wbg_ptr);
10826
10838
  return BigNum.__wrap(ret);
10827
10839
  }
10828
10840
  /**
@@ -15850,7 +15862,7 @@ class MetadataList {
15850
15862
  * @returns {number}
15851
15863
  */
15852
15864
  len() {
15853
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
15865
+ const ret = wasm.languages_len(this.__wbg_ptr);
15854
15866
  return ret >>> 0;
15855
15867
  }
15856
15868
  /**
@@ -16484,7 +16496,7 @@ class MintBuilder {
16484
16496
  * @returns {MintBuilder}
16485
16497
  */
16486
16498
  static new() {
16487
- const ret = wasm.costmdls_new();
16499
+ const ret = wasm.mintbuilder_new();
16488
16500
  return MintBuilder.__wrap(ret);
16489
16501
  }
16490
16502
  /**
@@ -18028,7 +18040,7 @@ class NativeScripts {
18028
18040
  * @returns {number}
18029
18041
  */
18030
18042
  len() {
18031
- const ret = wasm.costmdls_len(this.__wbg_ptr);
18043
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
18032
18044
  return ret >>> 0;
18033
18045
  }
18034
18046
  /**
@@ -18631,7 +18643,7 @@ class NewConstitutionAction {
18631
18643
  * @returns {GovernanceActionId | undefined}
18632
18644
  */
18633
18645
  gov_action_id() {
18634
- const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
18646
+ const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18635
18647
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18636
18648
  }
18637
18649
  /**
@@ -18844,7 +18856,7 @@ class NoConfidenceAction {
18844
18856
  * @returns {GovernanceActionId | undefined}
18845
18857
  */
18846
18858
  gov_action_id() {
18847
- const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
18859
+ const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18848
18860
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18849
18861
  }
18850
18862
  /**
@@ -20027,7 +20039,7 @@ class PlutusList {
20027
20039
  * @returns {number}
20028
20040
  */
20029
20041
  len() {
20030
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
20042
+ const ret = wasm.languages_len(this.__wbg_ptr);
20031
20043
  return ret >>> 0;
20032
20044
  }
20033
20045
  /**
@@ -20235,7 +20247,7 @@ class PlutusMapValues {
20235
20247
  * @returns {number}
20236
20248
  */
20237
20249
  len() {
20238
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
20250
+ const ret = wasm.languages_len(this.__wbg_ptr);
20239
20251
  return ret >>> 0;
20240
20252
  }
20241
20253
  /**
@@ -20803,7 +20815,7 @@ class PlutusScripts {
20803
20815
  * @returns {number}
20804
20816
  */
20805
20817
  len() {
20806
- const ret = wasm.certificates_len(this.__wbg_ptr);
20818
+ const ret = wasm.credentials_len(this.__wbg_ptr);
20807
20819
  return ret >>> 0;
20808
20820
  }
20809
20821
  /**
@@ -20952,14 +20964,14 @@ class PlutusWitnesses {
20952
20964
  * @returns {PlutusWitnesses}
20953
20965
  */
20954
20966
  static new() {
20955
- const ret = wasm.plutuswitnesses_new();
20967
+ const ret = wasm.costmodel_new();
20956
20968
  return PlutusWitnesses.__wrap(ret);
20957
20969
  }
20958
20970
  /**
20959
20971
  * @returns {number}
20960
20972
  */
20961
20973
  len() {
20962
- const ret = wasm.plutuswitnesses_len(this.__wbg_ptr);
20974
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
20963
20975
  return ret >>> 0;
20964
20976
  }
20965
20977
  /**
@@ -21104,7 +21116,7 @@ class Pointer {
21104
21116
  * @returns {BigNum}
21105
21117
  */
21106
21118
  cert_index_bignum() {
21107
- const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
21119
+ const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
21108
21120
  return BigNum.__wrap(ret);
21109
21121
  }
21110
21122
  }
@@ -22380,7 +22392,7 @@ class PoolVotingThresholds {
22380
22392
  * @returns {UnitInterval}
22381
22393
  */
22382
22394
  motion_no_confidence() {
22383
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
22395
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
22384
22396
  return UnitInterval.__wrap(ret);
22385
22397
  }
22386
22398
  /**
@@ -23947,7 +23959,7 @@ class PublicKeys {
23947
23959
  /**
23948
23960
  */
23949
23961
  constructor() {
23950
- const ret = wasm.genesishashes_new();
23962
+ const ret = wasm.publickeys_new();
23951
23963
  this.__wbg_ptr = ret >>> 0;
23952
23964
  return this;
23953
23965
  }
@@ -23955,7 +23967,7 @@ class PublicKeys {
23955
23967
  * @returns {number}
23956
23968
  */
23957
23969
  size() {
23958
- const ret = wasm.assetnames_len(this.__wbg_ptr);
23970
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
23959
23971
  return ret >>> 0;
23960
23972
  }
23961
23973
  /**
@@ -27644,7 +27656,7 @@ class StakeDelegation {
27644
27656
  * @returns {Credential}
27645
27657
  */
27646
27658
  stake_credential() {
27647
- const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
27659
+ const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
27648
27660
  return Credential.__wrap(ret);
27649
27661
  }
27650
27662
  /**
@@ -27669,7 +27681,7 @@ class StakeDelegation {
27669
27681
  * @returns {boolean}
27670
27682
  */
27671
27683
  has_script_credentials() {
27672
- const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
27684
+ const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
27673
27685
  return ret !== 0;
27674
27686
  }
27675
27687
  }
@@ -28288,7 +28300,7 @@ class StakeRegistrationAndDelegation {
28288
28300
  * @returns {BigNum}
28289
28301
  */
28290
28302
  coin() {
28291
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28303
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28292
28304
  return BigNum.__wrap(ret);
28293
28305
  }
28294
28306
  /**
@@ -28508,7 +28520,7 @@ class StakeVoteRegistrationAndDelegation {
28508
28520
  * @returns {BigNum}
28509
28521
  */
28510
28522
  coin() {
28511
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28523
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28512
28524
  return BigNum.__wrap(ret);
28513
28525
  }
28514
28526
  /**
@@ -28573,7 +28585,7 @@ class Strings {
28573
28585
  * @returns {number}
28574
28586
  */
28575
28587
  len() {
28576
- const ret = wasm.costmodel_len(this.__wbg_ptr);
28588
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
28577
28589
  return ret >>> 0;
28578
28590
  }
28579
28591
  /**
@@ -29298,7 +29310,7 @@ class TransactionBatch {
29298
29310
  * @returns {number}
29299
29311
  */
29300
29312
  len() {
29301
- const ret = wasm.costmdls_len(this.__wbg_ptr);
29313
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
29302
29314
  return ret >>> 0;
29303
29315
  }
29304
29316
  /**
@@ -29342,7 +29354,7 @@ class TransactionBatchList {
29342
29354
  * @returns {number}
29343
29355
  */
29344
29356
  len() {
29345
- const ret = wasm.costmdls_len(this.__wbg_ptr);
29357
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
29346
29358
  return ret >>> 0;
29347
29359
  }
29348
29360
  /**
@@ -31386,6 +31398,16 @@ class TransactionBuilderConfigBuilder {
31386
31398
  return TransactionBuilderConfigBuilder.__wrap(ret);
31387
31399
  }
31388
31400
  /**
31401
+ *If set to true, the transaction builder will not burn extra change if it's impossible to crate change output
31402
+ *due to the value being too small to cover min ada for change output. Instead, tx builder will throw an error.
31403
+ * @param {boolean} do_not_burn_extra_change
31404
+ * @returns {TransactionBuilderConfigBuilder}
31405
+ */
31406
+ do_not_burn_extra_change(do_not_burn_extra_change) {
31407
+ const ret = wasm.transactionbuilderconfigbuilder_do_not_burn_extra_change(this.__wbg_ptr, do_not_burn_extra_change);
31408
+ return TransactionBuilderConfigBuilder.__wrap(ret);
31409
+ }
31410
+ /**
31389
31411
  * @returns {TransactionBuilderConfig}
31390
31412
  */
31391
31413
  build() {
@@ -31939,7 +31961,7 @@ class TransactionInputs {
31939
31961
  * @returns {number}
31940
31962
  */
31941
31963
  len() {
31942
- const ret = wasm.costmdls_len(this.__wbg_ptr);
31964
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
31943
31965
  return ret >>> 0;
31944
31966
  }
31945
31967
  /**
@@ -32369,7 +32391,7 @@ class TransactionMetadatumLabels {
32369
32391
  * @returns {number}
32370
32392
  */
32371
32393
  len() {
32372
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
32394
+ const ret = wasm.languages_len(this.__wbg_ptr);
32373
32395
  return ret >>> 0;
32374
32396
  }
32375
32397
  /**
@@ -33566,7 +33588,7 @@ class TransactionWitnessSet {
33566
33588
  * @returns {NativeScripts | undefined}
33567
33589
  */
33568
33590
  native_scripts() {
33569
- const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
33591
+ const ret = wasm.auxiliarydata_native_scripts(this.__wbg_ptr);
33570
33592
  return ret === 0 ? undefined : NativeScripts.__wrap(ret);
33571
33593
  }
33572
33594
  /**
@@ -33815,7 +33837,7 @@ class TransactionWitnessSets {
33815
33837
  * @returns {number}
33816
33838
  */
33817
33839
  len() {
33818
- const ret = wasm.costmdls_len(this.__wbg_ptr);
33840
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
33819
33841
  return ret >>> 0;
33820
33842
  }
33821
33843
  /**
@@ -33964,7 +33986,7 @@ class TreasuryWithdrawals {
33964
33986
  * @returns {number}
33965
33987
  */
33966
33988
  len() {
33967
- const ret = wasm.relays_len(this.__wbg_ptr);
33989
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
33968
33990
  return ret >>> 0;
33969
33991
  }
33970
33992
  }
@@ -34176,55 +34198,6 @@ class TreasuryWithdrawalsAction {
34176
34198
  }
34177
34199
  module.exports.TreasuryWithdrawalsAction = TreasuryWithdrawalsAction;
34178
34200
 
34179
- const TxBuilderConstantsFinalization = (typeof FinalizationRegistry === 'undefined')
34180
- ? { register: () => {}, unregister: () => {} }
34181
- : new FinalizationRegistry(ptr => wasm.__wbg_txbuilderconstants_free(ptr >>> 0));
34182
- /**
34183
- */
34184
- class TxBuilderConstants {
34185
-
34186
- __destroy_into_raw() {
34187
- const ptr = this.__wbg_ptr;
34188
- this.__wbg_ptr = 0;
34189
- TxBuilderConstantsFinalization.unregister(this);
34190
- return ptr;
34191
- }
34192
-
34193
- free() {
34194
- const ptr = this.__destroy_into_raw();
34195
- wasm.__wbg_txbuilderconstants_free(ptr);
34196
- }
34197
- /**
34198
- * @returns {Costmdls}
34199
- */
34200
- static plutus_default_cost_models() {
34201
- const ret = wasm.txbuilderconstants_plutus_default_cost_models();
34202
- return Costmdls.__wrap(ret);
34203
- }
34204
- /**
34205
- * @returns {Costmdls}
34206
- */
34207
- static plutus_alonzo_cost_models() {
34208
- const ret = wasm.txbuilderconstants_plutus_alonzo_cost_models();
34209
- return Costmdls.__wrap(ret);
34210
- }
34211
- /**
34212
- * @returns {Costmdls}
34213
- */
34214
- static plutus_vasil_cost_models() {
34215
- const ret = wasm.txbuilderconstants_plutus_default_cost_models();
34216
- return Costmdls.__wrap(ret);
34217
- }
34218
- /**
34219
- * @returns {Costmdls}
34220
- */
34221
- static plutus_conway_cost_models() {
34222
- const ret = wasm.txbuilderconstants_plutus_conway_cost_models();
34223
- return Costmdls.__wrap(ret);
34224
- }
34225
- }
34226
- module.exports.TxBuilderConstants = TxBuilderConstants;
34227
-
34228
34201
  const TxInputsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
34229
34202
  ? { register: () => {}, unregister: () => {} }
34230
34203
  : new FinalizationRegistry(ptr => wasm.__wbg_txinputsbuilder_free(ptr >>> 0));
@@ -34259,6 +34232,61 @@ class TxInputsBuilder {
34259
34232
  return TxInputsBuilder.__wrap(ret);
34260
34233
  }
34261
34234
  /**
34235
+ * @param {TransactionUnspentOutput} utxo
34236
+ */
34237
+ add_regular_utxo(utxo) {
34238
+ try {
34239
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34240
+ _assertClass(utxo, TransactionUnspentOutput);
34241
+ wasm.txinputsbuilder_add_regular_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr);
34242
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34243
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34244
+ if (r1) {
34245
+ throw takeObject(r0);
34246
+ }
34247
+ } finally {
34248
+ wasm.__wbindgen_add_to_stack_pointer(16);
34249
+ }
34250
+ }
34251
+ /**
34252
+ * @param {TransactionUnspentOutput} utxo
34253
+ * @param {PlutusWitness} witness
34254
+ */
34255
+ add_plutus_script_utxo(utxo, witness) {
34256
+ try {
34257
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34258
+ _assertClass(utxo, TransactionUnspentOutput);
34259
+ _assertClass(witness, PlutusWitness);
34260
+ wasm.txinputsbuilder_add_plutus_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
34261
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34262
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34263
+ if (r1) {
34264
+ throw takeObject(r0);
34265
+ }
34266
+ } finally {
34267
+ wasm.__wbindgen_add_to_stack_pointer(16);
34268
+ }
34269
+ }
34270
+ /**
34271
+ * @param {TransactionUnspentOutput} utxo
34272
+ * @param {NativeScriptSource} witness
34273
+ */
34274
+ add_native_script_utxo(utxo, witness) {
34275
+ try {
34276
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34277
+ _assertClass(utxo, TransactionUnspentOutput);
34278
+ _assertClass(witness, NativeScriptSource);
34279
+ wasm.txinputsbuilder_add_native_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
34280
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34281
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34282
+ if (r1) {
34283
+ throw takeObject(r0);
34284
+ }
34285
+ } finally {
34286
+ wasm.__wbindgen_add_to_stack_pointer(16);
34287
+ }
34288
+ }
34289
+ /**
34262
34290
  * We have to know what kind of inputs these are to know what kind of mock witnesses to create since
34263
34291
  * 1) mock witnesses have different lengths depending on the type which changes the expecting fee
34264
34292
  * 2) Witnesses are a set so we need to get rid of duplicates to avoid over-estimating the fee
@@ -34801,7 +34829,7 @@ class UnitInterval {
34801
34829
  * @returns {BigNum}
34802
34830
  */
34803
34831
  denominator() {
34804
- const ret = wasm.exunits_steps(this.__wbg_ptr);
34832
+ const ret = wasm.unitinterval_denominator(this.__wbg_ptr);
34805
34833
  return BigNum.__wrap(ret);
34806
34834
  }
34807
34835
  /**
@@ -34812,7 +34840,7 @@ class UnitInterval {
34812
34840
  static new(numerator, denominator) {
34813
34841
  _assertClass(numerator, BigNum);
34814
34842
  _assertClass(denominator, BigNum);
34815
- const ret = wasm.exunits_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
34843
+ const ret = wasm.unitinterval_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
34816
34844
  return UnitInterval.__wrap(ret);
34817
34845
  }
34818
34846
  }
@@ -36497,7 +36525,7 @@ class Vkeys {
36497
36525
  * @returns {number}
36498
36526
  */
36499
36527
  len() {
36500
- const ret = wasm.relays_len(this.__wbg_ptr);
36528
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
36501
36529
  return ret >>> 0;
36502
36530
  }
36503
36531
  /**
@@ -36709,7 +36737,7 @@ class Vkeywitness {
36709
36737
  * @returns {Ed25519Signature}
36710
36738
  */
36711
36739
  signature() {
36712
- const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
36740
+ const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
36713
36741
  return Ed25519Signature.__wrap(ret);
36714
36742
  }
36715
36743
  }
@@ -37297,7 +37325,7 @@ class VoteRegistrationAndDelegation {
37297
37325
  * @returns {Credential}
37298
37326
  */
37299
37327
  stake_credential() {
37300
- const ret = wasm.voteregistrationanddelegation_stake_credential(this.__wbg_ptr);
37328
+ const ret = wasm.drepderegistration_voting_credential(this.__wbg_ptr);
37301
37329
  return Credential.__wrap(ret);
37302
37330
  }
37303
37331
  /**
@@ -37311,7 +37339,7 @@ class VoteRegistrationAndDelegation {
37311
37339
  * @returns {BigNum}
37312
37340
  */
37313
37341
  coin() {
37314
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37342
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
37315
37343
  return BigNum.__wrap(ret);
37316
37344
  }
37317
37345
  /**
@@ -37331,7 +37359,7 @@ class VoteRegistrationAndDelegation {
37331
37359
  * @returns {boolean}
37332
37360
  */
37333
37361
  has_script_credentials() {
37334
- const ret = wasm.voteregistrationanddelegation_has_script_credentials(this.__wbg_ptr);
37362
+ const ret = wasm.drepderegistration_has_script_credentials(this.__wbg_ptr);
37335
37363
  return ret !== 0;
37336
37364
  }
37337
37365
  }
@@ -37696,7 +37724,7 @@ class Voters {
37696
37724
  * @returns {number}
37697
37725
  */
37698
37726
  len() {
37699
- const ret = wasm.costmdls_len(this.__wbg_ptr);
37727
+ const ret = wasm.relays_len(this.__wbg_ptr);
37700
37728
  return ret >>> 0;
37701
37729
  }
37702
37730
  }
@@ -38217,7 +38245,7 @@ class VotingProcedures {
38217
38245
  * @returns {VotingProcedures}
38218
38246
  */
38219
38247
  static new() {
38220
- const ret = wasm.votingprocedures_new();
38248
+ const ret = wasm.costmdls_new();
38221
38249
  return VotingProcedures.__wrap(ret);
38222
38250
  }
38223
38251
  /**
@@ -38506,7 +38534,7 @@ class VotingProposalBuilder {
38506
38534
  * @returns {VotingProposalBuilder}
38507
38535
  */
38508
38536
  static new() {
38509
- const ret = wasm.costmdls_new();
38537
+ const ret = wasm.mintbuilder_new();
38510
38538
  return VotingProposalBuilder.__wrap(ret);
38511
38539
  }
38512
38540
  /**
@@ -38749,14 +38777,14 @@ class VotingProposals {
38749
38777
  * @returns {VotingProposals}
38750
38778
  */
38751
38779
  static new() {
38752
- const ret = wasm.certificates_new();
38780
+ const ret = wasm.credentials_new();
38753
38781
  return VotingProposals.__wrap(ret);
38754
38782
  }
38755
38783
  /**
38756
38784
  * @returns {number}
38757
38785
  */
38758
38786
  len() {
38759
- const ret = wasm.certificates_len(this.__wbg_ptr);
38787
+ const ret = wasm.credentials_len(this.__wbg_ptr);
38760
38788
  return ret >>> 0;
38761
38789
  }
38762
38790
  /**