ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Test.Ouroboros.Storage.ChainDB.StateMachine.Utils.RunOnRepl

Description

Collection functions and exported symbols to be able to run a 'quickcheck-state-machine' counterexample using the GHC repl.

To test a counterexample first fire up the repl, and enable the FlexibleContexts and TypeFamilies extensions, and set multi-line input.

cabal new-repl test-storage
import Test.Ouroboros.Storage.ChainDB.StateMachine.Utils.RunOnRepl
:set -XFlexibleContexts -XTypeFamilies +m

The commands that are part of the counterexample are usually several lines long. Thus it is better to create a local definition for them:

cmds = (<PASTE THE COMMANDS OF THE COUNTEREXAMPLE HERE>)

Note the use of parentheses to prevent GHCi from ending the multiline input prematurely (the copied counterexample in this case).

Then, the model and system under tests can be tested for lockstep agreement by running:

quickCheckCmdsLockStep someLoE someClockSkew someChunkInfo counterexample

Where someClockSkew and someChunkInfo are the ones given by the counterexample found by quickcheck-statemachine, and someLoE is LoEEnabled () or LoEDisabled.

Synopsis

Running the counterexamples

Patterns needed to disambiguate the At and Command symbols printed

pattern At ∷ Block SlotNo (HeaderHash blk) → Point blk Source #

pattern Command ∷ ∀ t1 blk1 (m1 ∷ Type → Type) t2 blk2 (m2 ∷ Type → Type). t1 blk1 (IterRef blk1 m1 Symbolic) (FollowerRef blk1 m1 Symbolic) → t2 blk2 (IterRef blk2 m2 Symbolic) (FollowerRef blk2 m2 Symbolic) → [Var] → Command (At t1 blk1 m1) (At t2 blk2 m2) Source #

Re-exports needed for compiling a StateMachine inside the repl.

quickcheck-state-machine re-exports

newtype Commands (cmd ∷ (Type → Type) → Type) (resp ∷ (Type → Type) → Type) #

Constructors

Commands 

Fields

Instances

Instances details
Monoid (Commands cmd resp) # 
Instance details

Defined in Test.StateMachine.Types

Methods

mempty ∷ Commands cmd resp #

mappend ∷ Commands cmd resp → Commands cmd resp → Commands cmd resp #

mconcat ∷ [Commands cmd resp] → Commands cmd resp #

Semigroup (Commands cmd resp) # 
Instance details

Defined in Test.StateMachine.Types

Methods

(<>) ∷ Commands cmd resp → Commands cmd resp → Commands cmd resp #

sconcat ∷ NonEmpty (Commands cmd resp) → Commands cmd resp #

stimes ∷ Integral b ⇒ b → Commands cmd resp → Commands cmd resp #

(Eq (cmd Symbolic), Eq (resp Symbolic)) ⇒ Eq (Commands cmd resp) # 
Instance details

Defined in Test.StateMachine.Types

Methods

(==) ∷ Commands cmd resp → Commands cmd resp → Bool #

(/=) ∷ Commands cmd resp → Commands cmd resp → Bool #

(Read (cmd Symbolic), Read (resp Symbolic)) ⇒ Read (Commands cmd resp) # 
Instance details

Defined in Test.StateMachine.Types

Methods

readsPrec ∷ Int → ReadS (Commands cmd resp) #

readList ∷ ReadS [Commands cmd resp] #

readPrec ∷ ReadPrec (Commands cmd resp) #

readListPrec ∷ ReadPrec [Commands cmd resp] #

(Show (cmd Symbolic), Show (resp Symbolic)) ⇒ Show (Commands cmd resp) # 
Instance details

Defined in Test.StateMachine.Types

Methods

showsPrec ∷ Int → Commands cmd resp → ShowS #

show ∷ Commands cmd resp → String #

showList ∷ [Commands cmd resp] → ShowS #

newtype Reference a (r ∷ Type → Type) #

Constructors

Reference (r a) 

Instances

Instances details
Foldable (Reference a ∷ (Type → Type) → Type) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

foldMap ∷ Monoid m ⇒ (∀ x. p x → m) → Reference a p → m

Functor (Reference a ∷ (Type → Type) → Type) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

fmap ∷ (∀ x. p x → q x) → Reference a p → Reference a q

Traversable (Reference a ∷ (Type → Type) → Type) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

traverse ∷ Applicative f ⇒ (∀ a0. p a0 → f (q a0)) → Reference a p → f (Reference a q)

(Eq a, Eq1 r) ⇒ Eq (Reference a r) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

(==) ∷ Reference a r → Reference a r → Bool #

(/=) ∷ Reference a r → Reference a r → Bool #

(Ord a, Ord1 r) ⇒ Ord (Reference a r) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

compare ∷ Reference a r → Reference a r → Ordering #

(<) ∷ Reference a r → Reference a r → Bool #

(<=) ∷ Reference a r → Reference a r → Bool #

(>) ∷ Reference a r → Reference a r → Bool #

(>=) ∷ Reference a r → Reference a r → Bool #

max ∷ Reference a r → Reference a r → Reference a r #

min ∷ Reference a r → Reference a r → Reference a r #

Generic (Reference a r) # 
Instance details

Defined in Test.StateMachine.Types.References

Associated Types

type Rep (Reference a r) 
Instance details

Defined in Test.StateMachine.Types.References

type Rep (Reference a r) = D1 ('MetaData "Reference" "Test.StateMachine.Types.References" "quickcheck-state-machine-0.10.4-l-no-vendored-treediff-2b3645ca8af9a5721f58990f6ed83d16fd65eaa5e0cfbc1a11c1a1848da9f5a8" 'True) (C1 ('MetaCons "Reference" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (r a))))

Methods

from ∷ Reference a r → Rep (Reference a r) x #

to ∷ Rep (Reference a r) x → Reference a r #

Typeable a ⇒ Read (Reference a Symbolic) # 
Instance details

Defined in Test.StateMachine.Types.References

(Show1 r, Show a) ⇒ Show (Reference a r) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

showsPrec ∷ Int → Reference a r → ShowS #

show ∷ Reference a r → String #

showList ∷ [Reference a r] → ShowS #

ToExpr (r k) ⇒ ToExpr (Reference k r) # 
Instance details

Defined in Test.Util.ToExpr

Methods

toExpr ∷ Reference k r → Expr Source #

listToExpr ∷ [Reference k r] → Expr Source #

type Rep (Reference a r) # 
Instance details

Defined in Test.StateMachine.Types.References

type Rep (Reference a r) = D1 ('MetaData "Reference" "Test.StateMachine.Types.References" "quickcheck-state-machine-0.10.4-l-no-vendored-treediff-2b3645ca8af9a5721f58990f6ed83d16fd65eaa5e0cfbc1a11c1a1848da9f5a8" 'True) (C1 ('MetaCons "Reference" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (r a))))

data Symbolic a where #

Constructors

Symbolic ∷ ∀ a. Typeable a ⇒ Var → Symbolic a 

Instances

Instances details
Eq1 Symbolic # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

liftEq ∷ (a → b → Bool) → Symbolic a → Symbolic b → Bool #

Ord1 Symbolic # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

liftCompare ∷ (a → b → Ordering) → Symbolic a → Symbolic b → Ordering #

Show1 Symbolic # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

liftShowsPrec ∷ (Int → a → ShowS) → ([a] → ShowS) → Int → Symbolic a → ShowS #

liftShowList ∷ (Int → a → ShowS) → ([a] → ShowS) → [Symbolic a] → ShowS #

Eq (Symbolic a) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

(==) ∷ Symbolic a → Symbolic a → Bool #

(/=) ∷ Symbolic a → Symbolic a → Bool #

Ord (Symbolic a) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

compare ∷ Symbolic a → Symbolic a → Ordering #

(<) ∷ Symbolic a → Symbolic a → Bool #

(<=) ∷ Symbolic a → Symbolic a → Bool #

(>) ∷ Symbolic a → Symbolic a → Bool #

(>=) ∷ Symbolic a → Symbolic a → Bool #

max ∷ Symbolic a → Symbolic a → Symbolic a #

min ∷ Symbolic a → Symbolic a → Symbolic a #

Typeable a ⇒ Read (Symbolic a) # 
Instance details

Defined in Test.StateMachine.Types.References

Show (Symbolic a) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

showsPrec ∷ Int → Symbolic a → ShowS #

show ∷ Symbolic a → String #

showList ∷ [Symbolic a] → ShowS #

Typeable a ⇒ Read (Reference a Symbolic) # 
Instance details

Defined in Test.StateMachine.Types.References

newtype Var #

Constructors

Var Int 

Instances

Instances details
Eq Var # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

(==) ∷ Var → Var → Bool #

(/=) ∷ Var → Var → Bool #

Ord Var # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

compare ∷ Var → Var → Ordering #

(<) ∷ Var → Var → Bool #

(<=) ∷ Var → Var → Bool #

(>) ∷ Var → Var → Bool #

(>=) ∷ Var → Var → Bool #

max ∷ Var → Var → Var #

min ∷ Var → Var → Var #

Generic Var # 
Instance details

Defined in Test.StateMachine.Types.References

Associated Types

type Rep Var 
Instance details

Defined in Test.StateMachine.Types.References

type Rep Var = D1 ('MetaData "Var" "Test.StateMachine.Types.References" "quickcheck-state-machine-0.10.4-l-no-vendored-treediff-2b3645ca8af9a5721f58990f6ed83d16fd65eaa5e0cfbc1a11c1a1848da9f5a8" 'True) (C1 ('MetaCons "Var" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Methods

from ∷ Var → Rep Var x #

to ∷ Rep Var x → Var #

Read Var # 
Instance details

Defined in Test.StateMachine.Types.References

Show Var # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

showsPrec ∷ Int → Var → ShowS #

show ∷ Var → String #

showList ∷ [Var] → ShowS #

type Rep Var # 
Instance details

Defined in Test.StateMachine.Types.References

type Rep Var = D1 ('MetaData "Var" "Test.StateMachine.Types.References" "quickcheck-state-machine-0.10.4-l-no-vendored-treediff-2b3645ca8af9a5721f58990f6ed83d16fd65eaa5e0cfbc1a11c1a1848da9f5a8" 'True) (C1 ('MetaCons "Var" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

ChainDB.StateMachine re-exports

data Cmd blk it flr Source #

Commands

Constructors

AddBlock blk (Persistent [blk])

Add a block, with (possibly) some gap blocks leading to it. For more information about gap blocks, refer to GenState below.

AddPerasCert (WithArrivalTime (ValidatedPerasCert blk)) (Persistent [blk])

Add a Peras cert for a block, with (possibly) some gap blocks leading to it. For more information about gap blocks, refer to GenState below.

AddPerasVote (WithArrivalTime (ValidatedPerasVote blk)) (Persistent [blk])

Add a Peras vote, with (possibly) some gap blocks leading to the voted block. For more information about gap blocks, refer to GenState below.

GetCurrentChain 
GetTipBlock 
GetTipHeader 
GetTipPoint 
GetBlockComponent (RealPoint blk) 
GetLatestPerasCertOnChainRound 
GetGCedBlockComponent (RealPoint blk)

Only for blocks that may have been garbage collected.

GetMaxSlotNo 
GetIsValid (RealPoint blk) 
Stream (StreamFrom blk) (StreamTo blk) 
UpdateLoE (AnchoredFragment blk)

Update the LoE fragment and run chain selection.

IteratorNext it 
IteratorNextGCed it

Only for blocks that may have been garbage collected.

IteratorClose it 
NewFollower ChainType 
FollowerInstruction flr

followerInstructionBlocking is excluded, as it requires multiple threads. Its code path is pretty much the same as followerInstruction anyway.

FollowerForward flr [Point blk] 
FollowerClose flr 
Close 
Reopen 
PersistBlks

Copy the blocks older than k from the Volatile DB to the Immutable DB.

PersistBlksThenGC

Copy the blocks older than k from the Volatile DB to the Immutable DB and then perform garbage colllection.

The garbage collection procedure of the Chain DB (our system under test) removes the blocks from the volatile DB without caring about whether the removed blocks were persisted. Therefore, this part of the Chain DB logic assumes that copy to the immutable DB took place before garbage collection. The model uses this assumption as well. As a result, we cannot perform garbage collection in isolation, since this will break the model's invariant.

UpdateLedgerSnapshots

Write a new LedgerDB snapshot to disk and remove the oldest ones.

WipeVolatileDB 

Instances

Instances details
Bifoldable (Cmd blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bifold ∷ Monoid m ⇒ Cmd blk m m → m #

bifoldMap ∷ Monoid m ⇒ (a → m) → (b → m) → Cmd blk a b → m #

bifoldr ∷ (a → c → c) → (b → c → c) → c → Cmd blk a b → c #

bifoldl ∷ (c → a → c) → (c → b → c) → c → Cmd blk a b → c #

Bifunctor (Cmd blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bimap ∷ (a → b) → (c → d) → Cmd blk a c → Cmd blk b d #

first ∷ (a → b) → Cmd blk a c → Cmd blk b c #

second ∷ (b → c) → Cmd blk a b → Cmd blk a c #

Bitraversable (Cmd blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bitraverse ∷ Applicative f ⇒ (a → f c) → (b → f d) → Cmd blk a b → f (Cmd blk c d) #

Functor (Cmd blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

fmap ∷ (a → b) → Cmd blk it a → Cmd blk it b #

(<$) ∷ a → Cmd blk it b → Cmd blk it a #

Foldable (Cmd blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

fold ∷ Monoid m ⇒ Cmd blk it m → m #

foldMap ∷ Monoid m ⇒ (a → m) → Cmd blk it a → m #

foldMap' ∷ Monoid m ⇒ (a → m) → Cmd blk it a → m #

foldr ∷ (a → b → b) → b → Cmd blk it a → b #

foldr' ∷ (a → b → b) → b → Cmd blk it a → b #

foldl ∷ (b → a → b) → b → Cmd blk it a → b #

foldl' ∷ (b → a → b) → b → Cmd blk it a → b #

foldr1 ∷ (a → a → a) → Cmd blk it a → a #

foldl1 ∷ (a → a → a) → Cmd blk it a → a #

toList ∷ Cmd blk it a → [a] #

null ∷ Cmd blk it a → Bool #

length ∷ Cmd blk it a → Int #

elem ∷ Eq a ⇒ a → Cmd blk it a → Bool #

maximum ∷ Ord a ⇒ Cmd blk it a → a #

minimum ∷ Ord a ⇒ Cmd blk it a → a #

sum ∷ Num a ⇒ Cmd blk it a → a #

product ∷ Num a ⇒ Cmd blk it a → a #

Traversable (Cmd blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

traverse ∷ Applicative f ⇒ (a → f b) → Cmd blk it a → f (Cmd blk it b) #

sequenceA ∷ Applicative f ⇒ Cmd blk it (f a) → f (Cmd blk it a) #

mapM ∷ Monad m ⇒ (a → m b) → Cmd blk it a → m (Cmd blk it b) #

sequence ∷ Monad m ⇒ Cmd blk it (m a) → m (Cmd blk it a) #

CommandNames (At Cmd blk m ∷ (Type → Type) → Type) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

cmdName ∷ ∀ (r ∷ Type → Type). At Cmd blk m r → String

cmdNames ∷ ∀ (r ∷ Type → Type). Proxy (At Cmd blk m r) → [String]

Generic (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Associated Types

type Code (Cmd blk it flr) 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

type Code (Cmd blk it flr) = GCode (Cmd blk it flr)

Methods

from ∷ Cmd blk it flr → Rep (Cmd blk it flr) Source #

to ∷ Rep (Cmd blk it flr) → Cmd blk it flr Source #

HasDatatypeInfo (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Associated Types

type DatatypeInfoOf (Cmd blk it flr) 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

type DatatypeInfoOf (Cmd blk it flr) = GDatatypeInfoOf (Cmd blk it flr)

Methods

datatypeInfo ∷ proxy (Cmd blk it flr) → DatatypeInfo (Code (Cmd blk it flr)) Source #

Generic (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Associated Types

type Rep (Cmd blk it flr) 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

type Rep (Cmd blk it flr) = D1 ('MetaData "Cmd" "Test.Ouroboros.Storage.ChainDB.StateMachine" "ouroboros-consensus-4.0.0.0-inplace-storage-test" 'False) ((((C1 ('MetaCons "AddBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 blk) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: (C1 ('MetaCons "AddPerasCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasCert blk))) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: C1 ('MetaCons "AddPerasVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasVote blk))) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))))) :+: (C1 ('MetaCons "GetCurrentChain" 'PrefixI 'False) (U1 ∷ Type → Type) :+: (C1 ('MetaCons "GetTipBlock" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "GetTipHeader" 'PrefixI 'False) (U1 ∷ Type → Type)))) :+: ((C1 ('MetaCons "GetTipPoint" 'PrefixI 'False) (U1 ∷ Type → Type) :+: (C1 ('MetaCons "GetBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetLatestPerasCertOnChainRound" 'PrefixI 'False) (U1 ∷ Type → Type))) :+: ((C1 ('MetaCons "GetGCedBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetMaxSlotNo" 'PrefixI 'False) (U1 ∷ Type → Type)) :+: (C1 ('MetaCons "GetIsValid" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "Stream" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamFrom blk)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamTo blk))))))) :+: (((C1 ('MetaCons "UpdateLoE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AnchoredFragment blk))) :+: (C1 ('MetaCons "IteratorNext" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "IteratorNextGCed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)))) :+: ((C1 ('MetaCons "IteratorClose" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "NewFollower" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainType))) :+: (C1 ('MetaCons "FollowerInstruction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: C1 ('MetaCons "FollowerForward" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Point blk]))))) :+: ((C1 ('MetaCons "FollowerClose" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: (C1 ('MetaCons "Close" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Reopen" 'PrefixI 'False) (U1 ∷ Type → Type))) :+: ((C1 ('MetaCons "PersistBlks" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "PersistBlksThenGC" 'PrefixI 'False) (U1 ∷ Type → Type)) :+: (C1 ('MetaCons "UpdateLedgerSnapshots" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "WipeVolatileDB" 'PrefixI 'False) (U1 ∷ Type → Type))))))

Methods

from ∷ Cmd blk it flr → Rep (Cmd blk it flr) x #

to ∷ Rep (Cmd blk it flr) x → Cmd blk it flr #

(StandardHash blk, Show blk, Show it, Show flr, Show (PerasCert blk), Show (PerasVote blk)) ⇒ Show (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

showsPrec ∷ Int → Cmd blk it flr → ShowS #

show ∷ Cmd blk it flr → String #

showList ∷ [Cmd blk it flr] → ShowS #

type Code (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

type Code (Cmd blk it flr) = GCode (Cmd blk it flr)
type DatatypeInfoOf (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

type DatatypeInfoOf (Cmd blk it flr) = GDatatypeInfoOf (Cmd blk it flr)
type Rep (Cmd blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

type Rep (Cmd blk it flr) = D1 ('MetaData "Cmd" "Test.Ouroboros.Storage.ChainDB.StateMachine" "ouroboros-consensus-4.0.0.0-inplace-storage-test" 'False) ((((C1 ('MetaCons "AddBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 blk) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: (C1 ('MetaCons "AddPerasCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasCert blk))) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: C1 ('MetaCons "AddPerasVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasVote blk))) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))))) :+: (C1 ('MetaCons "GetCurrentChain" 'PrefixI 'False) (U1 ∷ Type → Type) :+: (C1 ('MetaCons "GetTipBlock" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "GetTipHeader" 'PrefixI 'False) (U1 ∷ Type → Type)))) :+: ((C1 ('MetaCons "GetTipPoint" 'PrefixI 'False) (U1 ∷ Type → Type) :+: (C1 ('MetaCons "GetBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetLatestPerasCertOnChainRound" 'PrefixI 'False) (U1 ∷ Type → Type))) :+: ((C1 ('MetaCons "GetGCedBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetMaxSlotNo" 'PrefixI 'False) (U1 ∷ Type → Type)) :+: (C1 ('MetaCons "GetIsValid" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "Stream" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamFrom blk)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamTo blk))))))) :+: (((C1 ('MetaCons "UpdateLoE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AnchoredFragment blk))) :+: (C1 ('MetaCons "IteratorNext" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "IteratorNextGCed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)))) :+: ((C1 ('MetaCons "IteratorClose" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "NewFollower" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainType))) :+: (C1 ('MetaCons "FollowerInstruction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: C1 ('MetaCons "FollowerForward" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Point blk]))))) :+: ((C1 ('MetaCons "FollowerClose" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: (C1 ('MetaCons "Close" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Reopen" 'PrefixI 'False) (U1 ∷ Type → Type))) :+: ((C1 ('MetaCons "PersistBlks" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "PersistBlksThenGC" 'PrefixI 'False) (U1 ∷ Type → Type)) :+: (C1 ('MetaCons "UpdateLedgerSnapshots" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "WipeVolatileDB" 'PrefixI 'False) (U1 ∷ Type → Type))))))

newtype Resp blk it flr Source #

Responses are either successful termination or an error.

Constructors

Resp 

Fields

Instances

Instances details
Bifoldable (Resp blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bifold ∷ Monoid m ⇒ Resp blk m m → m #

bifoldMap ∷ Monoid m ⇒ (a → m) → (b → m) → Resp blk a b → m #

bifoldr ∷ (a → c → c) → (b → c → c) → c → Resp blk a b → c #

bifoldl ∷ (c → a → c) → (c → b → c) → c → Resp blk a b → c #

Bifunctor (Resp blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bimap ∷ (a → b) → (c → d) → Resp blk a c → Resp blk b d #

first ∷ (a → b) → Resp blk a c → Resp blk b c #

second ∷ (b → c) → Resp blk a b → Resp blk a c #

Bitraversable (Resp blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bitraverse ∷ Applicative f ⇒ (a → f c) → (b → f d) → Resp blk a b → f (Resp blk c d) #

Functor (Resp blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

fmap ∷ (a → b) → Resp blk it a → Resp blk it b #

(<$) ∷ a → Resp blk it b → Resp blk it a #

Foldable (Resp blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

fold ∷ Monoid m ⇒ Resp blk it m → m #

foldMap ∷ Monoid m ⇒ (a → m) → Resp blk it a → m #

foldMap' ∷ Monoid m ⇒ (a → m) → Resp blk it a → m #

foldr ∷ (a → b → b) → b → Resp blk it a → b #

foldr' ∷ (a → b → b) → b → Resp blk it a → b #

foldl ∷ (b → a → b) → b → Resp blk it a → b #

foldl' ∷ (b → a → b) → b → Resp blk it a → b #

foldr1 ∷ (a → a → a) → Resp blk it a → a #

foldl1 ∷ (a → a → a) → Resp blk it a → a #

toList ∷ Resp blk it a → [a] #

null ∷ Resp blk it a → Bool #

length ∷ Resp blk it a → Int #

elem ∷ Eq a ⇒ a → Resp blk it a → Bool #

maximum ∷ Ord a ⇒ Resp blk it a → a #

minimum ∷ Ord a ⇒ Resp blk it a → a #

sum ∷ Num a ⇒ Resp blk it a → a #

product ∷ Num a ⇒ Resp blk it a → a #

Traversable (Resp blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

traverse ∷ Applicative f ⇒ (a → f b) → Resp blk it a → f (Resp blk it b) #

sequenceA ∷ Applicative f ⇒ Resp blk it (f a) → f (Resp blk it a) #

mapM ∷ Monad m ⇒ (a → m b) → Resp blk it a → m (Resp blk it b) #

sequence ∷ Monad m ⇒ Resp blk it (m a) → m (Resp blk it a) #

(TestConstraints blk, Eq it, Eq flr) ⇒ Eq (Resp blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

(==) ∷ Resp blk it flr → Resp blk it flr → Bool #

(/=) ∷ Resp blk it flr → Resp blk it flr → Bool #

(TestConstraints blk, Show it, Show flr) ⇒ Show (Resp blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

showsPrec ∷ Int → Resp blk it flr → ShowS #

show ∷ Resp blk it flr → String #

showList ∷ [Resp blk it flr] → ShowS #

(TestConstraints blk, Eq1 r) ⇒ Eq (At Resp blk m r) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

(==) ∷ At Resp blk m r → At Resp blk m r → Bool #

(/=) ∷ At Resp blk m r → At Resp blk m r → Bool #

data Success blk it flr Source #

Return type for successful database operations.

Instances

Instances details
Bifoldable (Success blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bifold ∷ Monoid m ⇒ Success blk m m → m #

bifoldMap ∷ Monoid m ⇒ (a → m) → (b → m) → Success blk a b → m #

bifoldr ∷ (a → c → c) → (b → c → c) → c → Success blk a b → c #

bifoldl ∷ (c → a → c) → (c → b → c) → c → Success blk a b → c #

Bifunctor (Success blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bimap ∷ (a → b) → (c → d) → Success blk a c → Success blk b d #

first ∷ (a → b) → Success blk a c → Success blk b c #

second ∷ (b → c) → Success blk a b → Success blk a c #

Bitraversable (Success blk) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

bitraverse ∷ Applicative f ⇒ (a → f c) → (b → f d) → Success blk a b → f (Success blk c d) #

Functor (Success blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

fmap ∷ (a → b) → Success blk it a → Success blk it b #

(<$) ∷ a → Success blk it b → Success blk it a #

Foldable (Success blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

fold ∷ Monoid m ⇒ Success blk it m → m #

foldMap ∷ Monoid m ⇒ (a → m) → Success blk it a → m #

foldMap' ∷ Monoid m ⇒ (a → m) → Success blk it a → m #

foldr ∷ (a → b → b) → b → Success blk it a → b #

foldr' ∷ (a → b → b) → b → Success blk it a → b #

foldl ∷ (b → a → b) → b → Success blk it a → b #

foldl' ∷ (b → a → b) → b → Success blk it a → b #

foldr1 ∷ (a → a → a) → Success blk it a → a #

foldl1 ∷ (a → a → a) → Success blk it a → a #

toList ∷ Success blk it a → [a] #

null ∷ Success blk it a → Bool #

length ∷ Success blk it a → Int #

elem ∷ Eq a ⇒ a → Success blk it a → Bool #

maximum ∷ Ord a ⇒ Success blk it a → a #

minimum ∷ Ord a ⇒ Success blk it a → a #

sum ∷ Num a ⇒ Success blk it a → a #

product ∷ Num a ⇒ Success blk it a → a #

Traversable (Success blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

traverse ∷ Applicative f ⇒ (a → f b) → Success blk it a → f (Success blk it b) #

sequenceA ∷ Applicative f ⇒ Success blk it (f a) → f (Success blk it a) #

mapM ∷ Monad m ⇒ (a → m b) → Success blk it a → m (Success blk it b) #

sequence ∷ Monad m ⇒ Success blk it (m a) → m (Success blk it a) #

(TestConstraints blk, Eq it, Eq flr) ⇒ Eq (Success blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

(==) ∷ Success blk it flr → Success blk it flr → Bool #

(/=) ∷ Success blk it flr → Success blk it flr → Bool #

(TestConstraints blk, Show it, Show flr) ⇒ Show (Success blk it flr) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

showsPrec ∷ Int → Success blk it flr → ShowS #

show ∷ Success blk it flr → String #

showList ∷ [Success blk it flr] → ShowS #

Test packages re-exports

newtype ChainLength #

Constructors

ChainLength Int 

Instances

Instances details
NFData ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ ChainLength → () #

Eq ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Ord ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Enum ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Generic ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep ChainLength 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep ChainLength = D1 ('MetaData "ChainLength" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "ChainLength" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))
Show ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Hashable ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep ChainLength # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep ChainLength = D1 ('MetaData "ChainLength" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "ChainLength" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data EBB #

Constructors

EBB !EpochNo 
RegularBlock 

Instances

Instances details
NFData EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ EBB → () #

Eq EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==) ∷ EBB → EBB → Bool #

(/=) ∷ EBB → EBB → Bool #

Generic EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep EBB 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep EBB = D1 ('MetaData "EBB" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "EBB" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo)) :+: C1 ('MetaCons "RegularBlock" 'PrefixI 'False) (U1 ∷ Type → Type))

Methods

from ∷ EBB → Rep EBB x #

to ∷ Rep EBB x → EBB #

Show EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

showsPrec ∷ Int → EBB → ShowS #

show ∷ EBB → String #

showList ∷ [EBB] → ShowS #

Hashable EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSalt ∷ Int → EBB → Int Source #

hash ∷ EBB → Int Source #

NoThunks EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

toExpr ∷ EBB → Expr Source #

listToExpr ∷ [EBB] → Expr Source #

type Rep EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep EBB = D1 ('MetaData "EBB" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "EBB" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo)) :+: C1 ('MetaCons "RegularBlock" 'PrefixI 'False) (U1 ∷ Type → Type))

data SmallChunkInfo #

Instances

Instances details
Arbitrary SmallChunkInfo # 
Instance details

Defined in Test.Util.ChunkInfo

Show SmallChunkInfo # 
Instance details

Defined in Test.Util.ChunkInfo

data TestBlock #

Constructors

TestBlock 

Instances

Instances details
NFData TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ TestBlock → () #

Eq TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==) ∷ TestBlock → TestBlock → Bool #

(/=) ∷ TestBlock → TestBlock → Bool #

Generic TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBlock = D1 ('MetaData "TestBlock" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlock" 'PrefixI 'True) (S1 ('MetaSel ('Just "testHeader") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestHeader) :*: S1 ('MetaSel ('Just "testBody") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestBody)))

Methods

from ∷ TestBlock → Rep TestBlock x #

to ∷ Rep TestBlock x → TestBlock #

Show TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

showsPrec ∷ Int → TestBlock → ShowS #

show ∷ TestBlock → String #

showList ∷ [TestBlock] → ShowS #

NoThunks TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ConvertRawHash TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type HashSize TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

GetHeader TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

GetPrevHash TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

BlockSupportsDiffusionPipelining TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

BlockSupportsPeras TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

BlockSupportsProtocol TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasHardForkHistory TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type HardForkIndices TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ImmutableEraParams TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

BasicEnvelopeValidation TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasAnnTip TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type TipInfo TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ValidateEnvelope TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type OtherHeaderEnvelopeError TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type OtherHeaderEnvelopeError TestBlock = TestBlockOtherHeaderEnvelopeError
GetBlockKeySets TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

UpdateLedger TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

InspectLedger TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type LedgerWarning TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerUpdate TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

LedgerSupportsProtocol TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

StateSupportsPerasEpochContext TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

SerialiseDiskConstraints TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasBinaryBlockInfo TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Condense TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ModelSupportsBlock TestBlock Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

HasHeader TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasNestedContent f TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ApplyBlock LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

IsLedger LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type LedgerErr LedgerState TestBlock 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerErr LedgerState TestBlock = TestBlockError
CanUpgradeLedgerTables LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasLedgerTables LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

LedgerTablesAreTrivial LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState TestBlock mk → LedgerState TestBlock mk' Source #

SerializeTablesWithHint LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDisk TestBlock () # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

decodeDisk ∷ CodecConfig TestBlock → ∀ s. Decoder s () Source #

EncodeDisk TestBlock TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

EncodeDisk TestBlock () # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ReconstructNestedCtxt Header TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

StandardHash TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

IndexedMemPack LedgerState TestBlock Void # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDisk TestBlock (AnnTip TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

EncodeDisk TestBlock (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

EncodeDisk TestBlock (AnnTip TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDisk TestBlock (LedgerState TestBlock EmptyMK) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDisk TestBlock (ByteString → Either DecoderError TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDisk TestBlock (ByteString → Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

EncodeDisk TestBlock (LedgerState TestBlock EmptyMK) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

SameDepIndex (NestedCtxt_ TestBlock f ∷ Type → Type) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

TrivialDependency (NestedCtxt_ TestBlock f ∷ Type → Type) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Eq (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Generic (BlockConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep (BlockConfig TestBlock) 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (BlockConfig TestBlock) = D1 ('MetaData "BlockConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "testBlockEBBsAllowed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "testBlockNumCoreNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NumCoreNodes)))
Generic (CodecConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep (CodecConfig TestBlock) 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (CodecConfig TestBlock) = D1 ('MetaData "CodecConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockCodecConfig" 'PrefixI 'False) (U1 ∷ Type → Type))
Generic (StorageConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep (StorageConfig TestBlock) 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (StorageConfig TestBlock) = D1 ('MetaData "StorageConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockStorageConfig" 'PrefixI 'False) (U1 ∷ Type → Type))
Show (CodecConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Show (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Show (StorageConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Hashable (MockPerasCert TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks (BlockConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks (CodecConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks (StorageConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

GetTip (LedgerState TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

LedgerStateSupportsPeras (LedgerState TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

CanStowLedgerTables (LedgerState TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

SignedHeader (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasHeader (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise (MockPerasCert TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (CodecConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (HeaderEnvelopeError TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (HeaderError TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (TipInfoIsEBB TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (ExtValidationError TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (Tip TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (DBModel TestBlock) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ImmutableDB.Model

ToExpr (InSlot TestBlock) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ImmutableDB.Model

ToExpr (IteratorModel TestBlock) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ImmutableDB.Model

DecodeDiskDep (NestedCtxt Header) TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDiskDepIx (NestedCtxt Header) TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

EncodeDiskDep (NestedCtxt Header) TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

EncodeDiskDepIx (NestedCtxt Header) TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

FromCBOR (Point TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToCBOR (Point TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

toCBOR ∷ Point TestBlock → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Point TestBlock) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Point TestBlock] → Size Source #

Eq (LedgerState TestBlock mk) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Generic (LedgerState TestBlock mk) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep (LedgerState TestBlock mk) 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (LedgerState TestBlock mk) = D1 ('MetaData "LedgerState" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastAppliedPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point TestBlock)) :*: (S1 ('MetaSel ('Just "lastAppliedHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ChainHash TestBlock)) :*: S1 ('MetaSel ('Just "latestPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PerasRoundNo)))))
Show (LedgerState TestBlock mk) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Hashable (Point TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks (LedgerState TestBlock mk) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise (LedgerState TestBlock mk) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (VotingCommitteeError (MockPerasCrypto TestBlock) (MockPerasVotingCommitteeScheme TestBlock)) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr (LedgerState TestBlock EmptyMK) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

HasLedgerTables (Ticked LedgerState) TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

LedgerTablesAreTrivial (Ticked LedgerState) TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Show (NestedCtxt_ TestBlock f a) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

GetTip (Ticked LedgerState TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

LedgerStateSupportsPeras (Ticked LedgerState TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBlock = D1 ('MetaData "TestBlock" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlock" 'PrefixI 'True) (S1 ('MetaSel ('Just "testHeader") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestHeader) :*: S1 ('MetaSel ('Just "testBody") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestBody)))
data BlockConfig TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type BlockProtocol TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type BlockProtocol TestBlock = ModChainSel (Bft BftMockCrypto) BftWithEBBsTiebreakerView
data CodecConfig TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type HashSize TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

newtype Header TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

data StorageConfig TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

data NestedCtxt_ TestBlock f a # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

data NestedCtxt_ TestBlock f a where
type TentativeHeaderState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type TentativeHeaderView TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type PerasCert TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type PerasCrypto TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type PerasError TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type PerasVote TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type PerasVotingCommitteeScheme TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type HardForkIndices TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type OtherHeaderEnvelopeError TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type OtherHeaderEnvelopeError TestBlock = TestBlockOtherHeaderEnvelopeError
type TipInfo TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type AuxLedgerEvent TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

data LedgerState TestBlock mk # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerUpdate TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerWarning TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type TxIn TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type TxOut TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type MaybeEraIndexedEpochToPerasRoundInfo TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerCfg LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerErr LedgerState TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type LedgerErr LedgerState TestBlock = TestBlockError
type HeaderHash TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type TrivialIndex (NestedCtxt_ TestBlock f ∷ Type → Type) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (BlockConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (BlockConfig TestBlock) = D1 ('MetaData "BlockConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "testBlockEBBsAllowed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "testBlockNumCoreNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NumCoreNodes)))
type Rep (CodecConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (CodecConfig TestBlock) = D1 ('MetaData "CodecConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockCodecConfig" 'PrefixI 'False) (U1 ∷ Type → Type))
type Rep (StorageConfig TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (StorageConfig TestBlock) = D1 ('MetaData "StorageConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockStorageConfig" 'PrefixI 'False) (U1 ∷ Type → Type))
type Signed (Header TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Signed (Header TestBlock) = ()
type Rep (LedgerState TestBlock mk) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep (LedgerState TestBlock mk) = D1 ('MetaData "LedgerState" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastAppliedPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point TestBlock)) :*: (S1 ('MetaSel ('Just "lastAppliedHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ChainHash TestBlock)) :*: S1 ('MetaSel ('Just "latestPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PerasRoundNo)))))
newtype Ticked LedgerState TestBlock (mk ∷ MapKind) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

data TestBody #

Constructors

TestBody 

Instances

Instances details
NFData TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ TestBody → () #

Eq TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==) ∷ TestBody → TestBody → Bool #

(/=) ∷ TestBody → TestBody → Bool #

Generic TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep TestBody 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBody = D1 ('MetaData "TestBody" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBody" 'PrefixI 'True) (S1 ('MetaSel ('Just "tbForkNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word) :*: (S1 ('MetaSel ('Just "tbIsValid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tbPerasCert") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (PerasCert TestBlock))))))

Methods

from ∷ TestBody → Rep TestBody x #

to ∷ Rep TestBody x → TestBody #

Show TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

showsPrec ∷ Int → TestBody → ShowS #

show ∷ TestBody → String #

showList ∷ [TestBody] → ShowS #

Hashable TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBody = D1 ('MetaData "TestBody" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBody" 'PrefixI 'True) (S1 ('MetaSel ('Just "tbForkNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word) :*: (S1 ('MetaSel ('Just "tbIsValid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tbPerasCert") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (PerasCert TestBlock))))))

newtype TestBodyHash #

Constructors

TestBodyHash Int 

Instances

Instances details
NFData TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ TestBodyHash → () #

Eq TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Ord TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Generic TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep TestBodyHash 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBodyHash = D1 ('MetaData "TestBodyHash" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestBodyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))
Show TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Hashable TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Condense TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBodyHash = D1 ('MetaData "TestBodyHash" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestBodyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data TestHeader #

Instances

Instances details
NFData TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ TestHeader → () #

Eq TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==) ∷ TestHeader → TestHeader → Bool #

(/=) ∷ TestHeader → TestHeader → Bool #

Generic TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep TestHeader 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeader = D1 ('MetaData "TestHeader" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestHeader" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HeaderHash TestHeader)) :*: (S1 ('MetaSel ('Just "thPrevHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ChainHash TestHeader)) :*: S1 ('MetaSel ('Just "thBodyHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestBodyHash))) :*: ((S1 ('MetaSel ('Just "thSlotNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "thBlockNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockNo)) :*: (S1 ('MetaSel ('Just "thChainLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainLength) :*: S1 ('MetaSel ('Just "thIsEBB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EBB)))))
Show TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Condense TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

StandardHash TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeader = D1 ('MetaData "TestHeader" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestHeader" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HeaderHash TestHeader)) :*: (S1 ('MetaSel ('Just "thPrevHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ChainHash TestHeader)) :*: S1 ('MetaSel ('Just "thBodyHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestBodyHash))) :*: ((S1 ('MetaSel ('Just "thSlotNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "thBlockNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockNo)) :*: (S1 ('MetaSel ('Just "thChainLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainLength) :*: S1 ('MetaSel ('Just "thIsEBB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EBB)))))
type HeaderHash TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

newtype TestHeaderHash #

Constructors

TestHeaderHash Int 

Instances

Instances details
Binary TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NFData TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnf ∷ TestHeaderHash → () #

Eq TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Ord TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Generic TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Associated Types

type Rep TestHeaderHash 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeaderHash = D1 ('MetaData "TestHeaderHash" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestHeaderHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))
Show TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Hashable TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

NoThunks TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Condense TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Serialise TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

ToExpr TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Hashable (Block SlotNo TestHeaderHash) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeaderHash = D1 ('MetaData "TestHeaderHash" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-4.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestHeaderHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Ouroboros consensus re-exports

data Block slot hash #

Constructors

Block 

Fields

Instances

Instances details
(FromJSON slot, FromJSON hash) ⇒ FromJSON (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

parseJSON ∷ Value → Parser (Block slot hash) Source #

parseJSONList ∷ Value → Parser [Block slot hash] Source #

omittedField ∷ Maybe (Block slot hash) Source #

(ToJSON slot, ToJSON hash) ⇒ ToJSON (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

toJSON ∷ Block slot hash → Value Source #

toEncoding ∷ Block slot hash → Encoding Source #

toJSONList ∷ [Block slot hash] → Value Source #

toEncodingList ∷ [Block slot hash] → Encoding Source #

omitField ∷ Block slot hash → Bool Source #

(NFData slot, NFData hash) ⇒ NFData (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

rnf ∷ Block slot hash → () #

(Eq slot, Eq hash) ⇒ Eq (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

(==) ∷ Block slot hash → Block slot hash → Bool #

(/=) ∷ Block slot hash → Block slot hash → Bool #

(Ord slot, Ord hash) ⇒ Ord (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

compare ∷ Block slot hash → Block slot hash → Ordering #

(<) ∷ Block slot hash → Block slot hash → Bool #

(<=) ∷ Block slot hash → Block slot hash → Bool #

(>) ∷ Block slot hash → Block slot hash → Bool #

(>=) ∷ Block slot hash → Block slot hash → Bool #

max ∷ Block slot hash → Block slot hash → Block slot hash #

min ∷ Block slot hash → Block slot hash → Block slot hash #

Generic (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Associated Types

type Rep (Block slot hash) 
Instance details

Defined in Ouroboros.Network.Point

type Rep (Block slot hash) = D1 ('MetaData "Block" "Ouroboros.Network.Point" "ouroboros-network-1.2.0.0-l-api-af495335aa766cc933ee95df4ec7fdea2dd796e1efa726c7d4b40b7590fdf5d9" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockPointSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 slot) :*: S1 ('MetaSel ('Just "blockPointHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 hash)))

Methods

from ∷ Block slot hash → Rep (Block slot hash) x #

to ∷ Rep (Block slot hash) x → Block slot hash #

(Show slot, Show hash) ⇒ Show (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

showsPrec ∷ Int → Block slot hash → ShowS #

show ∷ Block slot hash → String #

showList ∷ [Block slot hash] → ShowS #

Hashable (Block SlotNo TestHeaderHash) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

(NoThunks slot, NoThunks hash) ⇒ NoThunks (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

Methods

noThunks ∷ Context → Block slot hash → IO (Maybe ThunkInfo) Source #

wNoThunks ∷ Context → Block slot hash → IO (Maybe ThunkInfo) Source #

showTypeOf ∷ Proxy (Block slot hash) → String Source #

(ToExpr slot, ToExpr hash) ⇒ ToExpr (Block slot hash) # 
Instance details

Defined in Test.Util.Orphans.ToExpr

Methods

toExpr ∷ Block slot hash → Expr Source #

listToExpr ∷ [Block slot hash] → Expr Source #

type Rep (Block slot hash) # 
Instance details

Defined in Ouroboros.Network.Point

type Rep (Block slot hash) = D1 ('MetaData "Block" "Ouroboros.Network.Point" "ouroboros-network-1.2.0.0-l-api-af495335aa766cc933ee95df4ec7fdea2dd796e1efa726c7d4b40b7590fdf5d9" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockPointSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 slot) :*: S1 ('MetaSel ('Just "blockPointHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 hash)))

newtype BlockNo Source #

The 0-based index of the block in the blockchain. BlockNo is <= SlotNo and is only equal at slot N if there is a block for every slot where N <= SlotNo.

Constructors

BlockNo 

Fields

Instances

Instances details
Arbitrary BlockNo # 
Instance details

Defined in Test.Cardano.Slotting.Arbitrary

FromJSON BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

ToJSON BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

FromCBOR BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

ToCBOR BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

toCBOR ∷ BlockNo → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy BlockNo → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [BlockNo] → Size Source #

EncCBOR BlockNo Source # 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

NFData BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

rnf ∷ BlockNo → () #

Eq BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

(==) ∷ BlockNo → BlockNo → Bool #

(/=) ∷ BlockNo → BlockNo → Bool #

Ord BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

compare ∷ BlockNo → BlockNo → Ordering #

(<) ∷ BlockNo → BlockNo → Bool #

(<=) ∷ BlockNo → BlockNo → Bool #

(>) ∷ BlockNo → BlockNo → Bool #

(>=) ∷ BlockNo → BlockNo → Bool #

max ∷ BlockNo → BlockNo → BlockNo #

min ∷ BlockNo → BlockNo → BlockNo #

Bounded BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Enum BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Generic BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Associated Types

type Rep BlockNo 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo = D1 ('MetaData "BlockNo" "Cardano.Slotting.Block" "cardano-slotting-0.2.1.0-07100409ee47709d5a70aa9944824dc8255e5cbe1b1f0ced97640bd26d62ab07" 'True) (C1 ('MetaCons "BlockNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

from ∷ BlockNo → Rep BlockNo x #

to ∷ Rep BlockNo x → BlockNo #

Num BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Show BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

showsPrec ∷ Int → BlockNo → ShowS #

show ∷ BlockNo → String #

showList ∷ [BlockNo] → ShowS #

Hashable BlockNo # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSalt ∷ Int → BlockNo → Int Source #

hash ∷ BlockNo → Int Source #

NoThunks BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Condense BlockNo Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condense ∷ BlockNo → String Source #

Serialise BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

ToExpr BlockNo # 
Instance details

Defined in Test.Cardano.Slotting.TreeDiff

type Rep BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo = D1 ('MetaData "BlockNo" "Cardano.Slotting.Block" "cardano-slotting-0.2.1.0-07100409ee47709d5a70aa9944824dc8255e5cbe1b1f0ced97640bd26d62ab07" 'True) (C1 ('MetaCons "BlockNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data ChainHash (b ∷ k) #

Constructors

GenesisHash 
BlockHash !(HeaderHash b) 

Instances

Instances details
Isomorphic (ChainHash ∷ Type → Type) Source # 
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

Methods

project ∷ NoHardForks blk ⇒ ChainHash (HardForkBlock '[blk]) → ChainHash blk Source #

inject ∷ NoHardForks blk ⇒ ChainHash blk → ChainHash (HardForkBlock '[blk]) Source #

StandardHash block ⇒ NFData (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

rnf ∷ ChainHash block → () #

StandardHash block ⇒ Eq (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

(==) ∷ ChainHash block → ChainHash block → Bool #

(/=) ∷ ChainHash block → ChainHash block → Bool #

StandardHash block ⇒ Ord (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

compare ∷ ChainHash block → ChainHash block → Ordering #

(<) ∷ ChainHash block → ChainHash block → Bool #

(<=) ∷ ChainHash block → ChainHash block → Bool #

(>) ∷ ChainHash block → ChainHash block → Bool #

(>=) ∷ ChainHash block → ChainHash block → Bool #

max ∷ ChainHash block → ChainHash block → ChainHash block #

min ∷ ChainHash block → ChainHash block → ChainHash block #

Generic (ChainHash b) # 
Instance details

Defined in Ouroboros.Network.Block

Associated Types

type Rep (ChainHash b) 
Instance details

Defined in Ouroboros.Network.Block

type Rep (ChainHash b) = D1 ('MetaData "ChainHash" "Ouroboros.Network.Block" "ouroboros-network-1.2.0.0-l-api-af495335aa766cc933ee95df4ec7fdea2dd796e1efa726c7d4b40b7590fdf5d9" 'False) (C1 ('MetaCons "GenesisHash" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "BlockHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HeaderHash b))))

Methods

from ∷ ChainHash b → Rep (ChainHash b) x #

to ∷ Rep (ChainHash b) x → ChainHash b #

StandardHash block ⇒ Show (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

showsPrec ∷ Int → ChainHash block → ShowS #

show ∷ ChainHash block → String #

showList ∷ [ChainHash block] → ShowS #

(StandardHash b, Hashable (HeaderHash b)) ⇒ Hashable (ChainHash b) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSalt ∷ Int → ChainHash b → Int Source #

hash ∷ ChainHash b → Int Source #

(StandardHash block, Typeable block) ⇒ NoThunks (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Condense (ChainHash (TestBlockWith ptype)) # 
Instance details

Defined in Test.Util.TestBlock

Methods

condense ∷ ChainHash (TestBlockWith ptype) → String Source #

Condense (HeaderHash b) ⇒ Condense (ChainHash b) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condense ∷ ChainHash b → String Source #

Serialise (HeaderHash b) ⇒ Serialise (ChainHash b) # 
Instance details

Defined in Ouroboros.Network.Block

ToExpr (HeaderHash blk) ⇒ ToExpr (ChainHash blk) # 
Instance details

Defined in Test.Util.Orphans.ToExpr

Methods

toExpr ∷ ChainHash blk → Expr Source #

listToExpr ∷ [ChainHash blk] → Expr Source #

type Rep (ChainHash b) # 
Instance details

Defined in Ouroboros.Network.Block

type Rep (ChainHash b) = D1 ('MetaData "ChainHash" "Ouroboros.Network.Block" "ouroboros-network-1.2.0.0-l-api-af495335aa766cc933ee95df4ec7fdea2dd796e1efa726c7d4b40b7590fdf5d9" 'False) (C1 ('MetaCons "GenesisHash" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "BlockHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HeaderHash b))))

data ChainType Source #

Chain type

Followers can choose to track changes to the "normal" SelectedChain, or track the TentativeChain, which might contain a pipelineable header at the tip.

Constructors

TentativeChain 

Instances

Instances details
Eq ChainType Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ChainDB.API

Methods

(==) ∷ ChainType → ChainType → Bool #

(/=) ∷ ChainType → ChainType → Bool #

Generic ChainType Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ChainDB.API

Associated Types

type Rep ChainType 
Instance details

Defined in Ouroboros.Consensus.Storage.ChainDB.API

type Rep ChainType = D1 ('MetaData "ChainType" "Ouroboros.Consensus.Storage.ChainDB.API" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "SelectedChain" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "TentativeChain" 'PrefixI 'False) (U1 ∷ Type → Type))

Methods

from ∷ ChainType → Rep ChainType x #

to ∷ Rep ChainType x → ChainType #

Show ChainType Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ChainDB.API

Methods

showsPrec ∷ Int → ChainType → ShowS #

show ∷ ChainType → String #

showList ∷ [ChainType] → ShowS #

type Rep ChainType Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ChainDB.API

type Rep ChainType = D1 ('MetaData "ChainType" "Ouroboros.Consensus.Storage.ChainDB.API" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "SelectedChain" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "TentativeChain" 'PrefixI 'False) (U1 ∷ Type → Type))

data ChainUpdate (block ∷ k) a #

Constructors

RollBack (Point block) 

Instances

Instances details
Functor (ChainUpdate block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

fmap ∷ (a → b) → ChainUpdate block a → ChainUpdate block b #

(<$) ∷ a → ChainUpdate block b → ChainUpdate block a #

Foldable (ChainUpdate block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

fold ∷ Monoid m ⇒ ChainUpdate block m → m #

foldMap ∷ Monoid m ⇒ (a → m) → ChainUpdate block a → m #

foldMap' ∷ Monoid m ⇒ (a → m) → ChainUpdate block a → m #

foldr ∷ (a → b → b) → b → ChainUpdate block a → b #

foldr' ∷ (a → b → b) → b → ChainUpdate block a → b #

foldl ∷ (b → a → b) → b → ChainUpdate block a → b #

foldl' ∷ (b → a → b) → b → ChainUpdate block a → b #

foldr1 ∷ (a → a → a) → ChainUpdate block a → a #

foldl1 ∷ (a → a → a) → ChainUpdate block a → a #

toList ∷ ChainUpdate block a → [a] #

null ∷ ChainUpdate block a → Bool #

length ∷ ChainUpdate block a → Int #

elem ∷ Eq a ⇒ a → ChainUpdate block a → Bool #

maximum ∷ Ord a ⇒ ChainUpdate block a → a #

minimum ∷ Ord a ⇒ ChainUpdate block a → a #

sum ∷ Num a ⇒ ChainUpdate block a → a #

product ∷ Num a ⇒ ChainUpdate block a → a #

Traversable (ChainUpdate block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

traverse ∷ Applicative f ⇒ (a → f b) → ChainUpdate block a → f (ChainUpdate block b) #

sequenceA ∷ Applicative f ⇒ ChainUpdate block (f a) → f (ChainUpdate block a) #

mapM ∷ Monad m ⇒ (a → m b) → ChainUpdate block a → m (ChainUpdate block b) #

sequence ∷ Monad m ⇒ ChainUpdate block (m a) → m (ChainUpdate block a) #

(StandardHash block, Eq a) ⇒ Eq (ChainUpdate block a) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

(==) ∷ ChainUpdate block a → ChainUpdate block a → Bool #

(/=) ∷ ChainUpdate block a → ChainUpdate block a → Bool #

(StandardHash block, Show a) ⇒ Show (ChainUpdate block a) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

showsPrec ∷ Int → ChainUpdate block a → ShowS #

show ∷ ChainUpdate block a → String #

showList ∷ [ChainUpdate block a] → ShowS #

data ChunkInfo Source #

Size of the chunks of the immutable DB

This is the key data structure that drives all layout functions.

TODO: Add support for non-uniform ChunkInfo https://github.com/IntersectMBO/ouroboros-network/issues/1754

Constructors

UniformChunkSize !ChunkSize

A single, uniform, chunk size

If EBBs are present, the chunk size must line up precisely with the epoch size (that is, the number of regular blocks in the chunk must equal the number of regular blocks in an epoch).

Instances

Instances details
Generic ChunkInfo Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

Associated Types

type Rep ChunkInfo 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

type Rep ChunkInfo = D1 ('MetaData "ChunkInfo" "Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "UniformChunkSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChunkSize)))

Methods

from ∷ ChunkInfo → Rep ChunkInfo x #

to ∷ Rep ChunkInfo x → ChunkInfo #

Show ChunkInfo Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

Methods

showsPrec ∷ Int → ChunkInfo → ShowS #

show ∷ ChunkInfo → String #

showList ∷ [ChunkInfo] → ShowS #

NoThunks ChunkInfo Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

ToExpr ChunkInfo # 
Instance details

Defined in Test.Util.Orphans.ToExpr

type Rep ChunkInfo Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

type Rep ChunkInfo = D1 ('MetaData "ChunkInfo" "Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "UniformChunkSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChunkSize)))

data ChunkSize Source #

Size of a chunk

The total number of slots available in a chunk is equal to numRegularBlocks if not chunkCanContainEBB, and numRegularBlocks + 1 otherwise.

Constructors

ChunkSize 

Fields

Instances

Instances details
Arbitrary ChunkSize # 
Instance details

Defined in Test.Util.Orphans.Arbitrary

Generic ChunkSize Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

Associated Types

type Rep ChunkSize 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

type Rep ChunkSize = D1 ('MetaData "ChunkSize" "Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "ChunkSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "chunkCanContainEBB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "numRegularBlocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))

Methods

from ∷ ChunkSize → Rep ChunkSize x #

to ∷ Rep ChunkSize x → ChunkSize #

Show ChunkSize Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

Methods

showsPrec ∷ Int → ChunkSize → ShowS #

show ∷ ChunkSize → String #

showList ∷ [ChunkSize] → ShowS #

NoThunks ChunkSize Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

ToExpr ChunkSize # 
Instance details

Defined in Test.Util.Orphans.ToExpr

type Rep ChunkSize Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal

type Rep ChunkSize = D1 ('MetaData "ChunkSize" "Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "ChunkSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "chunkCanContainEBB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "numRegularBlocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))

newtype EpochNo Source #

An epoch, i.e. the number of the epoch.

Constructors

EpochNo Word64 

Instances

Instances details
Arbitrary EpochNo # 
Instance details

Defined in Test.Cardano.Slotting.Arbitrary

FromJSON EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

ToJSON EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toCBOR ∷ EpochNo → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy EpochNo → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [EpochNo] → Size Source #

EncCBOR EpochNo Source # 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

NFData EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnf ∷ EpochNo → () #

Eq EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

(==) ∷ EpochNo → EpochNo → Bool #

(/=) ∷ EpochNo → EpochNo → Bool #

Ord EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

compare ∷ EpochNo → EpochNo → Ordering #

(<) ∷ EpochNo → EpochNo → Bool #

(<=) ∷ EpochNo → EpochNo → Bool #

(>) ∷ EpochNo → EpochNo → Bool #

(>=) ∷ EpochNo → EpochNo → Bool #

max ∷ EpochNo → EpochNo → EpochNo #

min ∷ EpochNo → EpochNo → EpochNo #

Enum EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Generic EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 ('MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.1.0-07100409ee47709d5a70aa9944824dc8255e5cbe1b1f0ced97640bd26d62ab07" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

from ∷ EpochNo → Rep EpochNo x #

to ∷ Rep EpochNo x → EpochNo #

Num EpochNo # 
Instance details

Defined in Test.Cardano.Slotting.Numeric

Show EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

showsPrec ∷ Int → EpochNo → ShowS #

show ∷ EpochNo → String #

showList ∷ [EpochNo] → ShowS #

NoThunks EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Condense EpochNo Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condense ∷ EpochNo → String Source #

Serialise EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

ToExpr EpochNo # 
Instance details

Defined in Test.Cardano.Slotting.TreeDiff

type Rep EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 ('MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.1.0-07100409ee47709d5a70aa9944824dc8255e5cbe1b1f0ced97640bd26d62ab07" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype SlotNo Source #

The 0-based index for the Ourboros time slot.

Constructors

SlotNo 

Fields

Instances

Instances details
Arbitrary SlotNo # 
Instance details

Defined in Test.Cardano.Slotting.Arbitrary

FromJSON SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

ToJSON SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toCBOR ∷ SlotNo → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy SlotNo → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [SlotNo] → Size Source #

EncCBOR SlotNo Source # 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBOR ∷ SlotNo → Encoding Source #

NFData SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnf ∷ SlotNo → () #

Eq SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

(==) ∷ SlotNo → SlotNo → Bool #

(/=) ∷ SlotNo → SlotNo → Bool #

Ord SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

compare ∷ SlotNo → SlotNo → Ordering #

(<) ∷ SlotNo → SlotNo → Bool #

(<=) ∷ SlotNo → SlotNo → Bool #

(>) ∷ SlotNo → SlotNo → Bool #

(>=) ∷ SlotNo → SlotNo → Bool #

max ∷ SlotNo → SlotNo → SlotNo #

min ∷ SlotNo → SlotNo → SlotNo #

Bounded SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Enum SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Generic SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo = D1 ('MetaData "SlotNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.1.0-07100409ee47709d5a70aa9944824dc8255e5cbe1b1f0ced97640bd26d62ab07" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

from ∷ SlotNo → Rep SlotNo x #

to ∷ Rep SlotNo x → SlotNo #

Num SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

(+) ∷ SlotNo → SlotNo → SlotNo #

(-) ∷ SlotNo → SlotNo → SlotNo #

(*) ∷ SlotNo → SlotNo → SlotNo #

negate ∷ SlotNo → SlotNo #

abs ∷ SlotNo → SlotNo #

signum ∷ SlotNo → SlotNo #

fromInteger ∷ Integer → SlotNo #

Show SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

showsPrec ∷ Int → SlotNo → ShowS #

show ∷ SlotNo → String #

showList ∷ [SlotNo] → ShowS #

Hashable SlotNo # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSalt ∷ Int → SlotNo → Int Source #

hash ∷ SlotNo → Int Source #

NoThunks SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Condense SlotNo Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condense ∷ SlotNo → String Source #

Serialise SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

ToExpr SlotNo # 
Instance details

Defined in Test.Cardano.Slotting.TreeDiff

ShowProxy SlotNo # 
Instance details

Defined in Ouroboros.Network.Util.ShowProxy

Methods

showProxy ∷ Proxy SlotNo → String #

(Condense block, HasHeader block, Condense (HeaderHash block)) ⇒ Condense (AnchoredFragment block) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condense ∷ AnchoredFragment block → String Source #

(ToExpr blk, ToExpr (HeaderHash blk)) ⇒ ToExpr (AnchoredFragment blk) # 
Instance details

Defined in Test.Util.Orphans.ToExpr

Methods

toExpr ∷ AnchoredFragment blk → Expr Source #

listToExpr ∷ [AnchoredFragment blk] → Expr Source #

SerialiseHFC xs ⇒ SerialiseNodeToClient (HardForkBlock xs) SlotNo Source # 
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient

HasHeader block ⇒ Anchorable (WithOrigin SlotNo) (Anchor block) block # 
Instance details

Defined in Ouroboros.Network.AnchoredFragment

Methods

asAnchor ∷ block → Anchor block

getAnchorMeasure ∷ Proxy block → Anchor block → WithOrigin SlotNo

Anchorable (WithOrigin SlotNo) (HeaderStateWithTime blk) (HeaderStateWithTime blk) 
Instance details

Defined in Ouroboros.Consensus.HeaderStateHistory

Anchorable (WithOrigin SlotNo) (ExtLedgerState TestBlock ValuesMK) (TestBlock, ExtLedgerState TestBlock ValuesMK) 
Instance details

Defined in Test.Ouroboros.Storage.LedgerDB.StateMachine

GetTip (l blk) ⇒ Anchorable (WithOrigin SlotNo) (StateRef m l blk) (StateRef m l blk) 
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.V2.LedgerSeq

Methods

asAnchor ∷ StateRef m l blk → StateRef m l blk

getAnchorMeasure ∷ Proxy (StateRef m l blk) → StateRef m l blk → WithOrigin SlotNo

Hashable (Block SlotNo TestHeaderHash) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo = D1 ('MetaData "SlotNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.1.0-07100409ee47709d5a70aa9944824dc8255e5cbe1b1f0ced97640bd26d62ab07" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))