standard

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 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 BlindedProposerWithExpectedPayload added in v1.8.0

type BlindedProposerWithExpectedPayload interface {
	// BlindedProposalWithExpectedPayload fetches a blinded proposed beacon block for signing.
	BlindedProposalWithExpectedPayload(context.Context,
		phase0.Slot,
		phase0.BLSSignature,
		[]byte,
		*builderspec.VersionedSignedBuilderBid,
	) (
		*api.VersionedBlindedProposal,
		error,
	)
}

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithBeaconBlockSigner added in v1.0.0

func WithBeaconBlockSigner(signer signer.BeaconBlockSigner) Parameter

WithBeaconBlockSigner sets the beacon block signer.

func WithBlindedProposalDataProvider added in v1.6.0

func WithBlindedProposalDataProvider(provider eth2client.BlindedProposalProvider) Parameter

WithBlindedProposalDataProvider sets the proposal data provider.

func WithBlobSidecarSigner added in v1.8.0

func WithBlobSidecarSigner(signer signer.BlobSidecarSigner) Parameter

WithBlobSidecarSigner sets the blob sidecar signer.

func WithBlockAuctioneer added in v1.6.0

func WithBlockAuctioneer(auctioneer blockauctioneer.BlockAuctioneer) Parameter

WithBlockAuctioneer sets the block auctioneer.

func WithChainTime added in v1.7.0

func WithChainTime(service chaintime.Service) Parameter

WithChainTime sets the chaintime service.

func WithExecutionChainHeadProvider added in v1.6.0

func WithExecutionChainHeadProvider(provider cache.ExecutionChainHeadProvider) Parameter

WithExecutionChainHeadProvider sets the execution chain head provider.

func WithGraffitiProvider

func WithGraffitiProvider(provider graffitiprovider.Service) Parameter

WithGraffitiProvider sets the graffiti provider.

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

func WithProposalDataProvider

func WithProposalDataProvider(provider eth2client.ProposalProvider) Parameter

WithProposalDataProvider sets the proposal data provider.

func WithProposalSubmitter added in v1.8.0

func WithProposalSubmitter(submitter submitter.ProposalSubmitter) Parameter

WithProposalSubmitter sets the proposal submitter.

func WithRANDAORevealSigner added in v1.0.0

func WithRANDAORevealSigner(signer signer.RANDAORevealSigner) Parameter

WithRANDAORevealSigner sets the RANDAO reveal signer.

func WithUnblindFromAllRelays added in v1.8.0

func WithUnblindFromAllRelays(unblindFromAll bool) Parameter

WithUnblindFromAllRelays will unblind blocks from all relays if set.

func WithValidatingAccountsProvider

func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter

WithValidatingAccountsProvider sets the account manager.

type Service

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

Service is a beacon block proposer.

func New

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

New creates a new beacon block proposer.

func (*Service) Prepare

func (s *Service) Prepare(ctx context.Context, data interface{}) error

Prepare prepares for a beacon block proposal, carrying out activities that can be undertaken before the time the proposal is required.

func (*Service) Propose

func (s *Service) Propose(ctx context.Context, data interface{})

Propose proposes a block.

Jump to

Keyboard shortcuts

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