static

package
v1.5.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 11 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 WithDefaultFeeRecipient

func WithDefaultFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter

WithDefaultFeeRecipient sets the default fee recipient.

func WithFeeRecipients

func WithFeeRecipients(feeRecipients map[phase0.ValidatorIndex]bellatrix.ExecutionAddress) Parameter

WithFeeRecipients sets the fee recipients.

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 the module.

type Service

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

Service is a fee recipient provider service.

func New

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

New creates a new graffiti provider service.

func (*Service) FeeRecipients

func (s *Service) FeeRecipients(_ context.Context,
	indices []phase0.ValidatorIndex,
) (
	map[phase0.ValidatorIndex]bellatrix.ExecutionAddress,
	error,
)

FeeRecipients returns the fee recipients for the given validators.

Jump to

Keyboard shortcuts

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