Documentation ¶
Index ¶
- type BuilderVersion
- type VersionedSignedBuilderBid
- func (v *VersionedSignedBuilderBid) BlockHash() (phase0.Hash32, error)
- func (v *VersionedSignedBuilderBid) BlockNumber() (uint64, error)
- func (v *VersionedSignedBuilderBid) Builder() (phase0.BLSPubKey, error)
- func (v *VersionedSignedBuilderBid) FeeRecipient() (consensusbellatrix.ExecutionAddress, error)
- func (v *VersionedSignedBuilderBid) HeaderHashTreeRoot() (phase0.Root, error)
- func (v *VersionedSignedBuilderBid) IsEmpty() bool
- func (v *VersionedSignedBuilderBid) MarshalJSON() ([]byte, error)
- func (v *VersionedSignedBuilderBid) MessageHashTreeRoot() (phase0.Root, error)
- func (v *VersionedSignedBuilderBid) ParentHash() (phase0.Hash32, error)
- func (v *VersionedSignedBuilderBid) Signature() (phase0.BLSSignature, error)
- func (v *VersionedSignedBuilderBid) StateRoot() (phase0.Root, error)
- func (v *VersionedSignedBuilderBid) String() string
- func (v *VersionedSignedBuilderBid) Timestamp() (uint64, error)
- func (v *VersionedSignedBuilderBid) TransactionsRoot() (phase0.Root, error)
- func (v *VersionedSignedBuilderBid) UnmarshalJSON(input []byte) error
- func (v *VersionedSignedBuilderBid) Value() (*uint256.Int, error)
- type VersionedSubmitBlockRequest
- func (v *VersionedSubmitBlockRequest) BidTrace() (*v1.BidTrace, error)
- func (v *VersionedSubmitBlockRequest) BlockHash() (phase0.Hash32, error)
- func (v *VersionedSubmitBlockRequest) BlockNumber() (uint64, error)
- func (v *VersionedSubmitBlockRequest) Builder() (phase0.BLSPubKey, error)
- func (v *VersionedSubmitBlockRequest) ExecutionPayloadBlockHash() (phase0.Hash32, error)
- func (v *VersionedSubmitBlockRequest) ExecutionPayloadParentHash() (phase0.Hash32, error)
- func (v *VersionedSubmitBlockRequest) GasLimit() (uint64, error)
- func (v *VersionedSubmitBlockRequest) GasUsed() (uint64, error)
- func (v *VersionedSubmitBlockRequest) IsEmpty() bool
- func (v *VersionedSubmitBlockRequest) MarshalJSON() ([]byte, error)
- func (v *VersionedSubmitBlockRequest) ParentHash() (phase0.Hash32, error)
- func (v *VersionedSubmitBlockRequest) PrevRandao() (phase0.Hash32, error)
- func (v *VersionedSubmitBlockRequest) ProposerFeeRecipient() (consensusbellatrix.ExecutionAddress, error)
- func (v *VersionedSubmitBlockRequest) ProposerPubKey() (phase0.BLSPubKey, error)
- func (v *VersionedSubmitBlockRequest) Signature() (phase0.BLSSignature, error)
- func (v *VersionedSubmitBlockRequest) Slot() (uint64, error)
- func (v *VersionedSubmitBlockRequest) String() string
- func (v *VersionedSubmitBlockRequest) Timestamp() (uint64, error)
- func (v *VersionedSubmitBlockRequest) Transactions() ([]consensusbellatrix.Transaction, error)
- func (v *VersionedSubmitBlockRequest) UnmarshalJSON(input []byte) error
- func (v *VersionedSubmitBlockRequest) Value() (*uint256.Int, error)
- func (v *VersionedSubmitBlockRequest) Withdrawals() ([]*consensuscapella.Withdrawal, error)
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
func (v *VersionedSignedBuilderBid) Builder() (phase0.BLSPubKey, error)
Builder returns the builder of the bid.
func (*VersionedSignedBuilderBid) FeeRecipient ¶ added in v0.2.3
func (v *VersionedSignedBuilderBid) FeeRecipient() (consensusbellatrix.ExecutionAddress, error)
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
func (v *VersionedSignedBuilderBid) Signature() (phase0.BLSSignature, error)
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.
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
func (v *VersionedSubmitBlockRequest) Builder() (phase0.BLSPubKey, error)
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
func (v *VersionedSubmitBlockRequest) ProposerFeeRecipient() (consensusbellatrix.ExecutionAddress, error)
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
func (v *VersionedSubmitBlockRequest) Signature() (phase0.BLSSignature, error)
Signature returns the signature of the bid.
func (*VersionedSubmitBlockRequest) Slot ¶ added in v0.4.0
func (v *VersionedSubmitBlockRequest) Slot() (uint64, error)
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
func (v *VersionedSubmitBlockRequest) Transactions() ([]consensusbellatrix.Transaction, error)
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
func (v *VersionedSubmitBlockRequest) Value() (*uint256.Int, error)
Value returns the value of the request.
func (*VersionedSubmitBlockRequest) Withdrawals ¶ added in v0.4.0
func (v *VersionedSubmitBlockRequest) Withdrawals() ([]*consensuscapella.Withdrawal, error)
Withdrawals returns the withdrawals of the payload.