client

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveredBidTraceProvider added in v0.2.0

type DeliveredBidTraceProvider interface {
	Service

	// DeliveredBidTrace provides a bid trace of a delivered payload for a given slot.
	// Will return nil if the relay did not deliver a bid for the slot.
	DeliveredBidTrace(ctx context.Context, slot phase0.Slot) (*v1.BidTrace, error)
}

DeliveredBidTraceProvider is the interface for providing bid traces for delivered payloads.

type QueuedProposersProvider

type QueuedProposersProvider interface {
	Service

	// QueuedProposers provides information on the proposers queued to obtain a blinded block.
	QueuedProposers(ctx context.Context) ([]*v1.QueuedProposer, error)
}

QueuedProposersProviders is the interface for providing queued proposer information.

type ReceivedBidTracesProvider added in v0.2.0

type ReceivedBidTracesProvider interface {
	Service

	// ReceivedBidTraces provides all bid traces received for a given slot.
	ReceivedBidTraces(ctx context.Context, slot phase0.Slot) ([]*v1.BidTraceWithTimestamp, error)
}

ReceivedBidTracesProvider is the interface for obtaining bid traces received by a relay.

type Service

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

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

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

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

Directories

Path Synopsis
api
v1
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