spec

package
v0.3.0-hepu Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 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 BuilderVersion

type BuilderVersion int

BuilderVersion defines the builder spec version.

const (
	// BuilderVersionV1 is applicable for the V1 release of the builder spec.
	BuilderVersionV1 BuilderVersion = iota
)

func (*BuilderVersion) MarshalJSON

func (d *BuilderVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BuilderVersion) String

func (d BuilderVersion) String() string

String returns a string representation of the type.

func (*BuilderVersion) UnmarshalJSON

func (d *BuilderVersion) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type VersionedSignedBuilderBid

type VersionedSignedBuilderBid struct {
	Version   consensusspec.DataVersion
	Bellatrix *bellatrix.SignedBuilderBid
	Capella   *capella.SignedBuilderBid
}

VersionedSignedBuilderBid contains a versioned signed builder bid.

func (*VersionedSignedBuilderBid) Builder

Builder returns the builder of the bid.

func (*VersionedSignedBuilderBid) FeeRecipient

FeeRecipient returns the fee recipient of the bid.

func (*VersionedSignedBuilderBid) HeaderHashTreeRoot

func (v *VersionedSignedBuilderBid) HeaderHashTreeRoot() (phase0.Root, error)

HeaderHashTreeRoot returns the hash tree root of the header of the bid.

func (*VersionedSignedBuilderBid) IsEmpty

func (v *VersionedSignedBuilderBid) IsEmpty() bool

IsEmpty returns true if there is no bid.

func (*VersionedSignedBuilderBid) MarshalJSON

func (v *VersionedSignedBuilderBid) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*VersionedSignedBuilderBid) MessageHashTreeRoot

func (v *VersionedSignedBuilderBid) MessageHashTreeRoot() (phase0.Root, error)

MessageHashTreeRoot returns the hash tree root of the message of the bid.

func (*VersionedSignedBuilderBid) ParentHash

func (v *VersionedSignedBuilderBid) ParentHash() (phase0.Hash32, error)

ParentHash returns the parent hash of the bid.

func (*VersionedSignedBuilderBid) Signature

Signature returns the signature of the bid.

func (*VersionedSignedBuilderBid) StateRoot

func (v *VersionedSignedBuilderBid) StateRoot() (phase0.Root, error)

StateRoot returns the state root of the bid.

func (*VersionedSignedBuilderBid) String

func (v *VersionedSignedBuilderBid) String() string

String returns a string version of the structure.

func (*VersionedSignedBuilderBid) Timestamp

func (v *VersionedSignedBuilderBid) Timestamp() (uint64, error)

Timestamp returns the timestamp of the bid.

func (*VersionedSignedBuilderBid) TransactionsRoot

func (v *VersionedSignedBuilderBid) TransactionsRoot() (phase0.Root, error)

TransactionsRoot returns the transactions root of the bid.

func (*VersionedSignedBuilderBid) UnmarshalJSON

func (v *VersionedSignedBuilderBid) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*VersionedSignedBuilderBid) Value

func (v *VersionedSignedBuilderBid) Value() (*uint256.Int, error)

Value returns the value of the bid.

Jump to

Keyboard shortcuts

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