ouroboros-network-0.1.0.0: A networking layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.LocalTxMonitor.Codec

Synopsis

Documentation

codecLocalTxMonitor ∷ ∀ txid tx slot m ptcl. (MonadST m, ptcl ~ LocalTxMonitor txid tx slot) ⇒ (txid → Encoding) → (∀ s. Decoder s txid) → (tx → Encoding) → (∀ s. Decoder s tx) → (slot → Encoding) → (∀ s. Decoder s slot) → Codec (LocalTxMonitor txid tx slot) DeserialiseFailure m ByteString Source #

codecLocalTxMonitorId ∷ ∀ txid tx slot m ptcl. (Monad m, ptcl ~ LocalTxMonitor txid tx slot) ⇒ Codec ptcl CodecFailure m (AnyMessage ptcl) Source #

An identity Codec for the LocalTxMonitor protocol. It does not do any serialisation. It keeps the typed messages, wrapped in AnyMessage.