| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.Protocol.TxSubmission2.Codec
Synopsis
- codecTxSubmission2 :: forall txid tx (m :: Type -> Type). MonadST m => (txid -> Encoding) -> (forall s. Decoder s txid) -> (tx -> Encoding) -> (forall s. Decoder s tx) -> Codec (TxSubmission2 txid tx) DeserialiseFailure m ByteString
- anncodecTxSubmission2 :: forall txid tx (m :: Type -> Type). MonadST m => (txid -> Encoding) -> (forall s. Decoder s txid) -> (forall s. Decoder s (ByteString -> tx)) -> AnnotatedCodec (TxSubmission2 txid (WithBytes tx)) DeserialiseFailure m ByteString
- anncodecTxSubmission2' :: forall txid tx txWithBytes (m :: Type -> Type). MonadST m => (ByteString -> tx -> txWithBytes) -> (txid -> Encoding) -> (forall s. Decoder s txid) -> (txWithBytes -> Encoding) -> (forall s. Decoder s (ByteString -> tx)) -> AnnotatedCodec (TxSubmission2 txid txWithBytes) DeserialiseFailure m ByteString
- codecTxSubmission2Id :: forall txid tx (m :: Type -> Type). Monad m => Codec (TxSubmission2 txid tx) CodecFailure m (AnyMessage (TxSubmission2 txid tx))
- byteLimitsTxSubmission2 :: (bytes -> Word) -> ProtocolSizeLimits (TxSubmission2 txid tx) bytes
- timeLimitsTxSubmission2 :: ProtocolTimeLimits (TxSubmission2 txid tx)
- data WithBytes a = WithBytes {
- cborBytes :: ByteString
- cborPayload :: a
Documentation
Arguments
| :: forall txid tx (m :: Type -> Type). MonadST m | |
| => (txid -> Encoding) | encode |
| -> (forall s. Decoder s txid) | decode |
| -> (tx -> Encoding) | encode transaction |
| -> (forall s. Decoder s tx) | decode transaction |
| -> Codec (TxSubmission2 txid tx) DeserialiseFailure m ByteString |
anncodecTxSubmission2 Source #
Arguments
| :: forall txid tx (m :: Type -> Type). MonadST m | |
| => (txid -> Encoding) | encode |
| -> (forall s. Decoder s txid) | decode |
| -> (forall s. Decoder s (ByteString -> tx)) | decode transaction |
| -> AnnotatedCodec (TxSubmission2 txid (WithBytes tx)) DeserialiseFailure m ByteString |
An AnnotatedCodec paired with WithBytes functor.
anncodecTxSubmission2' Source #
Arguments
| :: forall txid tx txWithBytes (m :: Type -> Type). MonadST m | |
| => (ByteString -> tx -> txWithBytes) |
|
| -> (txid -> Encoding) | encode |
| -> (forall s. Decoder s txid) | decode |
| -> (txWithBytes -> Encoding) | encode |
| -> (forall s. Decoder s (ByteString -> tx)) | decode transaction |
| -> AnnotatedCodec (TxSubmission2 txid txWithBytes) DeserialiseFailure m ByteString |
An AnnotatedCodec with a custom txWithBytes wrapper of tx,
e.g. `txWithBytes ~ WithBytes tx` as in anncodecTxSubmission2.
codecTxSubmission2Id :: forall txid tx (m :: Type -> Type). Monad m => Codec (TxSubmission2 txid tx) CodecFailure m (AnyMessage (TxSubmission2 txid tx)) Source #
byteLimitsTxSubmission2 :: (bytes -> Word) -> ProtocolSizeLimits (TxSubmission2 txid tx) bytes Source #
Byte Limits.
timeLimitsTxSubmission2 :: ProtocolTimeLimits (TxSubmission2 txid tx) Source #
TxSubmission2 time limits.
TxSubmission2 state | timeout (s) |
|---|---|
StInit | waitForever |
StIdle | waitForever |
| waitForever |
| shortWait |
StTxs | shortWait |