blockauctioneer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockAuctioneer

type BlockAuctioneer interface {
	// AuctionBlock obtains the best available use of the block space.
	AuctionBlock(ctx context.Context,
		slot phase0.Slot,
		parentHash phase0.Hash32,
		pubkey phase0.BLSPubKey,
	) (
		*Results,
		error,
	)
}

BlockAuctioneer is the interface for auctioning block space.

type Results

type Results struct {
	// Values is a map of provider=>value.
	Values map[string]*big.Int
	// AllProviders is the list of providers that were queried for bids.
	AllProviders []builderclient.BuilderBidProvider
	// Providers is the list of providers that returned the winning bid.
	Providers []builderclient.BuilderBidProvider
	// Bid is the winning signed builder bid.
	Bid *spec.VersionedSignedBuilderBid
}

Results provides the results of the auction process.

type Service

type Service interface{}

Service defines the block auctioneer service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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