blockrelay

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderConfig

type BuilderConfig struct {
	Enabled bool
	Relays  []string
}

BuilderConfig is the builder configuration for a specific proposer.

func (*BuilderConfig) MarshalJSON

func (b *BuilderConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BuilderConfig) String

func (b *BuilderConfig) String() string

String provides a string representation of the struct.

func (*BuilderConfig) UnmarshalJSON

func (b *BuilderConfig) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ExecutionConfig

type ExecutionConfig struct {
	ProposerConfigs map[phase0.BLSPubKey]*ProposerConfig
	DefaultConfig   *ProposerConfig
}

ExecutionConfig is the execution configuration for validators.

func (*ExecutionConfig) MarshalJSON

func (e *ExecutionConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*ExecutionConfig) ProposerConfig

func (e *ExecutionConfig) ProposerConfig(pubkey phase0.BLSPubKey,
) *ProposerConfig

ProposerConfig provides the proposer configuration for a given public key.

func (*ExecutionConfig) String

func (e *ExecutionConfig) String() string

String provides a string representation of the struct.

func (*ExecutionConfig) UnmarshalJSON

func (e *ExecutionConfig) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ExecutionConfigProvider

type ExecutionConfigProvider interface {
	Service

	// ExecutionConfig provides the current execution configuration.
	ExecutionConfig(ctx context.Context) (*ExecutionConfig, error)
}

ExecutionConfigProvider is the interface for providing execution configuration.

type ProposerConfig

type ProposerConfig struct {
	FeeRecipient bellatrix.ExecutionAddress
	GasLimit     uint64
	Builder      *BuilderConfig
}

ProposerConfig is the configuration for a specific proposer.

func (*ProposerConfig) MarshalJSON

func (p *ProposerConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*ProposerConfig) String

func (p *ProposerConfig) String() string

String provides a string representation of the struct.

func (*ProposerConfig) UnmarshalJSON

func (p *ProposerConfig) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Service

type Service interface{}

Service is the block relay service.

type ValidatorRegistrationsSubmitter

type ValidatorRegistrationsSubmitter interface {
	Service

	// SubmitValidatorRegistrations submits validator registrations for the given accounts.
	SubmitValidatorRegistrations(ctx context.Context,
		accounts map[phase0.ValidatorIndex]e2wtypes.Account,
	) error
}

ValidatorRegistrationsSubmitter is the interface for a submitter of validator registrations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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