Versions in this module Expand all Collapse all v0 v0.9.0 Jun 4, 2021 v0.8.0 Jun 25, 2020 v0.7.0 Dec 3, 2019 v0.6.0 Oct 14, 2019 v0.5.1 Sep 10, 2019 v0.5.0 Aug 28, 2019 Changes in this version + var ChainConfigs = map[string]core.ChainConfig + var Forks = map[string]RuleSet + func CreateStateTests(f string) (map[string]StateTest, error) + type DifficultyTest struct + CurrentBlockNumber string + CurrentDifficulty string + CurrentTimestamp string + ParentDifficulty string + ParentTimestamp string + UncleHash common.Hash type Env + func (self *Env) ReturnData() []byte + func (self *Env) SetReturnData(data []byte) + func (self *Env) StaticCall(caller vm.ContractRef, addr common.Address, data []byte, gas, price *big.Int) ([]byte, error) + type GenesisAccount struct + Balance string + Code string + Nonce string + PrivateKey string + Storage map[string]string type RuleSet + AtlantisBlock *big.Int + Hardfork2Block *big.Int + func (r RuleSet) IsAtlantis(n *big.Int) bool + func (r RuleSet) IsHardfork2(n *big.Int) bool + type StateSubtest struct + Fork string + Index int + type StateTest struct + Env VmEnv + Out string + Post map[string][]stPostState + Pre map[string]Account + Tx stTransaction + func (t *StateTest) Subtests() []StateSubtest + type UnsupportedForkError struct + Name string + func (e UnsupportedForkError) Error() string v0.4.0 Jul 5, 2019 v0.3.0 Mar 25, 2019 v0.2.0 Jun 21, 2018 v0.1.0 May 8, 2018 Changes in this version + var BlockSkipTests = initBlockSkipTests() + var StateSkipTests = []string + var TransSkipTests = []string + var VmSkipTests = []string + func BenchStateTest(ruleSet RuleSet, p string, conf bconf, b *testing.B) error + func BenchVmTest(p string, conf bconf, b *testing.B) error + func LoadBlockTests(file string) (map[string]*BlockTest, error) + func RunBlockTest(homesteadBlock, gasPriceFork *big.Int, file string, skipTests []string) error + func RunBlockTestWithReader(homesteadBlock, gasPriceFork *big.Int, r io.Reader, skipTests []string) error + func RunRLPTest(file string, skip []string) error + func RunRLPTestWithReader(r io.Reader, skip []string) error + func RunState(ruleSet RuleSet, db ethdb.Database, statedb *state.StateDB, ...) ([]byte, vm.Logs, *big.Int, error) + func RunStateTest(ruleSet RuleSet, p string, skipTests []string) error + func RunStateTestWithReader(ruleSet RuleSet, 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, vm.Logs, *big.Int, error) + func RunVmTest(p string, skipTests []string) error + func RunVmTestWithReader(r io.Reader, skipTests []string) error + 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(db ethdb.Database) (*state.StateDB, error) + func (t *BlockTest) TryBlocksInsert(blockchain *core.BlockChain) ([]btBlock, error) + func (t *BlockTest) ValidatePostState(statedb *state.StateDB) error + func (test *BlockTest) ValidateImportedHeaders(cm *core.BlockChain, validBlocks []btBlock) error + type Env struct + Gas *big.Int + func NewEnv(ruleSet RuleSet, state *state.StateDB) *Env + func NewEnvFromMap(ruleSet RuleSet, state *state.StateDB, envValues map[string]string, ...) *Env + func (self *Env) AddLog(log *vm.Log) + 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) DelegateCall(caller vm.ContractRef, addr common.Address, data []byte, gas, price *big.Int) ([]byte, error) + 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) RevertToSnapshot(snapshot int) + func (self *Env) RuleSet() vm.RuleSet + func (self *Env) SetDepth(i int) + func (self *Env) SnapshotDatabase() int + func (self *Env) Time() *big.Int + func (self *Env) Transfer(from, to vm.Account, amount *big.Int) + func (self *Env) Vm() vm.Vm + 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) FromFrontier() (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 RuleSet struct + DiehardBlock *big.Int + ExplosionBlock *big.Int + HomesteadBlock *big.Int + HomesteadGasRepriceBlock *big.Int + func (r RuleSet) GasTable(num *big.Int) *vm.GasTable + func (r RuleSet) IsHomestead(n *big.Int) bool + type TransactionTest struct + Blocknumber string + 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