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 AtBlock SlotNo (HeaderHash blk) → Point blk Source #

pattern Command ∷ ∀ t1 blk1 (m1 ∷ TypeType) t2 blk2 (m2 ∷ TypeType). 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 ∷ (TypeType) → Type) (resp ∷ (TypeType) → Type) #

Constructors

Commands 

Fields

Instances

Instances details
Monoid (Commands cmd resp) # 
Instance details

Defined in Test.StateMachine.Types

Methods

memptyCommands cmd resp #

mappendCommands 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 #

sconcatNonEmpty (Commands cmd resp) → Commands cmd resp #

stimesIntegral 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

readsPrecIntReadS (Commands cmd resp) #

readListReadS [Commands cmd resp] #

readPrecReadPrec (Commands cmd resp) #

readListPrecReadPrec [Commands cmd resp] #

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

Defined in Test.StateMachine.Types

Methods

showsPrecIntCommands cmd resp → ShowS #

showCommands cmd resp → String #

showList ∷ [Commands cmd resp] → ShowS #

newtype Reference a (r ∷ TypeType) #

Constructors

Reference (r a) 

Instances

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

Defined in Test.StateMachine.Types.References

Methods

foldMapMonoid m ⇒ (∀ x. p x → m) → Reference a p → m

Functor (Reference a ∷ (TypeType) → 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 ∷ (TypeType) → Type) # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

traverseApplicative 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

compareReference 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 #

maxReference a r → Reference a r → Reference a r #

minReference 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-7588df545d480777dc613ec47cfc60e1c5de69645ca45c69ba4cc734fe635813" 'True) (C1 ('MetaCons "Reference" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (r a))))

Methods

fromReference a r → Rep (Reference a r) x #

toRep (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

showsPrecIntReference a r → ShowS #

showReference a r → String #

showList ∷ [Reference a r] → ShowS #

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

Defined in Test.Util.ToExpr

Methods

toExprReference 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-7588df545d480777dc613ec47cfc60e1c5de69645ca45c69ba4cc734fe635813" 'True) (C1 ('MetaCons "Reference" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (r a))))

data Symbolic a where #

Constructors

Symbolic ∷ ∀ a. Typeable a ⇒ VarSymbolic 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) → IntSymbolic 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

compareSymbolic a → Symbolic a → Ordering #

(<)Symbolic a → Symbolic a → Bool #

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

(>)Symbolic a → Symbolic a → Bool #

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

maxSymbolic a → Symbolic a → Symbolic a #

minSymbolic 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

showsPrecIntSymbolic a → ShowS #

showSymbolic 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

(==)VarVarBool #

(/=)VarVarBool #

Ord Var # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

compareVarVarOrdering #

(<)VarVarBool #

(<=)VarVarBool #

(>)VarVarBool #

(>=)VarVarBool #

maxVarVarVar #

minVarVarVar #

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-7588df545d480777dc613ec47cfc60e1c5de69645ca45c69ba4cc734fe635813" 'True) (C1 ('MetaCons "Var" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Methods

fromVarRep Var x #

toRep Var x → Var #

Read Var # 
Instance details

Defined in Test.StateMachine.Types.References

Show Var # 
Instance details

Defined in Test.StateMachine.Types.References

Methods

showsPrecIntVarShowS #

showVarString #

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-7588df545d480777dc613ec47cfc60e1c5de69645ca45c69ba4cc734fe635813" 'True) (C1 ('MetaCons "Var" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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

bifoldMonoid m ⇒ Cmd blk m m → m #

bifoldMapMonoid 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

bitraverseApplicative 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

foldMonoid m ⇒ Cmd blk it m → m #

foldMapMonoid 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 #

toListCmd blk it a → [a] #

nullCmd blk it a → Bool #

lengthCmd blk it a → Int #

elemEq a ⇒ a → Cmd blk it a → Bool #

maximumOrd a ⇒ Cmd blk it a → a #

minimumOrd a ⇒ Cmd blk it a → a #

sumNum a ⇒ Cmd blk it a → a #

productNum a ⇒ Cmd blk it a → a #

Traversable (Cmd blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

traverseApplicative f ⇒ (a → f b) → Cmd blk it a → f (Cmd blk it b) #

sequenceAApplicative f ⇒ Cmd blk it (f a) → f (Cmd blk it a) #

mapMMonad m ⇒ (a → m b) → Cmd blk it a → m (Cmd blk it b) #

sequenceMonad m ⇒ Cmd blk it (m a) → m (Cmd blk it a) #

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

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

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

cmdNames ∷ ∀ (r ∷ TypeType). 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

fromCmd blk it flr → Rep (Cmd blk it flr) Source #

toRep (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-3.0.1.0-inplace-storage-test" 'False) ((((C1 ('MetaCons "AddBlock" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 blk) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: (C1 ('MetaCons "AddPerasCert" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasCert blk))) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: C1 ('MetaCons "AddPerasVote" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasVote blk))) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))))) :+: (C1 ('MetaCons "GetCurrentChain" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "GetTipBlock" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "GetTipHeader" 'PrefixI 'False) (U1TypeType)))) :+: ((C1 ('MetaCons "GetTipPoint" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "GetBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetLatestPerasCertOnChainRound" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "GetGCedBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetMaxSlotNo" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "GetIsValid" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "Stream" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamFrom blk)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamTo blk))))))) :+: (((C1 ('MetaCons "UpdateLoE" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AnchoredFragment blk))) :+: (C1 ('MetaCons "IteratorNext" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "IteratorNextGCed" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)))) :+: ((C1 ('MetaCons "IteratorClose" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "NewFollower" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainType))) :+: (C1 ('MetaCons "FollowerInstruction" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: C1 ('MetaCons "FollowerForward" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Point blk]))))) :+: ((C1 ('MetaCons "FollowerClose" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: (C1 ('MetaCons "Close" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Reopen" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "PersistBlks" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "PersistBlksThenGC" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "UpdateLedgerSnapshots" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "WipeVolatileDB" 'PrefixI 'False) (U1TypeType))))))

Methods

fromCmd blk it flr → Rep (Cmd blk it flr) x #

toRep (Cmd blk it flr) x → Cmd blk it flr #

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

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

showsPrecIntCmd blk it flr → ShowS #

showCmd 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-3.0.1.0-inplace-storage-test" 'False) ((((C1 ('MetaCons "AddBlock" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 blk) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: (C1 ('MetaCons "AddPerasCert" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasCert blk))) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))) :+: C1 ('MetaCons "AddPerasVote" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasVote blk))) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Persistent [blk]))))) :+: (C1 ('MetaCons "GetCurrentChain" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "GetTipBlock" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "GetTipHeader" 'PrefixI 'False) (U1TypeType)))) :+: ((C1 ('MetaCons "GetTipPoint" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "GetBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetLatestPerasCertOnChainRound" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "GetGCedBlockComponent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "GetMaxSlotNo" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "GetIsValid" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RealPoint blk))) :+: C1 ('MetaCons "Stream" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamFrom blk)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamTo blk))))))) :+: (((C1 ('MetaCons "UpdateLoE" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AnchoredFragment blk))) :+: (C1 ('MetaCons "IteratorNext" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "IteratorNextGCed" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)))) :+: ((C1 ('MetaCons "IteratorClose" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 it)) :+: C1 ('MetaCons "NewFollower" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainType))) :+: (C1 ('MetaCons "FollowerInstruction" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: C1 ('MetaCons "FollowerForward" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Point blk]))))) :+: ((C1 ('MetaCons "FollowerClose" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 flr)) :+: (C1 ('MetaCons "Close" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Reopen" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "PersistBlks" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "PersistBlksThenGC" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "UpdateLedgerSnapshots" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "WipeVolatileDB" 'PrefixI 'False) (U1TypeType))))))

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

bifoldMonoid m ⇒ Resp blk m m → m #

bifoldMapMonoid 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

bitraverseApplicative 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

foldMonoid m ⇒ Resp blk it m → m #

foldMapMonoid 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 #

toListResp blk it a → [a] #

nullResp blk it a → Bool #

lengthResp blk it a → Int #

elemEq a ⇒ a → Resp blk it a → Bool #

maximumOrd a ⇒ Resp blk it a → a #

minimumOrd a ⇒ Resp blk it a → a #

sumNum a ⇒ Resp blk it a → a #

productNum a ⇒ Resp blk it a → a #

Traversable (Resp blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

traverseApplicative f ⇒ (a → f b) → Resp blk it a → f (Resp blk it b) #

sequenceAApplicative f ⇒ Resp blk it (f a) → f (Resp blk it a) #

mapMMonad m ⇒ (a → m b) → Resp blk it a → m (Resp blk it b) #

sequenceMonad 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

showsPrecIntResp blk it flr → ShowS #

showResp 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

bifoldMonoid m ⇒ Success blk m m → m #

bifoldMapMonoid 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

bitraverseApplicative 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

foldMonoid m ⇒ Success blk it m → m #

foldMapMonoid 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 #

toListSuccess blk it a → [a] #

nullSuccess blk it a → Bool #

lengthSuccess blk it a → Int #

elemEq a ⇒ a → Success blk it a → Bool #

maximumOrd a ⇒ Success blk it a → a #

minimumOrd a ⇒ Success blk it a → a #

sumNum a ⇒ Success blk it a → a #

productNum a ⇒ Success blk it a → a #

Traversable (Success blk it) Source # 
Instance details

Defined in Test.Ouroboros.Storage.ChainDB.StateMachine

Methods

traverseApplicative f ⇒ (a → f b) → Success blk it a → f (Success blk it b) #

sequenceAApplicative f ⇒ Success blk it (f a) → f (Success blk it a) #

mapMMonad m ⇒ (a → m b) → Success blk it a → m (Success blk it b) #

sequenceMonad 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

showsPrecIntSuccess blk it flr → ShowS #

showSuccess 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

rnfChainLength → () #

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-3.0.1.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "ChainLength" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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-3.0.1.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "ChainLength" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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

rnfEBB → () #

Eq EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==)EBBEBBBool #

(/=)EBBEBBBool #

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-3.0.1.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "EBB" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo)) :+: C1 ('MetaCons "RegularBlock" 'PrefixI 'False) (U1TypeType))

Methods

fromEBBRep EBB x #

toRep EBB x → EBB #

Show EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

showsPrecIntEBBShowS #

showEBBString #

showList ∷ [EBB] → ShowS #

Hashable EBB # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSaltIntEBBInt Source #

hashEBBInt 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

toExprEBBExpr 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-3.0.1.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "EBB" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo)) :+: C1 ('MetaCons "RegularBlock" 'PrefixI 'False) (U1TypeType))

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

rnfTestBlock → () #

Eq TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==)TestBlockTestBlockBool #

(/=)TestBlockTestBlockBool #

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-3.0.1.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

fromTestBlockRep TestBlock x #

toRep TestBlock x → TestBlock #

Show TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

showsPrecIntTestBlockShowS #

showTestBlockString #

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

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

LedgerSupportsPeras TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

LedgerSupportsProtocol 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

decodeDiskCodecConfig 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 (ByteStringEither DecoderError TestBlock) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

DecodeDisk TestBlock (ByteStringHeader 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 ∷ TypeType) # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

TrivialDependency (NestedCtxt_ TestBlock f ∷ TypeType) # 
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-3.0.1.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-3.0.1.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockCodecConfig" 'PrefixI 'False) (U1TypeType))
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-3.0.1.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockStorageConfig" 'PrefixI 'False) (U1TypeType))
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

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

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

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

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-3.0.1.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

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 (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

type Rep TestBlock # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestBlock = D1 ('MetaData "TestBlock" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-3.0.1.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 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 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 ∷ TypeType) # 
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-3.0.1.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-3.0.1.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockCodecConfig" 'PrefixI 'False) (U1TypeType))
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-3.0.1.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockStorageConfig" 'PrefixI 'False) (U1TypeType))
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-3.0.1.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

rnfTestBody → () #

Eq TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==)TestBodyTestBodyBool #

(/=)TestBodyTestBodyBool #

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-3.0.1.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 "tbPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PerasRoundNo)))))

Methods

fromTestBodyRep TestBody x #

toRep TestBody x → TestBody #

Show TestBody # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

showsPrecIntTestBodyShowS #

showTestBodyString #

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-3.0.1.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 "tbPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PerasRoundNo)))))

newtype TestBodyHash #

Constructors

TestBodyHash Int 

Instances

Instances details
NFData TestBodyHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnfTestBodyHash → () #

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-3.0.1.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestBodyHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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-3.0.1.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestBodyHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data TestHeader #

Instances

Instances details
NFData TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

rnfTestHeader → () #

Eq TestHeader # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

(==)TestHeaderTestHeaderBool #

(/=)TestHeaderTestHeaderBool #

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-3.0.1.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-3.0.1.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

rnfTestHeaderHash → () #

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-3.0.1.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestHeaderHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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

type Rep TestHeaderHash # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

type Rep TestHeaderHash = D1 ('MetaData "TestHeaderHash" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-3.0.1.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TestHeaderHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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

parseJSONValueParser (Block slot hash) Source #

parseJSONListValueParser [Block slot hash] Source #

omittedFieldMaybe (Block slot hash) Source #

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

Defined in Ouroboros.Network.Point

Methods

toJSONBlock slot hash → Value Source #

toEncodingBlock slot hash → Encoding Source #

toJSONList ∷ [Block slot hash] → Value Source #

toEncodingList ∷ [Block slot hash] → Encoding Source #

omitFieldBlock slot hash → Bool Source #

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

Defined in Ouroboros.Network.Point

Methods

rnfBlock 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

compareBlock 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 #

maxBlock slot hash → Block slot hash → Block slot hash #

minBlock 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.1.0.0-l-api-f7b500a825fc2215999a1fe5ab7a3a62516db5cc60576b92da7d5022fc4ea6e1" '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

fromBlock slot hash → Rep (Block slot hash) x #

toRep (Block slot hash) x → Block slot hash #

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

Defined in Ouroboros.Network.Point

Methods

showsPrecIntBlock slot hash → ShowS #

showBlock slot hash → String #

showList ∷ [Block slot hash] → ShowS #

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

Defined in Ouroboros.Network.Point

Methods

noThunksContextBlock slot hash → IO (Maybe ThunkInfo) Source #

wNoThunksContextBlock slot hash → IO (Maybe ThunkInfo) Source #

showTypeOfProxy (Block slot hash) → String Source #

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

Defined in Test.Util.Orphans.ToExpr

Methods

toExprBlock 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.1.0.0-l-api-f7b500a825fc2215999a1fe5ab7a3a62516db5cc60576b92da7d5022fc4ea6e1" '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

toCBORBlockNoEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy BlockNoSize 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

rnfBlockNo → () #

Eq BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

(==)BlockNoBlockNoBool #

(/=)BlockNoBlockNoBool #

Ord BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

compareBlockNoBlockNoOrdering #

(<)BlockNoBlockNoBool #

(<=)BlockNoBlockNoBool #

(>)BlockNoBlockNoBool #

(>=)BlockNoBlockNoBool #

maxBlockNoBlockNoBlockNo #

minBlockNoBlockNoBlockNo #

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-e32c106a26359392be40ab0d528976b22065c041ee7f25eb107e1721327eb0c7" 'True) (C1 ('MetaCons "BlockNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

fromBlockNoRep BlockNo x #

toRep BlockNo x → BlockNo #

Num BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Show BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

showsPrecIntBlockNoShowS #

showBlockNoString #

showList ∷ [BlockNo] → ShowS #

Hashable BlockNo # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSaltIntBlockNoInt Source #

hashBlockNoInt Source #

NoThunks BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Condense BlockNo Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condenseBlockNoString 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-e32c106a26359392be40ab0d528976b22065c041ee7f25eb107e1721327eb0c7" '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 (ChainHashTypeType) Source # 
Instance details

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

Methods

projectNoHardForks blk ⇒ ChainHash (HardForkBlock '[blk]) → ChainHash blk Source #

injectNoHardForks blk ⇒ ChainHash blk → ChainHash (HardForkBlock '[blk]) Source #

StandardHash block ⇒ NFData (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

rnfChainHash 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

compareChainHash block → ChainHash block → Ordering #

(<)ChainHash block → ChainHash block → Bool #

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

(>)ChainHash block → ChainHash block → Bool #

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

maxChainHash block → ChainHash block → ChainHash block #

minChainHash 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.1.0.0-l-api-f7b500a825fc2215999a1fe5ab7a3a62516db5cc60576b92da7d5022fc4ea6e1" 'False) (C1 ('MetaCons "GenesisHash" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "BlockHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HeaderHash b))))

Methods

fromChainHash b → Rep (ChainHash b) x #

toRep (ChainHash b) x → ChainHash b #

StandardHash block ⇒ Show (ChainHash block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

showsPrecIntChainHash block → ShowS #

showChainHash block → String #

showList ∷ [ChainHash block] → ShowS #

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

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSaltIntChainHash b → Int Source #

hashChainHash 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

condenseChainHash (TestBlockWith ptype) → String Source #

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

Defined in Ouroboros.Consensus.Util.Condense

Methods

condenseChainHash 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

toExprChainHash 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.1.0.0-l-api-f7b500a825fc2215999a1fe5ab7a3a62516db5cc60576b92da7d5022fc4ea6e1" 'False) (C1 ('MetaCons "GenesisHash" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "BlockHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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

(==)ChainTypeChainTypeBool #

(/=)ChainTypeChainTypeBool #

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-3.0.1.0-inplace" 'False) (C1 ('MetaCons "SelectedChain" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "TentativeChain" 'PrefixI 'False) (U1TypeType))

Methods

fromChainTypeRep ChainType x #

toRep ChainType x → ChainType #

Show ChainType Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.ChainDB.API

Methods

showsPrecIntChainTypeShowS #

showChainTypeString #

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-3.0.1.0-inplace" 'False) (C1 ('MetaCons "SelectedChain" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "TentativeChain" 'PrefixI 'False) (U1TypeType))

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

foldMonoid m ⇒ ChainUpdate block m → m #

foldMapMonoid 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 #

toListChainUpdate block a → [a] #

nullChainUpdate block a → Bool #

lengthChainUpdate block a → Int #

elemEq a ⇒ a → ChainUpdate block a → Bool #

maximumOrd a ⇒ ChainUpdate block a → a #

minimumOrd a ⇒ ChainUpdate block a → a #

sumNum a ⇒ ChainUpdate block a → a #

productNum a ⇒ ChainUpdate block a → a #

Traversable (ChainUpdate block) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

traverseApplicative f ⇒ (a → f b) → ChainUpdate block a → f (ChainUpdate block b) #

sequenceAApplicative f ⇒ ChainUpdate block (f a) → f (ChainUpdate block a) #

mapMMonad m ⇒ (a → m b) → ChainUpdate block a → m (ChainUpdate block b) #

sequenceMonad 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

showsPrecIntChainUpdate block a → ShowS #

showChainUpdate 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-3.0.1.0-inplace" 'False) (C1 ('MetaCons "UniformChunkSize" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChunkSize)))

Methods

fromChunkInfoRep ChunkInfo x #

toRep ChunkInfo x → ChunkInfo #

Show ChunkInfo Source # 
Instance details

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

Methods

showsPrecIntChunkInfoShowS #

showChunkInfoString #

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-3.0.1.0-inplace" 'False) (C1 ('MetaCons "UniformChunkSize" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe 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-3.0.1.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

fromChunkSizeRep ChunkSize x #

toRep ChunkSize x → ChunkSize #

Show ChunkSize Source # 
Instance details

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

Methods

showsPrecIntChunkSizeShowS #

showChunkSizeString #

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-3.0.1.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

toCBOREpochNoEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy EpochNoSize 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

rnfEpochNo → () #

Eq EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

(==)EpochNoEpochNoBool #

(/=)EpochNoEpochNoBool #

Ord EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

compareEpochNoEpochNoOrdering #

(<)EpochNoEpochNoBool #

(<=)EpochNoEpochNoBool #

(>)EpochNoEpochNoBool #

(>=)EpochNoEpochNoBool #

maxEpochNoEpochNoEpochNo #

minEpochNoEpochNoEpochNo #

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-e32c106a26359392be40ab0d528976b22065c041ee7f25eb107e1721327eb0c7" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

fromEpochNoRep EpochNo x #

toRep EpochNo x → EpochNo #

Num EpochNo # 
Instance details

Defined in Test.Cardano.Slotting.Numeric

Show EpochNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

showsPrecIntEpochNoShowS #

showEpochNoString #

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

condenseEpochNoString 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-e32c106a26359392be40ab0d528976b22065c041ee7f25eb107e1721327eb0c7" '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

toCBORSlotNoEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy SlotNoSize 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

encCBORSlotNoEncoding Source #

NFData SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnfSlotNo → () #

Eq SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

(==)SlotNoSlotNoBool #

(/=)SlotNoSlotNoBool #

Ord SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

compareSlotNoSlotNoOrdering #

(<)SlotNoSlotNoBool #

(<=)SlotNoSlotNoBool #

(>)SlotNoSlotNoBool #

(>=)SlotNoSlotNoBool #

maxSlotNoSlotNoSlotNo #

minSlotNoSlotNoSlotNo #

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-e32c106a26359392be40ab0d528976b22065c041ee7f25eb107e1721327eb0c7" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

fromSlotNoRep SlotNo x #

toRep SlotNo x → SlotNo #

Num SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

(+)SlotNoSlotNoSlotNo #

(-)SlotNoSlotNoSlotNo #

(*)SlotNoSlotNoSlotNo #

negateSlotNoSlotNo #

absSlotNoSlotNo #

signumSlotNoSlotNo #

fromIntegerIntegerSlotNo #

Show SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Methods

showsPrecIntSlotNoShowS #

showSlotNoString #

showList ∷ [SlotNo] → ShowS #

Hashable SlotNo # 
Instance details

Defined in Test.Ouroboros.Storage.TestBlock

Methods

hashWithSaltIntSlotNoInt Source #

hashSlotNoInt Source #

NoThunks SlotNo Source # 
Instance details

Defined in Cardano.Slotting.Slot

Condense SlotNo Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Methods

condenseSlotNoString 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

showProxyProxy SlotNoString #

(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

getAnchorMeasureProxy 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

asAnchorStateRef m l blk → StateRef m l blk

getAnchorMeasureProxy (StateRef m l blk) → StateRef m l blk → WithOrigin SlotNo

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-e32c106a26359392be40ab0d528976b22065c041ee7f25eb107e1721327eb0c7" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))