module Hydra.Tx.BlueprintTx where
import Hydra.Tx.IsTx (IsTx, UTxOType, txSpendingUTxO)
data CommitBlueprintTx tx = CommitBlueprintTx {forall tx. CommitBlueprintTx tx -> UTxOType tx
lookupUTxO :: UTxOType tx, forall tx. CommitBlueprintTx tx -> tx
blueprintTx :: tx}
mkSimpleBlueprintTx :: IsTx tx => UTxOType tx -> CommitBlueprintTx tx
mkSimpleBlueprintTx :: forall tx. IsTx tx => UTxOType tx -> CommitBlueprintTx tx
mkSimpleBlueprintTx UTxOType tx
utxo =
CommitBlueprintTx
{ lookupUTxO :: UTxOType tx
lookupUTxO = UTxOType tx
utxo
, $sel:blueprintTx:CommitBlueprintTx :: tx
blueprintTx = UTxOType tx -> tx
forall tx. IsTx tx => UTxOType tx -> tx
txSpendingUTxO UTxOType tx
utxo
}