Documentation ¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 6e558774b536897280cc4bf29687a76b696d9808ecb1b21be508edee229787e6 Version: 0.1.3
Index ¶
- Variables
- type ExecutableDataDeneb
- func (d *ExecutableDataDeneb) GetBlockHash() primitives.ExecutionHash
- func (d *ExecutableDataDeneb) GetParentHash() primitives.ExecutionHash
- func (d *ExecutableDataDeneb) GetPrevRandao() [32]byte
- func (d *ExecutableDataDeneb) GetTransactions() [][]byte
- func (e *ExecutableDataDeneb) GetTree() (*ssz.Node, error)
- func (d *ExecutableDataDeneb) GetWithdrawals() []*primitives.Withdrawal
- func (e *ExecutableDataDeneb) HashTreeRoot() ([32]byte, error)
- func (e *ExecutableDataDeneb) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *ExecutableDataDeneb) IsBlinded() bool
- func (d *ExecutableDataDeneb) IsNil() bool
- func (e ExecutableDataDeneb) MarshalJSON() ([]byte, error)
- func (e *ExecutableDataDeneb) MarshalSSZ() ([]byte, error)
- func (e *ExecutableDataDeneb) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutableDataDeneb) SizeSSZ() (size int)
- func (d *ExecutableDataDeneb) String() string
- func (e *ExecutableDataDeneb) UnmarshalJSON(input []byte) error
- func (e *ExecutableDataDeneb) UnmarshalSSZ(buf []byte) error
- func (d *ExecutableDataDeneb) Version() uint32
- type ExecutionPayload
- type ExecutionPayloadBody
- type ExecutionPayloadEnvelope
- type ExecutionPayloadEnvelopeDeneb
- func (e *ExecutionPayloadEnvelopeDeneb) GetBlobsBundle() *engine.BlobsBundleV1
- func (e *ExecutionPayloadEnvelopeDeneb) GetExecutionPayload() ExecutionPayload
- func (e *ExecutionPayloadEnvelopeDeneb) GetValue() primitives.Wei
- func (e ExecutionPayloadEnvelopeDeneb) MarshalJSON() ([]byte, error)
- func (e *ExecutionPayloadEnvelopeDeneb) ShouldOverrideBuilder() bool
- func (e *ExecutionPayloadEnvelopeDeneb) String() string
- func (e *ExecutionPayloadEnvelopeDeneb) UnmarshalJSON(input []byte) error
- type PayloadAttributer
- type PayloadAttributes
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidTimestamp indicates that the provided timestamp is not valid. ErrInvalidTimestamp = errors.New("invalid timestamp") // ErrInvalidRandao indicates that the provided RANDAO value is not valid. ErrInvalidRandao = errors.New("invalid randao") // ErrNilWithdrawals indicates that the withdrawals are in a // Capella versioned payload. ErrNilWithdrawals = errors.New("nil withdrawals post capella") // ErrEmptyPrevRandao indicates that the previous RANDAO value is empty. ErrEmptyPrevRandao = errors.New("empty randao") )
Functions ¶
This section is empty.
Types ¶
type ExecutableDataDeneb ¶
type ExecutableDataDeneb struct { ParentHash primitives.ExecutionHash `json:"parentHash" ssz-size:"32" gencodec:"required"` FeeRecipient primitives.ExecutionAddress `json:"feeRecipient" ssz-size:"20" gencodec:"required"` StateRoot primitives.ExecutionHash `json:"stateRoot" ssz-size:"32" gencodec:"required"` ReceiptsRoot primitives.ExecutionHash `json:"receiptsRoot" ssz-size:"32" gencodec:"required"` LogsBloom []byte `json:"logsBloom" ssz-size:"256" gencodec:"required"` Random primitives.ExecutionHash `json:"prevRandao" ssz-size:"32" gencodec:"required"` Number uint64 `json:"blockNumber" gencodec:"required"` GasLimit uint64 `json:"gasLimit" gencodec:"required"` GasUsed uint64 `json:"gasUsed" gencodec:"required"` Timestamp uint64 `json:"timestamp" gencodec:"required"` ExtraData []byte `json:"extraData" gencodec:"required" ssz-max:"32"` BaseFeePerGas []byte `json:"baseFeePerGas" ssz-size:"32" gencodec:"required"` BlockHash primitives.ExecutionHash `json:"blockHash" ssz-size:"32" gencodec:"required"` Transactions [][]byte `json:"transactions" ssz-size:"?,?" gencodec:"required" ssz-max:"1048576,1073741824"` Withdrawals []*primitives.Withdrawal `json:"withdrawals" ssz-max:"16"` BlobGasUsed uint64 `json:"blobGasUsed"` ExcessBlobGas uint64 `json:"excessBlobGas"` }
func (*ExecutableDataDeneb) GetBlockHash ¶
func (d *ExecutableDataDeneb) GetBlockHash() primitives.ExecutionHash
GetBlockHash returns the block hash of the ExecutableDataDeneb.
func (*ExecutableDataDeneb) GetParentHash ¶
func (d *ExecutableDataDeneb) GetParentHash() primitives.ExecutionHash
GetParentHash returns the parent hash of the ExecutableDataDeneb.
func (*ExecutableDataDeneb) GetPrevRandao ¶
func (d *ExecutableDataDeneb) GetPrevRandao() [32]byte
GetGasUsed returns the gas used of the ExecutableDataDeneb.
func (*ExecutableDataDeneb) GetTransactions ¶
func (d *ExecutableDataDeneb) GetTransactions() [][]byte
GetTransactions returns the transactions of the ExecutableDataDeneb.
func (*ExecutableDataDeneb) GetTree ¶
func (e *ExecutableDataDeneb) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ExecutableDataDeneb object
func (*ExecutableDataDeneb) GetWithdrawals ¶
func (d *ExecutableDataDeneb) GetWithdrawals() []*primitives.Withdrawal
GetWithdrawals returns the withdrawals of the ExecutableDataDeneb.
func (*ExecutableDataDeneb) HashTreeRoot ¶
func (e *ExecutableDataDeneb) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ExecutableDataDeneb object
func (*ExecutableDataDeneb) HashTreeRootWith ¶
func (e *ExecutableDataDeneb) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ExecutableDataDeneb object with a hasher
func (*ExecutableDataDeneb) IsBlinded ¶
func (d *ExecutableDataDeneb) IsBlinded() bool
IsBlinded checks if the ExecutableDataDeneb is blinded.
func (*ExecutableDataDeneb) IsNil ¶
func (d *ExecutableDataDeneb) IsNil() bool
IsNil checks if the ExecutableDataDeneb is nil.
func (ExecutableDataDeneb) MarshalJSON ¶
func (e ExecutableDataDeneb) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*ExecutableDataDeneb) MarshalSSZ ¶
func (e *ExecutableDataDeneb) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ExecutableDataDeneb object
func (*ExecutableDataDeneb) MarshalSSZTo ¶
func (e *ExecutableDataDeneb) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ExecutableDataDeneb object to a target array
func (*ExecutableDataDeneb) SizeSSZ ¶
func (e *ExecutableDataDeneb) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ExecutableDataDeneb object
func (*ExecutableDataDeneb) String ¶
func (d *ExecutableDataDeneb) String() string
String returns the string representation of the ExecutableDataDeneb.
func (*ExecutableDataDeneb) UnmarshalJSON ¶
func (e *ExecutableDataDeneb) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
func (*ExecutableDataDeneb) UnmarshalSSZ ¶
func (e *ExecutableDataDeneb) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ExecutableDataDeneb object
func (*ExecutableDataDeneb) Version ¶
func (d *ExecutableDataDeneb) Version() uint32
Version returns the version of the ExecutableDataDeneb.
type ExecutionPayload ¶
type ExecutionPayload interface { ExecutionPayloadBody GetTransactions() [][]byte GetWithdrawals() []*primitives.Withdrawal }
ExecutionPayload represents the execution data of a block.
type ExecutionPayloadBody ¶
type ExecutionPayloadBody interface { ssz.Marshaler ssz.Unmarshaler ssz.HashRoot IsNil() bool String() string Version() uint32 IsBlinded() bool GetPrevRandao() [32]byte GetBlockHash() primitives.ExecutionHash GetParentHash() primitives.ExecutionHash }
ExecutionPayloadBody is the interface for the execution data of a block. It contains all the fields that are part of both an execution payload header and a full execution payload.
type ExecutionPayloadEnvelope ¶
type ExecutionPayloadEnvelope interface { GetExecutionPayload() ExecutionPayload GetValue() primitives.Wei GetBlobsBundle() *engine.BlobsBundleV1 ShouldOverrideBuilder() bool }
type ExecutionPayloadEnvelopeDeneb ¶
type ExecutionPayloadEnvelopeDeneb struct { ExecutionPayload *ExecutableDataDeneb `json:"executionPayload" gencodec:"required"` BlockValue *big.Int `json:"blockValue" gencodec:"required"` BlobsBundle *engine.BlobsBundleV1 `json:"blobsBundle"` Override bool `json:"shouldOverrideBuilder"` }
func (*ExecutionPayloadEnvelopeDeneb) GetBlobsBundle ¶
func (e *ExecutionPayloadEnvelopeDeneb) GetBlobsBundle() *engine.BlobsBundleV1
func (*ExecutionPayloadEnvelopeDeneb) GetExecutionPayload ¶
func (e *ExecutionPayloadEnvelopeDeneb) GetExecutionPayload() ExecutionPayload
func (*ExecutionPayloadEnvelopeDeneb) GetValue ¶
func (e *ExecutionPayloadEnvelopeDeneb) GetValue() primitives.Wei
func (ExecutionPayloadEnvelopeDeneb) MarshalJSON ¶
func (e ExecutionPayloadEnvelopeDeneb) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*ExecutionPayloadEnvelopeDeneb) ShouldOverrideBuilder ¶
func (e *ExecutionPayloadEnvelopeDeneb) ShouldOverrideBuilder() bool
func (*ExecutionPayloadEnvelopeDeneb) String ¶
func (e *ExecutionPayloadEnvelopeDeneb) String() string
func (*ExecutionPayloadEnvelopeDeneb) UnmarshalJSON ¶
func (e *ExecutionPayloadEnvelopeDeneb) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
type PayloadAttributer ¶
PayloadAttributer represents payload attributes of a block.
type PayloadAttributes ¶
type PayloadAttributes struct { // Timestamp is the timestamp at which the block will be built at. Timestamp uint64 `json:"timestamp" gencodec:"required"` // PrevRandao is the previous Randao value from the beacon chain as // per EIP-4399. PrevRandao [32]byte `json:"prevRandao" gencodec:"required"` // SuggestedFeeRecipient is the suggested fee recipient for the block. If // the execution client has a different fee recipient, it will typically // ignore this value. SuggestedFeeRecipient primitives.ExecutionAddress `json:"suggestedFeeRecipient" gencodec:"required"` // Withdrawals is the list of withdrawals to be included in the block as per // EIP-4895 Withdrawals []*primitives.Withdrawal `json:"withdrawals"` // ParentBeaconBlockRoot is the root of the parent beacon block. (The block // prior) // to the block currently being processed. This field was added in EIP-4788. ParentBeaconBlockRoot [32]byte `json:"parentBeaconBlockRoot"` // contains filtered or unexported fields }
func NewPayloadAttributes ¶
func NewPayloadAttributes( forkVersion uint32, timestamp uint64, prevRandao [32]byte, suggestedFeeReceipient primitives.ExecutionAddress, withdrawals []*primitives.Withdrawal, parentBeaconBlockRoot [32]byte, ) (*PayloadAttributes, error)
NewPayloadAttributes creates a new PayloadAttributes.
func (PayloadAttributes) MarshalJSON ¶
func (p PayloadAttributes) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*PayloadAttributes) UnmarshalJSON ¶
func (p *PayloadAttributes) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
func (*PayloadAttributes) Validate ¶
func (p *PayloadAttributes) Validate() error
Validate validates the PayloadAttributes.
func (*PayloadAttributes) Version ¶
func (p *PayloadAttributes) Version() uint32
Version returns the version of the PayloadAttributes.