client

package module
v0.3.0-hepu Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderBidProvider

type BuilderBidProvider interface {
	Service

	// BuilderBidProvider obtains a builder bid.
	BuilderBid(ctx context.Context,
		slot phase0.Slot,
		parentHash phase0.Hash32,
		pubKey phase0.BLSPubKey,
	) (
		*spec.VersionedSignedBuilderBid,
		error,
	)
}

BuilderBidProvider is the interface for a provider of builder bids.

type Service

type Service interface {
	// Name returns the name of the builder implementation.
	Name() string

	// Address returns the address of the builder.
	Address() string

	// Pubkey returns the public key of the builder (if any).
	Pubkey() *phase0.BLSPubKey
}

Service is the service providing a connection to an MEV relay.

type UnblindedBlockProvider

type UnblindedBlockProvider interface {
	Service

	// UnblindBlock unblinds a block.
	UnblindBlock(ctx context.Context,
		block *consensusapi.VersionedSignedBlindedBeaconBlock,
	) (
		*consensusspec.VersionedSignedBeaconBlock,
		error,
	)
}

UnblindedBlockProvider is the interface for a provider of unblinded blocks.

type ValidatorRegistrationsSubmitter

type ValidatorRegistrationsSubmitter interface {
	Service

	// SubmitValidatorRegistrations submits validator registrations.
	SubmitValidatorRegistrations(ctx context.Context, registrations []*api.VersionedSignedValidatorRegistration) error
}

ValidatorRegistrationsSubmitter is the interface for a submitter of validator registrations.

Directories

Path Synopsis
api
bellatrix
Code generated by fastssz.
Code generated by fastssz.
capella
Code generated by fastssz.
Code generated by fastssz.
v1
Code generated by fastssz.
Code generated by fastssz.
v2
Package metrics tracks various metrics that measure the performance of vouch.
Package metrics tracks various metrics that measure the performance of vouch.

Jump to

Keyboard shortcuts

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