v1

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 14 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
	Grace   time.Duration
	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(_ context.Context,
	_ e2wtypes.Account,
	pubkey phase0.BLSPubKey,
	fallbackFeeRecipient bellatrix.ExecutionAddress,
	fallbackGasLimit uint64,
) (
	*beaconblockproposer.ProposerConfig,
	error,
)

ProposerConfig returns the proposer configuration for a given validator.

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 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.

Jump to

Keyboard shortcuts

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