Documentation ¶
Index ¶
- Variables
- type Block
- type Config
- type Handler
- type RequestParamsExchangeCapabilities
- type RequestParamsForkchoiceUpdatedV1
- type RequestParamsNewPayloadV1
- type Response
- type ResultChainID
- type ResultDefault
- type ResultExchangeTransitionConfigurationV1
- type ResultForkchoiceUpdatedV1
- type ResultForkchoiceUpdatedV1PayloadStatus
- type ResultGetBlock
- type ResultNewPayloadV1
- type ResultexchangeCapabilities
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedGetBlockQuery = errors.New("unsupported get block query")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ChainID string `yaml:"chainId" default:"0x1"` TerminalTotalDifficulty string `yaml:"terminalTotalDifficulty" default:"0x0"` TerminalBlockHash string `yaml:"terminalBlockHash" default:"0x0000000000000000000000000000000000000000000000000000000000000000"` TerminalBlockNumber string `yaml:"terminalBlockNumber" default:"0x0"` }
type Handler ¶
type Handler struct { Cfg Config // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(log logrus.FieldLogger, conf *Config) *Handler
NewHandler returns a new Handler instance.
type RequestParamsExchangeCapabilities ¶ added in v0.0.2
type RequestParamsExchangeCapabilities []string
type RequestParamsForkchoiceUpdatedV1 ¶
type RequestParamsForkchoiceUpdatedV1 struct {
HeadBlockHash string `json:"headBlockHash"`
}
type RequestParamsNewPayloadV1 ¶
type RequestParamsNewPayloadV1 struct { ParentHash string `json:"parentHash"` FeeRecipient string `json:"feeRecipient"` StateRoot string `json:"stateRoot"` ReceiptsRoot string `json:"receiptsRoot"` LogsBloom string `json:"logsBloom"` Random string `json:"prevRandao"` BlockNumber string `json:"blockNumber"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Timestamp string `json:"timestamp"` ExtraData string `json:"extraData"` BaseFeePerGas string `json:"baseFeePerGas"` BlockHash string `json:"blockHash"` Transactions []string `json:"transactions"` }
type ResultChainID ¶
type ResultChainID string
type ResultDefault ¶
type ResultDefault bool
type ResultForkchoiceUpdatedV1 ¶
type ResultForkchoiceUpdatedV1 struct { PayloadStatus ResultForkchoiceUpdatedV1PayloadStatus `json:"payloadStatus"` PayloadID string `json:"payloadId"` }
type ResultGetBlock ¶ added in v0.0.3
type ResultGetBlock struct { Number string `json:"number"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` LogsBloom string `json:"logsBloom"` StateRoot string `json:"stateRoot"` ReceiptsRoot string `json:"receiptsRoot"` ExtraData string `json:"extraData"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Timestamp string `json:"timestamp"` Transactions []string `json:"transactions"` }
type ResultNewPayloadV1 ¶
type ResultexchangeCapabilities ¶ added in v0.0.2
type ResultexchangeCapabilities []string
type Storage ¶ added in v0.0.5
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) AddBlock ¶ added in v0.0.5
func (s *Storage) AddBlock(payload *RequestParamsNewPayloadV1, raw *json.RawMessage)
func (*Storage) GetBlockByHash ¶ added in v0.0.5
func (*Storage) GetBlockByNumber ¶ added in v0.0.5
func (*Storage) GetLatestBlock ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.