Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstancesManager ¶
type InstancesManager struct { }
func (*InstancesManager) NewRuntimeInstance ¶
func (*InstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method string, codePath string, contract *commonPb.Contract, byteCode []byte, log protocol.Logger) (protocol.RuntimeInstance, error)
func (*InstancesManager) StartVM ¶
func (*InstancesManager) StartVM() error
func (*InstancesManager) StopVM ¶
func (*InstancesManager) StopVM() error
type RuntimeInstance ¶
type RuntimeInstance struct { Method string // invoke contract method ChainId string // chain id Address *evmutils.Int //address Contract *commonPb.Contract // contract info Log protocol.Logger TxSimContext protocol.TxSimContext ContractEvent []*commonPb.ContractEvent }
RuntimeInstance evm runtime
func (*RuntimeInstance) Invoke ¶
func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, method string, byteCode []byte, parameters map[string][]byte, txSimContext protocol.TxSimContext, gasUsed uint64) ( contractResult *commonPb.ContractResult, specialTxType protocol.ExecOrderTxType)
Invoke contract by call vm, implement protocol.RuntimeInstance
Click to show internal directories.
Click to hide internal directories.