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. This transaction body accounts for the actual execution units of each of the scripts involved in the skeleton.

txBodyContentToTxBody :: MonadBlockChainBalancing m => TxBodyContent BuildTx ConwayEra -> 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

txSkelToIndex :: MonadBlockChainBalancing m => TxSkel -> Maybe (Set TxOutRef, Wallet) -> m (UTxO ConwayEra) Source #

Generates an index with utxos known to a TxSkel