Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype EraSize = EraSize {}
- data Future
- futureEpochInFirstEra ∷ Future → EpochNo → Bool
- futureFirstEpochSize ∷ Future → EpochSize
- futureFirstSlotLength ∷ Future → SlotLength
- futureSlotLengths ∷ Future → Stream SlotLength
- futureSlotToEpoch ∷ Future → SlotNo → EpochNo
- futureSlotToTime ∷ Future → SlotNo → NominalDiffTime
- futureTimeToSlot ∷ Future → NominalDiffTime → (SlotNo, NominalDiffTime, SlotLength)
- singleEraFuture ∷ SlotLength → EpochSize → Future
Documentation
Number of epochs
Every era in the test
INVARIANT: every number is > 0
futureFirstSlotLength ∷ Future → SlotLength Source #
SlotLength
of the first era
futureSlotLengths ∷ Future → Stream SlotLength Source #
Length of each slot in the whole Future
futureSlotToTime ∷ Future → SlotNo → NominalDiffTime Source #
When the slot begins
futureTimeToSlot ∷ Future → NominalDiffTime → (SlotNo, NominalDiffTime, SlotLength) Source #
(slot, time left in slot, length of slot)
singleEraFuture ∷ SlotLength → EpochSize → Future Source #
Future
with only one era