spec

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 24

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
	Deneb     *deneb.SignedBuilderBid
}

VersionedSignedBuilderBid contains a versioned signed builder bid.

func (*VersionedSignedBuilderBid) BlockHash added in v0.3.1

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

BlockHash returns the block hash of the bid.

func (*VersionedSignedBuilderBid) BlockNumber added in v0.4.0

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

BlockNumber returns the block number of the bid.

func (*VersionedSignedBuilderBid) Builder added in v0.2.3

Builder returns the builder of the bid.

func (*VersionedSignedBuilderBid) FeeRecipient added in v0.2.3

FeeRecipient returns the fee recipient of the bid.

func (*VersionedSignedBuilderBid) HeaderHashTreeRoot added in v0.2.4

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 added in v0.2.2

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

MarshalJSON implements json.Marshaler.

func (*VersionedSignedBuilderBid) MessageHashTreeRoot added in v0.2.3

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

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

func (*VersionedSignedBuilderBid) ParentHash added in v0.2.3

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

ParentHash returns the parent hash of the bid.

func (*VersionedSignedBuilderBid) Signature added in v0.2.3

Signature returns the signature of the bid.

func (*VersionedSignedBuilderBid) StateRoot added in v0.2.3

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 added in v0.2.3

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

Timestamp returns the timestamp of the bid.

func (*VersionedSignedBuilderBid) TransactionsRoot added in v0.1.1

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

TransactionsRoot returns the transactions root of the bid.

func (*VersionedSignedBuilderBid) UnmarshalJSON added in v0.2.3

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

UnmarshalJSON implements json.Unmarshaler.

func (*VersionedSignedBuilderBid) Value added in v0.2.3

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

Value returns the value of the bid.

type VersionedSubmitBlockRequest added in v0.4.0

type VersionedSubmitBlockRequest struct {
	Version   consensusspec.DataVersion
	Bellatrix *bellatrix.SubmitBlockRequest
	Capella   *capella.SubmitBlockRequest
	Deneb     *deneb.SubmitBlockRequest
}

VersionedSubmitBlockRequest contains a versioned signed builder bid.

func (*VersionedSubmitBlockRequest) BidTrace added in v0.4.0

func (v *VersionedSubmitBlockRequest) BidTrace() (*v1.BidTrace, error)

BidTrace returns the bid trace of the request.

func (*VersionedSubmitBlockRequest) BlockHash added in v0.4.0

func (v *VersionedSubmitBlockRequest) BlockHash() (phase0.Hash32, error)

BlockHash returns the block hash of the request.

func (*VersionedSubmitBlockRequest) BlockNumber added in v0.4.0

func (v *VersionedSubmitBlockRequest) BlockNumber() (uint64, error)

BlockNumber returns the block number of the payload.

func (*VersionedSubmitBlockRequest) Builder added in v0.4.0

Builder returns the builder of the request.

func (*VersionedSubmitBlockRequest) ExecutionPayloadBlockHash added in v0.4.0

func (v *VersionedSubmitBlockRequest) ExecutionPayloadBlockHash() (phase0.Hash32, error)

ExecutionPayloadBlockHash returns the block hash of the payload.

func (*VersionedSubmitBlockRequest) ExecutionPayloadParentHash added in v0.4.0

func (v *VersionedSubmitBlockRequest) ExecutionPayloadParentHash() (phase0.Hash32, error)

ExecutionPayloadParentHash returns the block hash of the payload.

func (*VersionedSubmitBlockRequest) GasLimit added in v0.4.0

func (v *VersionedSubmitBlockRequest) GasLimit() (uint64, error)

GasLimit returns the prev randao of the payload.

func (*VersionedSubmitBlockRequest) GasUsed added in v0.4.0

func (v *VersionedSubmitBlockRequest) GasUsed() (uint64, error)

GasUsed returns the prev randao of the payload.

func (*VersionedSubmitBlockRequest) IsEmpty added in v0.4.0

func (v *VersionedSubmitBlockRequest) IsEmpty() bool

IsEmpty returns true if there is no request.

func (*VersionedSubmitBlockRequest) MarshalJSON added in v0.4.0

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

MarshalJSON implements json.Marshaler.

func (*VersionedSubmitBlockRequest) ParentHash added in v0.4.0

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

ParentHash returns the parent hash of the request.

func (*VersionedSubmitBlockRequest) PrevRandao added in v0.4.0

func (v *VersionedSubmitBlockRequest) PrevRandao() (phase0.Hash32, error)

PrevRandao returns the prev randao of the payload.

func (*VersionedSubmitBlockRequest) ProposerFeeRecipient added in v0.4.0

ProposerFeeRecipient returns the proposer fee recipient of the request.

func (*VersionedSubmitBlockRequest) ProposerPubKey added in v0.4.0

func (v *VersionedSubmitBlockRequest) ProposerPubKey() (phase0.BLSPubKey, error)

ProposerPubKey returns the proposer fee recipient of the request.

func (*VersionedSubmitBlockRequest) Signature added in v0.4.0

Signature returns the signature of the bid.

func (*VersionedSubmitBlockRequest) Slot added in v0.4.0

Slot returns the slot of the request.

func (*VersionedSubmitBlockRequest) String added in v0.4.0

func (v *VersionedSubmitBlockRequest) String() string

String returns a string version of the structure.

func (*VersionedSubmitBlockRequest) Timestamp added in v0.4.0

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

Timestamp returns the timestamp of the payload.

func (*VersionedSubmitBlockRequest) Transactions added in v0.4.0

Transactions returns the transactions of the payload.

func (*VersionedSubmitBlockRequest) UnmarshalJSON added in v0.4.0

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

UnmarshalJSON implements json.Unmarshaler.

func (*VersionedSubmitBlockRequest) Value added in v0.4.0

Value returns the value of the request.

func (*VersionedSubmitBlockRequest) Withdrawals added in v0.4.0

Withdrawals returns the withdrawals of the payload.

Jump to

Keyboard shortcuts

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