| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DMQ.Protocol.LocalMsgSubmission.Type
Contents
Description
This module provides the type of LocalMsgProtocol via LocalTxSubmission
Synopsis
- type LocalMsgSubmission sig = LocalTxSubmission sig SigMempoolFail
- data SigMempoolFail
- module Network.TypedProtocol.Core
- data family Message ps (st :: ps) (st' :: ps)
- data family Message ps (st :: ps) (st' :: ps)
- data LocalTxSubmission tx reject where
- StIdle :: forall tx reject. LocalTxSubmission tx reject
- StBusy :: forall tx reject. LocalTxSubmission tx reject
- StDone :: forall tx reject. LocalTxSubmission tx reject
- data SingLocalTxSubmission (k :: LocalTxSubmission tx rejct) where
- SingIdle :: forall {tx} {rejct}. SingLocalTxSubmission ('StIdle :: LocalTxSubmission tx rejct)
- SingBusy :: forall {tx} {rejct}. SingLocalTxSubmission ('StBusy :: LocalTxSubmission tx rejct)
- SingDone :: forall {tx} {rejct}. SingLocalTxSubmission ('StDone :: LocalTxSubmission tx rejct)
- data SubmitResult reason
- = SubmitSuccess
- | SubmitFail reason
Documentation
type LocalMsgSubmission sig = LocalTxSubmission sig SigMempoolFail Source #
The LocalMsgSubmission protocol is an alias for the LocalTxSubmission
data SigMempoolFail Source #
The type of failures when adding to the mempool
Constructors
| SigInvalid Text | |
| SigDuplicate | |
| SigExpired | |
| SigResultOther Text |
Instances
| ToJSON SigMempoolFail Source # | |
Defined in DMQ.Protocol.LocalMsgSubmission.Type Methods toJSON :: SigMempoolFail -> Value # toEncoding :: SigMempoolFail -> Encoding # toJSONList :: [SigMempoolFail] -> Value # toEncodingList :: [SigMempoolFail] -> Encoding # omitField :: SigMempoolFail -> Bool # | |
| Show SigMempoolFail Source # | |
Defined in DMQ.Protocol.LocalMsgSubmission.Type Methods showsPrec :: Int -> SigMempoolFail -> ShowS # show :: SigMempoolFail -> String # showList :: [SigMempoolFail] -> ShowS # | |
| Eq SigMempoolFail Source # | |
Defined in DMQ.Protocol.LocalMsgSubmission.Type Methods (==) :: SigMempoolFail -> SigMempoolFail -> Bool # (/=) :: SigMempoolFail -> SigMempoolFail -> Bool # | |
| ShowProxy SigMempoolFail Source # | |
Defined in DMQ.Protocol.LocalMsgSubmission.Type Methods showProxy :: Proxy SigMempoolFail -> String | |
re-exports
module Network.TypedProtocol.Core
data family Message ps (st :: ps) (st' :: ps) #
The messages for this protocol. It is expected to be a GADT that is
indexed by the from and to protocol states. That is the protocol state
the message transitions from, and the protocol state it transitions into.
These are the edges of the protocol state transition system.
Instances
| (NFData vNumber, NFData vParams) => NFData (Message (Handshake vNumber vParams) from to) | |
Defined in Ouroboros.Network.Protocol.Handshake.Type | |
| (NFData block, NFData point) => NFData (Message (BlockFetch block point) from to) | |
Defined in Ouroboros.Network.Protocol.BlockFetch.Type | |
| (NFData header, NFData point, NFData tip) => NFData (Message (ChainSync header point tip) from to) | |
Defined in Ouroboros.Network.Protocol.ChainSync.Type | |
| NFData (Message KeepAlive from to) | |
Defined in Ouroboros.Network.Protocol.KeepAlive.Type | |
| (forall result. NFData (query result), NFData point) => NFData (Message (LocalStateQuery block point query) from to) | |
| (NFData txid, NFData tx, NFData slot) => NFData (Message (LocalTxMonitor txid tx slot) from to) | |
| (NFData tx, NFData reject) => NFData (Message (LocalTxSubmission tx reject) from to) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods rnf :: Message (LocalTxSubmission tx reject) from to -> () # | |
| NFData peerAddress => NFData (Message (PeerSharing peerAddress) from to) | |
Defined in Ouroboros.Network.Protocol.PeerSharing.Type | |
| (NFData txid, NFData tx) => NFData (Message (TxSubmission2 txid tx) from to) | |
| Show msg => Show (Message (LocalMsgNotification msg) from to) Source # | |
Defined in DMQ.Protocol.LocalMsgNotification.Type | |
| (Show vNumber, Show vParams) => Show (Message (Handshake vNumber vParams) from to) | |
| (Show block, Show point) => Show (Message (BlockFetch block point) from to) | |
| (Show header, Show point, Show tip) => Show (Message (ChainSync header point tip) from to) | |
| Show (Message KeepAlive from to) | |
| (Show txid, Show tx, Show slot) => Show (Message (LocalTxMonitor txid tx slot) from to) | |
| (Show tx, Show reject) => Show (Message (LocalTxSubmission tx reject) from to) | |
| Show peer => Show (Message (PeerSharing peer) from to) | |
| (Show txid, Show tx) => Show (Message (TxSubmission2 txid tx) from to) | |
| Eq msg => Eq (Message (LocalMsgNotification msg) from to) Source # | |
Defined in DMQ.Protocol.LocalMsgNotification.Type Methods (==) :: Message (LocalMsgNotification msg) from to -> Message (LocalMsgNotification msg) from to -> Bool # (/=) :: Message (LocalMsgNotification msg) from to -> Message (LocalMsgNotification msg) from to -> Bool # | |
| (Eq tx, Eq reject) => Eq (Message (LocalTxSubmission tx reject) from to) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods (==) :: Message (LocalTxSubmission tx reject) from to -> Message (LocalTxSubmission tx reject) from to -> Bool # (/=) :: Message (LocalTxSubmission tx reject) from to -> Message (LocalTxSubmission tx reject) from to -> Bool # | |
| (Eq txid, Eq tx) => Eq (Message (TxSubmission2 txid tx) from to) | |
| data Message KeepAlive (from :: KeepAlive) (to :: KeepAlive) | |
Defined in Ouroboros.Network.Protocol.KeepAlive.Type data Message KeepAlive (from :: KeepAlive) (to :: KeepAlive) where
| |
| data Message (LocalMsgNotification msg) (from :: LocalMsgNotification msg) (to :: LocalMsgNotification msg) Source # | |
Defined in DMQ.Protocol.LocalMsgNotification.Type data Message (LocalMsgNotification msg) (from :: LocalMsgNotification msg) (to :: LocalMsgNotification msg) where
| |
| data Message (PeerSharing peerAddress) (from :: PeerSharing peerAddress) (to :: PeerSharing peerAddress) | |
Defined in Ouroboros.Network.Protocol.PeerSharing.Type data Message (PeerSharing peerAddress) (from :: PeerSharing peerAddress) (to :: PeerSharing peerAddress) where
| |
| data Message (BlockFetch block point) (from :: BlockFetch block point) (to :: BlockFetch block point) | |
Defined in Ouroboros.Network.Protocol.BlockFetch.Type data Message (BlockFetch block point) (from :: BlockFetch block point) (to :: BlockFetch block point) where
| |
| data Message (LocalTxSubmission tx reject) (from :: LocalTxSubmission tx reject) (to :: LocalTxSubmission tx reject) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type data Message (LocalTxSubmission tx reject) (from :: LocalTxSubmission tx reject) (to :: LocalTxSubmission tx reject) where
| |
| data Message (TxSubmission2 txid tx) (from :: TxSubmission2 txid tx) (to :: TxSubmission2 txid tx) | |
Defined in Ouroboros.Network.Protocol.TxSubmission2.Type data Message (TxSubmission2 txid tx) (from :: TxSubmission2 txid tx) (to :: TxSubmission2 txid tx) where
| |
| data Message (ChainSync header point tip) (from :: ChainSync header point tip) (to :: ChainSync header point tip) | |
Defined in Ouroboros.Network.Protocol.ChainSync.Type data Message (ChainSync header point tip) (from :: ChainSync header point tip) (to :: ChainSync header point tip) where
| |
| data Message (LocalStateQuery block point query) (from :: LocalStateQuery block point query) (to :: LocalStateQuery block point query) | |
Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type data Message (LocalStateQuery block point query) (from :: LocalStateQuery block point query) (to :: LocalStateQuery block point query) where
| |
| data Message (LocalTxMonitor txid tx slot) (from :: LocalTxMonitor txid tx slot) (to :: LocalTxMonitor txid tx slot) | |
Defined in Ouroboros.Network.Protocol.LocalTxMonitor.Type data Message (LocalTxMonitor txid tx slot) (from :: LocalTxMonitor txid tx slot) (to :: LocalTxMonitor txid tx slot) where
| |
| data Message (Handshake vNumber vParams) (from :: Handshake vNumber vParams) (to :: Handshake vNumber vParams) | |
Defined in Ouroboros.Network.Protocol.Handshake.Type data Message (Handshake vNumber vParams) (from :: Handshake vNumber vParams) (to :: Handshake vNumber vParams) where
| |
data family Message ps (st :: ps) (st' :: ps) #
The messages for this protocol. It is expected to be a GADT that is
indexed by the from and to protocol states. That is the protocol state
the message transitions from, and the protocol state it transitions into.
These are the edges of the protocol state transition system.
Instances
| (NFData vNumber, NFData vParams) => NFData (Message (Handshake vNumber vParams) from to) | |
Defined in Ouroboros.Network.Protocol.Handshake.Type | |
| (NFData block, NFData point) => NFData (Message (BlockFetch block point) from to) | |
Defined in Ouroboros.Network.Protocol.BlockFetch.Type | |
| (NFData header, NFData point, NFData tip) => NFData (Message (ChainSync header point tip) from to) | |
Defined in Ouroboros.Network.Protocol.ChainSync.Type | |
| NFData (Message KeepAlive from to) | |
Defined in Ouroboros.Network.Protocol.KeepAlive.Type | |
| (forall result. NFData (query result), NFData point) => NFData (Message (LocalStateQuery block point query) from to) | |
| (NFData txid, NFData tx, NFData slot) => NFData (Message (LocalTxMonitor txid tx slot) from to) | |
| (NFData tx, NFData reject) => NFData (Message (LocalTxSubmission tx reject) from to) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods rnf :: Message (LocalTxSubmission tx reject) from to -> () # | |
| NFData peerAddress => NFData (Message (PeerSharing peerAddress) from to) | |
Defined in Ouroboros.Network.Protocol.PeerSharing.Type | |
| (NFData txid, NFData tx) => NFData (Message (TxSubmission2 txid tx) from to) | |
| Show msg => Show (Message (LocalMsgNotification msg) from to) Source # | |
Defined in DMQ.Protocol.LocalMsgNotification.Type | |
| (Show vNumber, Show vParams) => Show (Message (Handshake vNumber vParams) from to) | |
| (Show block, Show point) => Show (Message (BlockFetch block point) from to) | |
| (Show header, Show point, Show tip) => Show (Message (ChainSync header point tip) from to) | |
| Show (Message KeepAlive from to) | |
| (Show txid, Show tx, Show slot) => Show (Message (LocalTxMonitor txid tx slot) from to) | |
| (Show tx, Show reject) => Show (Message (LocalTxSubmission tx reject) from to) | |
| Show peer => Show (Message (PeerSharing peer) from to) | |
| (Show txid, Show tx) => Show (Message (TxSubmission2 txid tx) from to) | |
| Eq msg => Eq (Message (LocalMsgNotification msg) from to) Source # | |
Defined in DMQ.Protocol.LocalMsgNotification.Type Methods (==) :: Message (LocalMsgNotification msg) from to -> Message (LocalMsgNotification msg) from to -> Bool # (/=) :: Message (LocalMsgNotification msg) from to -> Message (LocalMsgNotification msg) from to -> Bool # | |
| (Eq tx, Eq reject) => Eq (Message (LocalTxSubmission tx reject) from to) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods (==) :: Message (LocalTxSubmission tx reject) from to -> Message (LocalTxSubmission tx reject) from to -> Bool # (/=) :: Message (LocalTxSubmission tx reject) from to -> Message (LocalTxSubmission tx reject) from to -> Bool # | |
| (Eq txid, Eq tx) => Eq (Message (TxSubmission2 txid tx) from to) | |
| data Message KeepAlive (from :: KeepAlive) (to :: KeepAlive) | |
Defined in Ouroboros.Network.Protocol.KeepAlive.Type data Message KeepAlive (from :: KeepAlive) (to :: KeepAlive) where
| |
| data Message (LocalMsgNotification msg) (from :: LocalMsgNotification msg) (to :: LocalMsgNotification msg) Source # | |
Defined in DMQ.Protocol.LocalMsgNotification.Type data Message (LocalMsgNotification msg) (from :: LocalMsgNotification msg) (to :: LocalMsgNotification msg) where
| |
| data Message (PeerSharing peerAddress) (from :: PeerSharing peerAddress) (to :: PeerSharing peerAddress) | |
Defined in Ouroboros.Network.Protocol.PeerSharing.Type data Message (PeerSharing peerAddress) (from :: PeerSharing peerAddress) (to :: PeerSharing peerAddress) where
| |
| data Message (BlockFetch block point) (from :: BlockFetch block point) (to :: BlockFetch block point) | |
Defined in Ouroboros.Network.Protocol.BlockFetch.Type data Message (BlockFetch block point) (from :: BlockFetch block point) (to :: BlockFetch block point) where
| |
| data Message (LocalTxSubmission tx reject) (from :: LocalTxSubmission tx reject) (to :: LocalTxSubmission tx reject) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type data Message (LocalTxSubmission tx reject) (from :: LocalTxSubmission tx reject) (to :: LocalTxSubmission tx reject) where
| |
| data Message (TxSubmission2 txid tx) (from :: TxSubmission2 txid tx) (to :: TxSubmission2 txid tx) | |
Defined in Ouroboros.Network.Protocol.TxSubmission2.Type data Message (TxSubmission2 txid tx) (from :: TxSubmission2 txid tx) (to :: TxSubmission2 txid tx) where
| |
| data Message (ChainSync header point tip) (from :: ChainSync header point tip) (to :: ChainSync header point tip) | |
Defined in Ouroboros.Network.Protocol.ChainSync.Type data Message (ChainSync header point tip) (from :: ChainSync header point tip) (to :: ChainSync header point tip) where
| |
| data Message (LocalStateQuery block point query) (from :: LocalStateQuery block point query) (to :: LocalStateQuery block point query) | |
Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type data Message (LocalStateQuery block point query) (from :: LocalStateQuery block point query) (to :: LocalStateQuery block point query) where
| |
| data Message (LocalTxMonitor txid tx slot) (from :: LocalTxMonitor txid tx slot) (to :: LocalTxMonitor txid tx slot) | |
Defined in Ouroboros.Network.Protocol.LocalTxMonitor.Type data Message (LocalTxMonitor txid tx slot) (from :: LocalTxMonitor txid tx slot) (to :: LocalTxMonitor txid tx slot) where
| |
| data Message (Handshake vNumber vParams) (from :: Handshake vNumber vParams) (to :: Handshake vNumber vParams) | |
Defined in Ouroboros.Network.Protocol.Handshake.Type data Message (Handshake vNumber vParams) (from :: Handshake vNumber vParams) (to :: Handshake vNumber vParams) where
| |
data LocalTxSubmission tx reject where #
Constructors
| StIdle :: forall tx reject. LocalTxSubmission tx reject | |
| StBusy :: forall tx reject. LocalTxSubmission tx reject | |
| StDone :: forall tx reject. LocalTxSubmission tx reject |
Instances
data SingLocalTxSubmission (k :: LocalTxSubmission tx rejct) where #
Constructors
| SingIdle :: forall {tx} {rejct}. SingLocalTxSubmission ('StIdle :: LocalTxSubmission tx rejct) | |
| SingBusy :: forall {tx} {rejct}. SingLocalTxSubmission ('StBusy :: LocalTxSubmission tx rejct) | |
| SingDone :: forall {tx} {rejct}. SingLocalTxSubmission ('StDone :: LocalTxSubmission tx rejct) |
Instances
| Show (SingLocalTxSubmission k) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods showsPrec :: Int -> SingLocalTxSubmission k -> ShowS # show :: SingLocalTxSubmission k -> String # showList :: [SingLocalTxSubmission k] -> ShowS # | |
data SubmitResult reason #
Constructors
| SubmitSuccess | |
| SubmitFail reason |
Instances
| Functor SubmitResult | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods fmap :: (a -> b) -> SubmitResult a -> SubmitResult b # (<$) :: a -> SubmitResult b -> SubmitResult a # | |
| Eq reason => Eq (SubmitResult reason) | |
Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type Methods (==) :: SubmitResult reason -> SubmitResult reason -> Bool # (/=) :: SubmitResult reason -> SubmitResult reason -> Bool # | |