Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype EpochSlots = EpochSlots {}
- data WithEpochSlots a = WithEpochSlots {}
- epochFirstSlot ∷ EpochSlots → EpochNumber → SlotNumber
Documentation
newtype EpochSlots Source #
The number of slots per epoch.
Instances
data WithEpochSlots a Source #
Data with an accompanying slots per epoch context.
Instances
Show a ⇒ Show (WithEpochSlots a) Source # | |
Defined in Cardano.Chain.Slotting.EpochSlots | |
Buildable (WithEpochSlots Block) Source # | |
Defined in Cardano.Chain.Block.Block | |
Buildable (WithEpochSlots Header) Source # | |
Defined in Cardano.Chain.Block.Header | |
Eq a ⇒ Eq (WithEpochSlots a) Source # | |
Defined in Cardano.Chain.Slotting.EpochSlots (==) ∷ WithEpochSlots a → WithEpochSlots a → Bool Source # (/=) ∷ WithEpochSlots a → WithEpochSlots a → Bool Source # |
epochFirstSlot ∷ EpochSlots → EpochNumber → SlotNumber Source #
Calculate the first slot in an epoch.
Note that this function will give an undetermined result if Byron is not the
first and only era - a more robust method should use EpochInfo
from
cardano-slotting.