types

package
v1.40.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeEthereumTx = TypeMsgEthereumTx

	AttributeKeyContractAddress = "contract"
	AttributeKeyRecipient       = "recipient"
	AttributeKeyTxHash          = "txHash"
	AttributeValueCategory      = ModuleName
)

Evm module events

View Source
const ModuleName = "evm"
View Source
const (

	// ProtocolVersion is the latest supported version of the eth protocol.
	ProtocolVersion = eth65
)

Constants to match up protocol versions and messages

View Source
const RouterKey = ModuleName
View Source
const (
	// TypeMsgEthereumTx defines the type string of an Ethereum tranasction
	TypeMsgEthereumTx = "ethereum"
)

message type and route constants

Variables

View Source
var (
	// ErrInvalidState returns an error resulting from an invalid Storage State.
	ErrInvalidState = sdkerrors.Register(ModuleName, 2, "invalid storage state")

	// ErrChainConfigNotFound returns an error if the chain config cannot be found on the store.
	ErrChainConfigNotFound = sdkerrors.Register(ModuleName, 3, "chain configuration not found")

	// ErrInvalidChainConfig returns an error resulting from an invalid ChainConfig.
	ErrInvalidChainConfig = sdkerrors.Register(ModuleName, 4, "invalid chain configuration")

	// ErrZeroAddress returns an error resulting from an zero (empty) ethereum Address.
	ErrZeroAddress = sdkerrors.Register(ModuleName, 5, "invalid zero address")

	// ErrEmptyHash returns an error resulting from an empty ethereum Hash.
	ErrEmptyHash = sdkerrors.Register(ModuleName, 6, "empty hash")

	// ErrBloomNotFound returns an error if the block bloom cannot be found on the store.
	ErrBloomNotFound = sdkerrors.Register(ModuleName, 7, "block bloom not found")

	// ErrInvalidValue returns an error resulting from an invalid value.
	ErrInvalidValue = sdkerrors.Register(ModuleName, 8, "invalid value")

	// ErrInvalidChainID returns an error resulting from an invalid chain ID.
	ErrInvalidChainID = sdkerrors.Register(ModuleName, 9, "invalid chain ID")

	// ErrVMExecution returns an error resulting from an error in EVM execution.
	ErrVMExecution = sdkerrors.Register(ModuleName, 10, "error while executing evm transaction")

	// ErrTxReceiptNotFound returns an error if the transaction receipt could not be found
	ErrTxReceiptNotFound = sdkerrors.Register(ModuleName, 11, "transaction receipt not found")

	// ErrCreateDisabled returns an error if the EnableCreate parameter is false.
	ErrCreateDisabled = sdkerrors.Register(ModuleName, 12, "EVM Create operation is disabled")

	// ErrCallDisabled returns an error if the EnableCall parameter is false.
	ErrCallDisabled = sdkerrors.Register(ModuleName, 13, "EVM Call operation is disabled")
)
View Source
var (
	ErrInvalidLengthEvm        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvm          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvm = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamStoreKeyEVMDenom     = []byte("EVMDenom")
	ParamStoreKeyEnableCreate = []byte("EnableCreate")
	ParamStoreKeyEnableCall   = []byte("EnableCall")
	ParamStoreKeyExtraEIPs    = []byte("EnableExtraEIPs")
)

Parameter keys

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func EncodeTransactionLogs

func EncodeTransactionLogs(res *TransactionLogs) ([]byte, error)

EncodeTransactionLogs encodes TransactionLogs slice into a protobuf-encoded byte slice.

func EncodeTxResponse

func EncodeTxResponse(res *MsgEthereumTxResponse) ([]byte, error)

EncodeTxResponse takes all of the necessary data from the EVM execution and returns the data as a byte slice encoded with protobuf.

func IsEmptyHash

func IsEmptyHash(hash string) bool

IsEmptyHash returns true if the hash corresponds to an empty ethereum hex hash.

func IsZeroAddress

func IsZeroAddress(address string) bool

IsZeroAddress returns true if the address corresponds to an empty ethereum hex address.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the client interfaces to protobuf Any.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateSigner

func ValidateSigner(signBytes, sig []byte, signer ethcmn.Address) error

ValidateSigner attempts to validate a signer for a given slice of bytes over which a signature and signer is given. An error is returned if address derived from the signature and bytes signed does not match the given signer.

Types

type BytesList

type BytesList struct {
	Bytes [][]byte `protobuf:"bytes,1,rep,name=bytes,proto3" json:"bytes,omitempty"`
}

func (*BytesList) Descriptor

func (*BytesList) Descriptor() ([]byte, []int)

func (*BytesList) Marshal

func (m *BytesList) Marshal() (dAtA []byte, err error)

func (*BytesList) MarshalTo

func (m *BytesList) MarshalTo(dAtA []byte) (int, error)

func (*BytesList) MarshalToSizedBuffer

func (m *BytesList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BytesList) ProtoMessage

func (*BytesList) ProtoMessage()

func (*BytesList) Reset

func (m *BytesList) Reset()

func (*BytesList) Size

func (m *BytesList) Size() (n int)

func (*BytesList) String

func (m *BytesList) String() string

func (*BytesList) Unmarshal

func (m *BytesList) Unmarshal(dAtA []byte) error

func (*BytesList) XXX_DiscardUnknown

func (m *BytesList) XXX_DiscardUnknown()

func (*BytesList) XXX_Marshal

func (m *BytesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesList) XXX_Merge

func (m *BytesList) XXX_Merge(src proto.Message)

func (*BytesList) XXX_Size

func (m *BytesList) XXX_Size() int

func (*BytesList) XXX_Unmarshal

func (m *BytesList) XXX_Unmarshal(b []byte) error

type ChainConfig

type ChainConfig struct {
	// Homestead switch block (< 0 no fork, 0 = already homestead)
	HomesteadBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */
	// TheDAO hard-fork switch block (< 0 no fork)
	DAOForkBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 161-byte string literal not displayed */
	// Whether the nodes supports or opposes the DAO hard-fork
	DAOForkSupport bool `` /* 130-byte string literal not displayed */
	// EIP150 implements the Gas price changes
	// (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (< 0 no fork)
	EIP150Block github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	// EIP150 HF hash (needed for header only clients as only gas pricing changed)
	EIP150Hash string `protobuf:"bytes,5,opt,name=eip150_hash,json=eip150Hash,proto3" json:"eip150_hash,omitempty" yaml:"byzantium_block"`
	// EIP155Block HF block
	EIP155Block github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	// EIP158 HF block
	EIP158Block github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	// Byzantium switch block (< 0 no fork, 0 = already on byzantium)
	ByzantiumBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */
	// Constantinople switch block (< 0 no fork, 0 = already activated)
	ConstantinopleBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 186-byte string literal not displayed */
	// Petersburg switch block (< 0 same as Constantinople)
	PetersburgBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 171-byte string literal not displayed */
	// Istanbul switch block (< 0 no fork, 0 = already on istanbul)
	IstanbulBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 163-byte string literal not displayed */
	// Eip-2384 (bomb delay) switch block (< 0 no fork, 0 = already activated)
	MuirGlacierBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */
	// YOLO v2: https://github.com/ethereum/EIPs/pull/2657 (Ephemeral testnet)
	YoloV2Block github_com_cosmos_cosmos_sdk_types.Int `` /* 158-byte string literal not displayed */
	// EWASM switch block (< 0 no fork, 0 = already activated)
	EWASMBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 151-byte string literal not displayed */
}

ChainConfig defines the Ethereum ChainConfig parameters using sdk.Int values instead of big.Int.

NOTE 1: Since empty/uninitialized Ints (i.e with a nil big.Int value) are parsed to zero, we need to manually specify that negative Int values will be considered as nil. See getBlockValue for reference.

NOTE 2: This type is not a configurable Param since the SDK does not allow for validation against a previous stored parameter values or the current block height (retrieved from context). If you want to update the config values, use an software upgrade procedure.

func (*ChainConfig) Descriptor

func (*ChainConfig) Descriptor() ([]byte, []int)

func (*ChainConfig) GetDAOForkSupport

func (m *ChainConfig) GetDAOForkSupport() bool

func (*ChainConfig) GetEIP150Hash

func (m *ChainConfig) GetEIP150Hash() string

func (*ChainConfig) Marshal

func (m *ChainConfig) Marshal() (dAtA []byte, err error)

func (*ChainConfig) MarshalTo

func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)

func (*ChainConfig) MarshalToSizedBuffer

func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainConfig) ProtoMessage

func (*ChainConfig) ProtoMessage()

func (*ChainConfig) Reset

func (m *ChainConfig) Reset()

func (*ChainConfig) Size

func (m *ChainConfig) Size() (n int)

func (*ChainConfig) String

func (m *ChainConfig) String() string

func (*ChainConfig) Unmarshal

func (m *ChainConfig) Unmarshal(dAtA []byte) error

func (*ChainConfig) XXX_DiscardUnknown

func (m *ChainConfig) XXX_DiscardUnknown()

func (*ChainConfig) XXX_Marshal

func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainConfig) XXX_Merge

func (m *ChainConfig) XXX_Merge(src proto.Message)

func (*ChainConfig) XXX_Size

func (m *ChainConfig) XXX_Size() int

func (*ChainConfig) XXX_Unmarshal

func (m *ChainConfig) XXX_Unmarshal(b []byte) error

type EIP155Signer

type EIP155Signer struct {
	// contains filtered or unexported fields
}

EIP155Transaction implements Signer using the EIP155 rules.

func (*EIP155Signer) Descriptor

func (*EIP155Signer) Descriptor() ([]byte, []int)

func (*EIP155Signer) Marshal

func (m *EIP155Signer) Marshal() (dAtA []byte, err error)

func (*EIP155Signer) MarshalTo

func (m *EIP155Signer) MarshalTo(dAtA []byte) (int, error)

func (*EIP155Signer) MarshalToSizedBuffer

func (m *EIP155Signer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EIP155Signer) ProtoMessage

func (*EIP155Signer) ProtoMessage()

func (*EIP155Signer) Reset

func (m *EIP155Signer) Reset()

func (*EIP155Signer) Size

func (m *EIP155Signer) Size() (n int)

func (*EIP155Signer) String

func (m *EIP155Signer) String() string

func (*EIP155Signer) Unmarshal

func (m *EIP155Signer) Unmarshal(dAtA []byte) error

func (*EIP155Signer) XXX_DiscardUnknown

func (m *EIP155Signer) XXX_DiscardUnknown()

func (*EIP155Signer) XXX_Marshal

func (m *EIP155Signer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EIP155Signer) XXX_Merge

func (m *EIP155Signer) XXX_Merge(src proto.Message)

func (*EIP155Signer) XXX_Size

func (m *EIP155Signer) XXX_Size() int

func (*EIP155Signer) XXX_Unmarshal

func (m *EIP155Signer) XXX_Unmarshal(b []byte) error

type ExtensionOptionsEthereumTx

type ExtensionOptionsEthereumTx struct {
}

func (*ExtensionOptionsEthereumTx) Descriptor

func (*ExtensionOptionsEthereumTx) Descriptor() ([]byte, []int)

func (*ExtensionOptionsEthereumTx) Marshal

func (m *ExtensionOptionsEthereumTx) Marshal() (dAtA []byte, err error)

func (*ExtensionOptionsEthereumTx) MarshalTo

func (m *ExtensionOptionsEthereumTx) MarshalTo(dAtA []byte) (int, error)

func (*ExtensionOptionsEthereumTx) MarshalToSizedBuffer

func (m *ExtensionOptionsEthereumTx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExtensionOptionsEthereumTx) ProtoMessage

func (*ExtensionOptionsEthereumTx) ProtoMessage()

func (*ExtensionOptionsEthereumTx) Reset

func (m *ExtensionOptionsEthereumTx) Reset()

func (*ExtensionOptionsEthereumTx) Size

func (m *ExtensionOptionsEthereumTx) Size() (n int)

func (*ExtensionOptionsEthereumTx) String

func (m *ExtensionOptionsEthereumTx) String() string

func (*ExtensionOptionsEthereumTx) Unmarshal

func (m *ExtensionOptionsEthereumTx) Unmarshal(dAtA []byte) error

func (*ExtensionOptionsEthereumTx) XXX_DiscardUnknown

func (m *ExtensionOptionsEthereumTx) XXX_DiscardUnknown()

func (*ExtensionOptionsEthereumTx) XXX_Marshal

func (m *ExtensionOptionsEthereumTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtensionOptionsEthereumTx) XXX_Merge

func (m *ExtensionOptionsEthereumTx) XXX_Merge(src proto.Message)

func (*ExtensionOptionsEthereumTx) XXX_Size

func (m *ExtensionOptionsEthereumTx) XXX_Size() int

func (*ExtensionOptionsEthereumTx) XXX_Unmarshal

func (m *ExtensionOptionsEthereumTx) XXX_Unmarshal(b []byte) error

type ExtensionOptionsEthereumTxI

type ExtensionOptionsEthereumTxI interface{}

type ExtensionOptionsWeb3Tx

type ExtensionOptionsWeb3Tx struct {
	// typedDataChainID used only in EIP712 Domain and should match
	// Ethereum network ID in a Web3 provider (e.g. Metamask).
	TypedDataChainID uint64 `protobuf:"varint,1,opt,name=typedDataChainID,proto3" json:"typedDataChainID,omitempty"`
}

func (*ExtensionOptionsWeb3Tx) Descriptor

func (*ExtensionOptionsWeb3Tx) Descriptor() ([]byte, []int)

func (*ExtensionOptionsWeb3Tx) Marshal

func (m *ExtensionOptionsWeb3Tx) Marshal() (dAtA []byte, err error)

func (*ExtensionOptionsWeb3Tx) MarshalTo

func (m *ExtensionOptionsWeb3Tx) MarshalTo(dAtA []byte) (int, error)

func (*ExtensionOptionsWeb3Tx) MarshalToSizedBuffer

func (m *ExtensionOptionsWeb3Tx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExtensionOptionsWeb3Tx) ProtoMessage

func (*ExtensionOptionsWeb3Tx) ProtoMessage()

func (*ExtensionOptionsWeb3Tx) Reset

func (m *ExtensionOptionsWeb3Tx) Reset()

func (*ExtensionOptionsWeb3Tx) Size

func (m *ExtensionOptionsWeb3Tx) Size() (n int)

func (*ExtensionOptionsWeb3Tx) String

func (m *ExtensionOptionsWeb3Tx) String() string

func (*ExtensionOptionsWeb3Tx) Unmarshal

func (m *ExtensionOptionsWeb3Tx) Unmarshal(dAtA []byte) error

func (*ExtensionOptionsWeb3Tx) XXX_DiscardUnknown

func (m *ExtensionOptionsWeb3Tx) XXX_DiscardUnknown()

func (*ExtensionOptionsWeb3Tx) XXX_Marshal

func (m *ExtensionOptionsWeb3Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtensionOptionsWeb3Tx) XXX_Merge

func (m *ExtensionOptionsWeb3Tx) XXX_Merge(src proto.Message)

func (*ExtensionOptionsWeb3Tx) XXX_Size

func (m *ExtensionOptionsWeb3Tx) XXX_Size() int

func (*ExtensionOptionsWeb3Tx) XXX_Unmarshal

func (m *ExtensionOptionsWeb3Tx) XXX_Unmarshal(b []byte) error

type Log

type Log struct {
	// address of the contract that generated the event
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// list of topics provided by the contract.
	Topics []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	// supplied by the contract, usually ABI-encoded
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// block in which the transaction was included
	BlockNumber uint64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"blockNumber"`
	// hash of the transaction
	TxHash string `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"transactionHash"`
	// index of the transaction in the block
	TxIndex uint64 `protobuf:"varint,6,opt,name=tx_index,json=txIndex,proto3" json:"transactionIndex"`
	// hash of the block in which the transaction was included
	BlockHash string `protobuf:"bytes,7,opt,name=block_hash,json=blockHash,proto3" json:"blockHash"`
	// index of the log in the block
	Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"logIndex"`
	// The Removed field is true if this log was reverted due to a chain
	// reorganisation. You must pay attention to this field if you receive logs
	// through a filter query.
	Removed bool `protobuf:"varint,9,opt,name=removed,proto3" json:"removed,omitempty"`
}

Log represents an protobuf compatible Ethereum Log that defines a contract log event. These events are generated by the LOG opcode and stored/indexed by the node.

func (*Log) Descriptor

func (*Log) Descriptor() ([]byte, []int)

func (*Log) GetAddress

func (m *Log) GetAddress() string

func (*Log) GetBlockHash

func (m *Log) GetBlockHash() string

func (*Log) GetBlockNumber

func (m *Log) GetBlockNumber() uint64

func (*Log) GetData

func (m *Log) GetData() []byte

func (*Log) GetIndex

func (m *Log) GetIndex() uint64

func (*Log) GetRemoved

func (m *Log) GetRemoved() bool

func (*Log) GetTopics

func (m *Log) GetTopics() []string

func (*Log) GetTxHash

func (m *Log) GetTxHash() string

func (*Log) GetTxIndex

func (m *Log) GetTxIndex() uint64

func (*Log) Marshal

func (m *Log) Marshal() (dAtA []byte, err error)

func (*Log) MarshalTo

func (m *Log) MarshalTo(dAtA []byte) (int, error)

func (*Log) MarshalToSizedBuffer

func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size

func (m *Log) Size() (n int)

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal

func (m *Log) Unmarshal(dAtA []byte) error

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Log) XXX_Merge

func (m *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

func (m *Log) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// EthereumTx defines a method submitting Ethereum transactions.
	EthereumTx(ctx context.Context, in *MsgEthereumTx, opts ...grpc.CallOption) (*MsgEthereumTxResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgEthereumTx

type MsgEthereumTx struct {
	Data *TxData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// caches
	Size_ float64   `protobuf:"fixed64,2,opt,name=size,proto3" json:"-"`
	From  *SigCache `protobuf:"bytes,3,opt,name=from,proto3" json:"-"`
}

MsgEthereumTx encapsulates an Ethereum transaction as an SDK message.

func NewMsgEthereumTx

func NewMsgEthereumTx(
	nonce uint64, to *ethcmn.Address, amount *big.Int,
	gasLimit uint64, gasPrice *big.Int, payload []byte,
) *MsgEthereumTx

NewMsgEthereumTx returns a reference to a new Ethereum transaction message.

func NewMsgEthereumTxContract

func NewMsgEthereumTxContract(
	nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, payload []byte,
) *MsgEthereumTx

NewMsgEthereumTxContract returns a reference to a new Ethereum transaction message designated for contract creation.

func (*MsgEthereumTx) ChainID

func (msg *MsgEthereumTx) ChainID() *big.Int

ChainID returns which chain id this transaction was signed for (if at all)

func (MsgEthereumTx) Cost

func (msg MsgEthereumTx) Cost() *big.Int

Cost returns amount + gasprice * gaslimit.

func (*MsgEthereumTx) DecodeRLP

func (msg *MsgEthereumTx) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements the rlp.Decoder interface.

func (*MsgEthereumTx) Descriptor

func (*MsgEthereumTx) Descriptor() ([]byte, []int)

func (*MsgEthereumTx) EncodeRLP

func (msg *MsgEthereumTx) EncodeRLP(w io.Writer) error

EncodeRLP implements the rlp.Encoder interface.

func (MsgEthereumTx) Fee

func (msg MsgEthereumTx) Fee() *big.Int

Fee returns gasprice * gaslimit.

func (*MsgEthereumTx) GetFrom

func (msg *MsgEthereumTx) GetFrom() sdk.AccAddress

GetFrom loads the ethereum sender address from the sigcache and returns an sdk.AccAddress from its bytes

func (MsgEthereumTx) GetGas

func (msg MsgEthereumTx) GetGas() uint64

GetGas implements the GasTx interface. It returns the GasLimit of the transaction.

func (*MsgEthereumTx) GetMsgs

func (msg *MsgEthereumTx) GetMsgs() []sdk.Msg

GetMsgs returns a single MsgEthereumTx as an sdk.Msg.

func (MsgEthereumTx) GetSignBytes

func (msg MsgEthereumTx) GetSignBytes() []byte

GetSignBytes returns the Amino bytes of an Ethereum transaction message used for signing.

NOTE: This method cannot be used as a chain ID is needed to create valid bytes to sign over. Use 'RLPSignBytes' instead.

func (MsgEthereumTx) GetSigners

func (msg MsgEthereumTx) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for an Ethereum transaction message. For such a message, there should exist only a single 'signer'.

NOTE: This method panics if 'VerifySig' hasn't been called first.

func (*MsgEthereumTx) Marshal

func (m *MsgEthereumTx) Marshal() (dAtA []byte, err error)

func (*MsgEthereumTx) MarshalTo

func (m *MsgEthereumTx) MarshalTo(dAtA []byte) (int, error)

func (*MsgEthereumTx) MarshalToSizedBuffer

func (m *MsgEthereumTx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEthereumTx) ProtoMessage

func (*MsgEthereumTx) ProtoMessage()

func (MsgEthereumTx) RLPSignBytes

func (msg MsgEthereumTx) RLPSignBytes(chainID *big.Int) ethcmn.Hash

RLPSignBytes returns the RLP hash of an Ethereum transaction message with a given chainID used for signing.

func (MsgEthereumTx) RLPSignHomesteadBytes

func (msg MsgEthereumTx) RLPSignHomesteadBytes() ethcmn.Hash

RLPSignHomesteadBytes returns the RLP hash of an Ethereum transaction message with a a Homestead layout without chainID.

func (MsgEthereumTx) RawSignatureValues

func (msg MsgEthereumTx) RawSignatureValues() (v, r, s *big.Int)

RawSignatureValues returns the V, R, S signature values of the transaction. The return values should not be modified by the caller.

func (*MsgEthereumTx) Reset

func (m *MsgEthereumTx) Reset()

func (MsgEthereumTx) Route

func (msg MsgEthereumTx) Route() string

Route returns the route value of an MsgEthereumTx.

func (*MsgEthereumTx) Sign

func (msg *MsgEthereumTx) Sign(chainID *big.Int, priv *ecdsa.PrivateKey) error

Sign calculates a secp256k1 ECDSA signature and signs the transaction. It takes a private key and chainID to sign an Ethereum transaction according to EIP155 standard. It mutates the transaction as it populates the V, R, S fields of the Transaction's Signature.

func (*MsgEthereumTx) Size

func (m *MsgEthereumTx) Size() (n int)

func (*MsgEthereumTx) String

func (m *MsgEthereumTx) String() string

func (MsgEthereumTx) To

func (msg MsgEthereumTx) To() *ethcmn.Address

To returns the recipient address of the transaction. It returns nil if the transaction is a contract creation.

func (MsgEthereumTx) Type

func (msg MsgEthereumTx) Type() string

Type returns the type value of an MsgEthereumTx.

func (*MsgEthereumTx) Unmarshal

func (m *MsgEthereumTx) Unmarshal(dAtA []byte) error

func (MsgEthereumTx) ValidateBasic

func (msg MsgEthereumTx) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It performs basic validation checks of a Transaction. If returns an error if validation fails.

func (*MsgEthereumTx) VerifySig

func (msg *MsgEthereumTx) VerifySig(chainID *big.Int) (ethcmn.Address, error)

VerifySig attempts to verify a Transaction's signature for a given chainID. A derived address is returned upon success or an error if recovery fails.

func (*MsgEthereumTx) VerifySigHomestead

func (msg *MsgEthereumTx) VerifySigHomestead() (ethcmn.Address, error)

VerifySigHomestead attempts to verify a Transaction's signature in legacy way (no EIP155). A derived address is returned upon success or an error if recovery fails.

func (*MsgEthereumTx) XXX_DiscardUnknown

func (m *MsgEthereumTx) XXX_DiscardUnknown()

func (*MsgEthereumTx) XXX_Marshal

func (m *MsgEthereumTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEthereumTx) XXX_Merge

func (m *MsgEthereumTx) XXX_Merge(src proto.Message)

func (*MsgEthereumTx) XXX_Size

func (m *MsgEthereumTx) XXX_Size() int

func (*MsgEthereumTx) XXX_Unmarshal

func (m *MsgEthereumTx) XXX_Unmarshal(b []byte) error

type MsgEthereumTxResponse

type MsgEthereumTxResponse struct {
	// contract_address contains the ethereum address of the created contract (if
	// any). If the state transition is an evm.Call, the contract address will be
	// empty.
	ContractAddress string `` /* 130-byte string literal not displayed */
	// bloom represents the bloom filter bytes
	Bloom []byte `protobuf:"bytes,2,opt,name=bloom,proto3" json:"bloom,omitempty"`
	// tx_logs contains the transaction hash and the proto-compatible ethereum
	// logs.
	TxLogs TransactionLogs `protobuf:"bytes,3,opt,name=tx_logs,json=txLogs,proto3" json:"tx_logs" yaml:"tx_logs"`
	// ret defines the bytes from the execution.
	Ret []byte `protobuf:"bytes,4,opt,name=ret,proto3" json:"ret,omitempty"`
	// reverted flag is set to true when the call has been reverted
	Reverted bool `protobuf:"varint,5,opt,name=reverted,proto3" json:"reverted,omitempty"`
}

MsgEthereumTxResponse defines the Msg/EthereumTx response type.

func DecodeTxResponse

func DecodeTxResponse(in []byte) (*MsgEthereumTxResponse, error)

DecodeTxResponse decodes an protobuf-encoded byte slice into TxResponse

func (*MsgEthereumTxResponse) Descriptor

func (*MsgEthereumTxResponse) Descriptor() ([]byte, []int)

func (*MsgEthereumTxResponse) Marshal

func (m *MsgEthereumTxResponse) Marshal() (dAtA []byte, err error)

func (*MsgEthereumTxResponse) MarshalTo

func (m *MsgEthereumTxResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgEthereumTxResponse) MarshalToSizedBuffer

func (m *MsgEthereumTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEthereumTxResponse) ProtoMessage

func (*MsgEthereumTxResponse) ProtoMessage()

func (*MsgEthereumTxResponse) Reset

func (m *MsgEthereumTxResponse) Reset()

func (*MsgEthereumTxResponse) Size

func (m *MsgEthereumTxResponse) Size() (n int)

func (*MsgEthereumTxResponse) String

func (m *MsgEthereumTxResponse) String() string

func (*MsgEthereumTxResponse) Unmarshal

func (m *MsgEthereumTxResponse) Unmarshal(dAtA []byte) error

func (*MsgEthereumTxResponse) XXX_DiscardUnknown

func (m *MsgEthereumTxResponse) XXX_DiscardUnknown()

func (*MsgEthereumTxResponse) XXX_Marshal

func (m *MsgEthereumTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEthereumTxResponse) XXX_Merge

func (m *MsgEthereumTxResponse) XXX_Merge(src proto.Message)

func (*MsgEthereumTxResponse) XXX_Size

func (m *MsgEthereumTxResponse) XXX_Size() int

func (*MsgEthereumTxResponse) XXX_Unmarshal

func (m *MsgEthereumTxResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// EthereumTx defines a method submitting Ethereum transactions.
	EthereumTx(context.Context, *MsgEthereumTx) (*MsgEthereumTxResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	// evm_denom represents the token denomination used to run the EVM state
	// transitions.
	EvmDenom string `protobuf:"bytes,1,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty" yaml:"evm_denom"`
	// enable_create toggles state transitions that use the vm.Create function
	EnableCreate bool `protobuf:"varint,2,opt,name=enable_create,json=enableCreate,proto3" json:"enable_create,omitempty" yaml:"enable_create"`
	// enable_call toggles state transitions that use the vm.Call function
	EnableCall bool `protobuf:"varint,3,opt,name=enable_call,json=enableCall,proto3" json:"enable_call,omitempty" yaml:"enable_call"`
	// extra_eips defines the additional EIPs for the vm.Config
	ExtraEIPs []int64 `protobuf:"varint,4,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty" yaml:"extra_eips"`
}

Params defines the EVM module parameters

func DefaultParams

func DefaultParams() Params

DefaultParams returns default evm parameters

func NewParams

func NewParams(evmDenom string, enableCreate, enableCall bool, extraEIPs ...int64) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetEnableCall

func (m *Params) GetEnableCall() bool

func (*Params) GetEnableCreate

func (m *Params) GetEnableCreate() bool

func (*Params) GetEvmDenom

func (m *Params) GetEvmDenom() string

func (*Params) GetExtraEIPs

func (m *Params) GetExtraEIPs() []int64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the fmt.Stringer interface

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate performs basic validation on evm parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAccountRequest

type QueryAccountRequest struct {
	// address is the ethereum hex address to query the account for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryAccountRequest is the request type for the Query/Account RPC method.

func (*QueryAccountRequest) Descriptor

func (*QueryAccountRequest) Descriptor() ([]byte, []int)

func (*QueryAccountRequest) Marshal

func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error)

func (*QueryAccountRequest) MarshalTo

func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAccountRequest) MarshalToSizedBuffer

func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAccountRequest) ProtoMessage

func (*QueryAccountRequest) ProtoMessage()

func (*QueryAccountRequest) Reset

func (m *QueryAccountRequest) Reset()

func (*QueryAccountRequest) Size

func (m *QueryAccountRequest) Size() (n int)

func (*QueryAccountRequest) String

func (m *QueryAccountRequest) String() string

func (*QueryAccountRequest) Unmarshal

func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error

func (*QueryAccountRequest) XXX_DiscardUnknown

func (m *QueryAccountRequest) XXX_DiscardUnknown()

func (*QueryAccountRequest) XXX_Marshal

func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAccountRequest) XXX_Merge

func (m *QueryAccountRequest) XXX_Merge(src proto.Message)

func (*QueryAccountRequest) XXX_Size

func (m *QueryAccountRequest) XXX_Size() int

func (*QueryAccountRequest) XXX_Unmarshal

func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error

type QueryAccountResponse

type QueryAccountResponse struct {
	// balance is the balance of the EVM denomination.
	Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	// code_hash is the code bytes from the EOA.
	CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
	// nonce is the account's sequence number.
	Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
}

QueryAccountResponse is the response type for the Query/Account RPC method.

func (*QueryAccountResponse) Descriptor

func (*QueryAccountResponse) Descriptor() ([]byte, []int)

func (*QueryAccountResponse) GetBalance

func (m *QueryAccountResponse) GetBalance() string

func (*QueryAccountResponse) GetCodeHash

func (m *QueryAccountResponse) GetCodeHash() []byte

func (*QueryAccountResponse) GetNonce

func (m *QueryAccountResponse) GetNonce() uint64

func (*QueryAccountResponse) Marshal

func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error)

func (*QueryAccountResponse) MarshalTo

func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAccountResponse) MarshalToSizedBuffer

func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAccountResponse) ProtoMessage

func (*QueryAccountResponse) ProtoMessage()

func (*QueryAccountResponse) Reset

func (m *QueryAccountResponse) Reset()

func (*QueryAccountResponse) Size

func (m *QueryAccountResponse) Size() (n int)

func (*QueryAccountResponse) String

func (m *QueryAccountResponse) String() string

func (*QueryAccountResponse) Unmarshal

func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error

func (*QueryAccountResponse) XXX_DiscardUnknown

func (m *QueryAccountResponse) XXX_DiscardUnknown()

func (*QueryAccountResponse) XXX_Marshal

func (m *QueryAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAccountResponse) XXX_Merge

func (m *QueryAccountResponse) XXX_Merge(src proto.Message)

func (*QueryAccountResponse) XXX_Size

func (m *QueryAccountResponse) XXX_Size() int

func (*QueryAccountResponse) XXX_Unmarshal

func (m *QueryAccountResponse) XXX_Unmarshal(b []byte) error

type QueryBalanceRequest

type QueryBalanceRequest struct {
	// address is the ethereum hex address to query the balance for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryBalanceRequest is the request type for the Query/Balance RPC method.

func (*QueryBalanceRequest) Descriptor

func (*QueryBalanceRequest) Descriptor() ([]byte, []int)

func (*QueryBalanceRequest) Marshal

func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)

func (*QueryBalanceRequest) MarshalTo

func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBalanceRequest) MarshalToSizedBuffer

func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBalanceRequest) ProtoMessage

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) Reset

func (m *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) Size

func (m *QueryBalanceRequest) Size() (n int)

func (*QueryBalanceRequest) String

func (m *QueryBalanceRequest) String() string

func (*QueryBalanceRequest) Unmarshal

func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error

func (*QueryBalanceRequest) XXX_DiscardUnknown

func (m *QueryBalanceRequest) XXX_DiscardUnknown()

func (*QueryBalanceRequest) XXX_Marshal

func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBalanceRequest) XXX_Merge

func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)

func (*QueryBalanceRequest) XXX_Size

func (m *QueryBalanceRequest) XXX_Size() int

func (*QueryBalanceRequest) XXX_Unmarshal

func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error

type QueryBalanceResponse

type QueryBalanceResponse struct {
	// balance is the balance of the EVM denomination.
	Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
}

QueryBalanceResponse is the response type for the Query/Balance RPC method.

func (*QueryBalanceResponse) Descriptor

func (*QueryBalanceResponse) Descriptor() ([]byte, []int)

func (*QueryBalanceResponse) GetBalance

func (m *QueryBalanceResponse) GetBalance() string

func (*QueryBalanceResponse) Marshal

func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)

func (*QueryBalanceResponse) MarshalTo

func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBalanceResponse) MarshalToSizedBuffer

func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBalanceResponse) ProtoMessage

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) Reset

func (m *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) Size

func (m *QueryBalanceResponse) Size() (n int)

func (*QueryBalanceResponse) String

func (m *QueryBalanceResponse) String() string

func (*QueryBalanceResponse) Unmarshal

func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error

func (*QueryBalanceResponse) XXX_DiscardUnknown

func (m *QueryBalanceResponse) XXX_DiscardUnknown()

func (*QueryBalanceResponse) XXX_Marshal

func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBalanceResponse) XXX_Merge

func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)

func (*QueryBalanceResponse) XXX_Size

func (m *QueryBalanceResponse) XXX_Size() int

func (*QueryBalanceResponse) XXX_Unmarshal

func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error

type QueryBlockBloomRequest

type QueryBlockBloomRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

QueryBlockBloomRequest is the request type for the Query/BlockBloom RPC method.

func (*QueryBlockBloomRequest) Descriptor

func (*QueryBlockBloomRequest) Descriptor() ([]byte, []int)

func (*QueryBlockBloomRequest) GetHeight

func (m *QueryBlockBloomRequest) GetHeight() int64

func (*QueryBlockBloomRequest) Marshal

func (m *QueryBlockBloomRequest) Marshal() (dAtA []byte, err error)

func (*QueryBlockBloomRequest) MarshalTo

func (m *QueryBlockBloomRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBlockBloomRequest) MarshalToSizedBuffer

func (m *QueryBlockBloomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBlockBloomRequest) ProtoMessage

func (*QueryBlockBloomRequest) ProtoMessage()

func (*QueryBlockBloomRequest) Reset

func (m *QueryBlockBloomRequest) Reset()

func (*QueryBlockBloomRequest) Size

func (m *QueryBlockBloomRequest) Size() (n int)

func (*QueryBlockBloomRequest) String

func (m *QueryBlockBloomRequest) String() string

func (*QueryBlockBloomRequest) Unmarshal

func (m *QueryBlockBloomRequest) Unmarshal(dAtA []byte) error

func (*QueryBlockBloomRequest) XXX_DiscardUnknown

func (m *QueryBlockBloomRequest) XXX_DiscardUnknown()

func (*QueryBlockBloomRequest) XXX_Marshal

func (m *QueryBlockBloomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBlockBloomRequest) XXX_Merge

func (m *QueryBlockBloomRequest) XXX_Merge(src proto.Message)

func (*QueryBlockBloomRequest) XXX_Size

func (m *QueryBlockBloomRequest) XXX_Size() int

func (*QueryBlockBloomRequest) XXX_Unmarshal

func (m *QueryBlockBloomRequest) XXX_Unmarshal(b []byte) error

type QueryBlockBloomResponse

type QueryBlockBloomResponse struct {
	// bloom represents bloom filter for the given block hash.
	Bloom []byte `protobuf:"bytes,1,opt,name=bloom,proto3" json:"bloom,omitempty"`
}

QueryBlockBloomResponse is the response type for the Query/BlockBloom RPC method.

func (*QueryBlockBloomResponse) Descriptor

func (*QueryBlockBloomResponse) Descriptor() ([]byte, []int)

func (*QueryBlockBloomResponse) GetBloom

func (m *QueryBlockBloomResponse) GetBloom() []byte

func (*QueryBlockBloomResponse) Marshal

func (m *QueryBlockBloomResponse) Marshal() (dAtA []byte, err error)

func (*QueryBlockBloomResponse) MarshalTo

func (m *QueryBlockBloomResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBlockBloomResponse) MarshalToSizedBuffer

func (m *QueryBlockBloomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBlockBloomResponse) ProtoMessage

func (*QueryBlockBloomResponse) ProtoMessage()

func (*QueryBlockBloomResponse) Reset

func (m *QueryBlockBloomResponse) Reset()

func (*QueryBlockBloomResponse) Size

func (m *QueryBlockBloomResponse) Size() (n int)

func (*QueryBlockBloomResponse) String

func (m *QueryBlockBloomResponse) String() string

func (*QueryBlockBloomResponse) Unmarshal

func (m *QueryBlockBloomResponse) Unmarshal(dAtA []byte) error

func (*QueryBlockBloomResponse) XXX_DiscardUnknown

func (m *QueryBlockBloomResponse) XXX_DiscardUnknown()

func (*QueryBlockBloomResponse) XXX_Marshal

func (m *QueryBlockBloomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBlockBloomResponse) XXX_Merge

func (m *QueryBlockBloomResponse) XXX_Merge(src proto.Message)

func (*QueryBlockBloomResponse) XXX_Size

func (m *QueryBlockBloomResponse) XXX_Size() int

func (*QueryBlockBloomResponse) XXX_Unmarshal

func (m *QueryBlockBloomResponse) XXX_Unmarshal(b []byte) error

type QueryBlockLogsRequest

type QueryBlockLogsRequest struct {
	// hash is the block hash to query the logs for.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

QueryBlockLogsRequest is the request type for the Query/BlockLogs RPC method.

func (*QueryBlockLogsRequest) Descriptor

func (*QueryBlockLogsRequest) Descriptor() ([]byte, []int)

func (*QueryBlockLogsRequest) Marshal

func (m *QueryBlockLogsRequest) Marshal() (dAtA []byte, err error)

func (*QueryBlockLogsRequest) MarshalTo

func (m *QueryBlockLogsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBlockLogsRequest) MarshalToSizedBuffer

func (m *QueryBlockLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBlockLogsRequest) ProtoMessage

func (*QueryBlockLogsRequest) ProtoMessage()

func (*QueryBlockLogsRequest) Reset

func (m *QueryBlockLogsRequest) Reset()

func (*QueryBlockLogsRequest) Size

func (m *QueryBlockLogsRequest) Size() (n int)

func (*QueryBlockLogsRequest) String

func (m *QueryBlockLogsRequest) String() string

func (*QueryBlockLogsRequest) Unmarshal

func (m *QueryBlockLogsRequest) Unmarshal(dAtA []byte) error

func (*QueryBlockLogsRequest) XXX_DiscardUnknown

func (m *QueryBlockLogsRequest) XXX_DiscardUnknown()

func (*QueryBlockLogsRequest) XXX_Marshal

func (m *QueryBlockLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBlockLogsRequest) XXX_Merge

func (m *QueryBlockLogsRequest) XXX_Merge(src proto.Message)

func (*QueryBlockLogsRequest) XXX_Size

func (m *QueryBlockLogsRequest) XXX_Size() int

func (*QueryBlockLogsRequest) XXX_Unmarshal

func (m *QueryBlockLogsRequest) XXX_Unmarshal(b []byte) error

type QueryBlockLogsResponse

type QueryBlockLogsResponse struct {
	// logs represents the ethereum logs generated at the given block hash.
	TxLogs []TransactionLogs `protobuf:"bytes,1,rep,name=tx_logs,json=txLogs,proto3" json:"tx_logs"`
}

QueryTxLogs is the response type for the Query/BlockLogs RPC method.

func (*QueryBlockLogsResponse) Descriptor

func (*QueryBlockLogsResponse) Descriptor() ([]byte, []int)

func (*QueryBlockLogsResponse) GetTxLogs

func (m *QueryBlockLogsResponse) GetTxLogs() []TransactionLogs

func (*QueryBlockLogsResponse) Marshal

func (m *QueryBlockLogsResponse) Marshal() (dAtA []byte, err error)

func (*QueryBlockLogsResponse) MarshalTo

func (m *QueryBlockLogsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBlockLogsResponse) MarshalToSizedBuffer

func (m *QueryBlockLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBlockLogsResponse) ProtoMessage

func (*QueryBlockLogsResponse) ProtoMessage()

func (*QueryBlockLogsResponse) Reset

func (m *QueryBlockLogsResponse) Reset()

func (*QueryBlockLogsResponse) Size

func (m *QueryBlockLogsResponse) Size() (n int)

func (*QueryBlockLogsResponse) String

func (m *QueryBlockLogsResponse) String() string

func (*QueryBlockLogsResponse) Unmarshal

func (m *QueryBlockLogsResponse) Unmarshal(dAtA []byte) error

func (*QueryBlockLogsResponse) XXX_DiscardUnknown

func (m *QueryBlockLogsResponse) XXX_DiscardUnknown()

func (*QueryBlockLogsResponse) XXX_Marshal

func (m *QueryBlockLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBlockLogsResponse) XXX_Merge

func (m *QueryBlockLogsResponse) XXX_Merge(src proto.Message)

func (*QueryBlockLogsResponse) XXX_Size

func (m *QueryBlockLogsResponse) XXX_Size() int

func (*QueryBlockLogsResponse) XXX_Unmarshal

func (m *QueryBlockLogsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Account queries an Ethereum account.
	Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
	// Balance queries the balance of a the EVM denomination for a single
	// EthAccount.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// Storage queries the balance of all coins for a single account.
	Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error)
	// Code queries the balance of all coins for a single account.
	Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error)
	// TxLogs queries ethereum logs from a transaction.
	TxLogs(ctx context.Context, in *QueryTxLogsRequest, opts ...grpc.CallOption) (*QueryTxLogsResponse, error)
	// TxReceipt queries a receipt by a transaction hash.
	TxReceipt(ctx context.Context, in *QueryTxReceiptRequest, opts ...grpc.CallOption) (*QueryTxReceiptResponse, error)
	// TxReceiptsByBlockHeight queries tx receipts by a block height.
	TxReceiptsByBlockHeight(ctx context.Context, in *QueryTxReceiptsByBlockHeightRequest, opts ...grpc.CallOption) (*QueryTxReceiptsByBlockHeightResponse, error)
	// TxReceiptsByBlockHash queries tx receipts by a block hash.
	TxReceiptsByBlockHash(ctx context.Context, in *QueryTxReceiptsByBlockHashRequest, opts ...grpc.CallOption) (*QueryTxReceiptsByBlockHashResponse, error)
	// BlockLogs queries all the ethereum logs for a given block hash.
	BlockLogs(ctx context.Context, in *QueryBlockLogsRequest, opts ...grpc.CallOption) (*QueryBlockLogsResponse, error)
	// BlockBloom queries the block bloom filter bytes at a given height.
	BlockBloom(ctx context.Context, in *QueryBlockBloomRequest, opts ...grpc.CallOption) (*QueryBlockBloomResponse, error)
	// Params queries the parameters of x/evm module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// StaticCall queries the static call value of x/evm module.
	StaticCall(ctx context.Context, in *QueryStaticCallRequest, opts ...grpc.CallOption) (*QueryStaticCallResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCodeRequest

type QueryCodeRequest struct {
	// address is the ethereum hex address to query the code for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryCodeRequest is the request type for the Query/Code RPC method.

func (*QueryCodeRequest) Descriptor

func (*QueryCodeRequest) Descriptor() ([]byte, []int)

func (*QueryCodeRequest) Marshal

func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error)

func (*QueryCodeRequest) MarshalTo

func (m *QueryCodeRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCodeRequest) MarshalToSizedBuffer

func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCodeRequest) ProtoMessage

func (*QueryCodeRequest) ProtoMessage()

func (*QueryCodeRequest) Reset

func (m *QueryCodeRequest) Reset()

func (*QueryCodeRequest) Size

func (m *QueryCodeRequest) Size() (n int)

func (*QueryCodeRequest) String

func (m *QueryCodeRequest) String() string

func (*QueryCodeRequest) Unmarshal

func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error

func (*QueryCodeRequest) XXX_DiscardUnknown

func (m *QueryCodeRequest) XXX_DiscardUnknown()

func (*QueryCodeRequest) XXX_Marshal

func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCodeRequest) XXX_Merge

func (m *QueryCodeRequest) XXX_Merge(src proto.Message)

func (*QueryCodeRequest) XXX_Size

func (m *QueryCodeRequest) XXX_Size() int

func (*QueryCodeRequest) XXX_Unmarshal

func (m *QueryCodeRequest) XXX_Unmarshal(b []byte) error

type QueryCodeResponse

type QueryCodeResponse struct {
	// code represents the code bytes from an ethereum address.
	Code []byte `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}

QueryCodeResponse is the response type for the Query/Code RPC method.

func (*QueryCodeResponse) Descriptor

func (*QueryCodeResponse) Descriptor() ([]byte, []int)

func (*QueryCodeResponse) GetCode

func (m *QueryCodeResponse) GetCode() []byte

func (*QueryCodeResponse) Marshal

func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error)

func (*QueryCodeResponse) MarshalTo

func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCodeResponse) MarshalToSizedBuffer

func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCodeResponse) ProtoMessage

func (*QueryCodeResponse) ProtoMessage()

func (*QueryCodeResponse) Reset

func (m *QueryCodeResponse) Reset()

func (*QueryCodeResponse) Size

func (m *QueryCodeResponse) Size() (n int)

func (*QueryCodeResponse) String

func (m *QueryCodeResponse) String() string

func (*QueryCodeResponse) Unmarshal

func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error

func (*QueryCodeResponse) XXX_DiscardUnknown

func (m *QueryCodeResponse) XXX_DiscardUnknown()

func (*QueryCodeResponse) XXX_Marshal

func (m *QueryCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCodeResponse) XXX_Merge

func (m *QueryCodeResponse) XXX_Merge(src proto.Message)

func (*QueryCodeResponse) XXX_Size

func (m *QueryCodeResponse) XXX_Size() int

func (*QueryCodeResponse) XXX_Unmarshal

func (m *QueryCodeResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest defines the request type for querying x/evm parameters.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params define the evm module parameters.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse defines the response type for querying x/evm parameters.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Account queries an Ethereum account.
	Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
	// Balance queries the balance of a the EVM denomination for a single
	// EthAccount.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// Storage queries the balance of all coins for a single account.
	Storage(context.Context, *QueryStorageRequest) (*QueryStorageResponse, error)
	// Code queries the balance of all coins for a single account.
	Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error)
	// TxLogs queries ethereum logs from a transaction.
	TxLogs(context.Context, *QueryTxLogsRequest) (*QueryTxLogsResponse, error)
	// TxReceipt queries a receipt by a transaction hash.
	TxReceipt(context.Context, *QueryTxReceiptRequest) (*QueryTxReceiptResponse, error)
	// TxReceiptsByBlockHeight queries tx receipts by a block height.
	TxReceiptsByBlockHeight(context.Context, *QueryTxReceiptsByBlockHeightRequest) (*QueryTxReceiptsByBlockHeightResponse, error)
	// TxReceiptsByBlockHash queries tx receipts by a block hash.
	TxReceiptsByBlockHash(context.Context, *QueryTxReceiptsByBlockHashRequest) (*QueryTxReceiptsByBlockHashResponse, error)
	// BlockLogs queries all the ethereum logs for a given block hash.
	BlockLogs(context.Context, *QueryBlockLogsRequest) (*QueryBlockLogsResponse, error)
	// BlockBloom queries the block bloom filter bytes at a given height.
	BlockBloom(context.Context, *QueryBlockBloomRequest) (*QueryBlockBloomResponse, error)
	// Params queries the parameters of x/evm module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// StaticCall queries the static call value of x/evm module.
	StaticCall(context.Context, *QueryStaticCallRequest) (*QueryStaticCallResponse, error)
}

QueryServer is the server API for Query service.

type QueryStaticCallRequest

type QueryStaticCallRequest struct {
	// address is the ethereum contract hex address to for static call.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// static call input generated from abi
	Input []byte `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
}

QueryStaticCallRequest defines static call request

func (*QueryStaticCallRequest) Descriptor

func (*QueryStaticCallRequest) Descriptor() ([]byte, []int)

func (*QueryStaticCallRequest) GetAddress

func (m *QueryStaticCallRequest) GetAddress() string

func (*QueryStaticCallRequest) GetInput

func (m *QueryStaticCallRequest) GetInput() []byte

func (*QueryStaticCallRequest) Marshal

func (m *QueryStaticCallRequest) Marshal() (dAtA []byte, err error)

func (*QueryStaticCallRequest) MarshalTo

func (m *QueryStaticCallRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryStaticCallRequest) MarshalToSizedBuffer

func (m *QueryStaticCallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryStaticCallRequest) ProtoMessage

func (*QueryStaticCallRequest) ProtoMessage()

func (*QueryStaticCallRequest) Reset

func (m *QueryStaticCallRequest) Reset()

func (*QueryStaticCallRequest) Size

func (m *QueryStaticCallRequest) Size() (n int)

func (*QueryStaticCallRequest) String

func (m *QueryStaticCallRequest) String() string

func (*QueryStaticCallRequest) Unmarshal

func (m *QueryStaticCallRequest) Unmarshal(dAtA []byte) error

func (*QueryStaticCallRequest) XXX_DiscardUnknown

func (m *QueryStaticCallRequest) XXX_DiscardUnknown()

func (*QueryStaticCallRequest) XXX_Marshal

func (m *QueryStaticCallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryStaticCallRequest) XXX_Merge

func (m *QueryStaticCallRequest) XXX_Merge(src proto.Message)

func (*QueryStaticCallRequest) XXX_Size

func (m *QueryStaticCallRequest) XXX_Size() int

func (*QueryStaticCallRequest) XXX_Unmarshal

func (m *QueryStaticCallRequest) XXX_Unmarshal(b []byte) error

type QueryStaticCallResponse

type QueryStaticCallResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

// QueryStaticCallRequest defines static call response

func (*QueryStaticCallResponse) Descriptor

func (*QueryStaticCallResponse) Descriptor() ([]byte, []int)

func (*QueryStaticCallResponse) GetData

func (m *QueryStaticCallResponse) GetData() []byte

func (*QueryStaticCallResponse) Marshal

func (m *QueryStaticCallResponse) Marshal() (dAtA []byte, err error)

func (*QueryStaticCallResponse) MarshalTo

func (m *QueryStaticCallResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryStaticCallResponse) MarshalToSizedBuffer

func (m *QueryStaticCallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryStaticCallResponse) ProtoMessage

func (*QueryStaticCallResponse) ProtoMessage()

func (*QueryStaticCallResponse) Reset

func (m *QueryStaticCallResponse) Reset()

func (*QueryStaticCallResponse) Size

func (m *QueryStaticCallResponse) Size() (n int)

func (*QueryStaticCallResponse) String

func (m *QueryStaticCallResponse) String() string

func (*QueryStaticCallResponse) Unmarshal

func (m *QueryStaticCallResponse) Unmarshal(dAtA []byte) error

func (*QueryStaticCallResponse) XXX_DiscardUnknown

func (m *QueryStaticCallResponse) XXX_DiscardUnknown()

func (*QueryStaticCallResponse) XXX_Marshal

func (m *QueryStaticCallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryStaticCallResponse) XXX_Merge

func (m *QueryStaticCallResponse) XXX_Merge(src proto.Message)

func (*QueryStaticCallResponse) XXX_Size

func (m *QueryStaticCallResponse) XXX_Size() int

func (*QueryStaticCallResponse) XXX_Unmarshal

func (m *QueryStaticCallResponse) XXX_Unmarshal(b []byte) error

type QueryStorageRequest

type QueryStorageRequest struct {
	/// address is the ethereum hex address to query the storage state for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// key defines the key of the storage state
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

QueryStorageRequest is the request type for the Query/Storage RPC method.

func (*QueryStorageRequest) Descriptor

func (*QueryStorageRequest) Descriptor() ([]byte, []int)

func (*QueryStorageRequest) Marshal

func (m *QueryStorageRequest) Marshal() (dAtA []byte, err error)

func (*QueryStorageRequest) MarshalTo

func (m *QueryStorageRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryStorageRequest) MarshalToSizedBuffer

func (m *QueryStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryStorageRequest) ProtoMessage

func (*QueryStorageRequest) ProtoMessage()

func (*QueryStorageRequest) Reset

func (m *QueryStorageRequest) Reset()

func (*QueryStorageRequest) Size

func (m *QueryStorageRequest) Size() (n int)

func (*QueryStorageRequest) String

func (m *QueryStorageRequest) String() string

func (*QueryStorageRequest) Unmarshal

func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error

func (*QueryStorageRequest) XXX_DiscardUnknown

func (m *QueryStorageRequest) XXX_DiscardUnknown()

func (*QueryStorageRequest) XXX_Marshal

func (m *QueryStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryStorageRequest) XXX_Merge

func (m *QueryStorageRequest) XXX_Merge(src proto.Message)

func (*QueryStorageRequest) XXX_Size

func (m *QueryStorageRequest) XXX_Size() int

func (*QueryStorageRequest) XXX_Unmarshal

func (m *QueryStorageRequest) XXX_Unmarshal(b []byte) error

type QueryStorageResponse

type QueryStorageResponse struct {
	// key defines the storage state value hash associated with the given key.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

QueryStorageResponse is the response type for the Query/Storage RPC method.

func (*QueryStorageResponse) Descriptor

func (*QueryStorageResponse) Descriptor() ([]byte, []int)

func (*QueryStorageResponse) GetValue

func (m *QueryStorageResponse) GetValue() string

func (*QueryStorageResponse) Marshal

func (m *QueryStorageResponse) Marshal() (dAtA []byte, err error)

func (*QueryStorageResponse) MarshalTo

func (m *QueryStorageResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryStorageResponse) MarshalToSizedBuffer

func (m *QueryStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryStorageResponse) ProtoMessage

func (*QueryStorageResponse) ProtoMessage()

func (*QueryStorageResponse) Reset

func (m *QueryStorageResponse) Reset()

func (*QueryStorageResponse) Size

func (m *QueryStorageResponse) Size() (n int)

func (*QueryStorageResponse) String

func (m *QueryStorageResponse) String() string

func (*QueryStorageResponse) Unmarshal

func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error

func (*QueryStorageResponse) XXX_DiscardUnknown

func (m *QueryStorageResponse) XXX_DiscardUnknown()

func (*QueryStorageResponse) XXX_Marshal

func (m *QueryStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryStorageResponse) XXX_Merge

func (m *QueryStorageResponse) XXX_Merge(src proto.Message)

func (*QueryStorageResponse) XXX_Size

func (m *QueryStorageResponse) XXX_Size() int

func (*QueryStorageResponse) XXX_Unmarshal

func (m *QueryStorageResponse) XXX_Unmarshal(b []byte) error

type QueryTxLogsRequest

type QueryTxLogsRequest struct {
	// hash is the ethereum transaction hex hash to query the logs for.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

QueryTxLogsRequest is the request type for the Query/TxLogs RPC method.

func (*QueryTxLogsRequest) Descriptor

func (*QueryTxLogsRequest) Descriptor() ([]byte, []int)

func (*QueryTxLogsRequest) Marshal

func (m *QueryTxLogsRequest) Marshal() (dAtA []byte, err error)

func (*QueryTxLogsRequest) MarshalTo

func (m *QueryTxLogsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxLogsRequest) MarshalToSizedBuffer

func (m *QueryTxLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxLogsRequest) ProtoMessage

func (*QueryTxLogsRequest) ProtoMessage()

func (*QueryTxLogsRequest) Reset

func (m *QueryTxLogsRequest) Reset()

func (*QueryTxLogsRequest) Size

func (m *QueryTxLogsRequest) Size() (n int)

func (*QueryTxLogsRequest) String

func (m *QueryTxLogsRequest) String() string

func (*QueryTxLogsRequest) Unmarshal

func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) error

func (*QueryTxLogsRequest) XXX_DiscardUnknown

func (m *QueryTxLogsRequest) XXX_DiscardUnknown()

func (*QueryTxLogsRequest) XXX_Marshal

func (m *QueryTxLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxLogsRequest) XXX_Merge

func (m *QueryTxLogsRequest) XXX_Merge(src proto.Message)

func (*QueryTxLogsRequest) XXX_Size

func (m *QueryTxLogsRequest) XXX_Size() int

func (*QueryTxLogsRequest) XXX_Unmarshal

func (m *QueryTxLogsRequest) XXX_Unmarshal(b []byte) error

type QueryTxLogsResponse

type QueryTxLogsResponse struct {
	// logs represents the ethereum logs generated from the given transaction.
	Logs []*Log `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
}

QueryTxLogs is the response type for the Query/TxLogs RPC method.

func (*QueryTxLogsResponse) Descriptor

func (*QueryTxLogsResponse) Descriptor() ([]byte, []int)

func (*QueryTxLogsResponse) GetLogs

func (m *QueryTxLogsResponse) GetLogs() []*Log

func (*QueryTxLogsResponse) Marshal

func (m *QueryTxLogsResponse) Marshal() (dAtA []byte, err error)

func (*QueryTxLogsResponse) MarshalTo

func (m *QueryTxLogsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxLogsResponse) MarshalToSizedBuffer

func (m *QueryTxLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxLogsResponse) ProtoMessage

func (*QueryTxLogsResponse) ProtoMessage()

func (*QueryTxLogsResponse) Reset

func (m *QueryTxLogsResponse) Reset()

func (*QueryTxLogsResponse) Size

func (m *QueryTxLogsResponse) Size() (n int)

func (*QueryTxLogsResponse) String

func (m *QueryTxLogsResponse) String() string

func (*QueryTxLogsResponse) Unmarshal

func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error

func (*QueryTxLogsResponse) XXX_DiscardUnknown

func (m *QueryTxLogsResponse) XXX_DiscardUnknown()

func (*QueryTxLogsResponse) XXX_Marshal

func (m *QueryTxLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxLogsResponse) XXX_Merge

func (m *QueryTxLogsResponse) XXX_Merge(src proto.Message)

func (*QueryTxLogsResponse) XXX_Size

func (m *QueryTxLogsResponse) XXX_Size() int

func (*QueryTxLogsResponse) XXX_Unmarshal

func (m *QueryTxLogsResponse) XXX_Unmarshal(b []byte) error

type QueryTxReceiptRequest

type QueryTxReceiptRequest struct {
	// hash is the ethereum transaction hex hash to query the receipt for.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

QueryTxReceiptRequest is the request type for the Query/TxReceipt RPC method.

func (*QueryTxReceiptRequest) Descriptor

func (*QueryTxReceiptRequest) Descriptor() ([]byte, []int)

func (*QueryTxReceiptRequest) Marshal

func (m *QueryTxReceiptRequest) Marshal() (dAtA []byte, err error)

func (*QueryTxReceiptRequest) MarshalTo

func (m *QueryTxReceiptRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxReceiptRequest) MarshalToSizedBuffer

func (m *QueryTxReceiptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxReceiptRequest) ProtoMessage

func (*QueryTxReceiptRequest) ProtoMessage()

func (*QueryTxReceiptRequest) Reset

func (m *QueryTxReceiptRequest) Reset()

func (*QueryTxReceiptRequest) Size

func (m *QueryTxReceiptRequest) Size() (n int)

func (*QueryTxReceiptRequest) String

func (m *QueryTxReceiptRequest) String() string

func (*QueryTxReceiptRequest) Unmarshal

func (m *QueryTxReceiptRequest) Unmarshal(dAtA []byte) error

func (*QueryTxReceiptRequest) XXX_DiscardUnknown

func (m *QueryTxReceiptRequest) XXX_DiscardUnknown()

func (*QueryTxReceiptRequest) XXX_Marshal

func (m *QueryTxReceiptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxReceiptRequest) XXX_Merge

func (m *QueryTxReceiptRequest) XXX_Merge(src proto.Message)

func (*QueryTxReceiptRequest) XXX_Size

func (m *QueryTxReceiptRequest) XXX_Size() int

func (*QueryTxReceiptRequest) XXX_Unmarshal

func (m *QueryTxReceiptRequest) XXX_Unmarshal(b []byte) error

type QueryTxReceiptResponse

type QueryTxReceiptResponse struct {
	// receipt represents the ethereum receipt for the given transaction.
	Receipt *TxReceipt `protobuf:"bytes,1,opt,name=receipt,proto3" json:"receipt,omitempty"`
}

QueryTxReceiptResponse is the response type for the Query/TxReceipt RPC method.

func (*QueryTxReceiptResponse) Descriptor

func (*QueryTxReceiptResponse) Descriptor() ([]byte, []int)

func (*QueryTxReceiptResponse) GetReceipt

func (m *QueryTxReceiptResponse) GetReceipt() *TxReceipt

func (*QueryTxReceiptResponse) Marshal

func (m *QueryTxReceiptResponse) Marshal() (dAtA []byte, err error)

func (*QueryTxReceiptResponse) MarshalTo

func (m *QueryTxReceiptResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxReceiptResponse) MarshalToSizedBuffer

func (m *QueryTxReceiptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxReceiptResponse) ProtoMessage

func (*QueryTxReceiptResponse) ProtoMessage()

func (*QueryTxReceiptResponse) Reset

func (m *QueryTxReceiptResponse) Reset()

func (*QueryTxReceiptResponse) Size

func (m *QueryTxReceiptResponse) Size() (n int)

func (*QueryTxReceiptResponse) String

func (m *QueryTxReceiptResponse) String() string

func (*QueryTxReceiptResponse) Unmarshal

func (m *QueryTxReceiptResponse) Unmarshal(dAtA []byte) error

func (*QueryTxReceiptResponse) XXX_DiscardUnknown

func (m *QueryTxReceiptResponse) XXX_DiscardUnknown()

func (*QueryTxReceiptResponse) XXX_Marshal

func (m *QueryTxReceiptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxReceiptResponse) XXX_Merge

func (m *QueryTxReceiptResponse) XXX_Merge(src proto.Message)

func (*QueryTxReceiptResponse) XXX_Size

func (m *QueryTxReceiptResponse) XXX_Size() int

func (*QueryTxReceiptResponse) XXX_Unmarshal

func (m *QueryTxReceiptResponse) XXX_Unmarshal(b []byte) error

type QueryTxReceiptsByBlockHashRequest

type QueryTxReceiptsByBlockHashRequest struct {
	// hash is the ethereum transaction hex hash to query the receipt for.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

QueryTxReceiptsByBlockHashRequest is the request type for the Query/TxReceiptsByBlockHash RPC method.

func (*QueryTxReceiptsByBlockHashRequest) Descriptor

func (*QueryTxReceiptsByBlockHashRequest) Descriptor() ([]byte, []int)

func (*QueryTxReceiptsByBlockHashRequest) Marshal

func (m *QueryTxReceiptsByBlockHashRequest) Marshal() (dAtA []byte, err error)

func (*QueryTxReceiptsByBlockHashRequest) MarshalTo

func (m *QueryTxReceiptsByBlockHashRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHashRequest) MarshalToSizedBuffer

func (m *QueryTxReceiptsByBlockHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHashRequest) ProtoMessage

func (*QueryTxReceiptsByBlockHashRequest) ProtoMessage()

func (*QueryTxReceiptsByBlockHashRequest) Reset

func (*QueryTxReceiptsByBlockHashRequest) Size

func (m *QueryTxReceiptsByBlockHashRequest) Size() (n int)

func (*QueryTxReceiptsByBlockHashRequest) String

func (*QueryTxReceiptsByBlockHashRequest) Unmarshal

func (m *QueryTxReceiptsByBlockHashRequest) Unmarshal(dAtA []byte) error

func (*QueryTxReceiptsByBlockHashRequest) XXX_DiscardUnknown

func (m *QueryTxReceiptsByBlockHashRequest) XXX_DiscardUnknown()

func (*QueryTxReceiptsByBlockHashRequest) XXX_Marshal

func (m *QueryTxReceiptsByBlockHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxReceiptsByBlockHashRequest) XXX_Merge

func (*QueryTxReceiptsByBlockHashRequest) XXX_Size

func (m *QueryTxReceiptsByBlockHashRequest) XXX_Size() int

func (*QueryTxReceiptsByBlockHashRequest) XXX_Unmarshal

func (m *QueryTxReceiptsByBlockHashRequest) XXX_Unmarshal(b []byte) error

type QueryTxReceiptsByBlockHashResponse

type QueryTxReceiptsByBlockHashResponse struct {
	// tx receipts list for the block
	Receipts []*TxReceipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
}

QueryTxReceiptsByBlockHashResponse is the response type for the Query/TxReceiptsByBlockHash RPC method.

func (*QueryTxReceiptsByBlockHashResponse) Descriptor

func (*QueryTxReceiptsByBlockHashResponse) Descriptor() ([]byte, []int)

func (*QueryTxReceiptsByBlockHashResponse) GetReceipts

func (m *QueryTxReceiptsByBlockHashResponse) GetReceipts() []*TxReceipt

func (*QueryTxReceiptsByBlockHashResponse) Marshal

func (m *QueryTxReceiptsByBlockHashResponse) Marshal() (dAtA []byte, err error)

func (*QueryTxReceiptsByBlockHashResponse) MarshalTo

func (m *QueryTxReceiptsByBlockHashResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHashResponse) MarshalToSizedBuffer

func (m *QueryTxReceiptsByBlockHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHashResponse) ProtoMessage

func (*QueryTxReceiptsByBlockHashResponse) ProtoMessage()

func (*QueryTxReceiptsByBlockHashResponse) Reset

func (*QueryTxReceiptsByBlockHashResponse) Size

func (*QueryTxReceiptsByBlockHashResponse) String

func (*QueryTxReceiptsByBlockHashResponse) Unmarshal

func (m *QueryTxReceiptsByBlockHashResponse) Unmarshal(dAtA []byte) error

func (*QueryTxReceiptsByBlockHashResponse) XXX_DiscardUnknown

func (m *QueryTxReceiptsByBlockHashResponse) XXX_DiscardUnknown()

func (*QueryTxReceiptsByBlockHashResponse) XXX_Marshal

func (m *QueryTxReceiptsByBlockHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxReceiptsByBlockHashResponse) XXX_Merge

func (*QueryTxReceiptsByBlockHashResponse) XXX_Size

func (*QueryTxReceiptsByBlockHashResponse) XXX_Unmarshal

func (m *QueryTxReceiptsByBlockHashResponse) XXX_Unmarshal(b []byte) error

type QueryTxReceiptsByBlockHeightRequest

type QueryTxReceiptsByBlockHeightRequest struct {
	// height is the block height to query tx receipts for
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

QueryTxReceiptsByBlockHeightRequest is the request type for the Query/TxReceiptsByBlockHeight RPC method.

func (*QueryTxReceiptsByBlockHeightRequest) Descriptor

func (*QueryTxReceiptsByBlockHeightRequest) Descriptor() ([]byte, []int)

func (*QueryTxReceiptsByBlockHeightRequest) Marshal

func (m *QueryTxReceiptsByBlockHeightRequest) Marshal() (dAtA []byte, err error)

func (*QueryTxReceiptsByBlockHeightRequest) MarshalTo

func (m *QueryTxReceiptsByBlockHeightRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHeightRequest) MarshalToSizedBuffer

func (m *QueryTxReceiptsByBlockHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHeightRequest) ProtoMessage

func (*QueryTxReceiptsByBlockHeightRequest) ProtoMessage()

func (*QueryTxReceiptsByBlockHeightRequest) Reset

func (*QueryTxReceiptsByBlockHeightRequest) Size

func (*QueryTxReceiptsByBlockHeightRequest) String

func (*QueryTxReceiptsByBlockHeightRequest) Unmarshal

func (m *QueryTxReceiptsByBlockHeightRequest) Unmarshal(dAtA []byte) error

func (*QueryTxReceiptsByBlockHeightRequest) XXX_DiscardUnknown

func (m *QueryTxReceiptsByBlockHeightRequest) XXX_DiscardUnknown()

func (*QueryTxReceiptsByBlockHeightRequest) XXX_Marshal

func (m *QueryTxReceiptsByBlockHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxReceiptsByBlockHeightRequest) XXX_Merge

func (*QueryTxReceiptsByBlockHeightRequest) XXX_Size

func (*QueryTxReceiptsByBlockHeightRequest) XXX_Unmarshal

func (m *QueryTxReceiptsByBlockHeightRequest) XXX_Unmarshal(b []byte) error

type QueryTxReceiptsByBlockHeightResponse

type QueryTxReceiptsByBlockHeightResponse struct {
	// tx receipts list for the block
	Receipts []*TxReceipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
}

QueryTxReceiptsByBlockHeightResponse is the response type for the Query/TxReceiptsByBlockHeight RPC method.

func (*QueryTxReceiptsByBlockHeightResponse) Descriptor

func (*QueryTxReceiptsByBlockHeightResponse) Descriptor() ([]byte, []int)

func (*QueryTxReceiptsByBlockHeightResponse) GetReceipts

func (m *QueryTxReceiptsByBlockHeightResponse) GetReceipts() []*TxReceipt

func (*QueryTxReceiptsByBlockHeightResponse) Marshal

func (m *QueryTxReceiptsByBlockHeightResponse) Marshal() (dAtA []byte, err error)

func (*QueryTxReceiptsByBlockHeightResponse) MarshalTo

func (m *QueryTxReceiptsByBlockHeightResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHeightResponse) MarshalToSizedBuffer

func (m *QueryTxReceiptsByBlockHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTxReceiptsByBlockHeightResponse) ProtoMessage

func (*QueryTxReceiptsByBlockHeightResponse) ProtoMessage()

func (*QueryTxReceiptsByBlockHeightResponse) Reset

func (*QueryTxReceiptsByBlockHeightResponse) Size

func (*QueryTxReceiptsByBlockHeightResponse) String

func (*QueryTxReceiptsByBlockHeightResponse) Unmarshal

func (m *QueryTxReceiptsByBlockHeightResponse) Unmarshal(dAtA []byte) error

func (*QueryTxReceiptsByBlockHeightResponse) XXX_DiscardUnknown

func (m *QueryTxReceiptsByBlockHeightResponse) XXX_DiscardUnknown()

func (*QueryTxReceiptsByBlockHeightResponse) XXX_Marshal

func (m *QueryTxReceiptsByBlockHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTxReceiptsByBlockHeightResponse) XXX_Merge

func (*QueryTxReceiptsByBlockHeightResponse) XXX_Size

func (*QueryTxReceiptsByBlockHeightResponse) XXX_Unmarshal

func (m *QueryTxReceiptsByBlockHeightResponse) XXX_Unmarshal(b []byte) error

type SigCache

type SigCache struct {
	Signer  *EIP155Signer `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	Address []byte        `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

SigCache is used to cache the derived sender and contains the signer used to derive it.

func (*SigCache) Descriptor

func (*SigCache) Descriptor() ([]byte, []int)

func (*SigCache) Marshal

func (m *SigCache) Marshal() (dAtA []byte, err error)

func (*SigCache) MarshalTo

func (m *SigCache) MarshalTo(dAtA []byte) (int, error)

func (*SigCache) MarshalToSizedBuffer

func (m *SigCache) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SigCache) ProtoMessage

func (*SigCache) ProtoMessage()

func (*SigCache) Reset

func (m *SigCache) Reset()

func (*SigCache) Size

func (m *SigCache) Size() (n int)

func (*SigCache) String

func (m *SigCache) String() string

func (*SigCache) Unmarshal

func (m *SigCache) Unmarshal(dAtA []byte) error

func (*SigCache) XXX_DiscardUnknown

func (m *SigCache) XXX_DiscardUnknown()

func (*SigCache) XXX_Marshal

func (m *SigCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigCache) XXX_Merge

func (m *SigCache) XXX_Merge(src proto.Message)

func (*SigCache) XXX_Size

func (m *SigCache) XXX_Size() int

func (*SigCache) XXX_Unmarshal

func (m *SigCache) XXX_Unmarshal(b []byte) error

type State

type State struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

State represents a single Storage key value pair item.

func (*State) Descriptor

func (*State) Descriptor() ([]byte, []int)

func (*State) GetKey

func (m *State) GetKey() string

func (*State) GetValue

func (m *State) GetValue() string

func (*State) Marshal

func (m *State) Marshal() (dAtA []byte, err error)

func (*State) MarshalTo

func (m *State) MarshalTo(dAtA []byte) (int, error)

func (*State) MarshalToSizedBuffer

func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

func (m *State) Size() (n int)

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

func (m *State) Unmarshal(dAtA []byte) error

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*State) XXX_Merge

func (m *State) XXX_Merge(src proto.Message)

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

func (m *State) XXX_Unmarshal(b []byte) error

type TransactionLogs

type TransactionLogs struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Logs []*Log `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"`
}

TransactionLogs define the logs generated from a transaction execution with a given hash. It it used for import/export data as transactions are not persisted on blockchain state after an upgrade.

func DecodeTransactionLogs

func DecodeTransactionLogs(data []byte) (TransactionLogs, error)

DecodeTxResponse decodes an protobuf-encoded byte slice into TransactionLogs

func (*TransactionLogs) Descriptor

func (*TransactionLogs) Descriptor() ([]byte, []int)

func (*TransactionLogs) GetHash

func (m *TransactionLogs) GetHash() string

func (*TransactionLogs) GetLogs

func (m *TransactionLogs) GetLogs() []*Log

func (*TransactionLogs) Marshal

func (m *TransactionLogs) Marshal() (dAtA []byte, err error)

func (*TransactionLogs) MarshalTo

func (m *TransactionLogs) MarshalTo(dAtA []byte) (int, error)

func (*TransactionLogs) MarshalToSizedBuffer

func (m *TransactionLogs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransactionLogs) ProtoMessage

func (*TransactionLogs) ProtoMessage()

func (*TransactionLogs) Reset

func (m *TransactionLogs) Reset()

func (*TransactionLogs) Size

func (m *TransactionLogs) Size() (n int)

func (*TransactionLogs) String

func (m *TransactionLogs) String() string

func (*TransactionLogs) Unmarshal

func (m *TransactionLogs) Unmarshal(dAtA []byte) error

func (*TransactionLogs) XXX_DiscardUnknown

func (m *TransactionLogs) XXX_DiscardUnknown()

func (*TransactionLogs) XXX_Marshal

func (m *TransactionLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionLogs) XXX_Merge

func (m *TransactionLogs) XXX_Merge(src proto.Message)

func (*TransactionLogs) XXX_Size

func (m *TransactionLogs) XXX_Size() int

func (*TransactionLogs) XXX_Unmarshal

func (m *TransactionLogs) XXX_Unmarshal(b []byte) error

type TxData

type TxData struct {
	AccountNonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Price        []byte `protobuf:"bytes,2,opt,name=price,proto3" json:"gasPrice"`
	GasLimit     uint64 `protobuf:"varint,3,opt,name=gas,proto3" json:"gas,omitempty"`
	Recipient    []byte `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	Amount       []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	Payload      []byte `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	// signature values
	V []byte `protobuf:"bytes,7,opt,name=v,proto3" json:"v,omitempty"`
	R []byte `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"`
	S []byte `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
	// hash defines the tx data hash, which is only used when marshaling to JSON.
	Hash string `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty" rlp:"-"`
}

TxData implements the Ethereum transaction data structure. It is used solely as intended in Ethereum abiding by the protocol.

func (*TxData) Descriptor

func (*TxData) Descriptor() ([]byte, []int)

func (*TxData) Marshal

func (m *TxData) Marshal() (dAtA []byte, err error)

func (*TxData) MarshalTo

func (m *TxData) MarshalTo(dAtA []byte) (int, error)

func (*TxData) MarshalToSizedBuffer

func (m *TxData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxData) ProtoMessage

func (*TxData) ProtoMessage()

func (*TxData) Reset

func (m *TxData) Reset()

func (*TxData) Size

func (m *TxData) Size() (n int)

func (*TxData) String

func (m *TxData) String() string

func (*TxData) Unmarshal

func (m *TxData) Unmarshal(dAtA []byte) error

func (*TxData) XXX_DiscardUnknown

func (m *TxData) XXX_DiscardUnknown()

func (*TxData) XXX_Marshal

func (m *TxData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxData) XXX_Merge

func (m *TxData) XXX_Merge(src proto.Message)

func (*TxData) XXX_Size

func (m *TxData) XXX_Size() int

func (*TxData) XXX_Unmarshal

func (m *TxData) XXX_Unmarshal(b []byte) error

type TxReceipt

type TxReceipt struct {
	Hash        []byte    `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	From        []byte    `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Data        *TxData   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Result      *TxResult `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	Index       uint64    `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	BlockHeight uint64    `protobuf:"varint,6,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	BlockHash   []byte    `protobuf:"bytes,7,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
}

TxReceipt defines the receipt type stored in KV for each EVM transaction.

func (*TxReceipt) Descriptor

func (*TxReceipt) Descriptor() ([]byte, []int)

func (*TxReceipt) Marshal

func (m *TxReceipt) Marshal() (dAtA []byte, err error)

func (*TxReceipt) MarshalTo

func (m *TxReceipt) MarshalTo(dAtA []byte) (int, error)

func (*TxReceipt) MarshalToSizedBuffer

func (m *TxReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxReceipt) ProtoMessage

func (*TxReceipt) ProtoMessage()

func (*TxReceipt) Reset

func (m *TxReceipt) Reset()

func (*TxReceipt) Size

func (m *TxReceipt) Size() (n int)

func (*TxReceipt) String

func (m *TxReceipt) String() string

func (*TxReceipt) Unmarshal

func (m *TxReceipt) Unmarshal(dAtA []byte) error

func (*TxReceipt) XXX_DiscardUnknown

func (m *TxReceipt) XXX_DiscardUnknown()

func (*TxReceipt) XXX_Marshal

func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxReceipt) XXX_Merge

func (m *TxReceipt) XXX_Merge(src proto.Message)

func (*TxReceipt) XXX_Size

func (m *TxReceipt) XXX_Size() int

func (*TxReceipt) XXX_Unmarshal

func (m *TxReceipt) XXX_Unmarshal(b []byte) error

type TxResult

type TxResult struct {
	// contract_address contains the ethereum address of the created contract (if
	// any). If the state transition is an evm.Call, the contract address will be
	// empty.
	ContractAddress string `` /* 130-byte string literal not displayed */
	// bloom represents the bloom filter bytes
	Bloom []byte `protobuf:"bytes,2,opt,name=bloom,proto3" json:"bloom,omitempty"`
	// tx_logs contains the transaction hash and the proto-compatible ethereum
	// logs.
	TxLogs TransactionLogs `protobuf:"bytes,3,opt,name=tx_logs,json=txLogs,proto3" json:"tx_logs" yaml:"tx_logs"`
	// ret defines the bytes from the execution.
	Ret []byte `protobuf:"bytes,4,opt,name=ret,proto3" json:"ret,omitempty"`
	// reverted flag is set to true when the call has been reverted
	Reverted bool `protobuf:"varint,5,opt,name=reverted,proto3" json:"reverted,omitempty"`
	// gas_used notes the amount of gas consumed while execution
	GasUsed uint64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
}

TxResult stores results of Tx execution.

func (*TxResult) Descriptor

func (*TxResult) Descriptor() ([]byte, []int)

func (*TxResult) Marshal

func (m *TxResult) Marshal() (dAtA []byte, err error)

func (*TxResult) MarshalTo

func (m *TxResult) MarshalTo(dAtA []byte) (int, error)

func (*TxResult) MarshalToSizedBuffer

func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxResult) ProtoMessage

func (*TxResult) ProtoMessage()

func (*TxResult) Reset

func (m *TxResult) Reset()

func (*TxResult) Size

func (m *TxResult) Size() (n int)

func (*TxResult) String

func (m *TxResult) String() string

func (*TxResult) Unmarshal

func (m *TxResult) Unmarshal(dAtA []byte) error

func (*TxResult) XXX_DiscardUnknown

func (m *TxResult) XXX_DiscardUnknown()

func (*TxResult) XXX_Marshal

func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxResult) XXX_Merge

func (m *TxResult) XXX_Merge(src proto.Message)

func (*TxResult) XXX_Size

func (m *TxResult) XXX_Size() int

func (*TxResult) XXX_Unmarshal

func (m *TxResult) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) EthereumTx

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Account

func (*UnimplementedQueryServer) Balance

func (*UnimplementedQueryServer) BlockBloom

func (*UnimplementedQueryServer) BlockLogs

func (*UnimplementedQueryServer) Code

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) StaticCall

func (*UnimplementedQueryServer) Storage

func (*UnimplementedQueryServer) TxLogs

func (*UnimplementedQueryServer) TxReceipt

Jump to

Keyboard shortcuts

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