cardano-slotting-0.1.0.2: Key slotting types for cardano libraries
Safe Haskell None
Language Haskell2010

Cardano.Slotting.EpochInfo.API

Contents

Synopsis

Documentation

data EpochInfo m Source #

Information about epochs

Different epochs may have different sizes and different slot lengths. This information is encapsulated by EpochInfo . It is parameterized over a monad m because the information about how long each epoch is may depend on information derived from the blockchain itself. It ultimately requires acess to state, and so either uses the monad for that or uses the monad to reify failure due to cached state information being too stale for the current query.

Constructors

EpochInfo

Fields

Utility

hoistEpochInfo :: ( forall a. m a -> n a) -> EpochInfo m -> EpochInfo n Source #