standard

package
v1.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 38 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 WithCACertURL

func WithCACertURL(url string) Parameter

WithCACertURL sets the URL for the CA certificate when carrying out dynamic requests.

func WithChainTime

func WithChainTime(service chaintime.Service) Parameter

WithChainTime sets the chaintime service.

func WithClientCertURL

func WithClientCertURL(url string) Parameter

WithClientCertURL sets the URL for the client certificate when carrying out dynamic requests.

func WithClientKeyURL

func WithClientKeyURL(url string) Parameter

WithClientKeyURL sets the URL for the client key when carrying out dynamic requests.

func WithConfigURL

func WithConfigURL(url string) Parameter

WithConfigURL sets the URL for the config server.

func WithFallbackFeeRecipient

func WithFallbackFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter

WithFallbackFeeRecipient sets the fallback fee recipient for all validators.

func WithFallbackGasLimit

func WithFallbackGasLimit(gasLimit uint64) Parameter

WithFallbackGasLimit sets the fallback gas limit for all validators.

func WithListenAddress

func WithListenAddress(address string) Parameter

WithListenAddress sets the listen address for the module.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMajordomo

func WithMajordomo(majordomo majordomo.Service) Parameter

WithMajordomo sets majordomo for the module.

func WithMonitor

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for the module.

func WithScheduler

func WithScheduler(scheduler scheduler.Service) Parameter

WithScheduler provides the scheduler service.

func WithSecondaryValidatorRegistrationsSubmitters

func WithSecondaryValidatorRegistrationsSubmitters(submitters []consensusclient.ValidatorRegistrationsSubmitter) Parameter

WithSecondaryValidatorRegistrationsSubmitters sets the secondary validator registrations submitters.

func WithTimeout

func WithTimeout(timeout time.Duration) Parameter

WithTimeout sets the timeout for requests.

func WithValidatingAccountsProvider

func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter

WithValidatingAccountsProvider sets the account manager.

func WithValidatorRegistrationSigner

func WithValidatorRegistrationSigner(signer signer.ValidatorRegistrationSigner) Parameter

WithValidatorRegistrationSigner sets the validator registration signer.

type Service

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

Service is the builder service for Vouch.

func New

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

New creates a new controller.

func (*Service) AuctionBlock

func (s *Service) AuctionBlock(ctx context.Context,
	slot phase0.Slot,
	parentHash phase0.Hash32,
	pubkey phase0.BLSPubKey,
) (
	*blockauctioneer.Results,
	error,
)

AuctionBlock obtains the best available use of the block space.

func (*Service) BuilderBid

func (s *Service) BuilderBid(_ context.Context,
	slot phase0.Slot,
	parentHash phase0.Hash32,
	pubkey phase0.BLSPubKey,
) (
	*spec.VersionedSignedBuilderBid,
	error,
)

BuilderBid provides a builder bid.

func (*Service) ExecutionConfig

func (s *Service) ExecutionConfig(_ context.Context) (*blockrelay.ExecutionConfig, error)

ExecutionConfig provides the current execution configuration.

func (*Service) SubmitValidatorRegistrations

func (s *Service) SubmitValidatorRegistrations(ctx context.Context,
	accounts map[phase0.ValidatorIndex]e2wtypes.Account,
) error

SubmitValidatorRegistrations submits validator registrations for the given accounts.

func (*Service) ValidatorRegistrationsPassthrough

func (*Service) ValidatorRegistrationsPassthrough(_ context.Context, _ io.ReadCloser) ([]string, error)

ValidatorRegistrationsPassthrough handles validator registrations directly.

Jump to

Keyboard shortcuts

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