Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterExecutionServer(s grpc.ServiceRegistrar, srv ExecutionServer)
- type AssembleBlockRequest
- func (*AssembleBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssembleBlockRequest) GetParentBeaconBlockRoot() *types.H256
- func (x *AssembleBlockRequest) GetParentHash() *types.H256
- func (x *AssembleBlockRequest) GetPrevRandao() *types.H256
- func (x *AssembleBlockRequest) GetSuggestedFeeRecipient() *types.H160
- func (x *AssembleBlockRequest) GetTimestamp() uint64
- func (x *AssembleBlockRequest) GetWithdrawals() []*types.Withdrawal
- func (*AssembleBlockRequest) ProtoMessage()
- func (x *AssembleBlockRequest) ProtoReflect() protoreflect.Message
- func (x *AssembleBlockRequest) Reset()
- func (x *AssembleBlockRequest) String() string
- type AssembleBlockResponse
- func (*AssembleBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssembleBlockResponse) GetBusy() bool
- func (x *AssembleBlockResponse) GetId() uint64
- func (*AssembleBlockResponse) ProtoMessage()
- func (x *AssembleBlockResponse) ProtoReflect() protoreflect.Message
- func (x *AssembleBlockResponse) Reset()
- func (x *AssembleBlockResponse) String() string
- type AssembledBlockData
- func (*AssembledBlockData) Descriptor() ([]byte, []int)deprecated
- func (x *AssembledBlockData) GetBlobsBundle() *types.BlobsBundleV1
- func (x *AssembledBlockData) GetBlockValue() *types.H256
- func (x *AssembledBlockData) GetExecutionPayload() *types.ExecutionPayload
- func (*AssembledBlockData) ProtoMessage()
- func (x *AssembledBlockData) ProtoReflect() protoreflect.Message
- func (x *AssembledBlockData) Reset()
- func (x *AssembledBlockData) String() string
- type Block
- type BlockBody
- func (*BlockBody) Descriptor() ([]byte, []int)deprecated
- func (x *BlockBody) GetBlockHash() *types.H256
- func (x *BlockBody) GetBlockNumber() uint64
- func (x *BlockBody) GetTransactions() [][]byte
- func (x *BlockBody) GetUncles() []*Header
- func (x *BlockBody) GetWithdrawals() []*types.Withdrawal
- func (*BlockBody) ProtoMessage()
- func (x *BlockBody) ProtoReflect() protoreflect.Message
- func (x *BlockBody) Reset()
- func (x *BlockBody) String() string
- type ExecutionClient
- type ExecutionServer
- type ExecutionStatus
- func (ExecutionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ExecutionStatus) Enum() *ExecutionStatus
- func (ExecutionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExecutionStatus) Number() protoreflect.EnumNumber
- func (x ExecutionStatus) String() string
- func (ExecutionStatus) Type() protoreflect.EnumType
- type ForkChoice
- func (*ForkChoice) Descriptor() ([]byte, []int)deprecated
- func (x *ForkChoice) GetFinalizedBlockHash() *types.H256
- func (x *ForkChoice) GetHeadBlockHash() *types.H256
- func (x *ForkChoice) GetSafeBlockHash() *types.H256
- func (x *ForkChoice) GetTimeout() uint64
- func (*ForkChoice) ProtoMessage()
- func (x *ForkChoice) ProtoReflect() protoreflect.Message
- func (x *ForkChoice) Reset()
- func (x *ForkChoice) String() string
- type ForkChoiceReceipt
- func (*ForkChoiceReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *ForkChoiceReceipt) GetLatestValidHash() *types.H256
- func (x *ForkChoiceReceipt) GetStatus() ExecutionStatus
- func (*ForkChoiceReceipt) ProtoMessage()
- func (x *ForkChoiceReceipt) ProtoReflect() protoreflect.Message
- func (x *ForkChoiceReceipt) Reset()
- func (x *ForkChoiceReceipt) String() string
- type FrozenBlocksResponse
- func (*FrozenBlocksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FrozenBlocksResponse) GetFrozenBlocks() uint64
- func (*FrozenBlocksResponse) ProtoMessage()
- func (x *FrozenBlocksResponse) ProtoReflect() protoreflect.Message
- func (x *FrozenBlocksResponse) Reset()
- func (x *FrozenBlocksResponse) String() string
- type GetAssembledBlockRequest
- func (*GetAssembledBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssembledBlockRequest) GetId() uint64
- func (*GetAssembledBlockRequest) ProtoMessage()
- func (x *GetAssembledBlockRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssembledBlockRequest) Reset()
- func (x *GetAssembledBlockRequest) String() string
- type GetAssembledBlockResponse
- func (*GetAssembledBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssembledBlockResponse) GetBusy() bool
- func (x *GetAssembledBlockResponse) GetData() *AssembledBlockData
- func (*GetAssembledBlockResponse) ProtoMessage()
- func (x *GetAssembledBlockResponse) ProtoReflect() protoreflect.Message
- func (x *GetAssembledBlockResponse) Reset()
- func (x *GetAssembledBlockResponse) String() string
- type GetBodiesBatchResponse
- func (*GetBodiesBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBodiesBatchResponse) GetBodies() []*BlockBody
- func (*GetBodiesBatchResponse) ProtoMessage()
- func (x *GetBodiesBatchResponse) ProtoReflect() protoreflect.Message
- func (x *GetBodiesBatchResponse) Reset()
- func (x *GetBodiesBatchResponse) String() string
- type GetBodiesByHashesRequest
- func (*GetBodiesByHashesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBodiesByHashesRequest) GetHashes() []*types.H256
- func (*GetBodiesByHashesRequest) ProtoMessage()
- func (x *GetBodiesByHashesRequest) ProtoReflect() protoreflect.Message
- func (x *GetBodiesByHashesRequest) Reset()
- func (x *GetBodiesByHashesRequest) String() string
- type GetBodiesByRangeRequest
- func (*GetBodiesByRangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBodiesByRangeRequest) GetCount() uint64
- func (x *GetBodiesByRangeRequest) GetStart() uint64
- func (*GetBodiesByRangeRequest) ProtoMessage()
- func (x *GetBodiesByRangeRequest) ProtoReflect() protoreflect.Message
- func (x *GetBodiesByRangeRequest) Reset()
- func (x *GetBodiesByRangeRequest) String() string
- type GetBodyResponse
- type GetHeaderHashNumberResponse
- func (*GetHeaderHashNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHeaderHashNumberResponse) GetBlockNumber() uint64
- func (*GetHeaderHashNumberResponse) ProtoMessage()
- func (x *GetHeaderHashNumberResponse) ProtoReflect() protoreflect.Message
- func (x *GetHeaderHashNumberResponse) Reset()
- func (x *GetHeaderHashNumberResponse) String() string
- type GetHeaderResponse
- type GetSegmentRequest
- func (*GetSegmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSegmentRequest) GetBlockHash() *types.H256
- func (x *GetSegmentRequest) GetBlockNumber() uint64
- func (*GetSegmentRequest) ProtoMessage()
- func (x *GetSegmentRequest) ProtoReflect() protoreflect.Message
- func (x *GetSegmentRequest) Reset()
- func (x *GetSegmentRequest) String() string
- type GetTDResponse
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetAuraSeal() []byte
- func (x *Header) GetAuraStep() uint64
- func (x *Header) GetBaseFeePerGas() *types.H256
- func (x *Header) GetBlobGasUsed() uint64
- func (x *Header) GetBlockHash() *types.H256
- func (x *Header) GetBlockNumber() uint64
- func (x *Header) GetCoinbase() *types.H160
- func (x *Header) GetDifficulty() *types.H256
- func (x *Header) GetExcessBlobGas() uint64
- func (x *Header) GetExtraData() []byte
- func (x *Header) GetGasLimit() uint64
- func (x *Header) GetGasUsed() uint64
- func (x *Header) GetLogsBloom() *types.H2048
- func (x *Header) GetNonce() uint64
- func (x *Header) GetOmmerHash() *types.H256
- func (x *Header) GetParentBeaconBlockRoot() *types.H256
- func (x *Header) GetParentHash() *types.H256
- func (x *Header) GetPrevRandao() *types.H256
- func (x *Header) GetReceiptRoot() *types.H256
- func (x *Header) GetStateRoot() *types.H256
- func (x *Header) GetTimestamp() uint64
- func (x *Header) GetTransactionHash() *types.H256
- func (x *Header) GetWithdrawalHash() *types.H256
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
- type InsertBlocksRequest
- func (*InsertBlocksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InsertBlocksRequest) GetBlocks() []*Block
- func (*InsertBlocksRequest) ProtoMessage()
- func (x *InsertBlocksRequest) ProtoReflect() protoreflect.Message
- func (x *InsertBlocksRequest) Reset()
- func (x *InsertBlocksRequest) String() string
- type InsertionResult
- type IsCanonicalResponse
- func (*IsCanonicalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsCanonicalResponse) GetCanonical() bool
- func (*IsCanonicalResponse) ProtoMessage()
- func (x *IsCanonicalResponse) ProtoReflect() protoreflect.Message
- func (x *IsCanonicalResponse) Reset()
- func (x *IsCanonicalResponse) String() string
- type ReadyResponse
- type UnimplementedExecutionServer
- func (UnimplementedExecutionServer) AssembleBlock(context.Context, *AssembleBlockRequest) (*AssembleBlockResponse, error)
- func (UnimplementedExecutionServer) CurrentHeader(context.Context, *emptypb.Empty) (*GetHeaderResponse, error)
- func (UnimplementedExecutionServer) FrozenBlocks(context.Context, *emptypb.Empty) (*FrozenBlocksResponse, error)
- func (UnimplementedExecutionServer) GetAssembledBlock(context.Context, *GetAssembledBlockRequest) (*GetAssembledBlockResponse, error)
- func (UnimplementedExecutionServer) GetBodiesByHashes(context.Context, *GetBodiesByHashesRequest) (*GetBodiesBatchResponse, error)
- func (UnimplementedExecutionServer) GetBodiesByRange(context.Context, *GetBodiesByRangeRequest) (*GetBodiesBatchResponse, error)
- func (UnimplementedExecutionServer) GetBody(context.Context, *GetSegmentRequest) (*GetBodyResponse, error)
- func (UnimplementedExecutionServer) GetForkChoice(context.Context, *emptypb.Empty) (*ForkChoice, error)
- func (UnimplementedExecutionServer) GetHeader(context.Context, *GetSegmentRequest) (*GetHeaderResponse, error)
- func (UnimplementedExecutionServer) GetHeaderHashNumber(context.Context, *types.H256) (*GetHeaderHashNumberResponse, error)
- func (UnimplementedExecutionServer) GetTD(context.Context, *GetSegmentRequest) (*GetTDResponse, error)
- func (UnimplementedExecutionServer) InsertBlocks(context.Context, *InsertBlocksRequest) (*InsertionResult, error)
- func (UnimplementedExecutionServer) IsCanonicalHash(context.Context, *types.H256) (*IsCanonicalResponse, error)
- func (UnimplementedExecutionServer) Ready(context.Context, *emptypb.Empty) (*ReadyResponse, error)
- func (UnimplementedExecutionServer) UpdateForkChoice(context.Context, *ForkChoice) (*ForkChoiceReceipt, error)
- func (UnimplementedExecutionServer) ValidateChain(context.Context, *ValidationRequest) (*ValidationReceipt, error)
- type UnsafeExecutionServer
- type ValidationReceipt
- func (*ValidationReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationReceipt) GetLatestValidHash() *types.H256
- func (x *ValidationReceipt) GetValidationStatus() ExecutionStatus
- func (*ValidationReceipt) ProtoMessage()
- func (x *ValidationReceipt) ProtoReflect() protoreflect.Message
- func (x *ValidationReceipt) Reset()
- func (x *ValidationReceipt) String() string
- type ValidationRequest
- func (*ValidationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationRequest) GetHash() *types.H256
- func (x *ValidationRequest) GetNumber() uint64
- func (*ValidationRequest) ProtoMessage()
- func (x *ValidationRequest) ProtoReflect() protoreflect.Message
- func (x *ValidationRequest) Reset()
- func (x *ValidationRequest) String() string
Constants ¶
const ( Execution_InsertBlocks_FullMethodName = "/execution.Execution/InsertBlocks" Execution_ValidateChain_FullMethodName = "/execution.Execution/ValidateChain" Execution_UpdateForkChoice_FullMethodName = "/execution.Execution/UpdateForkChoice" Execution_AssembleBlock_FullMethodName = "/execution.Execution/AssembleBlock" Execution_GetAssembledBlock_FullMethodName = "/execution.Execution/GetAssembledBlock" Execution_CurrentHeader_FullMethodName = "/execution.Execution/CurrentHeader" Execution_GetTD_FullMethodName = "/execution.Execution/GetTD" Execution_GetHeader_FullMethodName = "/execution.Execution/GetHeader" Execution_GetBody_FullMethodName = "/execution.Execution/GetBody" Execution_GetBodiesByRange_FullMethodName = "/execution.Execution/GetBodiesByRange" Execution_GetBodiesByHashes_FullMethodName = "/execution.Execution/GetBodiesByHashes" Execution_IsCanonicalHash_FullMethodName = "/execution.Execution/IsCanonicalHash" Execution_GetHeaderHashNumber_FullMethodName = "/execution.Execution/GetHeaderHashNumber" Execution_GetForkChoice_FullMethodName = "/execution.Execution/GetForkChoice" Execution_Ready_FullMethodName = "/execution.Execution/Ready" Execution_FrozenBlocks_FullMethodName = "/execution.Execution/FrozenBlocks" )
Variables ¶
var ( ExecutionStatus_name = map[int32]string{ 0: "Success", 1: "BadBlock", 2: "TooFarAway", 3: "MissingSegment", 4: "InvalidForkchoice", 5: "Busy", } ExecutionStatus_value = map[string]int32{ "Success": 0, "BadBlock": 1, "TooFarAway": 2, "MissingSegment": 3, "InvalidForkchoice": 4, "Busy": 5, } )
Enum value maps for ExecutionStatus.
var Execution_ServiceDesc = grpc.ServiceDesc{ ServiceName: "execution.Execution", HandlerType: (*ExecutionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InsertBlocks", Handler: _Execution_InsertBlocks_Handler, }, { MethodName: "ValidateChain", Handler: _Execution_ValidateChain_Handler, }, { MethodName: "UpdateForkChoice", Handler: _Execution_UpdateForkChoice_Handler, }, { MethodName: "AssembleBlock", Handler: _Execution_AssembleBlock_Handler, }, { MethodName: "GetAssembledBlock", Handler: _Execution_GetAssembledBlock_Handler, }, { MethodName: "CurrentHeader", Handler: _Execution_CurrentHeader_Handler, }, { MethodName: "GetTD", Handler: _Execution_GetTD_Handler, }, { MethodName: "GetHeader", Handler: _Execution_GetHeader_Handler, }, { MethodName: "GetBody", Handler: _Execution_GetBody_Handler, }, { MethodName: "GetBodiesByRange", Handler: _Execution_GetBodiesByRange_Handler, }, { MethodName: "GetBodiesByHashes", Handler: _Execution_GetBodiesByHashes_Handler, }, { MethodName: "IsCanonicalHash", Handler: _Execution_IsCanonicalHash_Handler, }, { MethodName: "GetHeaderHashNumber", Handler: _Execution_GetHeaderHashNumber_Handler, }, { MethodName: "GetForkChoice", Handler: _Execution_GetForkChoice_Handler, }, { MethodName: "Ready", Handler: _Execution_Ready_Handler, }, { MethodName: "FrozenBlocks", Handler: _Execution_FrozenBlocks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "execution/execution.proto", }
Execution_ServiceDesc is the grpc.ServiceDesc for Execution service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_execution_execution_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExecutionServer ¶
func RegisterExecutionServer(s grpc.ServiceRegistrar, srv ExecutionServer)
Types ¶
type AssembleBlockRequest ¶
type AssembleBlockRequest struct { ParentHash *types.H256 `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` PrevRandao *types.H256 `protobuf:"bytes,3,opt,name=prev_randao,json=prevRandao,proto3" json:"prev_randao,omitempty"` SuggestedFeeRecipient *types.H160 `` /* 126-byte string literal not displayed */ Withdrawals []*types.Withdrawal `protobuf:"bytes,5,rep,name=withdrawals,proto3" json:"withdrawals,omitempty"` // added in Shapella (EIP-4895) ParentBeaconBlockRoot *types.H256 `` // added in Dencun (EIP-4788) /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AssembleBlockRequest) Descriptor
deprecated
func (*AssembleBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssembleBlockRequest.ProtoReflect.Descriptor instead.
func (*AssembleBlockRequest) GetParentBeaconBlockRoot ¶
func (x *AssembleBlockRequest) GetParentBeaconBlockRoot() *types.H256
func (*AssembleBlockRequest) GetParentHash ¶
func (x *AssembleBlockRequest) GetParentHash() *types.H256
func (*AssembleBlockRequest) GetPrevRandao ¶
func (x *AssembleBlockRequest) GetPrevRandao() *types.H256
func (*AssembleBlockRequest) GetSuggestedFeeRecipient ¶
func (x *AssembleBlockRequest) GetSuggestedFeeRecipient() *types.H160
func (*AssembleBlockRequest) GetTimestamp ¶
func (x *AssembleBlockRequest) GetTimestamp() uint64
func (*AssembleBlockRequest) GetWithdrawals ¶
func (x *AssembleBlockRequest) GetWithdrawals() []*types.Withdrawal
func (*AssembleBlockRequest) ProtoMessage ¶
func (*AssembleBlockRequest) ProtoMessage()
func (*AssembleBlockRequest) ProtoReflect ¶
func (x *AssembleBlockRequest) ProtoReflect() protoreflect.Message
func (*AssembleBlockRequest) Reset ¶
func (x *AssembleBlockRequest) Reset()
func (*AssembleBlockRequest) String ¶
func (x *AssembleBlockRequest) String() string
type AssembleBlockResponse ¶
type AssembleBlockResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Busy bool `protobuf:"varint,2,opt,name=busy,proto3" json:"busy,omitempty"` // contains filtered or unexported fields }
func (*AssembleBlockResponse) Descriptor
deprecated
func (*AssembleBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssembleBlockResponse.ProtoReflect.Descriptor instead.
func (*AssembleBlockResponse) GetBusy ¶
func (x *AssembleBlockResponse) GetBusy() bool
func (*AssembleBlockResponse) GetId ¶
func (x *AssembleBlockResponse) GetId() uint64
func (*AssembleBlockResponse) ProtoMessage ¶
func (*AssembleBlockResponse) ProtoMessage()
func (*AssembleBlockResponse) ProtoReflect ¶
func (x *AssembleBlockResponse) ProtoReflect() protoreflect.Message
func (*AssembleBlockResponse) Reset ¶
func (x *AssembleBlockResponse) Reset()
func (*AssembleBlockResponse) String ¶
func (x *AssembleBlockResponse) String() string
type AssembledBlockData ¶
type AssembledBlockData struct { ExecutionPayload *types.ExecutionPayload `protobuf:"bytes,1,opt,name=execution_payload,json=executionPayload,proto3" json:"execution_payload,omitempty"` BlockValue *types.H256 `protobuf:"bytes,2,opt,name=block_value,json=blockValue,proto3" json:"block_value,omitempty"` BlobsBundle *types.BlobsBundleV1 `protobuf:"bytes,3,opt,name=blobs_bundle,json=blobsBundle,proto3" json:"blobs_bundle,omitempty"` // contains filtered or unexported fields }
func (*AssembledBlockData) Descriptor
deprecated
func (*AssembledBlockData) Descriptor() ([]byte, []int)
Deprecated: Use AssembledBlockData.ProtoReflect.Descriptor instead.
func (*AssembledBlockData) GetBlobsBundle ¶
func (x *AssembledBlockData) GetBlobsBundle() *types.BlobsBundleV1
func (*AssembledBlockData) GetBlockValue ¶
func (x *AssembledBlockData) GetBlockValue() *types.H256
func (*AssembledBlockData) GetExecutionPayload ¶
func (x *AssembledBlockData) GetExecutionPayload() *types.ExecutionPayload
func (*AssembledBlockData) ProtoMessage ¶
func (*AssembledBlockData) ProtoMessage()
func (*AssembledBlockData) ProtoReflect ¶
func (x *AssembledBlockData) ProtoReflect() protoreflect.Message
func (*AssembledBlockData) Reset ¶
func (x *AssembledBlockData) Reset()
func (*AssembledBlockData) String ¶
func (x *AssembledBlockData) String() string
type Block ¶
type Block struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Body *BlockBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockBody ¶
type BlockBody struct { BlockHash *types.H256 `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // Raw transactions in byte format. Transactions [][]byte `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` Uncles []*Header `protobuf:"bytes,4,rep,name=uncles,proto3" json:"uncles,omitempty"` Withdrawals []*types.Withdrawal `protobuf:"bytes,5,rep,name=withdrawals,proto3" json:"withdrawals,omitempty"` // contains filtered or unexported fields }
Body is a block body for execution
func (*BlockBody) Descriptor
deprecated
func (*BlockBody) GetBlockHash ¶
func (*BlockBody) GetBlockNumber ¶
func (*BlockBody) GetTransactions ¶
func (*BlockBody) GetWithdrawals ¶
func (x *BlockBody) GetWithdrawals() []*types.Withdrawal
func (*BlockBody) ProtoMessage ¶
func (*BlockBody) ProtoMessage()
func (*BlockBody) ProtoReflect ¶
func (x *BlockBody) ProtoReflect() protoreflect.Message
type ExecutionClient ¶
type ExecutionClient interface { // Chain Putters. InsertBlocks(ctx context.Context, in *InsertBlocksRequest, opts ...grpc.CallOption) (*InsertionResult, error) // Chain Validation and ForkChoice. ValidateChain(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationReceipt, error) UpdateForkChoice(ctx context.Context, in *ForkChoice, opts ...grpc.CallOption) (*ForkChoiceReceipt, error) // Block Assembly // EAGAIN design here, AssembleBlock initiates the asynchronous request, and GetAssembleBlock just return it if ready. AssembleBlock(ctx context.Context, in *AssembleBlockRequest, opts ...grpc.CallOption) (*AssembleBlockResponse, error) GetAssembledBlock(ctx context.Context, in *GetAssembledBlockRequest, opts ...grpc.CallOption) (*GetAssembledBlockResponse, error) // Chain Getters. CurrentHeader(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetHeaderResponse, error) GetTD(ctx context.Context, in *GetSegmentRequest, opts ...grpc.CallOption) (*GetTDResponse, error) GetHeader(ctx context.Context, in *GetSegmentRequest, opts ...grpc.CallOption) (*GetHeaderResponse, error) GetBody(ctx context.Context, in *GetSegmentRequest, opts ...grpc.CallOption) (*GetBodyResponse, error) // Ranges GetBodiesByRange(ctx context.Context, in *GetBodiesByRangeRequest, opts ...grpc.CallOption) (*GetBodiesBatchResponse, error) GetBodiesByHashes(ctx context.Context, in *GetBodiesByHashesRequest, opts ...grpc.CallOption) (*GetBodiesBatchResponse, error) // Chain checkers IsCanonicalHash(ctx context.Context, in *types.H256, opts ...grpc.CallOption) (*IsCanonicalResponse, error) GetHeaderHashNumber(ctx context.Context, in *types.H256, opts ...grpc.CallOption) (*GetHeaderHashNumberResponse, error) GetForkChoice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ForkChoice, error) // Misc // We want to figure out whether we processed snapshots and cleanup sync cycles. Ready(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ReadyResponse, error) // Frozen blocks are how many blocks are in snapshots .seg files. FrozenBlocks(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FrozenBlocksResponse, error) }
ExecutionClient is the client API for Execution service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewExecutionClient ¶
func NewExecutionClient(cc grpc.ClientConnInterface) ExecutionClient
type ExecutionServer ¶
type ExecutionServer interface { // Chain Putters. InsertBlocks(context.Context, *InsertBlocksRequest) (*InsertionResult, error) // Chain Validation and ForkChoice. ValidateChain(context.Context, *ValidationRequest) (*ValidationReceipt, error) UpdateForkChoice(context.Context, *ForkChoice) (*ForkChoiceReceipt, error) // Block Assembly // EAGAIN design here, AssembleBlock initiates the asynchronous request, and GetAssembleBlock just return it if ready. AssembleBlock(context.Context, *AssembleBlockRequest) (*AssembleBlockResponse, error) GetAssembledBlock(context.Context, *GetAssembledBlockRequest) (*GetAssembledBlockResponse, error) // Chain Getters. CurrentHeader(context.Context, *emptypb.Empty) (*GetHeaderResponse, error) GetTD(context.Context, *GetSegmentRequest) (*GetTDResponse, error) GetHeader(context.Context, *GetSegmentRequest) (*GetHeaderResponse, error) GetBody(context.Context, *GetSegmentRequest) (*GetBodyResponse, error) // Ranges GetBodiesByRange(context.Context, *GetBodiesByRangeRequest) (*GetBodiesBatchResponse, error) GetBodiesByHashes(context.Context, *GetBodiesByHashesRequest) (*GetBodiesBatchResponse, error) // Chain checkers IsCanonicalHash(context.Context, *types.H256) (*IsCanonicalResponse, error) GetHeaderHashNumber(context.Context, *types.H256) (*GetHeaderHashNumberResponse, error) GetForkChoice(context.Context, *emptypb.Empty) (*ForkChoice, error) // Misc // We want to figure out whether we processed snapshots and cleanup sync cycles. Ready(context.Context, *emptypb.Empty) (*ReadyResponse, error) // Frozen blocks are how many blocks are in snapshots .seg files. FrozenBlocks(context.Context, *emptypb.Empty) (*FrozenBlocksResponse, error) // contains filtered or unexported methods }
ExecutionServer is the server API for Execution service. All implementations must embed UnimplementedExecutionServer for forward compatibility
type ExecutionStatus ¶
type ExecutionStatus int32
const ( ExecutionStatus_Success ExecutionStatus = 0 ExecutionStatus_BadBlock ExecutionStatus = 1 ExecutionStatus_TooFarAway ExecutionStatus = 2 ExecutionStatus_MissingSegment ExecutionStatus = 3 ExecutionStatus_InvalidForkchoice ExecutionStatus = 4 ExecutionStatus_Busy ExecutionStatus = 5 )
func (ExecutionStatus) Descriptor ¶
func (ExecutionStatus) Descriptor() protoreflect.EnumDescriptor
func (ExecutionStatus) Enum ¶
func (x ExecutionStatus) Enum() *ExecutionStatus
func (ExecutionStatus) EnumDescriptor
deprecated
func (ExecutionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExecutionStatus.Descriptor instead.
func (ExecutionStatus) Number ¶
func (x ExecutionStatus) Number() protoreflect.EnumNumber
func (ExecutionStatus) String ¶
func (x ExecutionStatus) String() string
func (ExecutionStatus) Type ¶
func (ExecutionStatus) Type() protoreflect.EnumType
type ForkChoice ¶
type ForkChoice struct { HeadBlockHash *types.H256 `protobuf:"bytes,1,opt,name=head_block_hash,json=headBlockHash,proto3" json:"head_block_hash,omitempty"` Timeout uint64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // Timeout in milliseconds for fcu before it becomes async. FinalizedBlockHash *types.H256 `protobuf:"bytes,3,opt,name=finalized_block_hash,json=finalizedBlockHash,proto3,oneof" json:"finalized_block_hash,omitempty"` SafeBlockHash *types.H256 `protobuf:"bytes,4,opt,name=safe_block_hash,json=safeBlockHash,proto3,oneof" json:"safe_block_hash,omitempty"` // contains filtered or unexported fields }
func (*ForkChoice) Descriptor
deprecated
func (*ForkChoice) Descriptor() ([]byte, []int)
Deprecated: Use ForkChoice.ProtoReflect.Descriptor instead.
func (*ForkChoice) GetFinalizedBlockHash ¶
func (x *ForkChoice) GetFinalizedBlockHash() *types.H256
func (*ForkChoice) GetHeadBlockHash ¶
func (x *ForkChoice) GetHeadBlockHash() *types.H256
func (*ForkChoice) GetSafeBlockHash ¶
func (x *ForkChoice) GetSafeBlockHash() *types.H256
func (*ForkChoice) GetTimeout ¶
func (x *ForkChoice) GetTimeout() uint64
func (*ForkChoice) ProtoMessage ¶
func (*ForkChoice) ProtoMessage()
func (*ForkChoice) ProtoReflect ¶
func (x *ForkChoice) ProtoReflect() protoreflect.Message
func (*ForkChoice) Reset ¶
func (x *ForkChoice) Reset()
func (*ForkChoice) String ¶
func (x *ForkChoice) String() string
type ForkChoiceReceipt ¶
type ForkChoiceReceipt struct { Status ExecutionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=execution.ExecutionStatus" json:"status,omitempty"` LatestValidHash *types.H256 `protobuf:"bytes,2,opt,name=latest_valid_hash,json=latestValidHash,proto3" json:"latest_valid_hash,omitempty"` // Return latest valid hash in case of halt of execution. // contains filtered or unexported fields }
func (*ForkChoiceReceipt) Descriptor
deprecated
func (*ForkChoiceReceipt) Descriptor() ([]byte, []int)
Deprecated: Use ForkChoiceReceipt.ProtoReflect.Descriptor instead.
func (*ForkChoiceReceipt) GetLatestValidHash ¶
func (x *ForkChoiceReceipt) GetLatestValidHash() *types.H256
func (*ForkChoiceReceipt) GetStatus ¶
func (x *ForkChoiceReceipt) GetStatus() ExecutionStatus
func (*ForkChoiceReceipt) ProtoMessage ¶
func (*ForkChoiceReceipt) ProtoMessage()
func (*ForkChoiceReceipt) ProtoReflect ¶
func (x *ForkChoiceReceipt) ProtoReflect() protoreflect.Message
func (*ForkChoiceReceipt) Reset ¶
func (x *ForkChoiceReceipt) Reset()
func (*ForkChoiceReceipt) String ¶
func (x *ForkChoiceReceipt) String() string
type FrozenBlocksResponse ¶
type FrozenBlocksResponse struct { FrozenBlocks uint64 `protobuf:"varint,1,opt,name=frozen_blocks,json=frozenBlocks,proto3" json:"frozen_blocks,omitempty"` // contains filtered or unexported fields }
func (*FrozenBlocksResponse) Descriptor
deprecated
func (*FrozenBlocksResponse) Descriptor() ([]byte, []int)
Deprecated: Use FrozenBlocksResponse.ProtoReflect.Descriptor instead.
func (*FrozenBlocksResponse) GetFrozenBlocks ¶
func (x *FrozenBlocksResponse) GetFrozenBlocks() uint64
func (*FrozenBlocksResponse) ProtoMessage ¶
func (*FrozenBlocksResponse) ProtoMessage()
func (*FrozenBlocksResponse) ProtoReflect ¶
func (x *FrozenBlocksResponse) ProtoReflect() protoreflect.Message
func (*FrozenBlocksResponse) Reset ¶
func (x *FrozenBlocksResponse) Reset()
func (*FrozenBlocksResponse) String ¶
func (x *FrozenBlocksResponse) String() string
type GetAssembledBlockRequest ¶
type GetAssembledBlockRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAssembledBlockRequest) Descriptor
deprecated
func (*GetAssembledBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssembledBlockRequest.ProtoReflect.Descriptor instead.
func (*GetAssembledBlockRequest) GetId ¶
func (x *GetAssembledBlockRequest) GetId() uint64
func (*GetAssembledBlockRequest) ProtoMessage ¶
func (*GetAssembledBlockRequest) ProtoMessage()
func (*GetAssembledBlockRequest) ProtoReflect ¶
func (x *GetAssembledBlockRequest) ProtoReflect() protoreflect.Message
func (*GetAssembledBlockRequest) Reset ¶
func (x *GetAssembledBlockRequest) Reset()
func (*GetAssembledBlockRequest) String ¶
func (x *GetAssembledBlockRequest) String() string
type GetAssembledBlockResponse ¶
type GetAssembledBlockResponse struct { Data *AssembledBlockData `protobuf:"bytes,1,opt,name=data,proto3,oneof" json:"data,omitempty"` Busy bool `protobuf:"varint,2,opt,name=busy,proto3" json:"busy,omitempty"` // contains filtered or unexported fields }
func (*GetAssembledBlockResponse) Descriptor
deprecated
func (*GetAssembledBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAssembledBlockResponse.ProtoReflect.Descriptor instead.
func (*GetAssembledBlockResponse) GetBusy ¶
func (x *GetAssembledBlockResponse) GetBusy() bool
func (*GetAssembledBlockResponse) GetData ¶
func (x *GetAssembledBlockResponse) GetData() *AssembledBlockData
func (*GetAssembledBlockResponse) ProtoMessage ¶
func (*GetAssembledBlockResponse) ProtoMessage()
func (*GetAssembledBlockResponse) ProtoReflect ¶
func (x *GetAssembledBlockResponse) ProtoReflect() protoreflect.Message
func (*GetAssembledBlockResponse) Reset ¶
func (x *GetAssembledBlockResponse) Reset()
func (*GetAssembledBlockResponse) String ¶
func (x *GetAssembledBlockResponse) String() string
type GetBodiesBatchResponse ¶
type GetBodiesBatchResponse struct { Bodies []*BlockBody `protobuf:"bytes,1,rep,name=bodies,proto3" json:"bodies,omitempty"` // contains filtered or unexported fields }
func (*GetBodiesBatchResponse) Descriptor
deprecated
func (*GetBodiesBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBodiesBatchResponse.ProtoReflect.Descriptor instead.
func (*GetBodiesBatchResponse) GetBodies ¶
func (x *GetBodiesBatchResponse) GetBodies() []*BlockBody
func (*GetBodiesBatchResponse) ProtoMessage ¶
func (*GetBodiesBatchResponse) ProtoMessage()
func (*GetBodiesBatchResponse) ProtoReflect ¶
func (x *GetBodiesBatchResponse) ProtoReflect() protoreflect.Message
func (*GetBodiesBatchResponse) Reset ¶
func (x *GetBodiesBatchResponse) Reset()
func (*GetBodiesBatchResponse) String ¶
func (x *GetBodiesBatchResponse) String() string
type GetBodiesByHashesRequest ¶
type GetBodiesByHashesRequest struct { Hashes []*types.H256 `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` // contains filtered or unexported fields }
func (*GetBodiesByHashesRequest) Descriptor
deprecated
func (*GetBodiesByHashesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBodiesByHashesRequest.ProtoReflect.Descriptor instead.
func (*GetBodiesByHashesRequest) GetHashes ¶
func (x *GetBodiesByHashesRequest) GetHashes() []*types.H256
func (*GetBodiesByHashesRequest) ProtoMessage ¶
func (*GetBodiesByHashesRequest) ProtoMessage()
func (*GetBodiesByHashesRequest) ProtoReflect ¶
func (x *GetBodiesByHashesRequest) ProtoReflect() protoreflect.Message
func (*GetBodiesByHashesRequest) Reset ¶
func (x *GetBodiesByHashesRequest) Reset()
func (*GetBodiesByHashesRequest) String ¶
func (x *GetBodiesByHashesRequest) String() string
type GetBodiesByRangeRequest ¶
type GetBodiesByRangeRequest struct { Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetBodiesByRangeRequest) Descriptor
deprecated
func (*GetBodiesByRangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBodiesByRangeRequest.ProtoReflect.Descriptor instead.
func (*GetBodiesByRangeRequest) GetCount ¶
func (x *GetBodiesByRangeRequest) GetCount() uint64
func (*GetBodiesByRangeRequest) GetStart ¶
func (x *GetBodiesByRangeRequest) GetStart() uint64
func (*GetBodiesByRangeRequest) ProtoMessage ¶
func (*GetBodiesByRangeRequest) ProtoMessage()
func (*GetBodiesByRangeRequest) ProtoReflect ¶
func (x *GetBodiesByRangeRequest) ProtoReflect() protoreflect.Message
func (*GetBodiesByRangeRequest) Reset ¶
func (x *GetBodiesByRangeRequest) Reset()
func (*GetBodiesByRangeRequest) String ¶
func (x *GetBodiesByRangeRequest) String() string
type GetBodyResponse ¶
type GetBodyResponse struct { Body *BlockBody `protobuf:"bytes,1,opt,name=body,proto3,oneof" json:"body,omitempty"` // contains filtered or unexported fields }
func (*GetBodyResponse) Descriptor
deprecated
func (*GetBodyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBodyResponse.ProtoReflect.Descriptor instead.
func (*GetBodyResponse) GetBody ¶
func (x *GetBodyResponse) GetBody() *BlockBody
func (*GetBodyResponse) ProtoMessage ¶
func (*GetBodyResponse) ProtoMessage()
func (*GetBodyResponse) ProtoReflect ¶
func (x *GetBodyResponse) ProtoReflect() protoreflect.Message
func (*GetBodyResponse) Reset ¶
func (x *GetBodyResponse) Reset()
func (*GetBodyResponse) String ¶
func (x *GetBodyResponse) String() string
type GetHeaderHashNumberResponse ¶
type GetHeaderHashNumberResponse struct { BlockNumber *uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3,oneof" json:"block_number,omitempty"` // null if not found. // contains filtered or unexported fields }
func (*GetHeaderHashNumberResponse) Descriptor
deprecated
func (*GetHeaderHashNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHeaderHashNumberResponse.ProtoReflect.Descriptor instead.
func (*GetHeaderHashNumberResponse) GetBlockNumber ¶
func (x *GetHeaderHashNumberResponse) GetBlockNumber() uint64
func (*GetHeaderHashNumberResponse) ProtoMessage ¶
func (*GetHeaderHashNumberResponse) ProtoMessage()
func (*GetHeaderHashNumberResponse) ProtoReflect ¶
func (x *GetHeaderHashNumberResponse) ProtoReflect() protoreflect.Message
func (*GetHeaderHashNumberResponse) Reset ¶
func (x *GetHeaderHashNumberResponse) Reset()
func (*GetHeaderHashNumberResponse) String ¶
func (x *GetHeaderHashNumberResponse) String() string
type GetHeaderResponse ¶
type GetHeaderResponse struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"` // contains filtered or unexported fields }
func (*GetHeaderResponse) Descriptor
deprecated
func (*GetHeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHeaderResponse.ProtoReflect.Descriptor instead.
func (*GetHeaderResponse) GetHeader ¶
func (x *GetHeaderResponse) GetHeader() *Header
func (*GetHeaderResponse) ProtoMessage ¶
func (*GetHeaderResponse) ProtoMessage()
func (*GetHeaderResponse) ProtoReflect ¶
func (x *GetHeaderResponse) ProtoReflect() protoreflect.Message
func (*GetHeaderResponse) Reset ¶
func (x *GetHeaderResponse) Reset()
func (*GetHeaderResponse) String ¶
func (x *GetHeaderResponse) String() string
type GetSegmentRequest ¶
type GetSegmentRequest struct { // Get headers/body by number or hash, invalid if none set. BlockNumber *uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3,oneof" json:"block_number,omitempty"` BlockHash *types.H256 `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3,oneof" json:"block_hash,omitempty"` // contains filtered or unexported fields }
func (*GetSegmentRequest) Descriptor
deprecated
func (*GetSegmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSegmentRequest.ProtoReflect.Descriptor instead.
func (*GetSegmentRequest) GetBlockHash ¶
func (x *GetSegmentRequest) GetBlockHash() *types.H256
func (*GetSegmentRequest) GetBlockNumber ¶
func (x *GetSegmentRequest) GetBlockNumber() uint64
func (*GetSegmentRequest) ProtoMessage ¶
func (*GetSegmentRequest) ProtoMessage()
func (*GetSegmentRequest) ProtoReflect ¶
func (x *GetSegmentRequest) ProtoReflect() protoreflect.Message
func (*GetSegmentRequest) Reset ¶
func (x *GetSegmentRequest) Reset()
func (*GetSegmentRequest) String ¶
func (x *GetSegmentRequest) String() string
type GetTDResponse ¶
type GetTDResponse struct { Td *types.H256 `protobuf:"bytes,1,opt,name=td,proto3,oneof" json:"td,omitempty"` // contains filtered or unexported fields }
func (*GetTDResponse) Descriptor
deprecated
func (*GetTDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTDResponse.ProtoReflect.Descriptor instead.
func (*GetTDResponse) GetTd ¶
func (x *GetTDResponse) GetTd() *types.H256
func (*GetTDResponse) ProtoMessage ¶
func (*GetTDResponse) ProtoMessage()
func (*GetTDResponse) ProtoReflect ¶
func (x *GetTDResponse) ProtoReflect() protoreflect.Message
func (*GetTDResponse) Reset ¶
func (x *GetTDResponse) Reset()
func (*GetTDResponse) String ¶
func (x *GetTDResponse) String() string
type Header ¶
type Header struct { ParentHash *types.H256 `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` Coinbase *types.H160 `protobuf:"bytes,2,opt,name=coinbase,proto3" json:"coinbase,omitempty"` StateRoot *types.H256 `protobuf:"bytes,3,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` ReceiptRoot *types.H256 `protobuf:"bytes,4,opt,name=receipt_root,json=receiptRoot,proto3" json:"receipt_root,omitempty"` LogsBloom *types.H2048 `protobuf:"bytes,5,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"` PrevRandao *types.H256 `protobuf:"bytes,6,opt,name=prev_randao,json=prevRandao,proto3" json:"prev_randao,omitempty"` BlockNumber uint64 `protobuf:"varint,7,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` GasLimit uint64 `protobuf:"varint,8,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` GasUsed uint64 `protobuf:"varint,9,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` Timestamp uint64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Nonce uint64 `protobuf:"varint,11,opt,name=nonce,proto3" json:"nonce,omitempty"` ExtraData []byte `protobuf:"bytes,12,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` Difficulty *types.H256 `protobuf:"bytes,13,opt,name=difficulty,proto3" json:"difficulty,omitempty"` BlockHash *types.H256 `protobuf:"bytes,14,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // We keep this so that we can validate it OmmerHash *types.H256 `protobuf:"bytes,15,opt,name=ommer_hash,json=ommerHash,proto3" json:"ommer_hash,omitempty"` TransactionHash *types.H256 `protobuf:"bytes,16,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` BaseFeePerGas *types.H256 `protobuf:"bytes,17,opt,name=base_fee_per_gas,json=baseFeePerGas,proto3,oneof" json:"base_fee_per_gas,omitempty"` WithdrawalHash *types.H256 `protobuf:"bytes,18,opt,name=withdrawal_hash,json=withdrawalHash,proto3,oneof" json:"withdrawal_hash,omitempty"` // added in Shapella (EIP-4895) BlobGasUsed *uint64 `protobuf:"varint,19,opt,name=blob_gas_used,json=blobGasUsed,proto3,oneof" json:"blob_gas_used,omitempty"` // added in Dencun (EIP-4844) ExcessBlobGas *uint64 `protobuf:"varint,20,opt,name=excess_blob_gas,json=excessBlobGas,proto3,oneof" json:"excess_blob_gas,omitempty"` // added in Dencun (EIP-4844) ParentBeaconBlockRoot *types.H256 `` // added in Dencun (EIP-4788) /* 135-byte string literal not displayed */ // AuRa AuraStep *uint64 `protobuf:"varint,22,opt,name=aura_step,json=auraStep,proto3,oneof" json:"aura_step,omitempty"` AuraSeal []byte `protobuf:"bytes,23,opt,name=aura_seal,json=auraSeal,proto3,oneof" json:"aura_seal,omitempty"` // contains filtered or unexported fields }
Header is a header for execution
func (*Header) Descriptor
deprecated
func (*Header) GetAuraSeal ¶
func (*Header) GetAuraStep ¶
func (*Header) GetBaseFeePerGas ¶
func (*Header) GetBlobGasUsed ¶
func (*Header) GetBlockHash ¶
func (*Header) GetBlockNumber ¶
func (*Header) GetCoinbase ¶
func (*Header) GetDifficulty ¶
func (*Header) GetExcessBlobGas ¶
func (*Header) GetExtraData ¶
func (*Header) GetGasLimit ¶
func (*Header) GetGasUsed ¶
func (*Header) GetLogsBloom ¶
func (*Header) GetOmmerHash ¶
func (*Header) GetParentBeaconBlockRoot ¶
func (*Header) GetParentHash ¶
func (*Header) GetPrevRandao ¶
func (*Header) GetReceiptRoot ¶
func (*Header) GetStateRoot ¶
func (*Header) GetTimestamp ¶
func (*Header) GetTransactionHash ¶
func (*Header) GetWithdrawalHash ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type InsertBlocksRequest ¶
type InsertBlocksRequest struct { Blocks []*Block `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` // contains filtered or unexported fields }
func (*InsertBlocksRequest) Descriptor
deprecated
func (*InsertBlocksRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertBlocksRequest.ProtoReflect.Descriptor instead.
func (*InsertBlocksRequest) GetBlocks ¶
func (x *InsertBlocksRequest) GetBlocks() []*Block
func (*InsertBlocksRequest) ProtoMessage ¶
func (*InsertBlocksRequest) ProtoMessage()
func (*InsertBlocksRequest) ProtoReflect ¶
func (x *InsertBlocksRequest) ProtoReflect() protoreflect.Message
func (*InsertBlocksRequest) Reset ¶
func (x *InsertBlocksRequest) Reset()
func (*InsertBlocksRequest) String ¶
func (x *InsertBlocksRequest) String() string
type InsertionResult ¶
type InsertionResult struct { Result ExecutionStatus `protobuf:"varint,1,opt,name=result,proto3,enum=execution.ExecutionStatus" json:"result,omitempty"` // contains filtered or unexported fields }
func (*InsertionResult) Descriptor
deprecated
func (*InsertionResult) Descriptor() ([]byte, []int)
Deprecated: Use InsertionResult.ProtoReflect.Descriptor instead.
func (*InsertionResult) GetResult ¶
func (x *InsertionResult) GetResult() ExecutionStatus
func (*InsertionResult) ProtoMessage ¶
func (*InsertionResult) ProtoMessage()
func (*InsertionResult) ProtoReflect ¶
func (x *InsertionResult) ProtoReflect() protoreflect.Message
func (*InsertionResult) Reset ¶
func (x *InsertionResult) Reset()
func (*InsertionResult) String ¶
func (x *InsertionResult) String() string
type IsCanonicalResponse ¶
type IsCanonicalResponse struct { Canonical bool `protobuf:"varint,1,opt,name=canonical,proto3" json:"canonical,omitempty"` // Whether hash is canonical or not. // contains filtered or unexported fields }
func (*IsCanonicalResponse) Descriptor
deprecated
func (*IsCanonicalResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsCanonicalResponse.ProtoReflect.Descriptor instead.
func (*IsCanonicalResponse) GetCanonical ¶
func (x *IsCanonicalResponse) GetCanonical() bool
func (*IsCanonicalResponse) ProtoMessage ¶
func (*IsCanonicalResponse) ProtoMessage()
func (*IsCanonicalResponse) ProtoReflect ¶
func (x *IsCanonicalResponse) ProtoReflect() protoreflect.Message
func (*IsCanonicalResponse) Reset ¶
func (x *IsCanonicalResponse) Reset()
func (*IsCanonicalResponse) String ¶
func (x *IsCanonicalResponse) String() string
type ReadyResponse ¶
type ReadyResponse struct { Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"` // contains filtered or unexported fields }
func (*ReadyResponse) Descriptor
deprecated
func (*ReadyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadyResponse.ProtoReflect.Descriptor instead.
func (*ReadyResponse) GetReady ¶
func (x *ReadyResponse) GetReady() bool
func (*ReadyResponse) ProtoMessage ¶
func (*ReadyResponse) ProtoMessage()
func (*ReadyResponse) ProtoReflect ¶
func (x *ReadyResponse) ProtoReflect() protoreflect.Message
func (*ReadyResponse) Reset ¶
func (x *ReadyResponse) Reset()
func (*ReadyResponse) String ¶
func (x *ReadyResponse) String() string
type UnimplementedExecutionServer ¶
type UnimplementedExecutionServer struct { }
UnimplementedExecutionServer must be embedded to have forward compatible implementations.
func (UnimplementedExecutionServer) AssembleBlock ¶
func (UnimplementedExecutionServer) AssembleBlock(context.Context, *AssembleBlockRequest) (*AssembleBlockResponse, error)
func (UnimplementedExecutionServer) CurrentHeader ¶
func (UnimplementedExecutionServer) CurrentHeader(context.Context, *emptypb.Empty) (*GetHeaderResponse, error)
func (UnimplementedExecutionServer) FrozenBlocks ¶
func (UnimplementedExecutionServer) FrozenBlocks(context.Context, *emptypb.Empty) (*FrozenBlocksResponse, error)
func (UnimplementedExecutionServer) GetAssembledBlock ¶
func (UnimplementedExecutionServer) GetAssembledBlock(context.Context, *GetAssembledBlockRequest) (*GetAssembledBlockResponse, error)
func (UnimplementedExecutionServer) GetBodiesByHashes ¶
func (UnimplementedExecutionServer) GetBodiesByHashes(context.Context, *GetBodiesByHashesRequest) (*GetBodiesBatchResponse, error)
func (UnimplementedExecutionServer) GetBodiesByRange ¶
func (UnimplementedExecutionServer) GetBodiesByRange(context.Context, *GetBodiesByRangeRequest) (*GetBodiesBatchResponse, error)
func (UnimplementedExecutionServer) GetBody ¶
func (UnimplementedExecutionServer) GetBody(context.Context, *GetSegmentRequest) (*GetBodyResponse, error)
func (UnimplementedExecutionServer) GetForkChoice ¶
func (UnimplementedExecutionServer) GetForkChoice(context.Context, *emptypb.Empty) (*ForkChoice, error)
func (UnimplementedExecutionServer) GetHeader ¶
func (UnimplementedExecutionServer) GetHeader(context.Context, *GetSegmentRequest) (*GetHeaderResponse, error)
func (UnimplementedExecutionServer) GetHeaderHashNumber ¶
func (UnimplementedExecutionServer) GetHeaderHashNumber(context.Context, *types.H256) (*GetHeaderHashNumberResponse, error)
func (UnimplementedExecutionServer) GetTD ¶
func (UnimplementedExecutionServer) GetTD(context.Context, *GetSegmentRequest) (*GetTDResponse, error)
func (UnimplementedExecutionServer) InsertBlocks ¶
func (UnimplementedExecutionServer) InsertBlocks(context.Context, *InsertBlocksRequest) (*InsertionResult, error)
func (UnimplementedExecutionServer) IsCanonicalHash ¶
func (UnimplementedExecutionServer) IsCanonicalHash(context.Context, *types.H256) (*IsCanonicalResponse, error)
func (UnimplementedExecutionServer) Ready ¶
func (UnimplementedExecutionServer) Ready(context.Context, *emptypb.Empty) (*ReadyResponse, error)
func (UnimplementedExecutionServer) UpdateForkChoice ¶
func (UnimplementedExecutionServer) UpdateForkChoice(context.Context, *ForkChoice) (*ForkChoiceReceipt, error)
func (UnimplementedExecutionServer) ValidateChain ¶
func (UnimplementedExecutionServer) ValidateChain(context.Context, *ValidationRequest) (*ValidationReceipt, error)
type UnsafeExecutionServer ¶
type UnsafeExecutionServer interface {
// contains filtered or unexported methods
}
UnsafeExecutionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecutionServer will result in compilation errors.
type ValidationReceipt ¶
type ValidationReceipt struct { ValidationStatus ExecutionStatus `` /* 141-byte string literal not displayed */ LatestValidHash *types.H256 `protobuf:"bytes,2,opt,name=latest_valid_hash,json=latestValidHash,proto3" json:"latest_valid_hash,omitempty"` // contains filtered or unexported fields }
Result we receive after validation
func (*ValidationReceipt) Descriptor
deprecated
func (*ValidationReceipt) Descriptor() ([]byte, []int)
Deprecated: Use ValidationReceipt.ProtoReflect.Descriptor instead.
func (*ValidationReceipt) GetLatestValidHash ¶
func (x *ValidationReceipt) GetLatestValidHash() *types.H256
func (*ValidationReceipt) GetValidationStatus ¶
func (x *ValidationReceipt) GetValidationStatus() ExecutionStatus
func (*ValidationReceipt) ProtoMessage ¶
func (*ValidationReceipt) ProtoMessage()
func (*ValidationReceipt) ProtoReflect ¶
func (x *ValidationReceipt) ProtoReflect() protoreflect.Message
func (*ValidationReceipt) Reset ¶
func (x *ValidationReceipt) Reset()
func (*ValidationReceipt) String ¶
func (x *ValidationReceipt) String() string
type ValidationRequest ¶
type ValidationRequest struct { Hash *types.H256 `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*ValidationRequest) Descriptor
deprecated
func (*ValidationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidationRequest.ProtoReflect.Descriptor instead.
func (*ValidationRequest) GetHash ¶
func (x *ValidationRequest) GetHash() *types.H256
func (*ValidationRequest) GetNumber ¶
func (x *ValidationRequest) GetNumber() uint64
func (*ValidationRequest) ProtoMessage ¶
func (*ValidationRequest) ProtoMessage()
func (*ValidationRequest) ProtoReflect ¶
func (x *ValidationRequest) ProtoReflect() protoreflect.Message
func (*ValidationRequest) Reset ¶
func (x *ValidationRequest) Reset()
func (*ValidationRequest) String ¶
func (x *ValidationRequest) String() string