Documentation ¶
Index ¶
- type Parameter
- func WithAccountsRefresher(refresher accountmanager.Refresher) Parameter
- func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
- func WithAttester(attester attester.Service) Parameter
- func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
- func WithBeaconBlockProposer(proposer beaconblockproposer.Service) Parameter
- func WithBeaconCommitteeSubscriber(subscriber beaconcommitteesubscriber.Service) Parameter
- func WithChainTimeService(service chaintime.Service) Parameter
- func WithEventsProvider(provider eth2client.EventsProvider) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.ControllerMonitor) Parameter
- func WithProposerDutiesProvider(provider eth2client.ProposerDutiesProvider) Parameter
- func WithScheduler(scheduler scheduler.Service) Parameter
- func WithSlotDurationProvider(provider eth2client.SlotDurationProvider) Parameter
- func WithSlotsPerEpochProvider(provider eth2client.SlotsPerEpochProvider) Parameter
- func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithAccountsRefresher ¶ added in v1.0.0
func WithAccountsRefresher(refresher accountmanager.Refresher) Parameter
WithAccountsRefresher sets the account refresher.
func WithAttestationAggregator ¶
func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
WithAttestationAggregator sets the attestation aggregator.
func WithAttester ¶
WithAttester sets the attester.
func WithAttesterDutiesProvider ¶
func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
WithAttesterDutiesProvider sets the attester duties provider.
func WithBeaconBlockProposer ¶
func WithBeaconBlockProposer(proposer beaconblockproposer.Service) Parameter
WithBeaconBlockProposer sets the beacon block propser.
func WithBeaconCommitteeSubscriber ¶
func WithBeaconCommitteeSubscriber(subscriber beaconcommitteesubscriber.Service) Parameter
WithBeaconCommitteeSubscriber sets the beacon committee subscriber.
func WithChainTimeService ¶
WithChainTimeService sets the chain time service.
func WithEventsProvider ¶ added in v0.9.0
func WithEventsProvider(provider eth2client.EventsProvider) Parameter
WithEventsProvider sets the events provider.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
func WithMonitor(monitor metrics.ControllerMonitor) Parameter
WithMonitor sets the monitor for the module.
func WithProposerDutiesProvider ¶
func WithProposerDutiesProvider(provider eth2client.ProposerDutiesProvider) Parameter
WithProposerDutiesProvider sets the proposer duties provider.
func WithScheduler ¶
WithScheduler sets the scheduler.
func WithSlotDurationProvider ¶
func WithSlotDurationProvider(provider eth2client.SlotDurationProvider) Parameter
WithSlotDurationProvider sets the slot duration provider.
func WithSlotsPerEpochProvider ¶
func WithSlotsPerEpochProvider(provider eth2client.SlotsPerEpochProvider) Parameter
WithSlotsPerEpochProvider sets the slots per epoch provider.
func WithValidatingAccountsProvider ¶
func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
WithValidatingAccountsProvider sets the validating accounts provider.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the co-ordination system for vouch. It runs purely against clock events, setting up jobs for the validator's processes of block proposal, attestation creation and attestation aggregation.
func (*Service) AttestAndScheduleAggregate ¶
AttestAndScheduleAggregate attests, then schedules aggregation jobs as required.
func (*Service) HandleHeadEvent ¶ added in v0.9.0
HandleHeadEvent handles the "head" events from the beacon node.