Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Ouroboros.Network.TxSubmission.Types
Synopsis
- data Tx txid = Tx {
- getTxId :: !txid
- getTxSize :: !SizeInBytes
- getTxAdvSize :: !SizeInBytes
- getTxValid :: !Bool
- type TxId = Int
- data Mempool (m :: Type -> Type) tx
- emptyMempool :: MonadSTM m => m (Mempool m (Tx txid))
- newMempool :: MonadSTM m => [Tx txid] -> m (Mempool m (Tx txid))
- readMempool :: MonadSTM m => Mempool m (Tx txid) -> m [Tx txid]
- getMempoolReader :: forall txid (m :: Type -> Type). (MonadSTM m, Eq txid, Show txid) => Mempool m (Tx txid) -> TxSubmissionMempoolReader txid (Tx txid) Int m
- getMempoolWriter :: forall txid (m :: Type -> Type). (MonadSTM m, Ord txid, Eq txid) => Mempool m (Tx txid) -> TxSubmissionMempoolWriter txid (Tx txid) Int m
- maxTxSize :: SizeInBytes
- newtype LargeNonEmptyList a = LargeNonEmpty {
- getLargeNonEmpty :: [a]
- data SimResults a
- = SimReturn a [String]
- | SimException SomeException [String]
- | SimDeadLock [String]
- data WithThreadAndTime a = WithThreadAndTime {
- wtatOccuredAt :: !Time
- wtatWithinThread :: !String
- wtatEvent :: !a
- txSubmissionCodec2 :: forall (m :: Type -> Type). MonadST m => Codec (TxSubmission2 Int (Tx Int)) DeserialiseFailure m ByteString
- evaluateTrace :: SimTrace a -> IO (SimResults a)
- verboseTracer :: forall a (m :: Type -> Type). (MonadAsync m, MonadDelay m, MonadSay m, MonadMonotonicTime m, Show a) => Tracer m a
- debugTracer :: Show a => Tracer (IOSim s) a
Documentation
Constructors
Tx | |
Fields
|
Instances
getMempoolReader :: forall txid (m :: Type -> Type). (MonadSTM m, Eq txid, Show txid) => Mempool m (Tx txid) -> TxSubmissionMempoolReader txid (Tx txid) Int m Source #
getMempoolWriter :: forall txid (m :: Type -> Type). (MonadSTM m, Ord txid, Eq txid) => Mempool m (Tx txid) -> TxSubmissionMempoolWriter txid (Tx txid) Int m Source #
newtype LargeNonEmptyList a Source #
Constructors
LargeNonEmpty | |
Fields
|
Instances
Arbitrary a => Arbitrary (LargeNonEmptyList a) Source # | |
Defined in Test.Ouroboros.Network.TxSubmission.Types Methods arbitrary :: Gen (LargeNonEmptyList a) # shrink :: LargeNonEmptyList a -> [LargeNonEmptyList a] # | |
Show a => Show (LargeNonEmptyList a) Source # | |
Defined in Test.Ouroboros.Network.TxSubmission.Types Methods showsPrec :: Int -> LargeNonEmptyList a -> ShowS # show :: LargeNonEmptyList a -> String # showList :: [LargeNonEmptyList a] -> ShowS # |
data SimResults a Source #
Constructors
SimReturn a [String] | |
SimException SomeException [String] | |
SimDeadLock [String] |
data WithThreadAndTime a Source #
Constructors
WithThreadAndTime | |
Fields
|
Instances
Show a => Show (WithThreadAndTime a) Source # | |
Defined in Test.Ouroboros.Network.TxSubmission.Types Methods showsPrec :: Int -> WithThreadAndTime a -> ShowS # show :: WithThreadAndTime a -> String # showList :: [WithThreadAndTime a] -> ShowS # |
txSubmissionCodec2 :: forall (m :: Type -> Type). MonadST m => Codec (TxSubmission2 Int (Tx Int)) DeserialiseFailure m ByteString Source #
evaluateTrace :: SimTrace a -> IO (SimResults a) Source #
verboseTracer :: forall a (m :: Type -> Type). (MonadAsync m, MonadDelay m, MonadSay m, MonadMonotonicTime m, Show a) => Tracer m a Source #