@cardananium/cquisitor-lib 0.1.0-beta.5 → 0.1.0-beta.7

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.
@@ -352,28 +352,6 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
352
352
  }
353
353
  }
354
354
 
355
- /**
356
- * @param {string} cbor_hex
357
- * @returns {any}
358
- */
359
- export function cbor_to_json(cbor_hex) {
360
- try {
361
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
362
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
363
- const len0 = WASM_VECTOR_LEN;
364
- wasm.cbor_to_json(retptr, ptr0, len0);
365
- var r0 = getInt32Memory0()[retptr / 4 + 0];
366
- var r1 = getInt32Memory0()[retptr / 4 + 1];
367
- var r2 = getInt32Memory0()[retptr / 4 + 2];
368
- if (r2) {
369
- throw takeObject(r1);
370
- }
371
- return takeObject(r0);
372
- } finally {
373
- wasm.__wbindgen_add_to_stack_pointer(16);
374
- }
375
- }
376
-
377
355
  /**
378
356
  * @param {string} hex
379
357
  * @returns {any}
@@ -427,126 +405,51 @@ export function decode_plutus_program_pretty_uplc(hex) {
427
405
  }
428
406
  }
429
407
 
430
- function getArrayU8FromWasm0(ptr, len) {
431
- ptr = ptr >>> 0;
432
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
433
- }
434
-
435
- function passArray8ToWasm0(arg, malloc) {
436
- const ptr = malloc(arg.length * 1, 1) >>> 0;
437
- getUint8Memory0().set(arg, ptr / 1);
438
- WASM_VECTOR_LEN = arg.length;
439
- return ptr;
440
- }
441
-
442
- function _assertClass(instance, klass) {
443
- if (!(instance instanceof klass)) {
444
- throw new Error(`expected instance of ${klass.name}`);
445
- }
446
- return instance.ptr;
447
- }
448
408
  /**
449
- * @param {Transaction} tx
450
- * @param {LinearFee} linear_fee
451
- * @returns {BigNum}
409
+ * @param {string} cbor_hex
410
+ * @returns {any}
452
411
  */
453
- export function min_fee(tx, linear_fee) {
412
+ export function cbor_to_json(cbor_hex) {
454
413
  try {
455
414
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
456
- _assertClass(tx, Transaction);
457
- _assertClass(linear_fee, LinearFee);
458
- wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
415
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
416
+ const len0 = WASM_VECTOR_LEN;
417
+ wasm.cbor_to_json(retptr, ptr0, len0);
459
418
  var r0 = getInt32Memory0()[retptr / 4 + 0];
460
419
  var r1 = getInt32Memory0()[retptr / 4 + 1];
461
420
  var r2 = getInt32Memory0()[retptr / 4 + 2];
462
421
  if (r2) {
463
422
  throw takeObject(r1);
464
423
  }
465
- return BigNum.__wrap(r0);
424
+ return takeObject(r0);
466
425
  } finally {
467
426
  wasm.__wbindgen_add_to_stack_pointer(16);
468
427
  }
469
428
  }
470
429
 
471
- /**
472
- * @param {ExUnits} ex_units
473
- * @param {ExUnitPrices} ex_unit_prices
474
- * @returns {BigNum}
475
- */
476
- export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
477
- try {
478
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
479
- _assertClass(ex_units, ExUnits);
480
- _assertClass(ex_unit_prices, ExUnitPrices);
481
- wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
482
- var r0 = getInt32Memory0()[retptr / 4 + 0];
483
- var r1 = getInt32Memory0()[retptr / 4 + 1];
484
- var r2 = getInt32Memory0()[retptr / 4 + 2];
485
- if (r2) {
486
- throw takeObject(r1);
487
- }
488
- return BigNum.__wrap(r0);
489
- } finally {
490
- wasm.__wbindgen_add_to_stack_pointer(16);
491
- }
430
+ function getArrayU8FromWasm0(ptr, len) {
431
+ ptr = ptr >>> 0;
432
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
492
433
  }
493
434
 
494
- /**
495
- * @param {Transaction} tx
496
- * @param {ExUnitPrices} ex_unit_prices
497
- * @returns {BigNum}
498
- */
499
- export function min_script_fee(tx, ex_unit_prices) {
500
- try {
501
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
502
- _assertClass(tx, Transaction);
503
- _assertClass(ex_unit_prices, ExUnitPrices);
504
- wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
505
- var r0 = getInt32Memory0()[retptr / 4 + 0];
506
- var r1 = getInt32Memory0()[retptr / 4 + 1];
507
- var r2 = getInt32Memory0()[retptr / 4 + 2];
508
- if (r2) {
509
- throw takeObject(r1);
510
- }
511
- return BigNum.__wrap(r0);
512
- } finally {
513
- wasm.__wbindgen_add_to_stack_pointer(16);
514
- }
435
+ function passArray8ToWasm0(arg, malloc) {
436
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
437
+ getUint8Memory0().set(arg, ptr / 1);
438
+ WASM_VECTOR_LEN = arg.length;
439
+ return ptr;
515
440
  }
516
441
 
517
- /**
518
- * @param {number} total_ref_scripts_size
519
- * @param {UnitInterval} ref_script_coins_per_byte
520
- * @returns {BigNum}
521
- */
522
- export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
523
- try {
524
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
525
- _assertClass(ref_script_coins_per_byte, UnitInterval);
526
- wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
527
- var r0 = getInt32Memory0()[retptr / 4 + 0];
528
- var r1 = getInt32Memory0()[retptr / 4 + 1];
529
- var r2 = getInt32Memory0()[retptr / 4 + 2];
530
- if (r2) {
531
- throw takeObject(r1);
532
- }
533
- return BigNum.__wrap(r0);
534
- } finally {
535
- wasm.__wbindgen_add_to_stack_pointer(16);
442
+ function _assertClass(instance, klass) {
443
+ if (!(instance instanceof klass)) {
444
+ throw new Error(`expected instance of ${klass.name}`);
536
445
  }
446
+ return instance.ptr;
537
447
  }
538
448
 
539
449
  function getArrayU32FromWasm0(ptr, len) {
540
450
  ptr = ptr >>> 0;
541
451
  return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
542
452
  }
543
-
544
- function passArray32ToWasm0(arg, malloc) {
545
- const ptr = malloc(arg.length * 4, 4) >>> 0;
546
- getUint32Memory0().set(arg, ptr / 4);
547
- WASM_VECTOR_LEN = arg.length;
548
- return ptr;
549
- }
550
453
  /**
551
454
  * @param {TransactionHash} tx_body_hash
552
455
  * @param {ByronAddress} addr
@@ -762,31 +665,6 @@ export function has_transaction_set_tag(tx_bytes) {
762
665
  }
763
666
  }
764
667
 
765
- /**
766
- * @param {Address} address
767
- * @param {TransactionUnspentOutputs} utxos
768
- * @param {TransactionBuilderConfig} config
769
- * @returns {TransactionBatchList}
770
- */
771
- export function create_send_all(address, utxos, config) {
772
- try {
773
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
774
- _assertClass(address, Address);
775
- _assertClass(utxos, TransactionUnspentOutputs);
776
- _assertClass(config, TransactionBuilderConfig);
777
- wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
778
- var r0 = getInt32Memory0()[retptr / 4 + 0];
779
- var r1 = getInt32Memory0()[retptr / 4 + 1];
780
- var r2 = getInt32Memory0()[retptr / 4 + 2];
781
- if (r2) {
782
- throw takeObject(r1);
783
- }
784
- return TransactionBatchList.__wrap(r0);
785
- } finally {
786
- wasm.__wbindgen_add_to_stack_pointer(16);
787
- }
788
- }
789
-
790
668
  /**
791
669
  * @param {string} password
792
670
  * @param {string} salt
@@ -861,6 +739,122 @@ export function decrypt_with_password(password, data) {
861
739
  }
862
740
  }
863
741
 
742
+ /**
743
+ * @param {Address} address
744
+ * @param {TransactionUnspentOutputs} utxos
745
+ * @param {TransactionBuilderConfig} config
746
+ * @returns {TransactionBatchList}
747
+ */
748
+ export function create_send_all(address, utxos, config) {
749
+ try {
750
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
751
+ _assertClass(address, Address);
752
+ _assertClass(utxos, TransactionUnspentOutputs);
753
+ _assertClass(config, TransactionBuilderConfig);
754
+ wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
755
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
756
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
757
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
758
+ if (r2) {
759
+ throw takeObject(r1);
760
+ }
761
+ return TransactionBatchList.__wrap(r0);
762
+ } finally {
763
+ wasm.__wbindgen_add_to_stack_pointer(16);
764
+ }
765
+ }
766
+
767
+ /**
768
+ * @param {Transaction} tx
769
+ * @param {LinearFee} linear_fee
770
+ * @returns {BigNum}
771
+ */
772
+ export function min_fee(tx, linear_fee) {
773
+ try {
774
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
775
+ _assertClass(tx, Transaction);
776
+ _assertClass(linear_fee, LinearFee);
777
+ wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
778
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
779
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
780
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
781
+ if (r2) {
782
+ throw takeObject(r1);
783
+ }
784
+ return BigNum.__wrap(r0);
785
+ } finally {
786
+ wasm.__wbindgen_add_to_stack_pointer(16);
787
+ }
788
+ }
789
+
790
+ /**
791
+ * @param {ExUnits} ex_units
792
+ * @param {ExUnitPrices} ex_unit_prices
793
+ * @returns {BigNum}
794
+ */
795
+ export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
796
+ try {
797
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
798
+ _assertClass(ex_units, ExUnits);
799
+ _assertClass(ex_unit_prices, ExUnitPrices);
800
+ wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
801
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
802
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
803
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
804
+ if (r2) {
805
+ throw takeObject(r1);
806
+ }
807
+ return BigNum.__wrap(r0);
808
+ } finally {
809
+ wasm.__wbindgen_add_to_stack_pointer(16);
810
+ }
811
+ }
812
+
813
+ /**
814
+ * @param {Transaction} tx
815
+ * @param {ExUnitPrices} ex_unit_prices
816
+ * @returns {BigNum}
817
+ */
818
+ export function min_script_fee(tx, ex_unit_prices) {
819
+ try {
820
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
821
+ _assertClass(tx, Transaction);
822
+ _assertClass(ex_unit_prices, ExUnitPrices);
823
+ wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
824
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
825
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
826
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
827
+ if (r2) {
828
+ throw takeObject(r1);
829
+ }
830
+ return BigNum.__wrap(r0);
831
+ } finally {
832
+ wasm.__wbindgen_add_to_stack_pointer(16);
833
+ }
834
+ }
835
+
836
+ /**
837
+ * @param {number} total_ref_scripts_size
838
+ * @param {UnitInterval} ref_script_coins_per_byte
839
+ * @returns {BigNum}
840
+ */
841
+ export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
842
+ try {
843
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
844
+ _assertClass(ref_script_coins_per_byte, UnitInterval);
845
+ wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
846
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
847
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
848
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
849
+ if (r2) {
850
+ throw takeObject(r1);
851
+ }
852
+ return BigNum.__wrap(r0);
853
+ } finally {
854
+ wasm.__wbindgen_add_to_stack_pointer(16);
855
+ }
856
+ }
857
+
864
858
  /**
865
859
  * @param {string} json
866
860
  * @param {PlutusDatumSchema} schema
@@ -1004,6 +998,13 @@ export function decode_metadatum_to_json_str(metadatum, schema) {
1004
998
  }
1005
999
  }
1006
1000
 
1001
+ function passArray32ToWasm0(arg, malloc) {
1002
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
1003
+ getUint32Memory0().set(arg, ptr / 4);
1004
+ WASM_VECTOR_LEN = arg.length;
1005
+ return ptr;
1006
+ }
1007
+
1007
1008
  function handleError(f, args) {
1008
1009
  try {
1009
1010
  return f.apply(this, args);
@@ -1013,6 +1014,43 @@ function handleError(f, args) {
1013
1014
  }
1014
1015
  /**
1015
1016
  */
1017
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1018
+ /**
1019
+ */
1020
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1021
+ /**
1022
+ */
1023
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1024
+ /**
1025
+ */
1026
+ export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1027
+ /**
1028
+ */
1029
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1030
+ /**
1031
+ */
1032
+ export const 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", });
1033
+ /**
1034
+ */
1035
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1036
+ /**
1037
+ * Used to choosed the schema for a script JSON string
1038
+ */
1039
+ export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1040
+ /**
1041
+ */
1042
+ export const 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", });
1043
+ /**
1044
+ */
1045
+ export const 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", });
1046
+ /**
1047
+ */
1048
+ export const 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", });
1049
+ /**
1050
+ */
1051
+ export const 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", });
1052
+ /**
1053
+ */
1016
1054
  export const TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
1017
1055
  /**
1018
1056
  */
@@ -1038,16 +1076,13 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1038
1076
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1039
1077
  /**
1040
1078
  */
1041
- export const 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", });
1042
- /**
1043
- */
1044
- export const 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", });
1079
+ export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1045
1080
  /**
1046
1081
  */
1047
- export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1082
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1048
1083
  /**
1049
1084
  */
1050
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1085
+ export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1051
1086
  /**
1052
1087
  * Each new language uses a different namespace for hashing its script
1053
1088
  * This is because you could have a language where the same bytes have different semantics
@@ -1057,10 +1092,16 @@ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConvers
1057
1092
  export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1058
1093
  /**
1059
1094
  */
1060
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1095
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1061
1096
  /**
1062
1097
  */
1063
- export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1098
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1099
+ /**
1100
+ */
1101
+ export const 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", });
1102
+ /**
1103
+ */
1104
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1064
1105
  /**
1065
1106
  * JSON <-> PlutusData conversion schemas.
1066
1107
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1117,44 +1158,7 @@ DetailedSchema:1,"1":"DetailedSchema", });
1117
1158
  export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1118
1159
  /**
1119
1160
  */
1120
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1121
- /**
1122
- */
1123
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1124
- /**
1125
- */
1126
- export const 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", });
1127
- /**
1128
- */
1129
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1130
- /**
1131
- */
1132
- export const 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", });
1133
- /**
1134
- */
1135
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1136
- /**
1137
- */
1138
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1139
- /**
1140
- */
1141
- export const 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", });
1142
- /**
1143
- */
1144
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1145
- /**
1146
- */
1147
- export const 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
- /**
1149
- * Used to choosed the schema for a script JSON string
1150
- */
1151
- export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1152
- /**
1153
- */
1154
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1155
- /**
1156
- */
1157
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1161
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1158
1162
 
1159
1163
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1160
1164
  ? { register: () => {}, unregister: () => {} }
@@ -4998,6 +5002,13 @@ export class ByronAddress {
4998
5002
  return ret >>> 0;
4999
5003
  }
5000
5004
  /**
5005
+ * @returns {ByronAddressType}
5006
+ */
5007
+ byron_address_kind() {
5008
+ const ret = wasm.byronaddress_byron_address_kind(this.__wbg_ptr);
5009
+ return ret;
5010
+ }
5011
+ /**
5001
5012
  * @returns {Uint8Array}
5002
5013
  */
5003
5014
  attributes() {
@@ -8486,7 +8497,7 @@ export class DRep {
8486
8497
  */
8487
8498
  static new_key_hash(key_hash) {
8488
8499
  _assertClass(key_hash, Ed25519KeyHash);
8489
- const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
8500
+ const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8490
8501
  return DRep.__wrap(ret);
8491
8502
  }
8492
8503
  /**
@@ -8495,7 +8506,7 @@ export class DRep {
8495
8506
  */
8496
8507
  static new_script_hash(script_hash) {
8497
8508
  _assertClass(script_hash, ScriptHash);
8498
- const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
8509
+ const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8499
8510
  return DRep.__wrap(ret);
8500
8511
  }
8501
8512
  /**
@@ -8543,14 +8554,15 @@ export class DRep {
8543
8554
  return ret === 0 ? undefined : ScriptHash.__wrap(ret);
8544
8555
  }
8545
8556
  /**
8557
+ * @param {boolean} cip_129_format
8546
8558
  * @returns {string}
8547
8559
  */
8548
- to_bech32() {
8560
+ to_bech32(cip_129_format) {
8549
8561
  let deferred2_0;
8550
8562
  let deferred2_1;
8551
8563
  try {
8552
8564
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
8553
- wasm.drep_to_bech32(retptr, this.__wbg_ptr);
8565
+ wasm.drep_to_bech32(retptr, this.__wbg_ptr, cip_129_format);
8554
8566
  var r0 = getInt32Memory0()[retptr / 4 + 0];
8555
8567
  var r1 = getInt32Memory0()[retptr / 4 + 1];
8556
8568
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -8975,7 +8987,7 @@ export class DRepRegistration {
8975
8987
  * @returns {BigNum}
8976
8988
  */
8977
8989
  coin() {
8978
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
8990
+ const ret = wasm.drepregistration_coin(this.__wbg_ptr);
8979
8991
  return BigNum.__wrap(ret);
8980
8992
  }
8981
8993
  /**
@@ -9191,14 +9203,14 @@ export class DRepUpdate {
9191
9203
  * @returns {Credential}
9192
9204
  */
9193
9205
  voting_credential() {
9194
- const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
9206
+ const ret = wasm.drepupdate_voting_credential(this.__wbg_ptr);
9195
9207
  return Credential.__wrap(ret);
9196
9208
  }
9197
9209
  /**
9198
9210
  * @returns {Anchor | undefined}
9199
9211
  */
9200
9212
  anchor() {
9201
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
9213
+ const ret = wasm.drepupdate_anchor(this.__wbg_ptr);
9202
9214
  return ret === 0 ? undefined : Anchor.__wrap(ret);
9203
9215
  }
9204
9216
  /**
@@ -9207,7 +9219,7 @@ export class DRepUpdate {
9207
9219
  */
9208
9220
  static new(voting_credential) {
9209
9221
  _assertClass(voting_credential, Credential);
9210
- const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
9222
+ const ret = wasm.drepupdate_new(voting_credential.__wbg_ptr);
9211
9223
  return DRepUpdate.__wrap(ret);
9212
9224
  }
9213
9225
  /**
@@ -9218,14 +9230,14 @@ export class DRepUpdate {
9218
9230
  static new_with_anchor(voting_credential, anchor) {
9219
9231
  _assertClass(voting_credential, Credential);
9220
9232
  _assertClass(anchor, Anchor);
9221
- const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9233
+ const ret = wasm.drepupdate_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9222
9234
  return DRepUpdate.__wrap(ret);
9223
9235
  }
9224
9236
  /**
9225
9237
  * @returns {boolean}
9226
9238
  */
9227
9239
  has_script_credentials() {
9228
- const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
9240
+ const ret = wasm.drepupdate_has_script_credentials(this.__wbg_ptr);
9229
9241
  return ret !== 0;
9230
9242
  }
9231
9243
  }
@@ -9500,7 +9512,7 @@ export class DRepVotingThresholds {
9500
9512
  * @returns {UnitInterval}
9501
9513
  */
9502
9514
  motion_no_confidence() {
9503
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
9515
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
9504
9516
  return UnitInterval.__wrap(ret);
9505
9517
  }
9506
9518
  /**
@@ -9600,7 +9612,7 @@ export class DataCost {
9600
9612
  */
9601
9613
  static new_coins_per_byte(coins_per_byte) {
9602
9614
  _assertClass(coins_per_byte, BigNum);
9603
- const ret = wasm.datacost_new_coins_per_byte(coins_per_byte.__wbg_ptr);
9615
+ const ret = wasm.datacost_coins_per_byte(coins_per_byte.__wbg_ptr);
9604
9616
  return DataCost.__wrap(ret);
9605
9617
  }
9606
9618
  /**
@@ -10576,14 +10588,14 @@ export class ExUnitPrices {
10576
10588
  * @returns {UnitInterval}
10577
10589
  */
10578
10590
  mem_price() {
10579
- const ret = wasm.exunitprices_mem_price(this.__wbg_ptr);
10591
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
10580
10592
  return UnitInterval.__wrap(ret);
10581
10593
  }
10582
10594
  /**
10583
10595
  * @returns {UnitInterval}
10584
10596
  */
10585
10597
  step_price() {
10586
- const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
10598
+ const ret = wasm.drepvotingthresholds_committee_normal(this.__wbg_ptr);
10587
10599
  return UnitInterval.__wrap(ret);
10588
10600
  }
10589
10601
  /**
@@ -10772,7 +10784,7 @@ export class ExUnits {
10772
10784
  * @returns {BigNum}
10773
10785
  */
10774
10786
  mem() {
10775
- const ret = wasm.datacost_coins_per_byte(this.__wbg_ptr);
10787
+ const ret = wasm.exunits_mem(this.__wbg_ptr);
10776
10788
  return BigNum.__wrap(ret);
10777
10789
  }
10778
10790
  /**
@@ -15770,7 +15782,7 @@ export class MetadataList {
15770
15782
  * @returns {number}
15771
15783
  */
15772
15784
  len() {
15773
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
15785
+ const ret = wasm.languages_len(this.__wbg_ptr);
15774
15786
  return ret >>> 0;
15775
15787
  }
15776
15788
  /**
@@ -16400,7 +16412,7 @@ export class MintBuilder {
16400
16412
  * @returns {MintBuilder}
16401
16413
  */
16402
16414
  static new() {
16403
- const ret = wasm.costmdls_new();
16415
+ const ret = wasm.mintbuilder_new();
16404
16416
  return MintBuilder.__wrap(ret);
16405
16417
  }
16406
16418
  /**
@@ -17935,7 +17947,7 @@ export class NativeScripts {
17935
17947
  * @returns {number}
17936
17948
  */
17937
17949
  len() {
17938
- const ret = wasm.costmdls_len(this.__wbg_ptr);
17950
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
17939
17951
  return ret >>> 0;
17940
17952
  }
17941
17953
  /**
@@ -18535,7 +18547,7 @@ export class NewConstitutionAction {
18535
18547
  * @returns {GovernanceActionId | undefined}
18536
18548
  */
18537
18549
  gov_action_id() {
18538
- const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
18550
+ const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18539
18551
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18540
18552
  }
18541
18553
  /**
@@ -18747,7 +18759,7 @@ export class NoConfidenceAction {
18747
18759
  * @returns {GovernanceActionId | undefined}
18748
18760
  */
18749
18761
  gov_action_id() {
18750
- const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
18762
+ const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18751
18763
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18752
18764
  }
18753
18765
  /**
@@ -19924,7 +19936,7 @@ export class PlutusList {
19924
19936
  * @returns {number}
19925
19937
  */
19926
19938
  len() {
19927
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
19939
+ const ret = wasm.languages_len(this.__wbg_ptr);
19928
19940
  return ret >>> 0;
19929
19941
  }
19930
19942
  /**
@@ -20130,7 +20142,7 @@ export class PlutusMapValues {
20130
20142
  * @returns {number}
20131
20143
  */
20132
20144
  len() {
20133
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
20145
+ const ret = wasm.languages_len(this.__wbg_ptr);
20134
20146
  return ret >>> 0;
20135
20147
  }
20136
20148
  /**
@@ -20695,7 +20707,7 @@ export class PlutusScripts {
20695
20707
  * @returns {number}
20696
20708
  */
20697
20709
  len() {
20698
- const ret = wasm.certificates_len(this.__wbg_ptr);
20710
+ const ret = wasm.credentials_len(this.__wbg_ptr);
20699
20711
  return ret >>> 0;
20700
20712
  }
20701
20713
  /**
@@ -20842,14 +20854,14 @@ export class PlutusWitnesses {
20842
20854
  * @returns {PlutusWitnesses}
20843
20855
  */
20844
20856
  static new() {
20845
- const ret = wasm.plutuswitnesses_new();
20857
+ const ret = wasm.costmodel_new();
20846
20858
  return PlutusWitnesses.__wrap(ret);
20847
20859
  }
20848
20860
  /**
20849
20861
  * @returns {number}
20850
20862
  */
20851
20863
  len() {
20852
- const ret = wasm.plutuswitnesses_len(this.__wbg_ptr);
20864
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
20853
20865
  return ret >>> 0;
20854
20866
  }
20855
20867
  /**
@@ -20993,7 +21005,7 @@ export class Pointer {
20993
21005
  * @returns {BigNum}
20994
21006
  */
20995
21007
  cert_index_bignum() {
20996
- const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
21008
+ const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
20997
21009
  return BigNum.__wrap(ret);
20998
21010
  }
20999
21011
  }
@@ -22262,7 +22274,7 @@ export class PoolVotingThresholds {
22262
22274
  * @returns {UnitInterval}
22263
22275
  */
22264
22276
  motion_no_confidence() {
22265
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
22277
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
22266
22278
  return UnitInterval.__wrap(ret);
22267
22279
  }
22268
22280
  /**
@@ -23823,7 +23835,7 @@ export class PublicKeys {
23823
23835
  /**
23824
23836
  */
23825
23837
  constructor() {
23826
- const ret = wasm.genesishashes_new();
23838
+ const ret = wasm.publickeys_new();
23827
23839
  this.__wbg_ptr = ret >>> 0;
23828
23840
  return this;
23829
23841
  }
@@ -23831,7 +23843,7 @@ export class PublicKeys {
23831
23843
  * @returns {number}
23832
23844
  */
23833
23845
  size() {
23834
- const ret = wasm.assetnames_len(this.__wbg_ptr);
23846
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
23835
23847
  return ret >>> 0;
23836
23848
  }
23837
23849
  /**
@@ -27501,7 +27513,7 @@ export class StakeDelegation {
27501
27513
  * @returns {Credential}
27502
27514
  */
27503
27515
  stake_credential() {
27504
- const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
27516
+ const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
27505
27517
  return Credential.__wrap(ret);
27506
27518
  }
27507
27519
  /**
@@ -27526,7 +27538,7 @@ export class StakeDelegation {
27526
27538
  * @returns {boolean}
27527
27539
  */
27528
27540
  has_script_credentials() {
27529
- const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
27541
+ const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
27530
27542
  return ret !== 0;
27531
27543
  }
27532
27544
  }
@@ -28142,7 +28154,7 @@ export class StakeRegistrationAndDelegation {
28142
28154
  * @returns {BigNum}
28143
28155
  */
28144
28156
  coin() {
28145
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28157
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28146
28158
  return BigNum.__wrap(ret);
28147
28159
  }
28148
28160
  /**
@@ -28361,7 +28373,7 @@ export class StakeVoteRegistrationAndDelegation {
28361
28373
  * @returns {BigNum}
28362
28374
  */
28363
28375
  coin() {
28364
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28376
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28365
28377
  return BigNum.__wrap(ret);
28366
28378
  }
28367
28379
  /**
@@ -28425,7 +28437,7 @@ export class Strings {
28425
28437
  * @returns {number}
28426
28438
  */
28427
28439
  len() {
28428
- const ret = wasm.costmodel_len(this.__wbg_ptr);
28440
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
28429
28441
  return ret >>> 0;
28430
28442
  }
28431
28443
  /**
@@ -29146,7 +29158,7 @@ export class TransactionBatch {
29146
29158
  * @returns {number}
29147
29159
  */
29148
29160
  len() {
29149
- const ret = wasm.costmdls_len(this.__wbg_ptr);
29161
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
29150
29162
  return ret >>> 0;
29151
29163
  }
29152
29164
  /**
@@ -29189,7 +29201,7 @@ export class TransactionBatchList {
29189
29201
  * @returns {number}
29190
29202
  */
29191
29203
  len() {
29192
- const ret = wasm.costmdls_len(this.__wbg_ptr);
29204
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
29193
29205
  return ret >>> 0;
29194
29206
  }
29195
29207
  /**
@@ -31228,6 +31240,16 @@ export class TransactionBuilderConfigBuilder {
31228
31240
  return TransactionBuilderConfigBuilder.__wrap(ret);
31229
31241
  }
31230
31242
  /**
31243
+ *If set to true, the transaction builder will not burn extra change if it's impossible to crate change output
31244
+ *due to the value being too small to cover min ada for change output. Instead, tx builder will throw an error.
31245
+ * @param {boolean} do_not_burn_extra_change
31246
+ * @returns {TransactionBuilderConfigBuilder}
31247
+ */
31248
+ do_not_burn_extra_change(do_not_burn_extra_change) {
31249
+ const ret = wasm.transactionbuilderconfigbuilder_do_not_burn_extra_change(this.__wbg_ptr, do_not_burn_extra_change);
31250
+ return TransactionBuilderConfigBuilder.__wrap(ret);
31251
+ }
31252
+ /**
31231
31253
  * @returns {TransactionBuilderConfig}
31232
31254
  */
31233
31255
  build() {
@@ -31778,7 +31800,7 @@ export class TransactionInputs {
31778
31800
  * @returns {number}
31779
31801
  */
31780
31802
  len() {
31781
- const ret = wasm.costmdls_len(this.__wbg_ptr);
31803
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
31782
31804
  return ret >>> 0;
31783
31805
  }
31784
31806
  /**
@@ -32206,7 +32228,7 @@ export class TransactionMetadatumLabels {
32206
32228
  * @returns {number}
32207
32229
  */
32208
32230
  len() {
32209
- const ret = wasm.metadatalist_len(this.__wbg_ptr);
32231
+ const ret = wasm.languages_len(this.__wbg_ptr);
32210
32232
  return ret >>> 0;
32211
32233
  }
32212
32234
  /**
@@ -33396,7 +33418,7 @@ export class TransactionWitnessSet {
33396
33418
  * @returns {NativeScripts | undefined}
33397
33419
  */
33398
33420
  native_scripts() {
33399
- const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
33421
+ const ret = wasm.auxiliarydata_native_scripts(this.__wbg_ptr);
33400
33422
  return ret === 0 ? undefined : NativeScripts.__wrap(ret);
33401
33423
  }
33402
33424
  /**
@@ -33644,7 +33666,7 @@ export class TransactionWitnessSets {
33644
33666
  * @returns {number}
33645
33667
  */
33646
33668
  len() {
33647
- const ret = wasm.costmdls_len(this.__wbg_ptr);
33669
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
33648
33670
  return ret >>> 0;
33649
33671
  }
33650
33672
  /**
@@ -33792,7 +33814,7 @@ export class TreasuryWithdrawals {
33792
33814
  * @returns {number}
33793
33815
  */
33794
33816
  len() {
33795
- const ret = wasm.relays_len(this.__wbg_ptr);
33817
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
33796
33818
  return ret >>> 0;
33797
33819
  }
33798
33820
  }
@@ -34002,54 +34024,6 @@ export class TreasuryWithdrawalsAction {
34002
34024
  }
34003
34025
  }
34004
34026
 
34005
- const TxBuilderConstantsFinalization = (typeof FinalizationRegistry === 'undefined')
34006
- ? { register: () => {}, unregister: () => {} }
34007
- : new FinalizationRegistry(ptr => wasm.__wbg_txbuilderconstants_free(ptr >>> 0));
34008
- /**
34009
- */
34010
- export class TxBuilderConstants {
34011
-
34012
- __destroy_into_raw() {
34013
- const ptr = this.__wbg_ptr;
34014
- this.__wbg_ptr = 0;
34015
- TxBuilderConstantsFinalization.unregister(this);
34016
- return ptr;
34017
- }
34018
-
34019
- free() {
34020
- const ptr = this.__destroy_into_raw();
34021
- wasm.__wbg_txbuilderconstants_free(ptr);
34022
- }
34023
- /**
34024
- * @returns {Costmdls}
34025
- */
34026
- static plutus_default_cost_models() {
34027
- const ret = wasm.txbuilderconstants_plutus_default_cost_models();
34028
- return Costmdls.__wrap(ret);
34029
- }
34030
- /**
34031
- * @returns {Costmdls}
34032
- */
34033
- static plutus_alonzo_cost_models() {
34034
- const ret = wasm.txbuilderconstants_plutus_alonzo_cost_models();
34035
- return Costmdls.__wrap(ret);
34036
- }
34037
- /**
34038
- * @returns {Costmdls}
34039
- */
34040
- static plutus_vasil_cost_models() {
34041
- const ret = wasm.txbuilderconstants_plutus_default_cost_models();
34042
- return Costmdls.__wrap(ret);
34043
- }
34044
- /**
34045
- * @returns {Costmdls}
34046
- */
34047
- static plutus_conway_cost_models() {
34048
- const ret = wasm.txbuilderconstants_plutus_conway_cost_models();
34049
- return Costmdls.__wrap(ret);
34050
- }
34051
- }
34052
-
34053
34027
  const TxInputsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
34054
34028
  ? { register: () => {}, unregister: () => {} }
34055
34029
  : new FinalizationRegistry(ptr => wasm.__wbg_txinputsbuilder_free(ptr >>> 0));
@@ -34084,6 +34058,61 @@ export class TxInputsBuilder {
34084
34058
  return TxInputsBuilder.__wrap(ret);
34085
34059
  }
34086
34060
  /**
34061
+ * @param {TransactionUnspentOutput} utxo
34062
+ */
34063
+ add_regular_utxo(utxo) {
34064
+ try {
34065
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34066
+ _assertClass(utxo, TransactionUnspentOutput);
34067
+ wasm.txinputsbuilder_add_regular_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr);
34068
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34069
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34070
+ if (r1) {
34071
+ throw takeObject(r0);
34072
+ }
34073
+ } finally {
34074
+ wasm.__wbindgen_add_to_stack_pointer(16);
34075
+ }
34076
+ }
34077
+ /**
34078
+ * @param {TransactionUnspentOutput} utxo
34079
+ * @param {PlutusWitness} witness
34080
+ */
34081
+ add_plutus_script_utxo(utxo, witness) {
34082
+ try {
34083
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34084
+ _assertClass(utxo, TransactionUnspentOutput);
34085
+ _assertClass(witness, PlutusWitness);
34086
+ wasm.txinputsbuilder_add_plutus_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
34087
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34088
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34089
+ if (r1) {
34090
+ throw takeObject(r0);
34091
+ }
34092
+ } finally {
34093
+ wasm.__wbindgen_add_to_stack_pointer(16);
34094
+ }
34095
+ }
34096
+ /**
34097
+ * @param {TransactionUnspentOutput} utxo
34098
+ * @param {NativeScriptSource} witness
34099
+ */
34100
+ add_native_script_utxo(utxo, witness) {
34101
+ try {
34102
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34103
+ _assertClass(utxo, TransactionUnspentOutput);
34104
+ _assertClass(witness, NativeScriptSource);
34105
+ wasm.txinputsbuilder_add_native_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
34106
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
34107
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
34108
+ if (r1) {
34109
+ throw takeObject(r0);
34110
+ }
34111
+ } finally {
34112
+ wasm.__wbindgen_add_to_stack_pointer(16);
34113
+ }
34114
+ }
34115
+ /**
34087
34116
  * We have to know what kind of inputs these are to know what kind of mock witnesses to create since
34088
34117
  * 1) mock witnesses have different lengths depending on the type which changes the expecting fee
34089
34118
  * 2) Witnesses are a set so we need to get rid of duplicates to avoid over-estimating the fee
@@ -34624,7 +34653,7 @@ export class UnitInterval {
34624
34653
  * @returns {BigNum}
34625
34654
  */
34626
34655
  denominator() {
34627
- const ret = wasm.exunits_steps(this.__wbg_ptr);
34656
+ const ret = wasm.unitinterval_denominator(this.__wbg_ptr);
34628
34657
  return BigNum.__wrap(ret);
34629
34658
  }
34630
34659
  /**
@@ -34635,7 +34664,7 @@ export class UnitInterval {
34635
34664
  static new(numerator, denominator) {
34636
34665
  _assertClass(numerator, BigNum);
34637
34666
  _assertClass(denominator, BigNum);
34638
- const ret = wasm.exunits_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
34667
+ const ret = wasm.unitinterval_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
34639
34668
  return UnitInterval.__wrap(ret);
34640
34669
  }
34641
34670
  }
@@ -36311,7 +36340,7 @@ export class Vkeys {
36311
36340
  * @returns {number}
36312
36341
  */
36313
36342
  len() {
36314
- const ret = wasm.relays_len(this.__wbg_ptr);
36343
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
36315
36344
  return ret >>> 0;
36316
36345
  }
36317
36346
  /**
@@ -36522,7 +36551,7 @@ export class Vkeywitness {
36522
36551
  * @returns {Ed25519Signature}
36523
36552
  */
36524
36553
  signature() {
36525
- const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
36554
+ const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
36526
36555
  return Ed25519Signature.__wrap(ret);
36527
36556
  }
36528
36557
  }
@@ -37107,7 +37136,7 @@ export class VoteRegistrationAndDelegation {
37107
37136
  * @returns {Credential}
37108
37137
  */
37109
37138
  stake_credential() {
37110
- const ret = wasm.voteregistrationanddelegation_stake_credential(this.__wbg_ptr);
37139
+ const ret = wasm.drepderegistration_voting_credential(this.__wbg_ptr);
37111
37140
  return Credential.__wrap(ret);
37112
37141
  }
37113
37142
  /**
@@ -37121,7 +37150,7 @@ export class VoteRegistrationAndDelegation {
37121
37150
  * @returns {BigNum}
37122
37151
  */
37123
37152
  coin() {
37124
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37153
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
37125
37154
  return BigNum.__wrap(ret);
37126
37155
  }
37127
37156
  /**
@@ -37141,7 +37170,7 @@ export class VoteRegistrationAndDelegation {
37141
37170
  * @returns {boolean}
37142
37171
  */
37143
37172
  has_script_credentials() {
37144
- const ret = wasm.voteregistrationanddelegation_has_script_credentials(this.__wbg_ptr);
37173
+ const ret = wasm.drepderegistration_has_script_credentials(this.__wbg_ptr);
37145
37174
  return ret !== 0;
37146
37175
  }
37147
37176
  }
@@ -37504,7 +37533,7 @@ export class Voters {
37504
37533
  * @returns {number}
37505
37534
  */
37506
37535
  len() {
37507
- const ret = wasm.costmdls_len(this.__wbg_ptr);
37536
+ const ret = wasm.relays_len(this.__wbg_ptr);
37508
37537
  return ret >>> 0;
37509
37538
  }
37510
37539
  }
@@ -38022,7 +38051,7 @@ export class VotingProcedures {
38022
38051
  * @returns {VotingProcedures}
38023
38052
  */
38024
38053
  static new() {
38025
- const ret = wasm.votingprocedures_new();
38054
+ const ret = wasm.costmdls_new();
38026
38055
  return VotingProcedures.__wrap(ret);
38027
38056
  }
38028
38057
  /**
@@ -38309,7 +38338,7 @@ export class VotingProposalBuilder {
38309
38338
  * @returns {VotingProposalBuilder}
38310
38339
  */
38311
38340
  static new() {
38312
- const ret = wasm.costmdls_new();
38341
+ const ret = wasm.mintbuilder_new();
38313
38342
  return VotingProposalBuilder.__wrap(ret);
38314
38343
  }
38315
38344
  /**
@@ -38551,14 +38580,14 @@ export class VotingProposals {
38551
38580
  * @returns {VotingProposals}
38552
38581
  */
38553
38582
  static new() {
38554
- const ret = wasm.certificates_new();
38583
+ const ret = wasm.credentials_new();
38555
38584
  return VotingProposals.__wrap(ret);
38556
38585
  }
38557
38586
  /**
38558
38587
  * @returns {number}
38559
38588
  */
38560
38589
  len() {
38561
- const ret = wasm.certificates_len(this.__wbg_ptr);
38590
+ const ret = wasm.credentials_len(this.__wbg_ptr);
38562
38591
  return ret >>> 0;
38563
38592
  }
38564
38593
  /**