Versions in this module Expand all Collapse all v2 v2.0.1 Oct 5, 2021 Changes in this version + const MaxSlotBuffer + func AbsoluteValueSlotDifference(x, y types.Slot) uint64 + func CountdownToGenesis(ctx context.Context, genesisTime time.Time, genesisValidatorCount uint64, ...) + func CurrentSlot(genesisTimeSec uint64) types.Slot + func DivideSlotBy(timesPerSlot int64) time.Duration + func EpochEnd(epoch types.Epoch) (types.Slot, error) + func EpochStart(epoch types.Epoch) (types.Slot, error) + func EpochsSinceGenesis(genesis time.Time) types.Epoch + func IsEpochEnd(slot types.Slot) bool + func IsEpochStart(slot types.Slot) bool + func MultiplySlotBy(times int64) time.Duration + func PrevSlot(slot types.Slot) types.Slot + func RoundUpToNearestEpoch(slot types.Slot) types.Slot + func Since(time time.Time) types.Slot + func SinceEpochStarts(slot types.Slot) types.Slot + func SinceGenesis(genesis time.Time) types.Slot + func StartTime(genesis uint64, slot types.Slot) time.Time + func SyncCommitteePeriod(e types.Epoch) uint64 + func SyncCommitteePeriodStartEpoch(e types.Epoch) (types.Epoch, error) + func ToEpoch(slot types.Slot) types.Epoch + func ToTime(genesisTimeSec uint64, slot types.Slot) (time.Time, error) + func ValidateClock(slot types.Slot, genesisTimeSec uint64) error + func VerifyTime(genesisTime uint64, slot types.Slot, timeTolerance time.Duration) error + func VotingPeriodStartTime(genesis uint64, slot types.Slot) uint64 + type SlotTicker struct + func NewSlotTicker(genesisTime time.Time, secondsPerSlot uint64) *SlotTicker + func NewSlotTickerWithOffset(genesisTime time.Time, offset time.Duration, secondsPerSlot uint64) *SlotTicker + func (s *SlotTicker) C() <-chan types.Slot + func (s *SlotTicker) Done() + type Ticker interface + C func() <-chan types.Slot + Done func() Other modules containing this package github.com/prysmaticlabs/prysm/v3 github.com/prysmaticlabs/prysm/v4 github.com/prysmaticlabs/prysm/v5