Documentation ¶
Index ¶
- func NewEVMByDefaultConfig(tx *types.Transaction, statedb *StateDB, blockHeader *types.BlockHeader, ...) *vm.EVM
- type StateDB
- func (s *StateDB) AddPreimage(common.Hash, []byte)
- func (s *StateDB) ForEachStorage(common.Address, func(common.Hash, common.Hash) bool)
- func (s *StateDB) GetCommittedState(addr common.Address, hash common.Hash) common.Hash
- func (s *StateDB) GetState(address common.Address, key common.Hash) common.Hash
- func (s *StateDB) SetState(address common.Address, key common.Hash, value common.Hash)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEVMByDefaultConfig ¶
func NewEVMByDefaultConfig(tx *types.Transaction, statedb *StateDB, blockHeader *types.BlockHeader, bcStore store.BlockchainStore) *vm.EVM
NewEVMByDefaultConfig returns a new EVM. The returned EVM is not thread safe and should only ever be used *once*.
Types ¶
type StateDB ¶
StateDB for evm
func (*StateDB) AddPreimage ¶
AddPreimage records a SHA3 preimage seen by the VM.
func (*StateDB) ForEachStorage ¶
ForEachStorage visits all the key-value pairs for the specified account storage.
func (*StateDB) GetCommittedState ¶
GetCommittedState returns the committed value of the specified key in account storage if exists.
Click to show internal directories.
Click to hide internal directories.