ouroboros-network:protocols
Safe HaskellNone
LanguageHaskell2010

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 tx

-> (forall s. Decoder s (ByteString -> tx))

decode tx

-> (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 #

data WithBytes a Source #

Constructors

WithBytes 

Fields

Instances

Instances details
Show a => Show (WithBytes a) Source # 
Instance details

Defined in Ouroboros.Network.Protocol.Codec.Utils

Eq a => Eq (WithBytes a) Source # 
Instance details

Defined in Ouroboros.Network.Protocol.Codec.Utils

Methods

(==) :: WithBytes a -> WithBytes a -> Bool #

(/=) :: WithBytes a -> WithBytes a -> Bool #