Documentation ¶
Index ¶
- type Parameter
- func WithBaseURL(url string) Parameter
- func WithCACert(cert []byte) Parameter
- func WithClientCert(cert []byte) Parameter
- func WithClientKey(key []byte) Parameter
- func WithDefaultFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithTimeout(timeout time.Duration) 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 WithBaseURL ¶
WithBaseURL sets the base URL for fetching fee recipients.
func WithCACert ¶
WithCACert sets the bytes of the certificate authority TLS certificate.
func WithClientCert ¶
WithClientCert sets the bytes of the client TLS certificate.
func WithClientKey ¶
WithClientKey sets the bytes of the client TLS key.
func WithDefaultFeeRecipient ¶
func WithDefaultFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter
WithDefaultFeeRecipient sets the default fee recipient.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
WithMonitor sets the monitor for the module.
func WithTimeout ¶
WithTimeout sets the timeout for calls made by the module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a fee recipient provider service.
func (*Service) FeeRecipients ¶
func (s *Service) FeeRecipients(ctx context.Context, indices []phase0.ValidatorIndex, ) ( map[phase0.ValidatorIndex]bellatrix.ExecutionAddress, error, )
FeeRecipients returns the fee recipients for the given validators.
Click to show internal directories.
Click to hide internal directories.