| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DMQ.NodeToClient
Synopsis
- module DMQ.NodeToClient.Version
- data Protocols (appType :: Mode) ntcAddr bytes (m :: Type -> Type) a b = Protocols {
- msgSubmissionProtocol :: !(RunMiniProtocolWithMinimalCtx appType ntcAddr bytes m a b)
- msgNotificationProtocol :: !(RunMiniProtocolWithMinimalCtx appType ntcAddr bytes m a b)
- type HandshakeTr ntcAddr = WithBearer (ConnectionId ntcAddr) (TraceSendRecv (Handshake NodeToClientVersion Term))
- data Apps ntcAddr (m :: Type -> Type) a
- dmqCodecs :: forall (m :: Type -> Type) crypto. (MonadST m, Crypto crypto) => (SigMempoolFail -> Encoding) -> (forall s. Decoder s SigMempoolFail) -> Codecs crypto m
- 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 ()
- ntcHandshakeArguments :: forall (m :: Type -> Type) ntcAddr. MonadST m => Tracer m (HandshakeTr ntcAddr) -> HandshakeArguments (ConnectionId ntcAddr) NodeToClientVersion NodeToClientVersionData m
- responders :: forall ntcAddr (m :: Type -> Type) a. Apps ntcAddr m a -> NodeToClientVersion -> NodeToClientVersionData -> OuroborosApplicationWithMinimalCtx 'ResponderMode ntcAddr ByteString m Void a
Documentation
module DMQ.NodeToClient.Version
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 #
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 #