util

package
v0.0.0-...-76c5325 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppData = filepath.Join(GetUserHomeDir(), ".struck")
View Source
var Shutdown = false

Functions

func Contains

func Contains(s []string, e string) bool

func EtherToWei

func EtherToWei(val *big.Int) *big.Int

func GetPassPhrase

func GetPassPhrase(confirmation bool) (*string, error)

func GetUserHomeDir

func GetUserHomeDir() string

func PathExists

func PathExists(path string) bool

func ToPubKey

func ToPubKey(key string) (phase0.BLSPubKey, error)

func WeiToEther

func WeiToEther(val *big.Int) *big.Int

func WrapError

func WrapError(err error, msg string, params ...any) error

Types

type BeaconBlockHeaderCache

type BeaconBlockHeaderCache struct {
	// contains filtered or unexported fields
}

BeaconBlockHeaderCache is a cache of beacon block headers.

func NewBeaconBlockHeaderCache

func NewBeaconBlockHeaderCache(provider eth2client.BeaconBlockHeadersProvider) *BeaconBlockHeaderCache

NewBeaconBlockHeaderCache makes a new beacon block header cache.

func (*BeaconBlockHeaderCache) Fetch

Fetch the beacon block header for the given slot.

Jump to

Keyboard shortcuts

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