Versions in this module Expand all Collapse all v0 v0.1.0 Jun 8, 2022 Changes in this version + const NodePortEth1Http + const NodePortHttp + const NodePortP2P + const NodePortPrysmGrpc + func NewEth1Server() []nodeOption + func NewLighthouseBeacon(config *BeaconConfig) ([]nodeOption, error) + func NewLighthouseValidator(config *ValidatorConfig) ([]nodeOption, error) + func NewPrysmBeacon(config *BeaconConfig) ([]nodeOption, error) + func NewPrysmValidator(config *ValidatorConfig) ([]nodeOption, error) + func NewTekuBeacon(config *BeaconConfig) ([]nodeOption, error) + func NewTekuValidator(config *ValidatorConfig) ([]nodeOption, error) + func WithCmd(cmd []string) nodeOption + func WithContainer(repository string) nodeOption + func WithFile(path string, obj interface{}) nodeOption + func WithLabels(m map[string]string) nodeOption + func WithMount(mount string) nodeOption + func WithName(name string) nodeOption + func WithNodeClient(nodeClient proto.NodeClient) nodeOption + func WithNodeType(nodeType proto.NodeType) nodeOption + func WithOutput(output io.Writer) nodeOption + func WithRetry(retry func(n *node) error) nodeOption + func WithTag(tag string) nodeOption + func WithUser(user string) nodeOption + type BeaconConfig struct + Bootnode string + Eth1 string + GenesisSSZ []byte + Spec *Eth2Spec + type Bootnode struct + Enr string + func NewBootnode() (*Bootnode, error) + func (n Bootnode) GetAddr(port NodePort) string + func (n Bootnode) GetLogs() (string, error) + func (n Bootnode) IP() string + func (n Bootnode) Stop() error + func (n Bootnode) Type() proto.NodeClient + func (n Bootnode) WaitCh() <-chan struct{} + type Config struct + Name string + Spec *Eth2Spec + func DefaultConfig() *Config + type CreateBeacon func(cfg *BeaconConfig) (*node, error) + type CreateBeacon2 func(cfg *BeaconConfig) ([]nodeOption, error) + type CreateValidator func(cfg *ValidatorConfig) (*node, error) + type CreateValidator2 func(cfg *ValidatorConfig) ([]nodeOption, error) + type Eth2Spec struct + DepositContract string + EpochsPerEth1VotingPeriod int + EthFollowDistance int + Forks Forks + GenesisDelay int + GenesisValidatorCount int + MinGenesisTime int + SecondsPerEth1Block int + SecondsPerSlot int + ShardCommitteePeriod int + SlotsPerEpoch int + func (e *Eth2Spec) MarshalText() ([]byte, error) + type Forks struct + Altair *int + Bellatrix *int + type NodePort string + type Server struct + func NewServer(logger hclog.Logger, config *Config) (*Server, error) + func (s *Server) DeployNode(ctx context.Context, req *proto.DeployNodeRequest) (*proto.DeployNodeResponse, error) + func (s *Server) DeployValidator(ctx context.Context, req *proto.DeployValidatorRequest) (*proto.DeployValidatorResponse, error) + func (s *Server) Stop() + type ValidatorConfig struct + Accounts []*proto.Account + Beacon *node + Spec *Eth2Spec