Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + func Execute(code, input []byte, cfg *Config) ([]byte, *state.StateDB, error) + func NewEnv(cfg *Config, state *state.StateDB) vm.Environment + type Config struct + BlockNumber *big.Int + Coinbase common.Address + Debug bool + Difficulty *big.Int + DisableJit bool + GasLimit *big.Int + GasPrice *big.Int + GetHashFn func(n uint64) common.Hash + Origin common.Address + Time *big.Int + Value *big.Int + type Env struct + func (self *Env) AddLog(log *vm.Log) + func (self *Env) AddStructLog(log vm.StructLog) + func (self *Env) BlockNumber() *big.Int + func (self *Env) Call(caller vm.ContractRef, addr common.Address, data []byte, ...) ([]byte, error) + func (self *Env) CallCode(caller vm.ContractRef, addr common.Address, data []byte, ...) ([]byte, error) + func (self *Env) CanTransfer(from common.Address, balance *big.Int) bool + func (self *Env) Coinbase() common.Address + func (self *Env) Create(caller vm.ContractRef, data []byte, gas, price, value *big.Int) ([]byte, common.Address, error) + func (self *Env) Db() vm.Database + func (self *Env) Depth() int + func (self *Env) Difficulty() *big.Int + func (self *Env) GasLimit() *big.Int + func (self *Env) GetHash(n uint64) common.Hash + func (self *Env) MakeSnapshot() vm.Database + func (self *Env) Origin() common.Address + func (self *Env) SetDepth(i int) + func (self *Env) SetSnapshot(copy vm.Database) + func (self *Env) StructLogs() []vm.StructLog + func (self *Env) Time() *big.Int + func (self *Env) Transfer(from, to vm.Account, amount *big.Int) + func (self *Env) VmType() vm.Type