Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // GenesisTime provides the time of the chain's genesis. GenesisTime() time.Time // StartOfSlot provides the time at which a given slot starts. StartOfSlot(slot uint64) time.Time // StartOfEpoch provides the time at which a given epoch starts. StartOfEpoch(epoch uint64) time.Time // CurrentSlot provides the current slot. CurrentSlot() uint64 // CurrentEpoch provides the current epoch. CurrentEpoch() uint64 // SlotToEpoch provides the epoch of the given slot. SlotToEpoch(slot uint64) uint64 // FirstSlotOfEpoch provides the first slot of the given epoch. FirstSlotOfEpoch(epoch uint64) uint64 }
Service provides a number of functions for calculating chain-related times.
Click to show internal directories.
Click to hide internal directories.