Documentation ¶
Index ¶
- type Config
- type Keeper
- type Result
- type Tx
- func (tx *Tx) AnalyzeStart(tag string)
- func (tx *Tx) AnalyzeStop(tag string)
- func (tx *Tx) Commit(msg *types.MsgEthereumTx, result *Result)
- func (tx *Tx) DecorateResult(inResult *Result, inErr error) (result *sdk.Result, err error)
- func (tx *Tx) Dispose()
- func (tx *Tx) EmitEvent(msg *types.MsgEthereumTx, result *Result)
- func (tx *Tx) FinalizeWatcher(msg *types.MsgEthereumTx, account authexported.Account, err error)
- func (tx *Tx) GetChainConfig() (types.ChainConfig, bool)
- func (tx *Tx) GetSenderAccount() authexported.Account
- func (tx *Tx) Prepare(msg *types.MsgEthereumTx) (err error)
- func (tx *Tx) RefundFeesWatcher(account authexported.Account, ethereumTx *types.MsgEthereumTx)
- func (tx *Tx) ResetWatcher(account authexported.Account)
- func (tx *Tx) SaveTx(msg *types.MsgEthereumTx)
- func (tx *Tx) Transition(config types.ChainConfig) (result Result, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
Keeper alias of keeper.Keeper, to solve import circle. also evm.Keeper is alias keeper.Keeper
type Result ¶
type Result struct { ExecResult *types.ExecutionResult ResultData *types.ResultData InnerTxs interface{} Erc20Contracts interface{} }
Result evm execute result
type Tx ¶
type Tx struct { Ctx sdk.Context Keeper *Keeper StateTransition types.StateTransition // contains filtered or unexported fields }
Tx evm tx
func (*Tx) AnalyzeStart ¶
func (*Tx) AnalyzeStop ¶
func (*Tx) Commit ¶
func (tx *Tx) Commit(msg *types.MsgEthereumTx, result *Result)
Commit check Tx do not need
func (*Tx) DecorateResult ¶
DecorateResult TraceTxLog situation Decorate the result it was replaced to trace logs when trace tx even if err != nil
func (*Tx) FinalizeWatcher ¶
func (tx *Tx) FinalizeWatcher(msg *types.MsgEthereumTx, account authexported.Account, err error)
FinalizeWatcher check Tx do not need this
func (*Tx) GetChainConfig ¶
func (tx *Tx) GetChainConfig() (types.ChainConfig, bool)
GetChainConfig get chain config, the chain config may cached
func (*Tx) GetSenderAccount ¶
func (tx *Tx) GetSenderAccount() authexported.Account
GetSenderAccount check Tx do not need this
func (*Tx) Prepare ¶
func (tx *Tx) Prepare(msg *types.MsgEthereumTx) (err error)
Prepare convert msg to state transition
func (*Tx) RefundFeesWatcher ¶
func (tx *Tx) RefundFeesWatcher(account authexported.Account, ethereumTx *types.MsgEthereumTx)
RefundFeesWatcher refund the watcher, check Tx do not save state so. skip
func (*Tx) ResetWatcher ¶
func (tx *Tx) ResetWatcher(account authexported.Account)
ResetWatcher check Tx do not need this
func (*Tx) SaveTx ¶
func (tx *Tx) SaveTx(msg *types.MsgEthereumTx)
SaveTx check Tx do not transition state db
func (*Tx) Transition ¶
func (tx *Tx) Transition(config types.ChainConfig) (result Result, err error)
Transition execute evm tx