| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Ouroboros.Network.TxSubmission.Types
Contents
Synopsis
- data Tx txid = Tx {
- getTxId :: !txid
- getTxSize :: !SizeInBytes
- getTxAdvSize :: !SizeInBytes
- getTxValid :: !Bool
- getTxParent :: !(Maybe txid)
- type TxId = Int
- data Mempool (m :: Type -> Type) txid tx
- emptyMempool :: MonadSTM m => m (Mempool m txid (Tx txid))
- newMempool :: (MonadSTM m, Ord txid) => [Tx txid] -> m (Mempool m txid (Tx txid))
- readMempool :: MonadSTM m => Mempool m txid (Tx txid) -> m [Tx txid]
- getMempoolReader :: forall txid (m :: Type -> Type). (MonadSTM m, Ord txid, Show txid) => Mempool m txid (Tx txid) -> TxSubmissionMempoolReader txid (Tx txid) Integer m
- getMempoolWriter :: forall txid (m :: Type -> Type). (MonadSTM m, MonadTime m, MonadThrow m, Ord txid, Eq txid, Typeable txid, Show txid) => TVar m [txid] -> Mempool m txid (Tx txid) -> TxSubmissionMempoolWriter txid (Tx txid) Integer m InvalidTx
- data InvalidTx
- maxTxSize :: SizeInBytes
- newtype LargeNonEmptyList a = LargeNonEmpty {
- getLargeNonEmpty :: [a]
- data SimResults a
- = SimReturn a [String]
- | SimException SomeException [String]
- | SimDeadLock [String]
- data WithThreadAndTime (m :: Type -> Type) a = WithThreadAndTime {
- wtatOccuredAt :: !Time
- wtatWithinThread :: !(ThreadId m)
- 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). (MonadFork m, MonadDelay m, MonadSay m, MonadMonotonicTime m, Show a) => Tracer m a
Documentation
Constructors
| Tx | |
Fields
| |
Instances
getMempoolReader :: forall txid (m :: Type -> Type). (MonadSTM m, Ord txid, Show txid) => Mempool m txid (Tx txid) -> TxSubmissionMempoolReader txid (Tx txid) Integer m Source #
getMempoolWriter :: forall txid (m :: Type -> Type). (MonadSTM m, MonadTime m, MonadThrow m, Ord txid, Eq txid, Typeable txid, Show txid) => TVar m [txid] -> Mempool m txid (Tx txid) -> TxSubmissionMempoolWriter txid (Tx txid) Integer m InvalidTx Source #
Constructors
| InvalidTx | |
| DuplicateTx | |
| MissingParent |
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 (m :: Type -> Type) a #
Constructors
| WithThreadAndTime | |
Fields
| |
Instances
| (Show (ThreadId m), Show a) => Show (WithThreadAndTime m a) | |
Defined in Test.Ouroboros.Network.Utils Methods showsPrec :: Int -> WithThreadAndTime m a -> ShowS # show :: WithThreadAndTime m a -> String # showList :: [WithThreadAndTime m 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). (MonadFork m, MonadDelay m, MonadSay m, MonadMonotonicTime m, Show a) => Tracer m a Source #
Orphan instances
| HasRawTxId Int Source # | |||||
Associated Types
Methods getRawTxId :: Int -> RawTxId Int | |||||