cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.MockChain.GenerateTx.Body

Description

This modules exposes entry points to convert a TxSkel into a fully fledged transaction body

Synopsis

Documentation

txSkelToTxBody :: MonadBlockChainBalancing m => TxSkel -> Integer -> Maybe (Set TxOutRef, Wallet) -> m (TxBody ConwayEra) Source #

Generates a transaction body from a TxSkel and associated fee and collateral information

txBodyContentToTxBody :: MonadBlockChainBalancing m => TxBodyContent BuildTx ConwayEra -> TxSkel -> m (TxBody ConwayEra) Source #

Generates a transaction body from a body content

txSkelToTxBodyContent Source #

Arguments

:: MonadBlockChainBalancing m 
=> TxSkel

The skeleton from which the body is created

-> Integer

The fee to set in the body

-> Maybe (Set TxOutRef, Wallet)

The collaterals to set in the body

-> m (TxBodyContent BuildTx ConwayEra)

Returns a Cardano body content

Generates a body content from a skeleton