Documentation
¶
Index ¶
- type BeaconNode
- func (b *BeaconNode) Duties() *services.DutiesService
- func (b *BeaconNode) Metadata() *services.MetadataService
- func (b *BeaconNode) Node() beacon.Node
- func (b *BeaconNode) OnReady(_ context.Context, callback func(ctx context.Context) error)
- func (b *BeaconNode) Start(ctx context.Context) error
- func (b *BeaconNode) Synced(ctx context.Context) error
- type Config
- type DevnetOptions
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
type Config ¶
type Config struct {
Network string `yaml:"network"`
// Devnet specific attributes (requires 'network=devnet').
Devnet DevnetOptions `yaml:"devnet"`
}
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"`
}
Click to show internal directories.
Click to hide internal directories.