Documentation ¶
Index ¶
- Constants
- Variables
- func IsLondon(ethConfig *params.ChainConfig, height int64) bool
- func ParamKeyTable() paramtypes.KeyTable
- type AccessTuple
- func (*AccessTuple) Descriptor() ([]byte, []int)
- func (m *AccessTuple) Marshal() (dAtA []byte, err error)
- func (m *AccessTuple) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessTuple) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessTuple) ProtoMessage()
- func (m *AccessTuple) Reset()
- func (m *AccessTuple) Size() (n int)
- func (m *AccessTuple) String() string
- func (m *AccessTuple) Unmarshal(dAtA []byte) error
- func (m *AccessTuple) XXX_DiscardUnknown()
- func (m *AccessTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessTuple) XXX_Merge(src proto.Message)
- func (m *AccessTuple) XXX_Size() int
- func (m *AccessTuple) XXX_Unmarshal(b []byte) error
- type ChainConfig
- func (*ChainConfig) Descriptor() ([]byte, []int)
- func (cc ChainConfig) EthereumConfig(chainID *big.Int) *params.ChainConfig
- 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 (cc ChainConfig) Validate() 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 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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (p Params) EIPs() []int
- func (m *Params) GetChainConfig() ChainConfig
- 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 (m *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 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 TraceConfig
- func (*TraceConfig) Descriptor() ([]byte, []int)
- func (m *TraceConfig) GetDebug() bool
- func (m *TraceConfig) GetDisableStack() bool
- func (m *TraceConfig) GetDisableStorage() bool
- func (m *TraceConfig) GetEnableMemory() bool
- func (m *TraceConfig) GetEnableReturnData() bool
- func (m *TraceConfig) GetLimit() int32
- func (m *TraceConfig) GetOverrides() *ChainConfig
- func (m *TraceConfig) GetReexec() uint64
- func (m *TraceConfig) GetTimeout() string
- func (m *TraceConfig) GetTracer() string
- func (m *TraceConfig) Marshal() (dAtA []byte, err error)
- func (m *TraceConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *TraceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TraceConfig) ProtoMessage()
- func (m *TraceConfig) Reset()
- func (m *TraceConfig) Size() (n int)
- func (m *TraceConfig) String() string
- func (m *TraceConfig) Unmarshal(dAtA []byte) error
- func (m *TraceConfig) XXX_DiscardUnknown()
- func (m *TraceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TraceConfig) XXX_Merge(src proto.Message)
- func (m *TraceConfig) XXX_Size() int
- func (m *TraceConfig) 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 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
Constants ¶
const (
DefaultEVMDenom = types.AttoPhoton
)
Variables ¶
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 ( ParamStoreKeyEVMDenom = []byte("EVMDenom") ParamStoreKeyEnableCreate = []byte("EnableCreate") ParamStoreKeyEnableCall = []byte("EnableCall") ParamStoreKeyExtraEIPs = []byte("EnableExtraEIPs") ParamStoreKeyChainConfig = []byte("ChainConfig") // AvailableExtraEIPs define the list of all EIPs that can be enabled by the // EVM interpreter. These EIPs are applied in order and can override the // instruction sets from the latest hard fork enabled by the ChainConfig. For // more info check: // https://github.com/ethereum/go-ethereum/blob/master/core/vm/interpreter.go#L97 AvailableExtraEIPs = []int64{1344, 1884, 2200, 2929, 3198, 3529} )
Parameter keys
var DefaultMinGasMultiplier = sdk.NewDecWithPrec(50, 2)
DefaultMinGasMultiplier is 0.5 or 50%
Functions ¶
func IsLondon ¶
func IsLondon(ethConfig *params.ChainConfig, height int64) bool
IsLondon returns if london hardfork is enabled.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
Types ¶
type AccessTuple ¶
type AccessTuple struct { // hex formatted ethereum address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // hex formatted hashes of the storage keys StorageKeys []string `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storageKeys"` }
AccessTuple is the element type of an access list.
func (*AccessTuple) Descriptor ¶
func (*AccessTuple) Descriptor() ([]byte, []int)
func (*AccessTuple) Marshal ¶
func (m *AccessTuple) Marshal() (dAtA []byte, err error)
func (*AccessTuple) MarshalToSizedBuffer ¶
func (m *AccessTuple) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessTuple) ProtoMessage ¶
func (*AccessTuple) ProtoMessage()
func (*AccessTuple) Reset ¶
func (m *AccessTuple) Reset()
func (*AccessTuple) Size ¶
func (m *AccessTuple) Size() (n int)
func (*AccessTuple) String ¶
func (m *AccessTuple) String() string
func (*AccessTuple) Unmarshal ¶
func (m *AccessTuple) Unmarshal(dAtA []byte) error
func (*AccessTuple) XXX_DiscardUnknown ¶
func (m *AccessTuple) XXX_DiscardUnknown()
func (*AccessTuple) XXX_Marshal ¶
func (m *AccessTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessTuple) XXX_Merge ¶
func (m *AccessTuple) XXX_Merge(src proto.Message)
func (*AccessTuple) XXX_Size ¶
func (m *AccessTuple) XXX_Size() int
func (*AccessTuple) XXX_Unmarshal ¶
func (m *AccessTuple) XXX_Unmarshal(b []byte) error
type ChainConfig ¶
type ChainConfig struct { // Homestead switch block (nil no fork, 0 = already homestead) HomesteadBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 179-byte string literal not displayed */ // TheDAO hard-fork switch block (nil no fork) DAOForkBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 174-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 (nil no fork) EIP150Block *github_com_cosmos_cosmos_sdk_types.Int `` /* 167-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 `` /* 167-byte string literal not displayed */ // EIP158 HF block EIP158Block *github_com_cosmos_cosmos_sdk_types.Int `` /* 167-byte string literal not displayed */ // Byzantium switch block (nil no fork, 0 = already on byzantium) ByzantiumBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 179-byte string literal not displayed */ // Constantinople switch block (nil no fork, 0 = already activated) ConstantinopleBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 199-byte string literal not displayed */ // Petersburg switch block (nil same as Constantinople) PetersburgBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 184-byte string literal not displayed */ // Istanbul switch block (nil no fork, 0 = already on istanbul) IstanbulBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 176-byte string literal not displayed */ // Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated) MuirGlacierBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 191-byte string literal not displayed */ // Berlin switch block (nil = no fork, 0 = already on berlin) BerlinBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 168-byte string literal not displayed */ // London switch block (nil = no fork, 0 = already on london) LondonBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 168-byte string literal not displayed */ // Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) ArrowGlacierBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 195-byte string literal not displayed */ // EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in merge proceedings) MergeForkBlock *github_com_cosmos_cosmos_sdk_types.Int `` /* 183-byte string literal not displayed */ }
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values instead of *big.Int.
func DefaultChainConfig ¶
func DefaultChainConfig() ChainConfig
DefaultChainConfig returns default evm parameters.
func (*ChainConfig) Descriptor ¶
func (*ChainConfig) Descriptor() ([]byte, []int)
func (ChainConfig) EthereumConfig ¶
func (cc ChainConfig) EthereumConfig(chainID *big.Int) *params.ChainConfig
EthereumConfig returns an Ethereum ChainConfig for EVM state transitions. All the negative or nil values are converted to nil
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) Validate ¶
func (cc ChainConfig) Validate() error
Validate performs a basic validation of the ChainConfig params. The function will return an error if any of the block values is uninitialized (i.e nil) or if the EIP150Hash is an invalid hash.
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 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 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"` // chain config defines the EVM chain configuration parameters ChainConfig ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config" yaml:"chain_config"` }
Params defines the EVM module parameters
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default evm parameters ExtraEIPs is empty to prevent overriding the latest hard fork instruction set
func NewParams ¶
func NewParams(evmDenom string, enableCreate, enableCall bool, config ChainConfig, extraEIPs ...int64) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetChainConfig ¶
func (m *Params) GetChainConfig() ChainConfig
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 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 TraceConfig ¶
type TraceConfig struct { // custom javascript tracer Tracer string `protobuf:"bytes,1,opt,name=tracer,proto3" json:"tracer,omitempty"` // overrides the default timeout of 5 seconds for JavaScript-based tracing // calls Timeout string `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // number of blocks the tracer is willing to go back Reexec uint64 `protobuf:"varint,3,opt,name=reexec,proto3" json:"reexec,omitempty"` // disable stack capture DisableStack bool `protobuf:"varint,5,opt,name=disable_stack,json=disableStack,proto3" json:"disableStack"` // disable storage capture DisableStorage bool `protobuf:"varint,6,opt,name=disable_storage,json=disableStorage,proto3" json:"disableStorage"` // print output during capture end Debug bool `protobuf:"varint,8,opt,name=debug,proto3" json:"debug,omitempty"` // maximum length of output, but zero means unlimited Limit int32 `protobuf:"varint,9,opt,name=limit,proto3" json:"limit,omitempty"` // Chain overrides, can be used to execute a trace using future fork rules Overrides *ChainConfig `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"` // enable memory capture EnableMemory bool `protobuf:"varint,11,opt,name=enable_memory,json=enableMemory,proto3" json:"enableMemory"` // enable return data capture EnableReturnData bool `protobuf:"varint,12,opt,name=enable_return_data,json=enableReturnData,proto3" json:"enableReturnData"` }
TraceConfig holds extra parameters to trace functions.
func (*TraceConfig) Descriptor ¶
func (*TraceConfig) Descriptor() ([]byte, []int)
func (*TraceConfig) GetDebug ¶
func (m *TraceConfig) GetDebug() bool
func (*TraceConfig) GetDisableStack ¶
func (m *TraceConfig) GetDisableStack() bool
func (*TraceConfig) GetDisableStorage ¶
func (m *TraceConfig) GetDisableStorage() bool
func (*TraceConfig) GetEnableMemory ¶
func (m *TraceConfig) GetEnableMemory() bool
func (*TraceConfig) GetEnableReturnData ¶
func (m *TraceConfig) GetEnableReturnData() bool
func (*TraceConfig) GetLimit ¶
func (m *TraceConfig) GetLimit() int32
func (*TraceConfig) GetOverrides ¶
func (m *TraceConfig) GetOverrides() *ChainConfig
func (*TraceConfig) GetReexec ¶
func (m *TraceConfig) GetReexec() uint64
func (*TraceConfig) GetTimeout ¶
func (m *TraceConfig) GetTimeout() string
func (*TraceConfig) GetTracer ¶
func (m *TraceConfig) GetTracer() string
func (*TraceConfig) Marshal ¶
func (m *TraceConfig) Marshal() (dAtA []byte, err error)
func (*TraceConfig) MarshalToSizedBuffer ¶
func (m *TraceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TraceConfig) ProtoMessage ¶
func (*TraceConfig) ProtoMessage()
func (*TraceConfig) Reset ¶
func (m *TraceConfig) Reset()
func (*TraceConfig) Size ¶
func (m *TraceConfig) Size() (n int)
func (*TraceConfig) String ¶
func (m *TraceConfig) String() string
func (*TraceConfig) Unmarshal ¶
func (m *TraceConfig) Unmarshal(dAtA []byte) error
func (*TraceConfig) XXX_DiscardUnknown ¶
func (m *TraceConfig) XXX_DiscardUnknown()
func (*TraceConfig) XXX_Marshal ¶
func (m *TraceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TraceConfig) XXX_Merge ¶
func (m *TraceConfig) XXX_Merge(src proto.Message)
func (*TraceConfig) XXX_Size ¶
func (m *TraceConfig) XXX_Size() int
func (*TraceConfig) XXX_Unmarshal ¶
func (m *TraceConfig) 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 (*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 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()