dmq-node
Safe HaskellNone
LanguageHaskell2010

DMQ.NodeToClient

Synopsis

Documentation

data Protocols (appType :: Mode) ntcAddr bytes (m :: Type -> Type) a b Source #

Constructors

Protocols 

Fields

type HandshakeTr ntcAddr = WithBearer (ConnectionId ntcAddr) (TraceSendRecv (Handshake NodeToClientVersion Term)) Source #

data Apps ntcAddr (m :: Type -> Type) a Source #

dmqCodecs :: forall (m :: Type -> Type) crypto. (MonadST m, Crypto crypto) => (SigMempoolFail -> Encoding) -> (forall s. Decoder s SigMempoolFail) -> Codecs crypto m Source #

ntcApps :: forall crypto idx ntcAddr (m :: Type -> Type). (MonadThrow m, MonadThread m, MonadSTM m, Crypto crypto, Typeable crypto, ToJSON ntcAddr) => (forall ev. ToJSON ev => Tracer m (WithEventType ev)) -> Configuration -> TxSubmissionMempoolReader SigId (Sig crypto) idx m -> TxSubmissionMempoolWriter SigId (Sig crypto) idx m -> Word16 -> Codecs crypto m -> Apps ntcAddr m () Source #

Construct applications for the node-to-client protocols

ntcHandshakeArguments :: forall (m :: Type -> Type) ntcAddr. MonadST m => Tracer m (HandshakeTr ntcAddr) -> HandshakeArguments (ConnectionId ntcAddr) NodeToClientVersion NodeToClientVersionData m Source #

responders :: forall ntcAddr (m :: Type -> Type) a. Apps ntcAddr m a -> NodeToClientVersion -> NodeToClientVersionData -> OuroborosApplicationWithMinimalCtx 'ResponderMode ntcAddr ByteString m Void a Source #