Documentation ¶
Index ¶
- type Parameter
- func WithCACertURL(url string) Parameter
- func WithChainTime(service chaintime.Service) Parameter
- func WithClientCertURL(url string) Parameter
- func WithClientKeyURL(url string) Parameter
- func WithConfigURL(url string) Parameter
- func WithFallbackFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter
- func WithFallbackGasLimit(gasLimit uint64) Parameter
- func WithListenAddress(address string) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMajordomo(majordomo majordomo.Service) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithScheduler(scheduler scheduler.Service) Parameter
- func WithSecondaryValidatorRegistrationsSubmitters(submitters []consensusclient.ValidatorRegistrationsSubmitter) Parameter
- func WithTimeout(timeout time.Duration) Parameter
- func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
- func WithValidatorRegistrationSigner(signer signer.ValidatorRegistrationSigner) Parameter
- type Service
- func (s *Service) AuctionBlock(ctx context.Context, slot phase0.Slot, parentHash phase0.Hash32, ...) (*blockauctioneer.Results, error)
- func (s *Service) BuilderBid(_ context.Context, slot phase0.Slot, parentHash phase0.Hash32, ...) (*spec.VersionedSignedBuilderBid, error)
- func (s *Service) ExecutionConfig(_ context.Context) (*blockrelay.ExecutionConfig, error)
- func (s *Service) SubmitValidatorRegistrations(ctx context.Context, accounts map[phase0.ValidatorIndex]e2wtypes.Account) error
- func (*Service) ValidatorRegistrationsPassthrough(_ context.Context, _ io.ReadCloser) ([]string, error)
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 ¶
WithCACertURL sets the URL for the CA certificate when carrying out dynamic requests.
func WithChainTime ¶
WithChainTime sets the chaintime service.
func WithClientCertURL ¶
WithClientCertURL sets the URL for the client certificate when carrying out dynamic requests.
func WithClientKeyURL ¶
WithClientKeyURL sets the URL for the client key when carrying out dynamic requests.
func WithConfigURL ¶
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 ¶
WithFallbackGasLimit sets the fallback gas limit for all validators.
func WithListenAddress ¶
WithListenAddress sets the listen address for the module.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMajordomo ¶
func WithMajordomo(majordomo majordomo.Service) Parameter
WithMajordomo sets majordomo for the module.
func WithMonitor ¶
WithMonitor sets the monitor for the module.
func WithScheduler ¶
WithScheduler provides the scheduler service.
func WithSecondaryValidatorRegistrationsSubmitters ¶
func WithSecondaryValidatorRegistrationsSubmitters(submitters []consensusclient.ValidatorRegistrationsSubmitter) Parameter
WithSecondaryValidatorRegistrationsSubmitters sets the secondary validator registrations submitters.
func WithTimeout ¶
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 (*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.