Documentation ¶
Index ¶
- Constants
- Variables
- func EthSecp256k1Option() keyring.Option
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type BytesList
- func (*BytesList) Descriptor() ([]byte, []int)
- func (m *BytesList) Marshal() (dAtA []byte, err error)
- func (m *BytesList) MarshalTo(dAtA []byte) (int, error)
- func (m *BytesList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BytesList) ProtoMessage()
- func (m *BytesList) Reset()
- func (m *BytesList) Size() (n int)
- func (m *BytesList) String() string
- func (m *BytesList) Unmarshal(dAtA []byte) error
- func (m *BytesList) XXX_DiscardUnknown()
- func (m *BytesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BytesList) XXX_Merge(src proto.Message)
- func (m *BytesList) XXX_Size() int
- func (m *BytesList) XXX_Unmarshal(b []byte) error
- type ChainConfig
- func (*ChainConfig) Descriptor() ([]byte, []int)
- func (m *ChainConfig) GetDAOForkSupport() bool
- func (m *ChainConfig) GetEIP150Hash() string
- func (m *ChainConfig) Marshal() (dAtA []byte, err error)
- func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainConfig) ProtoMessage()
- func (m *ChainConfig) Reset()
- func (m *ChainConfig) Size() (n int)
- func (m *ChainConfig) String() string
- func (m *ChainConfig) Unmarshal(dAtA []byte) error
- func (m *ChainConfig) XXX_DiscardUnknown()
- func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainConfig) XXX_Merge(src proto.Message)
- func (m *ChainConfig) XXX_Size() int
- func (m *ChainConfig) XXX_Unmarshal(b []byte) error
- type EIP155Signer
- func (*EIP155Signer) Descriptor() ([]byte, []int)
- func (m *EIP155Signer) Marshal() (dAtA []byte, err error)
- func (m *EIP155Signer) MarshalTo(dAtA []byte) (int, error)
- func (m *EIP155Signer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EIP155Signer) ProtoMessage()
- func (m *EIP155Signer) Reset()
- func (m *EIP155Signer) Size() (n int)
- func (m *EIP155Signer) String() string
- func (m *EIP155Signer) Unmarshal(dAtA []byte) error
- func (m *EIP155Signer) XXX_DiscardUnknown()
- func (m *EIP155Signer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EIP155Signer) XXX_Merge(src proto.Message)
- func (m *EIP155Signer) XXX_Size() int
- func (m *EIP155Signer) XXX_Unmarshal(b []byte) error
- type EthAccount
- func (*EthAccount) Descriptor() ([]byte, []int)
- func (m *EthAccount) Marshal() (dAtA []byte, err error)
- func (m *EthAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *EthAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EthAccount) ProtoMessage()
- func (m *EthAccount) Reset()
- func (m *EthAccount) Size() (n int)
- func (m *EthAccount) Unmarshal(dAtA []byte) error
- func (m *EthAccount) XXX_DiscardUnknown()
- func (m *EthAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EthAccount) XXX_Merge(src proto.Message)
- func (m *EthAccount) XXX_Size() int
- func (m *EthAccount) XXX_Unmarshal(b []byte) error
- type ExtensionOptionsEthereumTx
- func (*ExtensionOptionsEthereumTx) Descriptor() ([]byte, []int)
- func (m *ExtensionOptionsEthereumTx) Marshal() (dAtA []byte, err error)
- func (m *ExtensionOptionsEthereumTx) MarshalTo(dAtA []byte) (int, error)
- func (m *ExtensionOptionsEthereumTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtensionOptionsEthereumTx) ProtoMessage()
- func (m *ExtensionOptionsEthereumTx) Reset()
- func (m *ExtensionOptionsEthereumTx) Size() (n int)
- func (m *ExtensionOptionsEthereumTx) String() string
- func (m *ExtensionOptionsEthereumTx) Unmarshal(dAtA []byte) error
- func (m *ExtensionOptionsEthereumTx) XXX_DiscardUnknown()
- func (m *ExtensionOptionsEthereumTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtensionOptionsEthereumTx) XXX_Merge(src proto.Message)
- func (m *ExtensionOptionsEthereumTx) XXX_Size() int
- func (m *ExtensionOptionsEthereumTx) XXX_Unmarshal(b []byte) error
- type ExtensionOptionsWeb3Tx
- func (*ExtensionOptionsWeb3Tx) Descriptor() ([]byte, []int)
- func (m *ExtensionOptionsWeb3Tx) Marshal() (dAtA []byte, err error)
- func (m *ExtensionOptionsWeb3Tx) MarshalTo(dAtA []byte) (int, error)
- func (m *ExtensionOptionsWeb3Tx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtensionOptionsWeb3Tx) ProtoMessage()
- func (m *ExtensionOptionsWeb3Tx) Reset()
- func (m *ExtensionOptionsWeb3Tx) Size() (n int)
- func (m *ExtensionOptionsWeb3Tx) String() string
- func (m *ExtensionOptionsWeb3Tx) Unmarshal(dAtA []byte) error
- func (m *ExtensionOptionsWeb3Tx) XXX_DiscardUnknown()
- func (m *ExtensionOptionsWeb3Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtensionOptionsWeb3Tx) XXX_Merge(src proto.Message)
- func (m *ExtensionOptionsWeb3Tx) XXX_Size() int
- func (m *ExtensionOptionsWeb3Tx) XXX_Unmarshal(b []byte) error
- type ExtensionOptionsWeb3TxI
- type Log
- func (*Log) Descriptor() ([]byte, []int)
- func (m *Log) GetAddress() string
- func (m *Log) GetBlockHash() string
- func (m *Log) GetBlockNumber() uint64
- func (m *Log) GetData() []byte
- func (m *Log) GetIndex() uint64
- func (m *Log) GetRemoved() bool
- func (m *Log) GetTopics() []string
- func (m *Log) GetTxHash() string
- func (m *Log) GetTxIndex() uint64
- func (m *Log) Marshal() (dAtA []byte, err error)
- func (m *Log) MarshalTo(dAtA []byte) (int, error)
- func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Log) ProtoMessage()
- func (m *Log) Reset()
- func (m *Log) Size() (n int)
- func (m *Log) String() string
- func (m *Log) Unmarshal(dAtA []byte) error
- func (m *Log) XXX_DiscardUnknown()
- func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Log) XXX_Merge(src proto.Message)
- func (m *Log) XXX_Size() int
- func (m *Log) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgEthereumTx
- func (*MsgEthereumTx) Descriptor() ([]byte, []int)
- func (m *MsgEthereumTx) Marshal() (dAtA []byte, err error)
- func (m *MsgEthereumTx) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEthereumTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEthereumTx) ProtoMessage()
- func (m *MsgEthereumTx) Reset()
- func (m *MsgEthereumTx) Size() (n int)
- func (m *MsgEthereumTx) String() string
- func (m *MsgEthereumTx) Unmarshal(dAtA []byte) error
- func (m *MsgEthereumTx) XXX_DiscardUnknown()
- func (m *MsgEthereumTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEthereumTx) XXX_Merge(src proto.Message)
- func (m *MsgEthereumTx) XXX_Size() int
- func (m *MsgEthereumTx) XXX_Unmarshal(b []byte) error
- type MsgEthereumTxResponse
- func (*MsgEthereumTxResponse) Descriptor() ([]byte, []int)
- func (m *MsgEthereumTxResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEthereumTxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEthereumTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEthereumTxResponse) ProtoMessage()
- func (m *MsgEthereumTxResponse) Reset()
- func (m *MsgEthereumTxResponse) Size() (n int)
- func (m *MsgEthereumTxResponse) String() string
- func (m *MsgEthereumTxResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEthereumTxResponse) XXX_DiscardUnknown()
- func (m *MsgEthereumTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEthereumTxResponse) XXX_Merge(src proto.Message)
- func (m *MsgEthereumTxResponse) XXX_Size() int
- func (m *MsgEthereumTxResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableCall() bool
- func (m *Params) GetEnableCreate() bool
- func (m *Params) GetEvmDenom() string
- func (m *Params) GetExtraEIPs() []int64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PrivKey
- func (privKey *PrivKey) Bytes() []byte
- func (*PrivKey) Descriptor() ([]byte, []int)
- func (privKey *PrivKey) Equals(other cryptotypes.LedgerPrivKey) bool
- func (m *PrivKey) GetKey() []byte
- func (m *PrivKey) Marshal() (dAtA []byte, err error)
- func (privKey PrivKey) MarshalAmino() ([]byte, error)
- func (privKey PrivKey) MarshalAminoJSON() ([]byte, error)
- func (m *PrivKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PrivKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PrivKey) ProtoMessage()
- func (privKey PrivKey) PubKey() cryptotypes.PubKey
- func (m *PrivKey) Reset()
- func (privKey PrivKey) Sign(msg []byte) ([]byte, error)
- func (m *PrivKey) Size() (n int)
- func (m *PrivKey) String() string
- func (privKey PrivKey) ToECDSA() *ecdsa.PrivateKey
- func (privKey *PrivKey) Type() string
- func (m *PrivKey) Unmarshal(dAtA []byte) error
- func (privKey *PrivKey) UnmarshalAmino(bz []byte) error
- func (privKey *PrivKey) UnmarshalAminoJSON(bz []byte) error
- func (m *PrivKey) XXX_DiscardUnknown()
- func (m *PrivKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrivKey) XXX_Merge(src proto.Message)
- func (m *PrivKey) XXX_Size() int
- func (m *PrivKey) XXX_Unmarshal(b []byte) error
- type PubKey
- func (pubKey PubKey) Address() tmcrypto.Address
- func (pubKey PubKey) Bytes() []byte
- func (*PubKey) Descriptor() ([]byte, []int)
- func (pubKey *PubKey) Equals(other cryptotypes.PubKey) bool
- func (m *PubKey) GetKey() []byte
- func (m *PubKey) Marshal() (dAtA []byte, err error)
- func (pubKey PubKey) MarshalAmino() ([]byte, error)
- func (pubKey PubKey) MarshalAminoJSON() ([]byte, error)
- func (m *PubKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubKey) ProtoMessage()
- func (m *PubKey) Reset()
- func (m *PubKey) Size() (n int)
- func (pubKey *PubKey) String() string
- func (pubKey *PubKey) Type() string
- func (m *PubKey) Unmarshal(dAtA []byte) error
- func (pubKey *PubKey) UnmarshalAmino(bz []byte) error
- func (pubKey *PubKey) UnmarshalAminoJSON(bz []byte) error
- func (pubKey PubKey) VerifySignature(msg []byte, sig []byte) bool
- func (m *PubKey) XXX_DiscardUnknown()
- func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKey) XXX_Merge(src proto.Message)
- func (m *PubKey) XXX_Size() int
- func (m *PubKey) XXX_Unmarshal(b []byte) error
- type SigCache
- func (*SigCache) Descriptor() ([]byte, []int)
- func (m *SigCache) Marshal() (dAtA []byte, err error)
- func (m *SigCache) MarshalTo(dAtA []byte) (int, error)
- func (m *SigCache) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SigCache) ProtoMessage()
- func (m *SigCache) Reset()
- func (m *SigCache) Size() (n int)
- func (m *SigCache) String() string
- func (m *SigCache) Unmarshal(dAtA []byte) error
- func (m *SigCache) XXX_DiscardUnknown()
- func (m *SigCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SigCache) XXX_Merge(src proto.Message)
- func (m *SigCache) XXX_Size() int
- func (m *SigCache) XXX_Unmarshal(b []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetKey() string
- func (m *State) GetValue() string
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type TransactionLogs
- func (*TransactionLogs) Descriptor() ([]byte, []int)
- func (m *TransactionLogs) GetHash() string
- func (m *TransactionLogs) GetLogs() []*Log
- func (m *TransactionLogs) Marshal() (dAtA []byte, err error)
- func (m *TransactionLogs) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionLogs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionLogs) ProtoMessage()
- func (m *TransactionLogs) Reset()
- func (m *TransactionLogs) Size() (n int)
- func (m *TransactionLogs) String() string
- func (m *TransactionLogs) Unmarshal(dAtA []byte) error
- func (m *TransactionLogs) XXX_DiscardUnknown()
- func (m *TransactionLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionLogs) XXX_Merge(src proto.Message)
- func (m *TransactionLogs) XXX_Size() int
- func (m *TransactionLogs) XXX_Unmarshal(b []byte) error
- type TxData
- func (*TxData) Descriptor() ([]byte, []int)
- func (m *TxData) Marshal() (dAtA []byte, err error)
- func (m *TxData) MarshalTo(dAtA []byte) (int, error)
- func (m *TxData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxData) ProtoMessage()
- func (m *TxData) Reset()
- func (m *TxData) Size() (n int)
- func (m *TxData) String() string
- func (m *TxData) Unmarshal(dAtA []byte) error
- func (m *TxData) XXX_DiscardUnknown()
- func (m *TxData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxData) XXX_Merge(src proto.Message)
- func (m *TxData) XXX_Size() int
- func (m *TxData) XXX_Unmarshal(b []byte) error
- type TxReceipt
- func (*TxReceipt) Descriptor() ([]byte, []int)
- func (m *TxReceipt) Marshal() (dAtA []byte, err error)
- func (m *TxReceipt) MarshalTo(dAtA []byte) (int, error)
- func (m *TxReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxReceipt) ProtoMessage()
- func (m *TxReceipt) Reset()
- func (m *TxReceipt) Size() (n int)
- func (m *TxReceipt) String() string
- func (m *TxReceipt) Unmarshal(dAtA []byte) error
- func (m *TxReceipt) XXX_DiscardUnknown()
- func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxReceipt) XXX_Merge(src proto.Message)
- func (m *TxReceipt) XXX_Size() int
- func (m *TxReceipt) XXX_Unmarshal(b []byte) error
- type TxResult
- func (*TxResult) Descriptor() ([]byte, []int)
- func (m *TxResult) Marshal() (dAtA []byte, err error)
- func (m *TxResult) MarshalTo(dAtA []byte) (int, error)
- func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxResult) ProtoMessage()
- func (m *TxResult) Reset()
- func (m *TxResult) Size() (n int)
- func (m *TxResult) String() string
- func (m *TxResult) Unmarshal(dAtA []byte) error
- func (m *TxResult) XXX_DiscardUnknown()
- func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxResult) XXX_Merge(src proto.Message)
- func (m *TxResult) XXX_Size() int
- func (m *TxResult) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
Constants ¶
const ( // PrivKeySize defines the size of the PrivKey bytes PrivKeySize = 32 // PubKeySize defines the size of the PubKey bytes PubKeySize = 33 // KeyType is the string constant for the Secp256k1 algorithm KeyType = "eth_secp256k1" )
const ( // PrivKeyName defines the amino encoding name for the EthSecp256k1 private key PrivKeyName = "injective/PrivKeyEthSecp256k1" // PubKeyName defines the amino encoding name for the EthSecp256k1 public key PubKeyName = "injective/PubKeyEthSecp256k1" )
Amino encoding names
const ( // EthSecp256k1Type defines the ECDSA secp256k1 used on Ethereum EthSecp256k1Type = hd.PubKeyType(KeyType) )
Variables ¶
var ( ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") )
var ( // SupportedAlgorithms defines the list of signing algorithms used on Ethermint: // - eth_secp256k1 (Ethereum) // - secp256k1 (Tendermint) SupportedAlgorithms = keyring.SigningAlgoList{EthSecp256k1, hd.Secp256k1} // SupportedAlgorithmsLedger defines the list of signing algorithms used on Ethermint for the Ledger device: // - eth_secp256k1 (Ethereum) // - secp256k1 (Tendermint) SupportedAlgorithmsLedger = keyring.SigningAlgoList{EthSecp256k1, hd.Secp256k1} )
var ( ErrInvalidLengthEvm = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvm = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvm = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthKeys = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowKeys = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupKeys = fmt.Errorf("proto: unexpected end of group") )
var ( ParamStoreKeyEVMDenom = []byte("EVMDenom") ParamStoreKeyEnableCreate = []byte("EnableCreate") ParamStoreKeyEnableCall = []byte("EnableCall") ParamStoreKeyExtraEIPs = []byte("EnableExtraEIPs") )
Parameter keys
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
// EthSecp256k1 uses the Bitcoin secp256k1 ECDSA parameters.
EthSecp256k1 = ethSecp256k1Algo{}
)
Functions ¶
func EthSecp256k1Option ¶
EthSecp256k1Option defines a function keys options for the ethereum Secp256k1 curve.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the ethsecp256k1 implementations of tendermint crypto types.
func RegisterMsgServer ¶
Types ¶
type BytesList ¶
type BytesList struct {
Bytes [][]byte `protobuf:"bytes,1,rep,name=bytes,proto3" json:"bytes,omitempty"`
}
func (*BytesList) Descriptor ¶
func (*BytesList) MarshalToSizedBuffer ¶
func (*BytesList) ProtoMessage ¶
func (*BytesList) ProtoMessage()
func (*BytesList) XXX_DiscardUnknown ¶
func (m *BytesList) XXX_DiscardUnknown()
func (*BytesList) XXX_Marshal ¶
func (*BytesList) XXX_Unmarshal ¶
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) 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) 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 EthAccount ¶
type EthAccount struct { *types.BaseAccount `` /* 136-byte string literal not displayed */ CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty" yaml:"code_hash"` }
EthAccount implements the authtypes.AccountI interface and embeds an authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.
func (*EthAccount) Descriptor ¶
func (*EthAccount) Descriptor() ([]byte, []int)
func (*EthAccount) Marshal ¶
func (m *EthAccount) Marshal() (dAtA []byte, err error)
func (*EthAccount) MarshalToSizedBuffer ¶
func (m *EthAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EthAccount) ProtoMessage ¶
func (*EthAccount) ProtoMessage()
func (*EthAccount) Reset ¶
func (m *EthAccount) Reset()
func (*EthAccount) Size ¶
func (m *EthAccount) Size() (n int)
func (*EthAccount) Unmarshal ¶
func (m *EthAccount) Unmarshal(dAtA []byte) error
func (*EthAccount) XXX_DiscardUnknown ¶
func (m *EthAccount) XXX_DiscardUnknown()
func (*EthAccount) XXX_Marshal ¶
func (m *EthAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EthAccount) XXX_Merge ¶
func (m *EthAccount) XXX_Merge(src proto.Message)
func (*EthAccount) XXX_Size ¶
func (m *EthAccount) XXX_Size() int
func (*EthAccount) XXX_Unmarshal ¶
func (m *EthAccount) 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 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 ExtensionOptionsWeb3TxI ¶
type ExtensionOptionsWeb3TxI interface{}
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) GetAddress ¶
func (*Log) GetBlockHash ¶
func (*Log) GetBlockNumber ¶
func (*Log) GetRemoved ¶
func (*Log) GetTxIndex ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) XXX_DiscardUnknown ¶
func (m *Log) XXX_DiscardUnknown()
func (*Log) XXX_Unmarshal ¶
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 (*MsgEthereumTx) Descriptor ¶
func (*MsgEthereumTx) Descriptor() ([]byte, []int)
func (*MsgEthereumTx) Marshal ¶
func (m *MsgEthereumTx) Marshal() (dAtA []byte, err error)
func (*MsgEthereumTx) MarshalToSizedBuffer ¶
func (m *MsgEthereumTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEthereumTx) ProtoMessage ¶
func (*MsgEthereumTx) ProtoMessage()
func (*MsgEthereumTx) Reset ¶
func (m *MsgEthereumTx) Reset()
func (*MsgEthereumTx) Size ¶
func (m *MsgEthereumTx) Size() (n int)
func (*MsgEthereumTx) String ¶
func (m *MsgEthereumTx) String() string
func (*MsgEthereumTx) Unmarshal ¶
func (m *MsgEthereumTx) Unmarshal(dAtA []byte) error
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 (*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 (*Params) Descriptor ¶
func (*Params) GetEnableCall ¶
func (*Params) GetEnableCreate ¶
func (*Params) GetEvmDenom ¶
func (*Params) GetExtraEIPs ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PrivKey ¶
type PrivKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
PrivKey defines a type alias for an ecdsa.PrivateKey that implements Tendermint's PrivateKey interface.
func GenerateKey ¶
GenerateKey generates a new random private key. It returns an error upon failure.
func (*PrivKey) Descriptor ¶
func (*PrivKey) Equals ¶
func (privKey *PrivKey) Equals(other cryptotypes.LedgerPrivKey) bool
Equals returns true if two ECDSA private keys are equal and false otherwise.
func (PrivKey) MarshalAmino ¶
MarshalAmino overrides Amino binary marshalling.
func (PrivKey) MarshalAminoJSON ¶
MarshalAminoJSON overrides Amino JSON marshalling.
func (*PrivKey) MarshalToSizedBuffer ¶
func (*PrivKey) ProtoMessage ¶
func (*PrivKey) ProtoMessage()
func (PrivKey) PubKey ¶
func (privKey PrivKey) PubKey() cryptotypes.PubKey
PubKey returns the ECDSA private key's public key.
func (PrivKey) Sign ¶
Sign creates a recoverable ECDSA signature on the secp256k1 curve over the Keccak256 hash of the provided message. The produced signature is 65 bytes where the last byte contains the recovery ID.
func (PrivKey) ToECDSA ¶
func (privKey PrivKey) ToECDSA() *ecdsa.PrivateKey
ToECDSA returns the ECDSA private key as a reference to ecdsa.PrivateKey type. The function will panic if the private key is invalid.
func (*PrivKey) UnmarshalAmino ¶
UnmarshalAmino overrides Amino binary marshalling.
func (*PrivKey) UnmarshalAminoJSON ¶
UnmarshalAminoJSON overrides Amino JSON marshalling.
func (*PrivKey) XXX_DiscardUnknown ¶
func (m *PrivKey) XXX_DiscardUnknown()
func (*PrivKey) XXX_Marshal ¶
func (*PrivKey) XXX_Unmarshal ¶
type PubKey ¶
type PubKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
PubKey defines a type alias for an ecdsa.PublicKey that implements Tendermint's PubKey interface. It represents the 33-byte compressed public key format.
func (PubKey) Address ¶
Address returns the address of the ECDSA public key. The function will panic if the public key is invalid.
func (*PubKey) Descriptor ¶
func (*PubKey) Equals ¶
func (pubKey *PubKey) Equals(other cryptotypes.PubKey) bool
Equals returns true if the pubkey type is the same and their bytes are deeply equal.
func (PubKey) MarshalAmino ¶
MarshalAmino overrides Amino binary marshalling.
func (PubKey) MarshalAminoJSON ¶
MarshalAminoJSON overrides Amino JSON marshalling.
func (*PubKey) MarshalToSizedBuffer ¶
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
func (*PubKey) UnmarshalAmino ¶
UnmarshalAmino overrides Amino binary marshalling.
func (*PubKey) UnmarshalAminoJSON ¶
UnmarshalAminoJSON overrides Amino JSON marshalling.
func (PubKey) VerifySignature ¶
VerifySignature verifies that the ECDSA public key created a given signature over the provided message. It will calculate the Keccak256 hash of the message prior to verification.
func (*PubKey) XXX_DiscardUnknown ¶
func (m *PubKey) XXX_DiscardUnknown()
func (*PubKey) XXX_Marshal ¶
func (*PubKey) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*SigCache) ProtoMessage ¶
func (*SigCache) ProtoMessage()
func (*SigCache) XXX_DiscardUnknown ¶
func (m *SigCache) XXX_DiscardUnknown()
func (*SigCache) XXX_Marshal ¶
func (*SigCache) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
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 (*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) 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) MarshalToSizedBuffer ¶
func (*TxData) ProtoMessage ¶
func (*TxData) ProtoMessage()
func (*TxData) XXX_DiscardUnknown ¶
func (m *TxData) XXX_DiscardUnknown()
func (*TxData) XXX_Marshal ¶
func (*TxData) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*TxReceipt) ProtoMessage ¶
func (*TxReceipt) ProtoMessage()
func (*TxReceipt) XXX_DiscardUnknown ¶
func (m *TxReceipt) XXX_DiscardUnknown()
func (*TxReceipt) XXX_Marshal ¶
func (*TxReceipt) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*TxResult) ProtoMessage ¶
func (*TxResult) ProtoMessage()
func (*TxResult) XXX_DiscardUnknown ¶
func (m *TxResult) XXX_DiscardUnknown()
func (*TxResult) XXX_Marshal ¶
func (*TxResult) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) EthereumTx ¶
func (*UnimplementedMsgServer) EthereumTx(ctx context.Context, req *MsgEthereumTx) (*MsgEthereumTxResponse, error)