Documentation
¶
Index ¶
- Variables
- func Contains(s []string, e string) bool
- func EtherToWei(val *big.Int) *big.Int
- func GetPassPhrase(confirmation bool) (*string, error)
- func GetUserHomeDir() string
- func PathExists(path string) bool
- func ToPubKey(key string) (phase0.BLSPubKey, error)
- func WeiToEther(val *big.Int) *big.Int
- func WrapError(err error, msg string, params ...any) error
- type BeaconBlockHeaderCache
Constants ¶
This section is empty.
Variables ¶
View Source
var AppData = filepath.Join(GetUserHomeDir(), ".struck")
View Source
var Shutdown = false
Functions ¶
func GetPassPhrase ¶
func GetUserHomeDir ¶
func GetUserHomeDir() string
func PathExists ¶
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 ¶
func (b *BeaconBlockHeaderCache) Fetch(ctx context.Context, slot phase0.Slot, ) ( *apiv1.BeaconBlockHeader, error, )
Fetch the beacon block header for the given slot.
Click to show internal directories.
Click to hide internal directories.