cardano-slotting-0.2.1.0: Key slotting types for cardano libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Slotting.EpochInfo.Impl

Contents

Description

For use in trivial cases, such as in mocks, tests, etc.

Synopsis

Documentation

fixedEpochInfo ∷ Monad m ⇒ EpochSize → SlotLength → EpochInfo m Source #

The EpochInfo induced by assuming the epoch size and slot length are fixed for the entire system lifetime

Shortcuts

fixedEpochInfoEpoch ∷ EpochSize → SlotNo → EpochNo Source #

The pure computation underlying epochInfoEpoch applied to fixedEpochInfo

You don't need a SlotLength for this.

fixedEpochInfoFirst ∷ EpochSize → EpochNo → SlotNo Source #

The pure computation underlying epochInfoFirst applied to fixedEpochInfo

You don't need a SlotLength for this.