Documentation ¶
Index ¶
- Variables
- type VM
- type VmCreator
- type VmImpl
- func (vm *VmImpl) ContractAddr(tx *types.Transaction, from *common.Address) common.Address
- func (vm *VmImpl) IsWasm(tx *types.Transaction) bool
- func (vm *VmImpl) Read(contractAddr common.Address, method string, args ...[]byte) ([]byte, error)
- func (vm *VmImpl) Run(tx *types.Transaction, from *common.Address, gasLimit int64, ...) *types.TxReceipt
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnexpectedTx = errors.New("unexpected tx type")
)
Functions ¶
This section is empty.
Types ¶
type VM ¶
type VM interface { Run(tx *types.Transaction, from *common.Address, gasLimit int64, commitToEnv bool) *types.TxReceipt Read(contractAddr common.Address, method string, args ...[]byte) ([]byte, error) IsWasm(tx *types.Transaction) bool ContractAddr(tx *types.Transaction, from *common.Address) common.Address }
Click to show internal directories.
Click to hide internal directories.