standard

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 16 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 WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.AttestationMonitor) Parameter

WithMonitor sets the monitor for this module.

func WithProcessConcurrency

func WithProcessConcurrency(concurrency int64) Parameter

WithProcessConcurrency sets the concurrency for the service.

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 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, data interface{}) ([]*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