Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SlotStart = SlotStart {}
- unsafeParseSlot :: Genesis -> SlotNo -> (EpochNo, EpochSlot)
- slotEpochSafeInt :: Genesis -> EpochSlot -> EpochSafeInt
- slotStart :: Genesis -> SlotNo -> SlotStart
- impliedSlot :: Genesis -> UTCTime -> SlotNo
- sinceSlot :: UTCTime -> SlotStart -> NominalDiffTime
- afterSlot :: NominalDiffTime -> SlotStart -> UTCTime
Documentation
Instances
FromJSON SlotStart Source # | |
Defined in Cardano.Analysis.API.Chain | |
ToJSON SlotStart Source # | |
Defined in Cardano.Analysis.API.Chain | |
Generic SlotStart Source # | |
Show SlotStart Source # | |
NFData SlotStart Source # | |
Defined in Cardano.Analysis.API.Chain | |
Eq SlotStart Source # | |
type Rep SlotStart Source # | |
Defined in Cardano.Analysis.API.Chain |
unsafeParseSlot :: Genesis -> SlotNo -> (EpochNo, EpochSlot) Source #
A pretty obvious (and dangerously assumptious) interpretation of an absolute slot number. This is wrong, if you consider the reasons why epochLength can change.
slotEpochSafeInt :: Genesis -> EpochSlot -> EpochSafeInt Source #