This is a library, written in Rust, for serialization & deserialization of data structures used in Cardano's Haskell implementation of Alonzo along with useful utility functions.
Removed: multiassets() due to its confusing naming.
Note: Use mint() to obtain information about minting in a transaction.
Fee Calculation Functions Changes:
Removed: All functions based on 'cons per word', aligning with the protocol's transition to 'coins per byte' in the Babbage era.
Replacement Guidelines:
Use new_coins_per_byte instead of the removed new_coins_per_word in DataCost.
In TransactionOutputAmountBuilder, switch to with_asset_and_min_required_coin_by_utxo_cost, as with_asset_and_min_required_coin is now removed.
ADA Requirement Function Updates:
Removed: min_ada_required due to its inability to account for full transaction output fields and reliance on the outdated coins per word parameter.
Replacement Guideline: Use min_ada_for_output.
TransactionBuilderConfigBuilder Adjustments:
Removed: coins_per_utxo_word.
Replacement Guideline: Use coins_per_utxo_byte.
NetworkInfo Simplification:
Removed: testnet() function, as the testnet has been replaced by testnet preprod and testnet preview.
Script Transaction Inputs Overhaul:
Removed: Functions like add_script_input, add_input, count_missing_input_scripts, add_required_script_input_witnesses, and add_required_plutus_input_scripts, used for adding script transaction inputs without a script witness.
Replacement Guideline:
For non-script inputs: Use add_regular_input, add_key_input, or add_bootstrap_input.
For script inputs: Use add_native_script_input or add_plutus_script_input.
PlutusScriptSource Enhancement:
Updated: new_ref_input in PlutusScriptSource now includes a language version argument, replacing the old new_ref_input.
Removed: new_ref_input_with_lang_ver because new_ref_input has the same functionality and no need in specific function with language version.
TransactionBody Struct Changes:
multiassets()
due to its confusing naming.mint()
to obtain information about minting in a transaction.Fee Calculation Functions Changes:
new_coins_per_byte
instead of the removednew_coins_per_word
inDataCost
.TransactionOutputAmountBuilder
, switch towith_asset_and_min_required_coin_by_utxo_cost
, aswith_asset_and_min_required_coin
is now removed.ADA Requirement Function Updates:
min_ada_required
due to its inability to account for full transaction output fields and reliance on the outdated coins per word parameter.min_ada_for_output
.TransactionBuilderConfigBuilder Adjustments:
coins_per_utxo_word
.coins_per_utxo_byte
.NetworkInfo Simplification:
testnet()
function, as the testnet has been replaced by testnet preprod and testnet preview.Script Transaction Inputs Overhaul:
add_script_input
,add_input
,count_missing_input_scripts
,add_required_script_input_witnesses
, andadd_required_plutus_input_scripts
, used for adding script transaction inputs without a script witness.add_regular_input
,add_key_input
, oradd_bootstrap_input
.add_native_script_input
oradd_plutus_script_input
.PlutusScriptSource Enhancement:
new_ref_input
inPlutusScriptSource
now includes a language version argument, replacing the oldnew_ref_input
.new_ref_input_with_lang_ver
becausenew_ref_input
has the same functionality and no need in specific function with language version.