eth

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNetworkIDMap

func DefaultNetworkIDMap() map[uint64]string

func EpochAsString

func EpochAsString(epoch phase0.Epoch) string

func GetNetworkName

func GetNetworkName(networkID uint64) string

func RootAsString

func RootAsString(root phase0.Root) string

func SlotAsString

func SlotAsString(slot phase0.Slot) string

Types

type SlotTime

type SlotTime struct {
	// The time at which the slot started.
	StartTime time.Time `json:"start_time"`
	// The time at which the slot ends.
	EndTime time.Time `json:"end_time"`
}

func CalculateSlotTime

func CalculateSlotTime(slot phase0.Slot, genesisTime time.Time, durationPerSlot time.Duration) SlotTime

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL