Versions in this module Expand all Collapse all v1 v1.6.5 Jun 1, 2017 v1.6.4 Jun 1, 2017 v1.6.0 Apr 14, 2017 v1.5.8 Feb 1, 2017 Changes in this version + func NewEVMEnvironment(vmTest bool, chainConfig *params.ChainConfig, statedb *state.StateDB, ...) (*vm.EVM, core.Message) v1.5.1 Nov 16, 2016 Changes in this version type Env + func (self *Env) ChainConfig() *params.ChainConfig + func (self *Env) RevertToSnapshot(snapshot int) + func (self *Env) SnapshotDatabase() int v1.4.5 May 24, 2016 Changes in this version + var EnableJit bool + var ForceJit bool + func BenchStateTest(ruleSet RuleSet, p string, conf bconf, b *testing.B) error + func BenchVmTest(p string, conf bconf, b *testing.B) error type BlockTest + func (test *BlockTest) ValidateImportedHeaders(cm *core.BlockChain, validBlocks []btBlock) error type Env + func (self *Env) CanTransfer(from common.Address, balance *big.Int) bool + func (self *Env) Db() vm.Database + func (self *Env) DelegateCall(caller vm.ContractRef, addr common.Address, data []byte, gas, price *big.Int) ([]byte, error) + func (self *Env) MakeSnapshot() vm.Database + func (self *Env) RuleSet() vm.RuleSet + func (self *Env) SetSnapshot(copy vm.Database) + func (self *Env) Vm() vm.Vm type Message + func (self Message) FromFrontier() (common.Address, error) + type RuleSet struct + HomesteadBlock *big.Int + func (r RuleSet) IsHomestead(n *big.Int) bool type TransactionTest + Blocknumber string v1.0.2 Aug 20, 2015 Changes in this version + var BlockSkipTests = []string + var StateSkipTests = []string + var TransSkipTests = []string + var VmSkipTests = []string + func LoadBlockTests(file string) (map[string]*BlockTest, error) + func RunBlockTest(file string, skipTests []string) error + func RunBlockTestWithReader(r io.Reader, skipTests []string) error + func RunRLPTest(file string, skip []string) error + func RunRLPTestWithReader(r io.Reader, skip []string) error + func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state.Logs, *big.Int, error) + func RunStateTest(p string, skipTests []string) error + func RunStateTestWithReader(r io.Reader, skipTests []string) error + func RunTransactionTests(file string, skipTests []string) error + func RunTransactionTestsWithReader(r io.Reader, skipTests []string) error + func RunVm(state *state.StateDB, env, exec map[string]string) ([]byte, state.Logs, *big.Int, error) + func RunVmTest(p string, skipTests []string) error + func RunVmTestWithReader(r io.Reader, skipTests []string) error + func StateObjectFromAccount(db common.Database, addr string, account Account) *state.StateObject + type Account struct + Balance string + Code string + Nonce string + Storage map[string]string + type BlockTest struct + Genesis *types.Block + Json *btJSON + func (t *BlockTest) InsertPreState(ethereum *eth.Ethereum) (*state.StateDB, error) + func (t *BlockTest) TryBlocksInsert(chainManager *core.ChainManager) error + func (t *BlockTest) ValidatePostState(statedb *state.StateDB) error + type Env struct + Gas *big.Int + func NewEnv(state *state.StateDB) *Env + func NewEnvFromMap(state *state.StateDB, envValues map[string]string, exeValues map[string]string) *Env + func (self *Env) AddLog(log *state.Log) + func (self *Env) AddStructLog(log vm.StructLog) + func (self *Env) BlockNumber() *big.Int + func (self *Env) Call(caller vm.ContextRef, addr common.Address, data []byte, ...) ([]byte, error) + func (self *Env) CallCode(caller vm.ContextRef, addr common.Address, data []byte, ...) ([]byte, error) + func (self *Env) Coinbase() common.Address + func (self *Env) Create(caller vm.ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ContextRef) + 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) Origin() common.Address + func (self *Env) SetDepth(i int) + func (self *Env) State() *state.StateDB + func (self *Env) StructLogs() []vm.StructLog + func (self *Env) Time() uint64 + func (self *Env) Transfer(from, to vm.Account, amount *big.Int) error + func (self *Env) VmType() vm.Type + type Log struct + AddressF string + BloomF string + DataF string + TopicsF []string + func (self Log) Address() []byte + func (self Log) Data() []byte + func (self Log) RlpData() interface{} + func (self Log) Topics() [][]byte + type Message struct + func NewMessage(from common.Address, to *common.Address, data []byte, ...) Message + func (self Message) Data() []byte + func (self Message) From() (common.Address, error) + func (self Message) Gas() *big.Int + func (self Message) GasPrice() *big.Int + func (self Message) Hash() []byte + func (self Message) Nonce() uint64 + func (self Message) To() *common.Address + func (self Message) Value() *big.Int + type RLPTest struct + In interface{} + Out string + func (t *RLPTest) Run() error + type TransactionTest struct + Rlp string + Sender string + Transaction TtTransaction + type TtTransaction struct + Data string + GasLimit string + GasPrice string + Nonce string + R string + S string + To string + V string + Value string + type VmEnv struct + CurrentCoinbase string + CurrentDifficulty string + CurrentGasLimit string + CurrentNumber string + CurrentTimestamp interface{} + PreviousHash string + type VmTest struct + Callcreates interface{} + Env VmEnv + Exec map[string]string + Gas string + Logs []Log + Out string + Post map[string]Account + PostStateRoot string + Pre map[string]Account + Transaction map[string]string v0 v0.7.11 Dec 24, 2014