v2

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRelayConfig

type BaseRelayConfig struct {
	PublicKey    *phase0.BLSPubKey
	FeeRecipient *bellatrix.ExecutionAddress
	GasLimit     *uint64
	Grace        *time.Duration
	MinValue     *decimal.Decimal
}

BaseRelayConfig are the options for base relays.

func (*BaseRelayConfig) MarshalJSON

func (c *BaseRelayConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BaseRelayConfig) String

func (c *BaseRelayConfig) String() string

String provides a string representation of the struct.

func (*BaseRelayConfig) UnmarshalJSON

func (c *BaseRelayConfig) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ExecutionConfig

type ExecutionConfig struct {
	Version      int
	FeeRecipient *bellatrix.ExecutionAddress
	GasLimit     *uint64
	Grace        *time.Duration
	MinValue     *decimal.Decimal
	Relays       map[string]*BaseRelayConfig
	Proposers    []*ProposerConfig
}

ExecutionConfig contains hierarchical configuration for validators proposing execution payloads.

func (*ExecutionConfig) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ExecutionConfig) ProposerConfig

func (e *ExecutionConfig) ProposerConfig(_ context.Context,
	account e2wtypes.Account,
	pubkey phase0.BLSPubKey,
	fallbackFeeRecipient bellatrix.ExecutionAddress,
	fallbackGasLimit uint64,
) (
	*beaconblockproposer.ProposerConfig,
	error,
)

ProposerConfig returns the proposer configuration for the 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 {
	Validator    phase0.BLSPubKey
	Account      *regexp.Regexp
	FeeRecipient *bellatrix.ExecutionAddress
	GasLimit     *uint64
	Grace        *time.Duration
	MinValue     *decimal.Decimal
	ResetRelays  bool
	Relays       map[string]*ProposerRelayConfig
}

ProposerConfig contains proposer-specific configuration for validators proposing execution payloads.

func (*ProposerConfig) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ProposerConfig) String

func (p *ProposerConfig) String() string

func (*ProposerConfig) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

type ProposerRelayConfig

type ProposerRelayConfig struct {
	Disabled     bool
	PublicKey    *phase0.BLSPubKey
	FeeRecipient *bellatrix.ExecutionAddress
	GasLimit     *uint64
	Grace        *time.Duration
	MinValue     *decimal.Decimal
}

func (*ProposerRelayConfig) MarshalJSON

func (c *ProposerRelayConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*ProposerRelayConfig) String

func (c *ProposerRelayConfig) String() string

String provides a string representation of the struct.

func (*ProposerRelayConfig) UnmarshalJSON

func (c *ProposerRelayConfig) 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