Closed lisicky closed 1 year ago
Published:
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-browser/v/11.2.0 https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-nodejs/v/11.2.0 https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-asmjs/v/11.2.0 https://crates.io/crates/cardano-serialization-lib/11.2.0
https://github.com/Emurgo/cardano-serialization-lib/milestone/23
Change Set
API Changes
Mint builder and plutus mint support. #551
We introduce
MintBuilder
.MintBuilder
can help you to make mints with native scripts or Plutus scripts. Example:Send all #480
Added
create_send_all
function. The fuction prepares batch ofTransaction
with all utxos that you put to thecreate_send_all
argument. NOTE:create_send_all
supports only non script inputs.Lang version and ref script input #544
Now
PlutusScriptSource
has function.new_ref_input_with_lang_ver
. The new function consider plutus lang version in its argument..new_ref_input_with_lang_ver
helps for correct.calc_script_data_hash
calculation inTransactionBuilder
. We recommend to use.new_ref_input_with_lang_ver
instead.new_ref_input
.Multiple script inputs #539
We fixed logic for inputs with the same script addresses. Now if you wanna add missed scripts to your inputs you should use
.add_required_script_input_witnesses
instead of.add_required_plutus_input_scripts
.set_prefer_alonzo_format #522
Added
.set_prefer_alonzo_format
function toAuxiliaryData
. It helps to keep alonzo format duringAuxiliaryData
serialization.New testnet NetworkInfo #563
Added
testnet_preview
andtestnet_preprod
functions for preview and preprod networks.