ethereum

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconNode added in v0.0.168

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

func NewBeaconNode added in v0.0.168

func NewBeaconNode(ctx context.Context, name string, config *Config, log logrus.FieldLogger, addr string) (*BeaconNode, error)

func (*BeaconNode) Duties added in v0.0.168

func (b *BeaconNode) Duties() *services.DutiesService

func (*BeaconNode) Metadata added in v0.0.168

func (b *BeaconNode) Metadata() *services.MetadataService

func (*BeaconNode) Node added in v0.0.168

func (b *BeaconNode) Node() beacon.Node

func (*BeaconNode) OnReady added in v0.0.168

func (b *BeaconNode) OnReady(_ context.Context, callback func(ctx context.Context) error)

func (*BeaconNode) Start added in v0.0.168

func (b *BeaconNode) Start(ctx context.Context) error

func (*BeaconNode) Synced added in v0.0.168

func (b *BeaconNode) Synced(ctx context.Context) error

type Config

type Config struct {
	Network string `yaml:"network"`

	// Devnet specific attributes (requires 'network=devnet').
	Devnet DevnetOptions `yaml:"devnet"`
}

func (*Config) Validate

func (c *Config) Validate() error

type DevnetOptions added in v1.0.15

type DevnetOptions struct {
	// ConfigURL is the .yaml URL to fetch the beacon chain cfg.
	ConfigURL string `yaml:"configUrl"`
	// BootnodesURL is the .yaml URL from which to fetch the bootnode ENRs.
	BootnodesURL string `yaml:"bootnodesUrl"`
	// DepositContractBlockURL is the .txt URL from which to fetch the deposit contract block.
	DepositContractBlockURL string `yaml:"depositContractBlockUrl"`
	// GenesisSSZURL is the .ssz URL from which to fetch the genesis data.
	GenesisSSZURL string `yaml:"genesisSszUrl"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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