Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NilHash = common.Hash{}
NilHash represents an empty hash
Functions ¶
This section is empty.
Types ¶
type BlindBeaconBlockBodyPartial ¶
type BlindBeaconBlockBodyPartial struct {
ExecutionPayload ExecutionPayloadHeaderOnlyBlockHash `json:"execution_payload_header"`
ExecutionPayloadCamel ExecutionPayloadHeaderOnlyBlockHash `json:"executionPayloadHeader"`
}
BlindBeaconBlockBodyPartial a partial block body only containing a payload, in both snake_case and camelCase
type BlindBeaconBlockV1 ¶
type BlindBeaconBlockV1 struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body json.RawMessage `json:"body"`
}
BlindBeaconBlockV1 forked from https://github.com/ethereum/consensus-specs/blob/v1.1.6/specs/phase0/beacon-chain.md#beaconblock
type ExecutionPayloadHeaderOnlyBlockHash ¶
type ExecutionPayloadHeaderOnlyBlockHash struct {
BlockHash string `json:"block_hash"`
BlockHashCamel string `json:"blockHash"`
}
ExecutionPayloadHeaderOnlyBlockHash an execution payload with only a block hash, used for BlindBeaconBlockBodyPartial
type ExecutionPayloadHeaderV1 ¶
type ExecutionPayloadHeaderV1 struct {
ParentHash common.Hash `json:"parentHash" gencodec:"required"`
FeeRecipient common.Address `json:"feeRecipient" gencodec:"required"`
StateRoot common.Hash `json:"stateRoot" gencodec:"required"`
ReceiptsRoot common.Hash `json:"receiptsRoot" gencodec:"required"`
LogsBloom []byte `json:"logsBloom" gencodec:"required"`
PrevRandao common.Hash `json:"prevRandao" gencodec:"required"`
BlockNumber 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"`
BaseFeePerGas *big.Int `json:"baseFeePerGas" gencodec:"required"`
BlockHash common.Hash `json:"blockHash" gencodec:"required"`
TransactionsRoot common.Hash `json:"transactionsRoot" gencodec:"required"`
}
ExecutionPayloadHeaderV1 as defined in https://github.com/flashbots/mev-boost/blob/main/docs/specification.md#executionpayloadheaderv1
func (ExecutionPayloadHeaderV1) MarshalJSON ¶
func (e ExecutionPayloadHeaderV1) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*ExecutionPayloadHeaderV1) UnmarshalJSON ¶
func (e *ExecutionPayloadHeaderV1) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
type ExecutionPayloadV1 ¶
type ExecutionPayloadV1 struct {
ParentHash common.Hash `json:"parentHash" gencodec:"required"`
FeeRecipient common.Address `json:"feeRecipient" gencodec:"required"`
StateRoot common.Hash `json:"stateRoot" gencodec:"required"`
ReceiptsRoot common.Hash `json:"receiptsRoot" gencodec:"required"`
LogsBloom []byte `json:"logsBloom" gencodec:"required"`
PrevRandao common.Hash `json:"prevRandao" gencodec:"required"`
BlockNumber 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"`
BaseFeePerGas *big.Int `json:"baseFeePerGas" gencodec:"required"`
BlockHash common.Hash `json:"blockHash" gencodec:"required"`
Transactions *[]string `json:"transactions" gencodec:"required"`
}
ExecutionPayloadV1 as defined in https://github.com/flashbots/mev-boost/blob/main/docs/specification.md#executionpayloadv1
func (ExecutionPayloadV1) MarshalJSON ¶
func (e ExecutionPayloadV1) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*ExecutionPayloadV1) UnmarshalJSON ¶
func (e *ExecutionPayloadV1) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
type GetHeaderResponse ¶
type GetHeaderResponse struct {
Message GetHeaderResponseMessage `json:"message"`
Signature hexutil.Bytes `json:"signature"`
}
GetHeaderResponse as defined in https://github.com/flashbots/mev-boost/blob/main/docs/specification.md#response-1
type GetHeaderResponseMessage ¶
type GetHeaderResponseMessage struct {
Header ExecutionPayloadHeaderV1 `json:"header"`
Value *hexutil.Big `json:"value"`
Pubkey hexutil.Bytes `json:"pubkey"`
}
GetHeaderResponseMessage as defined in https://github.com/flashbots/mev-boost/blob/main/docs/specification.md#response-1
type RegisterValidatorRequestMessage ¶
type RegisterValidatorRequestMessage struct {
FeeRecipient common.Address `json:"feeRecipient"`
Timestamp hexutil.Uint64 `json:"timestamp"`
Pubkey hexutil.Bytes `json:"pubkey"`
}
RegisterValidatorRequestMessage as defined in https://github.com/flashbots/mev-boost/blob/main/docs/specification.md#request