plutus-chain-index-core-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.Contract.CardanoAPI

Description

Interface to the transaction types from 'cardano-api'

Synopsis

Documentation

fromCardanoBlock :: BlockInMode CardanoMode -> [ChainIndexTx] Source #

fromCardanoTx :: IsCardanoEra era => EraInMode era CardanoMode -> Tx era -> ChainIndexTx Source #

Convert a Cardano API tx of any given era to a Plutus chain index tx.

setValidity :: Bool -> Tx era -> Tx era Source #

fromCardanoTxOut :: IsCardanoEra era => TxOut CtxTx era -> ChainIndexTxOut Source #