execution

package
v0.0.0-...-ff78b6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBody

func (x *Block) GetBody() *BlockBody

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use BlockBody.ProtoReflect.Descriptor instead.

func (*BlockBody) GetBlockHash

func (x *BlockBody) GetBlockHash() *types.H256

func (*BlockBody) GetBlockNumber

func (x *BlockBody) GetBlockNumber() uint64

func (*BlockBody) GetTransactions

func (x *BlockBody) GetTransactions() [][]byte

func (*BlockBody) GetUncles

func (x *BlockBody) GetUncles() []*Header

func (*BlockBody) GetWithdrawals

func (x *BlockBody) GetWithdrawals() []*types.Withdrawal

func (*BlockBody) ProtoMessage

func (*BlockBody) ProtoMessage()

func (*BlockBody) ProtoReflect

func (x *BlockBody) ProtoReflect() protoreflect.Message

func (*BlockBody) Reset

func (x *BlockBody) Reset()

func (*BlockBody) String

func (x *BlockBody) String() string

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) Enum

func (x ExecutionStatus) Enum() *ExecutionStatus

func (ExecutionStatus) EnumDescriptor deprecated

func (ExecutionStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExecutionStatus.Descriptor instead.

func (ExecutionStatus) Number

func (ExecutionStatus) String

func (x ExecutionStatus) String() string

func (ExecutionStatus) Type

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 (*GetAssembledBlockResponse) ProtoMessage

func (*GetAssembledBlockResponse) ProtoMessage()

func (*GetAssembledBlockResponse) ProtoReflect

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 (*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 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) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetAuraSeal

func (x *Header) GetAuraSeal() []byte

func (*Header) GetAuraStep

func (x *Header) GetAuraStep() uint64

func (*Header) GetBaseFeePerGas

func (x *Header) GetBaseFeePerGas() *types.H256

func (*Header) GetBlobGasUsed

func (x *Header) GetBlobGasUsed() uint64

func (*Header) GetBlockHash

func (x *Header) GetBlockHash() *types.H256

func (*Header) GetBlockNumber

func (x *Header) GetBlockNumber() uint64

func (*Header) GetCoinbase

func (x *Header) GetCoinbase() *types.H160

func (*Header) GetDifficulty

func (x *Header) GetDifficulty() *types.H256

func (*Header) GetExcessBlobGas

func (x *Header) GetExcessBlobGas() uint64

func (*Header) GetExtraData

func (x *Header) GetExtraData() []byte

func (*Header) GetGasLimit

func (x *Header) GetGasLimit() uint64

func (*Header) GetGasUsed

func (x *Header) GetGasUsed() uint64

func (*Header) GetLogsBloom

func (x *Header) GetLogsBloom() *types.H2048

func (*Header) GetNonce

func (x *Header) GetNonce() uint64

func (*Header) GetOmmerHash

func (x *Header) GetOmmerHash() *types.H256

func (*Header) GetParentBeaconBlockRoot

func (x *Header) GetParentBeaconBlockRoot() *types.H256

func (*Header) GetParentHash

func (x *Header) GetParentHash() *types.H256

func (*Header) GetPrevRandao

func (x *Header) GetPrevRandao() *types.H256

func (*Header) GetReceiptRoot

func (x *Header) GetReceiptRoot() *types.H256

func (*Header) GetStateRoot

func (x *Header) GetStateRoot() *types.H256

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() uint64

func (*Header) GetTransactionHash

func (x *Header) GetTransactionHash() *types.H256

func (*Header) GetWithdrawalHash

func (x *Header) GetWithdrawalHash() *types.H256

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

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) CurrentHeader

func (UnimplementedExecutionServer) FrozenBlocks

func (UnimplementedExecutionServer) GetAssembledBlock

func (UnimplementedExecutionServer) GetBodiesByHashes

func (UnimplementedExecutionServer) GetBodiesByRange

func (UnimplementedExecutionServer) GetBody

func (UnimplementedExecutionServer) GetForkChoice

func (UnimplementedExecutionServer) GetHeader

func (UnimplementedExecutionServer) GetHeaderHashNumber

func (UnimplementedExecutionServer) GetTD

func (UnimplementedExecutionServer) InsertBlocks

func (UnimplementedExecutionServer) IsCanonicalHash

func (UnimplementedExecutionServer) Ready

func (UnimplementedExecutionServer) UpdateForkChoice

func (UnimplementedExecutionServer) ValidateChain

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL