Documentation ¶
Index ¶
- Variables
- type Client
- type DutiesService
- func (m *DutiesService) GetAttestationDuties(epoch phase0.Epoch) ([]*v1.BeaconCommittee, error)
- func (m *DutiesService) GetLastCommitteeIndex(ctx context.Context, slot phase0.Slot) (*phase0.CommitteeIndex, error)
- func (m *DutiesService) GetProposerDuties(epoch phase0.Epoch) ([]*v1.ProposerDuty, error)
- func (m *DutiesService) GetValidatorIndex(epoch phase0.Epoch, slot phase0.Slot, committeeIndex phase0.CommitteeIndex, ...) (phase0.ValidatorIndex, error)
- func (m *DutiesService) Name() Name
- func (m *DutiesService) NiceToHaveEpochDuties(ctx context.Context) []phase0.Epoch
- func (m *DutiesService) OnBeaconCommittee(fn func(phase0.Epoch, []*v1.BeaconCommittee) error)
- func (m *DutiesService) OnProposerDuties(fn func(phase0.Epoch, []*v1.ProposerDuty) error)
- func (m *DutiesService) OnReady(ctx context.Context, fn func(context.Context) error)
- func (m *DutiesService) Ready(ctx context.Context) error
- func (m *DutiesService) RequiredEpochDuties(ctx context.Context) []phase0.Epoch
- func (m *DutiesService) Start(ctx context.Context) error
- func (m *DutiesService) Stop(ctx context.Context) error
- type MetadataService
- func (m *MetadataService) Client(ctx context.Context) string
- func (m *MetadataService) DeriveNetwork(_ context.Context) error
- func (m *MetadataService) DeriveNodeIdentity(ctx context.Context) (*types.Identity, error)
- func (m *MetadataService) Name() Name
- func (m *MetadataService) NodeID() (string, error)
- func (m *MetadataService) NodeIDHash() (string, error)
- func (m *MetadataService) NodeIdentity() (*types.Identity, error)
- func (m *MetadataService) NodeVersion(_ context.Context) string
- func (m *MetadataService) OnReady(ctx context.Context, cb func(context.Context) error)
- func (m *MetadataService) Ready(ctx context.Context) error
- func (m *MetadataService) RefreshAll(ctx context.Context) error
- func (m *MetadataService) Start(ctx context.Context) error
- func (m *MetadataService) Stop(ctx context.Context) error
- func (m *MetadataService) Wallclock() *ethwallclock.EthereumBeaconChain
- type Name
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var AllClients = []Client{ ClientUnknown, ClientLighthouse, ClientNimbus, ClientTeku, ClientPrysm, ClientLodestar, }
Functions ¶
This section is empty.
Types ¶
type DutiesService ¶
type DutiesService struct {
// contains filtered or unexported fields
}
func NewDutiesService ¶
func NewDutiesService(log logrus.FieldLogger, sbeacon beacon.Node, metadata *MetadataService, proposerDutiesEnabled, beaconCommitteesEnabled bool) DutiesService
func (*DutiesService) GetAttestationDuties ¶
func (m *DutiesService) GetAttestationDuties(epoch phase0.Epoch) ([]*v1.BeaconCommittee, error)
func (*DutiesService) GetLastCommitteeIndex ¶
func (m *DutiesService) GetLastCommitteeIndex(ctx context.Context, slot phase0.Slot) (*phase0.CommitteeIndex, error)
func (*DutiesService) GetProposerDuties ¶ added in v0.0.156
func (m *DutiesService) GetProposerDuties(epoch phase0.Epoch) ([]*v1.ProposerDuty, error)
func (*DutiesService) GetValidatorIndex ¶
func (m *DutiesService) GetValidatorIndex(epoch phase0.Epoch, slot phase0.Slot, committeeIndex phase0.CommitteeIndex, position uint64) (phase0.ValidatorIndex, error)
func (*DutiesService) Name ¶
func (m *DutiesService) Name() Name
func (*DutiesService) NiceToHaveEpochDuties ¶
func (m *DutiesService) NiceToHaveEpochDuties(ctx context.Context) []phase0.Epoch
func (*DutiesService) OnBeaconCommittee ¶
func (m *DutiesService) OnBeaconCommittee(fn func(phase0.Epoch, []*v1.BeaconCommittee) error)
func (*DutiesService) OnProposerDuties ¶ added in v0.0.156
func (m *DutiesService) OnProposerDuties(fn func(phase0.Epoch, []*v1.ProposerDuty) error)
func (*DutiesService) RequiredEpochDuties ¶
func (m *DutiesService) RequiredEpochDuties(ctx context.Context) []phase0.Epoch
type MetadataService ¶
type MetadataService struct { Network *networks.Network Genesis *v1.Genesis Spec *state.Spec // contains filtered or unexported fields }
func NewMetadataService ¶
func NewMetadataService(log logrus.FieldLogger, sbeacon beacon.Node, overrideNetworkName string) MetadataService
func (*MetadataService) DeriveNetwork ¶
func (m *MetadataService) DeriveNetwork(_ context.Context) error
func (*MetadataService) DeriveNodeIdentity ¶ added in v0.0.200
func (*MetadataService) Name ¶
func (m *MetadataService) Name() Name
func (*MetadataService) NodeID ¶ added in v0.0.200
func (m *MetadataService) NodeID() (string, error)
func (*MetadataService) NodeIDHash ¶ added in v0.0.200
func (m *MetadataService) NodeIDHash() (string, error)
func (*MetadataService) NodeIdentity ¶ added in v0.0.200
func (m *MetadataService) NodeIdentity() (*types.Identity, error)
func (*MetadataService) NodeVersion ¶
func (m *MetadataService) NodeVersion(_ context.Context) string
func (*MetadataService) RefreshAll ¶
func (m *MetadataService) RefreshAll(ctx context.Context) error
func (*MetadataService) Wallclock ¶
func (m *MetadataService) Wallclock() *ethwallclock.EthereumBeaconChain
Click to show internal directories.
Click to hide internal directories.