ouroboros-consensus-0.18.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Util.HardFork.Future

Synopsis

Documentation

newtype EraSize Source #

Number of epochs

Constructors

EraSize 

Fields

Instances

Instances details
Generic EraSize Source # 
Instance details

Defined in Test.Util.HardFork.Future

Associated Types

type Rep EraSizeTypeType #

Methods

fromEraSizeRep EraSize x #

toRep EraSize x → EraSize #

Show EraSize Source # 
Instance details

Defined in Test.Util.HardFork.Future

Methods

showsPrecIntEraSizeShowS #

showEraSizeString #

showList ∷ [EraSize] → ShowS #

Eq EraSize Source # 
Instance details

Defined in Test.Util.HardFork.Future

Methods

(==)EraSizeEraSizeBool #

(/=)EraSizeEraSizeBool #

type Rep EraSize Source # 
Instance details

Defined in Test.Util.HardFork.Future

type Rep EraSize = D1 ('MetaData "EraSize" "Test.Util.HardFork.Future" "ouroboros-consensus-0.18.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "EraSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEraSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data Future Source #

Every era in the test

INVARIANT: every number is > 0

Instances

Instances details
Show Future Source # 
Instance details

Defined in Test.Util.HardFork.Future

Methods

showsPrecIntFutureShowS #

showFutureString #

showList ∷ [Future] → ShowS #

Eq Future Source # 
Instance details

Defined in Test.Util.HardFork.Future

Methods

(==)FutureFutureBool #

(/=)FutureFutureBool #

futureEpochInFirstEraFutureEpochNoBool Source #

Whether the epoch is in the first era

futureSlotLengthsFutureStream SlotLength Source #

Length of each slot in the whole Future

futureSlotToEpochFutureSlotNoEpochNo Source #

Which epoch the slot is in

futureSlotToTimeFutureSlotNoNominalDiffTime Source #

When the slot begins

futureTimeToSlotFutureNominalDiffTime → (SlotNo, NominalDiffTime, SlotLength) Source #

(slot, time left in slot, length of slot)