Version 8.0.0 available #512
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.
Uh oh!
There was an error while loading. Please reload this page.
-
cooked-validatorsversion 8.0.0 is now available. The most notable changes are:Full changelog below:
Added
viewByRefandpreviewByRefwhich calltxSkelOutByRefand apply a getterand an affine fold on it, respectively.
Cooked.Skeleton.OutputIsTxSkelOutAllowedOwnerforVersioned Scriptdoc/OPTICS.mdforceOutputsprimitives to force the creation of new utxos from a listof
TxSkel. Initial distributions are now handled using this primitive.somewhere',everywhere'andthere'which accept arbitraryLtlexpressions.
labelled[T][']tweaks, to apply a tweak to transactions with aspecific label.
labeland asIsStringinstance forTxSkelLabelto make addinglabels easier.
Cooked.Ltl.CombinatorswithanyOf[']andallOf[']helpers tomake combining multiple
Ltlexpressions together simpler.delay[']delays an Ltl formula by n timestamps.there,everywhereandsomewhereis now implementedin terms of
Cooked.Ltl.Combinators.Cooked.MockChain.AutoFillingto gather all automated filling ofskeleton parts performed during pre-validation phase. This include the new
automated assignment of withdrawn amounts, and automated assignment of
constitution script.
MCLogAutoFilledConstitutionandMCLogAutoFilledWithdrawalAmountto log the respective auto filling occurrences.
User, now used widely in the library, in moduleCooked.Skeleton.User, alongside relevant type families around the type, inmodule
Cooked.Skeleton.Families.Fee), collaterals (CollateralIns,Collaterals) andlist of utxos (
Utxos).TxSkelSignatoryin moduleCooked.Skeleton.Signatory. Signatories are nolonger forced to expose a private key, in which case they will be in required
signer, but will not sign the transaction. This opens up the possibility to
delay signatures.
getCurrentRewardto retrieve the current rewards of a stakingcredential, which will always be 0 at this point.
(
dRepDeposit,stakeAddressDepositandstakePoolDeposit).txSkelDepositedValueInCertificatesto fetch the total valuedeposited in certificates (which can be negative in case of deregistration).
txSkelMintsPolicyTokensLto focus on the submap of a specific currencysymbol within a
TxSkelMints.Cooked.Skeleton.Valuewhich exposes useful optics around values.txSkelCertifyingScriptscollecting all certifying script from askeleton.
the balancing is in favour of the output, to avoid sending transaction with no
inputs.
Removed
Cooked.Skeleton.Value.TxSkelOutValueno longer exists and has beenreplaced by two fields for
TxSkelOut,txSkelOutValueandtxSkelOutValueAutoAdjust.unsafeTxOutByRefwhich is now the default behavior fortxOutByRefTxSkelOutsuch astypedDatumFromTxOutRefas they have been replaced byviewByReforpreviewByRef.DatumContent. In aTxSkelOutDatumthe datum is now stored as is, and a newtype,
UtxoPayloadDatumis used to store datum in utxo payloads.Cooked.Attack.DupToken, now regrouped withCooked.Attack.AddTokenCooked.MockChain.GenerateTx, whose content can now be found inCooked.MockChain.GenerateTx.BodyCooked.MockChain.MinAda,Cooked.MockChain.AutoReferenceScript,regrouped in module
Cooked.MockChain.AutoFillingregisterStakingCredfrom theMonadBlockChainclass, no longerneeded thanks to the handling of certificates.
Cooked.Skeleton.Payable, spread acrossCooked.Skeleton.OutputandCooked.Skeleton.Families.Cooked.Skeleton.ReferenceScript, now directly handled inCooked.Skeleton.Output.Changed
TxOptsreplaced byTxSkelOptsand field names changed likewise.TxLabelreplaced byTxSkelLabeltxOutByRefreplaced bytxSkelOutByRef. It now throws an error if theoutput is not found and thus it returns
m TxSkelOutinstead ofm (Maybe TxSkelOut)consistent, the missing ones have been added and they are used more
consistently throughout the codebase.
TxSkelMintshas been improved and clarified.txSkelModTxand is now asimple unwrapped function.
txSkelModParamsand isnow a simple unwrapped function.
ToCredentialis no longer a requirement for an owner of aTxSkelOut,instead it is derived from
IsTxSkelOutAllowedOwnertxSkelOutValueare gone, as part of the optics overhaul,and are replaced by their optics counterpart, such as
view txSkelOuValueL.addMintTweakreplaced byaddMintsTweakwhich can add multiple mintconstraints in one go.
DatumHijackingParamstypeto pilot how the datum hijacking should be performed.
testing purposes. They have been replaced by relevant replacements, in
particular
Userwhere applicable.txSkelSignershas been replaced bytxSkelSignatories, which is a list ofTxSkelSignatory. It can still be built by lists of wallets usingtxSkelSignatoriesFromList. All occurrences of 'signer' in the codebase havebeen replaced by 'signatory'.
txSkelInputsValidatorsrenamed totxSkelInputScriptstxSkelProposalsDepositrenamed totxSkelDepositedValueInProposalsMockChainThave been revisited to be more flexible. Atype
MockChainConfhas been added to pilot the run. It contains an initialstate, an initial distribution of funds, and a function to apply on the raw
result of the run.
isInWalletsandisInWallethave been changed and renamedto
isAtAddressandpossesses.Cookednow exposes much more of the library. The idea is to hide asfew definitions as possible, only those that are really not meant to be used,
such as unsafe constructors.
library have been updated. In particular, the current version of cardano-api
is now 10.18.1.0, the last one before Dijsktra.
Beta Was this translation helpful? Give feedback.
All reactions