standard

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlindedBeaconBlockProposerWithExpectedPayload added in v1.7.0

type BlindedBeaconBlockProposerWithExpectedPayload interface {
	// BlindedBeaconBlockProposalWithExpectedPayload fetches a blinded proposed beacon block for signing.
	BlindedBeaconBlockProposalWithExpectedPayload(context.Context, phase0.Slot, phase0.BLSSignature, []byte, *builderspec.VersionedSignedBuilderBid) (*api.VersionedBlindedBeaconBlock, 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 WithBeaconBlockSubmitter

func WithBeaconBlockSubmitter(submitter submitter.BeaconBlockSubmitter) Parameter

WithBeaconBlockSubmitter sets the beacon block submitter.

func WithBlindedProposalDataProvider added in v1.6.0

func WithBlindedProposalDataProvider(provider eth2client.BlindedBeaconBlockProposalProvider) Parameter

WithBlindedProposalDataProvider sets the proposal data provider.

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.BeaconBlockProposalProvider) Parameter

WithProposalDataProvider sets the proposal data provider.

func WithRANDAORevealSigner added in v1.0.0

func WithRANDAORevealSigner(signer signer.RANDAORevealSigner) Parameter

WithRANDAORevealSigner sets the RANDAO reveal signer.

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