Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- type AddressProvider
- type EVMEvent
- func (*EVMEvent) Descriptor() ([]byte, []int)
- func (m *EVMEvent) GetAddress() []byte
- func (m *EVMEvent) GetData() []byte
- func (m *EVMEvent) GetTopics() [][]byte
- func (m *EVMEvent) Marshal() (dAtA []byte, err error)
- func (m *EVMEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *EVMEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EVMEvent) ProtoMessage()
- func (m *EVMEvent) Reset()
- func (m *EVMEvent) Size() (n int)
- func (m *EVMEvent) String() string
- func (l *EVMEvent) ToEthLog() ethtypes.Log
- func (m *EVMEvent) Unmarshal(dAtA []byte) error
- func (l *EVMEvent) Verify() error
- func (m *EVMEvent) XXX_DiscardUnknown()
- func (m *EVMEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EVMEvent) XXX_Merge(src proto.Message)
- func (m *EVMEvent) XXX_Size() int
- func (m *EVMEvent) XXX_Unmarshal(b []byte) error
- type EvmEventProcessor
- type ExecutionPayloadResponse
- func (*ExecutionPayloadResponse) Descriptor() ([]byte, []int)
- func (m *ExecutionPayloadResponse) Marshal() (dAtA []byte, err error)
- func (m *ExecutionPayloadResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ExecutionPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExecutionPayloadResponse) ProtoMessage()
- func (m *ExecutionPayloadResponse) Reset()
- func (m *ExecutionPayloadResponse) Size() (n int)
- func (m *ExecutionPayloadResponse) String() string
- func (m *ExecutionPayloadResponse) Unmarshal(dAtA []byte) error
- func (m *ExecutionPayloadResponse) XXX_DiscardUnknown()
- func (m *ExecutionPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecutionPayloadResponse) XXX_Merge(src proto.Message)
- func (m *ExecutionPayloadResponse) XXX_Size() int
- func (m *ExecutionPayloadResponse) XXX_Unmarshal(b []byte) error
- type MsgExecutionPayload
- func (*MsgExecutionPayload) Descriptor() ([]byte, []int)
- func (m *MsgExecutionPayload) GetAuthority() string
- func (m *MsgExecutionPayload) GetExecutionPayload() []byte
- func (m *MsgExecutionPayload) GetPrevPayloadEvents() []*EVMEvent
- func (m *MsgExecutionPayload) Marshal() (dAtA []byte, err error)
- func (m *MsgExecutionPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecutionPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecutionPayload) ProtoMessage()
- func (m *MsgExecutionPayload) Reset()
- func (m *MsgExecutionPayload) Size() (n int)
- func (m *MsgExecutionPayload) String() string
- func (m *MsgExecutionPayload) Unmarshal(dAtA []byte) error
- func (m *MsgExecutionPayload) XXX_DiscardUnknown()
- func (m *MsgExecutionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecutionPayload) XXX_Merge(src proto.Message)
- func (m *MsgExecutionPayload) XXX_Size() int
- func (m *MsgExecutionPayload) XXX_Unmarshal(b []byte) error
- type MsgServiceClient
- type MsgServiceServer
- type UnimplementedMsgServiceServer
- type VoteExtensionProvider
Constants ¶
const ( // ModuleName defines the module name. ModuleName = "evmengine" // StoreKey defines the primary module store key. StoreKey = ModuleName // MemStoreKey defines the in-memory store key. MemStoreKey = "mem_evmengine" )
Variables ¶
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServiceServer ¶
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
Types ¶
type AddressProvider ¶
type EVMEvent ¶ added in v0.1.2
type EVMEvent struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Topics [][]byte `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
EVMEvent represents a contract log event. Derived fields are not included in the protobuf.
func (*EVMEvent) Descriptor ¶ added in v0.1.2
func (*EVMEvent) GetAddress ¶ added in v0.1.2
func (*EVMEvent) MarshalToSizedBuffer ¶ added in v0.1.2
func (*EVMEvent) ProtoMessage ¶ added in v0.1.2
func (*EVMEvent) ProtoMessage()
func (*EVMEvent) ToEthLog ¶ added in v0.1.2
ToEthLog converts an EVMEvent to an Ethereum Log. Note it assumes that Verify has been called before.
func (*EVMEvent) XXX_DiscardUnknown ¶ added in v0.1.2
func (m *EVMEvent) XXX_DiscardUnknown()
func (*EVMEvent) XXX_Marshal ¶ added in v0.1.2
func (*EVMEvent) XXX_Unmarshal ¶ added in v0.1.2
type EvmEventProcessor ¶ added in v0.1.2
type EvmEventProcessor interface { Prepare(ctx context.Context, blockHash common.Hash) ([]*EVMEvent, error) Addresses() []common.Address Deliver(ctx context.Context, blockHash common.Hash, log *EVMEvent) error }
EvmEventProcessor abstracts logic that processes EVM log events of the previous execution payload (current head) identified by the provided block hash.
EVMEngine calls this during PreparePayload to collect all EVM-log-events to include in the consensus block. It is also called during ProcessPayload to verify the proposed EVM events.
type ExecutionPayloadResponse ¶
type ExecutionPayloadResponse struct { }
func (*ExecutionPayloadResponse) Descriptor ¶
func (*ExecutionPayloadResponse) Descriptor() ([]byte, []int)
func (*ExecutionPayloadResponse) Marshal ¶
func (m *ExecutionPayloadResponse) Marshal() (dAtA []byte, err error)
func (*ExecutionPayloadResponse) MarshalTo ¶
func (m *ExecutionPayloadResponse) MarshalTo(dAtA []byte) (int, error)
func (*ExecutionPayloadResponse) MarshalToSizedBuffer ¶
func (m *ExecutionPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExecutionPayloadResponse) ProtoMessage ¶
func (*ExecutionPayloadResponse) ProtoMessage()
func (*ExecutionPayloadResponse) Reset ¶
func (m *ExecutionPayloadResponse) Reset()
func (*ExecutionPayloadResponse) Size ¶
func (m *ExecutionPayloadResponse) Size() (n int)
func (*ExecutionPayloadResponse) String ¶
func (m *ExecutionPayloadResponse) String() string
func (*ExecutionPayloadResponse) Unmarshal ¶
func (m *ExecutionPayloadResponse) Unmarshal(dAtA []byte) error
func (*ExecutionPayloadResponse) XXX_DiscardUnknown ¶
func (m *ExecutionPayloadResponse) XXX_DiscardUnknown()
func (*ExecutionPayloadResponse) XXX_Marshal ¶
func (m *ExecutionPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecutionPayloadResponse) XXX_Merge ¶
func (m *ExecutionPayloadResponse) XXX_Merge(src proto.Message)
func (*ExecutionPayloadResponse) XXX_Size ¶
func (m *ExecutionPayloadResponse) XXX_Size() int
func (*ExecutionPayloadResponse) XXX_Unmarshal ¶
func (m *ExecutionPayloadResponse) XXX_Unmarshal(b []byte) error
type MsgExecutionPayload ¶
type MsgExecutionPayload struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` ExecutionPayload []byte `protobuf:"bytes,2,opt,name=execution_payload,json=executionPayload,proto3" json:"execution_payload,omitempty"` PrevPayloadEvents []*EVMEvent `protobuf:"bytes,3,rep,name=prev_payload_events,json=prevPayloadEvents,proto3" json:"prev_payload_events,omitempty"` }
MsgExecutionPayload defines the next EVM execution payload and the logs from previous execution payload.
func (*MsgExecutionPayload) Descriptor ¶
func (*MsgExecutionPayload) Descriptor() ([]byte, []int)
func (*MsgExecutionPayload) GetAuthority ¶
func (m *MsgExecutionPayload) GetAuthority() string
func (*MsgExecutionPayload) GetExecutionPayload ¶ added in v0.1.1
func (m *MsgExecutionPayload) GetExecutionPayload() []byte
func (*MsgExecutionPayload) GetPrevPayloadEvents ¶ added in v0.1.2
func (m *MsgExecutionPayload) GetPrevPayloadEvents() []*EVMEvent
func (*MsgExecutionPayload) Marshal ¶
func (m *MsgExecutionPayload) Marshal() (dAtA []byte, err error)
func (*MsgExecutionPayload) MarshalTo ¶
func (m *MsgExecutionPayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecutionPayload) MarshalToSizedBuffer ¶
func (m *MsgExecutionPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecutionPayload) ProtoMessage ¶
func (*MsgExecutionPayload) ProtoMessage()
func (*MsgExecutionPayload) Reset ¶
func (m *MsgExecutionPayload) Reset()
func (*MsgExecutionPayload) Size ¶
func (m *MsgExecutionPayload) Size() (n int)
func (*MsgExecutionPayload) String ¶
func (m *MsgExecutionPayload) String() string
func (*MsgExecutionPayload) Unmarshal ¶
func (m *MsgExecutionPayload) Unmarshal(dAtA []byte) error
func (*MsgExecutionPayload) XXX_DiscardUnknown ¶
func (m *MsgExecutionPayload) XXX_DiscardUnknown()
func (*MsgExecutionPayload) XXX_Marshal ¶
func (m *MsgExecutionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecutionPayload) XXX_Merge ¶
func (m *MsgExecutionPayload) XXX_Merge(src proto.Message)
func (*MsgExecutionPayload) XXX_Size ¶
func (m *MsgExecutionPayload) XXX_Size() int
func (*MsgExecutionPayload) XXX_Unmarshal ¶
func (m *MsgExecutionPayload) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶
type MsgServiceClient interface { // ExecutionPayload submits a new execution payload from consensus to the OmniEVM. ExecutionPayload(ctx context.Context, in *MsgExecutionPayload, opts ...grpc.CallOption) (*ExecutionPayloadResponse, error) }
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶
type MsgServiceServer interface { // ExecutionPayload submits a new execution payload from consensus to the OmniEVM. ExecutionPayload(context.Context, *MsgExecutionPayload) (*ExecutionPayloadResponse, error) }
MsgServiceServer is the server API for MsgService service.
type UnimplementedMsgServiceServer ¶
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) ExecutionPayload ¶
func (*UnimplementedMsgServiceServer) ExecutionPayload(ctx context.Context, req *MsgExecutionPayload) (*ExecutionPayloadResponse, error)
type VoteExtensionProvider ¶ added in v0.1.1
type VoteExtensionProvider interface {
PrepareVotes(ctx context.Context, commit abci.ExtendedCommitInfo) ([]sdk.Msg, error)
}
VoteExtensionProvider abstracts logic that provides consensus payload messages from the last commits vote extensions.
EVMEngine calls this during PreparePayload to collect all vote extensions msgs to include in the consensus block.