| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.Protocol.LocalTxSubmission.Codec
Documentation
codecLocalTxSubmission Source #
Arguments
| :: forall tx reject (m :: Type -> Type). MonadST m | |
| => (tx -> Encoding) | encode transaction |
| -> (forall s. Decoder s tx) | decode transaction |
| -> (reject -> Encoding) | |
| -> (forall s. Decoder s reject) | |
| -> Codec (LocalTxSubmission tx reject) DeserialiseFailure m ByteString |
anncodecLocalTxSubmission Source #
Arguments
| :: forall tx reject (m :: Type -> Type). MonadST m | |
| => (forall s. Decoder s (ByteString -> tx)) | decode transaction |
| -> (reject -> Encoding) | |
| -> (forall s. Decoder s reject) | |
| -> AnnotatedCodec (LocalTxSubmission (WithBytes tx) reject) DeserialiseFailure m ByteString |
anncodecLocalTxSubmission' Source #
Arguments
| :: forall tx reject txWithBytes (m :: Type -> Type). MonadST m | |
| => (ByteString -> tx -> txWithBytes) | |
| -> (txWithBytes -> Encoding) | encode |
| -> (forall s. Decoder s (ByteString -> tx)) | decode |
| -> (reject -> Encoding) | encode rejection reason |
| -> (forall s. Decoder s reject) | decode rejection reason |
| -> AnnotatedCodec (LocalTxSubmission txWithBytes reject) DeserialiseFailure m ByteString |
codecLocalTxSubmissionId :: forall tx reject (m :: Type -> Type). Monad m => Codec (LocalTxSubmission tx reject) CodecFailure m (AnyMessage (LocalTxSubmission tx reject)) Source #