Version 6.0.0 #481
mmontin
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is the release that updates cardano-api and cardano-node-emulator to the latest standards. Full change log below.
Added
Cooked.Pretty.Hashablehas been brought back fromCooked.Conversion.ToHashsince it has no purpose being inplutus-script-utils.TxSkelOutNoDatumwhen paying to scripts, asPlutusV3 allows for it. As a consequence, providing no datum in a
Payablewillresult in the generation of
TxSkelOutDatum ()for scripts of version 1 or 2,and in the generation of
TxSkelOutNoDatumfor scripts of version 3.defineprimitive inMonadBlockChainBalancingwhich allows to bind analias while defining a variable. This is used by the pretty printer to render
names that are dynamic, i.e. depend on on-chain data, like utxos.
MockChainLogEntryhas been integrated into aMockChainBookwhich also stores the aliases exported using
define.traces using new Test field
testSizePropand new helperwithExactSize.Mintwith smart constructorsmintandburnto populate theTxSkelMintsfield of our skeleton.addHashNamesto add alias in the pretty cooked options withoutoverriding the existing default names.
OwnerConstraintsandReferenceScriptConstraintsfor output to clarify sometypes and allow to reuse those constraints in other parts of the code, such as
attacks or tweaks.
txSkelOutReferenceScriptto retrieve the optional reference scriptfrom an output.
isInWalletsandisInWalletto ensure wallets have theright amount of certain tokens at the end of a mockchain run. New testing
helpers
happenedanddidNotHappento test for the occurrence of a specificlog event.
Removed
Validators.hsandCurrencies.hs. Their content has been moved toplutus-script-utilsdirectly with some improvements and adaptations.Cooked.Conversion.***which have been integrated toplutus-script-utils.Skeleton.hsthat were only used once inMockChain.Direct:txSkelValidatorsInOutputs,txSkelReferenceScriptswalletCredential,walletAddressreplaced bytoCredentialandtoAddressfrom the classesToCredentialandToAddress.txOptAutoReferenceScriptsreplaced by local optiontxSkelRedeemerAutoFillwhich can be turned on and off in each
TxSkelRedeemer.Changed
be different from the original owner of the utxo.
been reduced, relying on conversion type classes whenever possible.
TxSkelMintsis now built from a list of dedicatedMintconstructs insteadof tuples. This allows to use any kind of scripts that can be seen as
versioned minting policies, such as multipurpose scripts.
TxSkelMintsnow does not pushes for specifyingmultiple redeemers for the same minting policy.
validatorFromHashchanged toscriptFromHasha dynamic alias during mockchain runs using
define.removeLabelTweaknow fails if the label is absent from the skeleton.TxSkelRedeemerhas been improved: it directly contains a redeemer content(no longer needed type
Redeemer) and it now contains locally an option toeither automatically assign a reference input or not.
Pretty.Cookedhave been revamped. All pretty functions are nowinstances of either
PrettyCooked,PrettyCookedListorPrettyCookedMaybeand are adequately placed in the
Pretty.Cooked.XXXsubmodules. This offersboth more consistency and flexibility to define
Prettyinstances for cooked.Fixed
in the set of reference inputs of the generated transaction.
leading zeros in the hexadecimal conversion of their digits.
possible fee for a transaction. As a consequence, our dychotomic balancing
mechanism now iterates within the proper fee bounds for Conway.
awaitDurationFromUpperBoundwould actually wait from the lowerbound of the slot, similarly to
awaitDurationFromLowerBound.This discussion was created from the release Version 6.0.0.
Beta Was this translation helpful? Give feedback.
All reactions