ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.LocalTxSubmission.Examples

Synopsis

Documentation

localTxSubmissionClient :: forall tx reject (m :: Type -> Type). Applicative m => [tx] -> LocalTxSubmissionClient tx reject m [(tx, SubmitResult reject)] Source #

An example LocalTxSubmissionClient which submits a fixed list of transactions. The result is those transactions annotated with whether they were accepted or rejected.

localTxSubmissionServer :: forall tx reject (m :: Type -> Type). Applicative m => (tx -> SubmitResult reject) -> LocalTxSubmissionServer tx reject m [(tx, SubmitResult reject)] Source #