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.Hashable
has been brought back fromCooked.Conversion.ToHash
since it has no purpose being inplutus-script-utils
.TxSkelOutNoDatum
when paying to scripts, asPlutusV3 allows for it. As a consequence, providing no datum in a
Payable
willresult in the generation of
TxSkelOutDatum ()
for scripts of version 1 or 2,and in the generation of
TxSkelOutNoDatum
for scripts of version 3.define
primitive inMonadBlockChainBalancing
which 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.
MockChainLogEntry
has been integrated into aMockChainBook
which also stores the aliases exported using
define
.traces using new Test field
testSizeProp
and new helperwithExactSize
.Mint
with smart constructorsmint
andburn
to populate theTxSkelMints
field of our skeleton.addHashNames
to add alias in the pretty cooked options withoutoverriding the existing default names.
OwnerConstraints
andReferenceScriptConstraints
for output to clarify sometypes and allow to reuse those constraints in other parts of the code, such as
attacks or tweaks.
txSkelOutReferenceScript
to retrieve the optional reference scriptfrom an output.
isInWallets
andisInWallet
to ensure wallets have theright amount of certain tokens at the end of a mockchain run. New testing
helpers
happened
anddidNotHappen
to test for the occurrence of a specificlog event.
Removed
Validators.hs
andCurrencies.hs
. Their content has been moved toplutus-script-utils
directly with some improvements and adaptations.Cooked.Conversion.***
which have been integrated toplutus-script-utils
.Skeleton.hs
that were only used once inMockChain.Direct
:txSkelValidatorsInOutputs
,txSkelReferenceScripts
walletCredential
,walletAddress
replaced bytoCredential
andtoAddress
from the classesToCredential
andToAddress
.txOptAutoReferenceScripts
replaced by local optiontxSkelRedeemerAutoFill
which 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.
TxSkelMints
is now built from a list of dedicatedMint
constructs insteadof tuples. This allows to use any kind of scripts that can be seen as
versioned minting policies, such as multipurpose scripts.
TxSkelMints
now does not pushes for specifyingmultiple redeemers for the same minting policy.
validatorFromHash
changed toscriptFromHash
a dynamic alias during mockchain runs using
define
.removeLabelTweak
now fails if the label is absent from the skeleton.TxSkelRedeemer
has 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.Cooked
have been revamped. All pretty functions are nowinstances of either
PrettyCooked
,PrettyCookedList
orPrettyCookedMaybe
and are adequately placed in the
Pretty.Cooked.XXX
submodules. This offersboth more consistency and flexibility to define
Pretty
instances 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.
awaitDurationFromUpperBound
would 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