standard

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 WithAttestationDataProvider

func WithAttestationDataProvider(provider eth2client.AttestationDataProvider) Parameter

WithAttestationDataProvider sets the attestation data provider.

func WithAttestationsSubmitter added in v1.0.0

func WithAttestationsSubmitter(submitter submitter.AttestationsSubmitter) Parameter

WithAttestationsSubmitter sets the attestations submitter.

func WithBeaconAttestationsSigner added in v1.0.0

func WithBeaconAttestationsSigner(signer signer.BeaconAttestationsSigner) Parameter

WithBeaconAttestationsSigner sets the beacon attestations signer.

func WithChainTime added in v1.9.0

func WithChainTime(service chaintime.Service) Parameter

WithChainTime sets the chain time service.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for this module.

func WithProcessConcurrency

func WithProcessConcurrency(concurrency int64) Parameter

WithProcessConcurrency sets the concurrency for the service.

func WithSpecProvider added in v1.8.0

func WithSpecProvider(provider eth2client.SpecProvider) Parameter

WithSpecProvider sets the specification provider.

func WithValidatingAccountsProvider

func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter

WithValidatingAccountsProvider sets the account manager.

type Service

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

Service is a beacon block attester.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new beacon block attester.

func (*Service) Attest

func (s *Service) Attest(ctx context.Context, duty *attester.Duty) ([]*phase0.Attestation, error)

Attest carries out attestations for a slot. It returns a map of attestations made, keyed on the validator index.

Jump to

Keyboard shortcuts

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