Documentation ¶
Index ¶
- type Parameter
- func WithAccountsProvider(provider accountmanager.AccountsProvider) Parameter
- func WithBuilderBidProvider(provider builderbid.Provider) 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 WithExcludedBuilders(builders []phase0.BLSPubKey) Parameter
- func WithFallbackFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter
- func WithFallbackGasLimit(gasLimit uint64) Parameter
- func WithListenAddress(address string) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithLogResults(logResults bool) Parameter
- func WithMajordomo(majordomo majordomo.Service) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithReleaseVersion(version string) Parameter
- func WithScheduler(scheduler scheduler.Service) Parameter
- func WithSecondaryValidatorRegistrationsSubmitters(submitters []consensusclient.ValidatorRegistrationsSubmitter) Parameter
- func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
- func WithValidatorRegistrationSigner(signer signer.ValidatorRegistrationSigner) Parameter
- func WithValidatorsProvider(provider consensusclient.ValidatorsProvider) Parameter
- type Service
- func (s *Service) AuctionBlock(ctx context.Context, slot phase0.Slot, parentHash phase0.Hash32, ...) (*blockauctioneer.Results, error)
- func (s *Service) BuilderBid(ctx context.Context, slot phase0.Slot, parentHash phase0.Hash32, ...) (*spec.VersionedSignedBuilderBid, error)
- func (s *Service) ProposerConfig(ctx context.Context, account e2wtypes.Account, pubkey phase0.BLSPubKey) (*beaconblockproposer.ProposerConfig, error)
- func (s *Service) SubmitValidatorRegistrations(ctx context.Context, accounts map[phase0.ValidatorIndex]e2wtypes.Account) error
- func (s *Service) UnblindBlock(ctx context.Context, block *api.VersionedSignedBlindedBeaconBlock) (*api.VersionedSignedProposal, error)
- func (s *Service) ValidatorRegistrations(ctx context.Context, registrations []*types.SignedValidatorRegistration) ([]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 WithAccountsProvider ¶ added in v1.7.0
func WithAccountsProvider(provider accountmanager.AccountsProvider) Parameter
WithAccountsProvider sets the accounts provider.
func WithBuilderBidProvider ¶ added in v1.8.0
func WithBuilderBidProvider(provider builderbid.Provider) Parameter
WithBuilderBidProvider sets builder bid provider.
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 WithExcludedBuilders ¶ added in v1.8.0
WithExcludedBuilders is the list of builders whose bids will be excluded.
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 WithLogResults ¶ added in v1.6.2
WithLogResults sets the flag to log relay results.
func WithMajordomo ¶
func WithMajordomo(majordomo majordomo.Service) Parameter
WithMajordomo sets majordomo for the module.
func WithMonitor ¶
WithMonitor sets the monitor for the module.
func WithReleaseVersion ¶ added in v1.7.6
WithReleaseVersion sets the release version for Vouch.
func WithScheduler ¶
WithScheduler provides the scheduler service.
func WithSecondaryValidatorRegistrationsSubmitters ¶
func WithSecondaryValidatorRegistrationsSubmitters(submitters []consensusclient.ValidatorRegistrationsSubmitter) Parameter
WithSecondaryValidatorRegistrationsSubmitters sets the secondary validator registrations submitters.
func WithValidatingAccountsProvider ¶
func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
WithValidatingAccountsProvider sets the validating accounts provider.
func WithValidatorRegistrationSigner ¶
func WithValidatorRegistrationSigner(signer signer.ValidatorRegistrationSigner) Parameter
WithValidatorRegistrationSigner sets the validator registration signer.
func WithValidatorsProvider ¶ added in v1.9.0
func WithValidatorsProvider(provider consensusclient.ValidatorsProvider) Parameter
WithValidatorsProvider sets the validators provider.
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(ctx context.Context, slot phase0.Slot, parentHash phase0.Hash32, pubkey phase0.BLSPubKey, ) ( *spec.VersionedSignedBuilderBid, error, )
BuilderBid provides a builder bid.
func (*Service) ProposerConfig ¶ added in v1.7.0
func (s *Service) ProposerConfig(ctx context.Context, account e2wtypes.Account, pubkey phase0.BLSPubKey, ) ( *beaconblockproposer.ProposerConfig, error, )
ProposerConfig returns the proposer configuration for the given validator.
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) UnblindBlock ¶ added in v1.9.0
func (s *Service) UnblindBlock(ctx context.Context, block *api.VersionedSignedBlindedBeaconBlock, ) ( *api.VersionedSignedProposal, error, )
UnblindBlock turns a blinded block into an unblinded block.