Documentation ¶
Index ¶
- type StateDB
- func (s *StateDB) AddBalance(addr common.Address, amount *big.Int)
- func (s *StateDB) AddLog(vmlog *types.Log)
- func (s *StateDB) AddPreimage(hash common.Hash, preimage []byte)
- func (s *StateDB) AddRefund(gas uint64)
- func (s *StateDB) AddTransfer(transfer *tx.Transfer)
- func (s *StateDB) CreateAccount(addr common.Address)
- func (s *StateDB) Empty(addr common.Address) bool
- func (s *StateDB) Exist(addr common.Address) bool
- func (s *StateDB) GetBalance(addr common.Address) *big.Int
- func (s *StateDB) GetCode(addr common.Address) []byte
- func (s *StateDB) GetCodeHash(addr common.Address) common.Hash
- func (s *StateDB) GetCodeSize(addr common.Address) int
- func (s *StateDB) GetLogs() (tx.Events, tx.Transfers)
- func (s *StateDB) GetNonce(addr common.Address) uint64
- func (s *StateDB) GetRefund() uint64
- func (s *StateDB) GetState(addr common.Address, key common.Hash) common.Hash
- func (s *StateDB) HasSuicided(addr common.Address) bool
- func (s *StateDB) RevertToSnapshot(rev int)
- func (s *StateDB) SetCode(addr common.Address, code []byte)
- func (s *StateDB) SetNonce(addr common.Address, nonce uint64)
- func (s *StateDB) SetState(addr common.Address, key, value common.Hash)
- func (s *StateDB) Snapshot() int
- func (s *StateDB) SubBalance(addr common.Address, amount *big.Int)
- func (s *StateDB) Suicide(addr common.Address) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateDB ¶
type StateDB struct {
// contains filtered or unexported fields
}
StateDB implements evm.StateDB, only adapt to evm.
func (*StateDB) AddBalance ¶
AddBalance stub.
func (*StateDB) AddPreimage ¶
AddPreimage stub.
func (*StateDB) AddTransfer ¶
func (*StateDB) CreateAccount ¶
CreateAccount stub.
func (*StateDB) GetBalance ¶
GetBalance stub.
func (*StateDB) GetCodeHash ¶
GetCodeHash stub.
func (*StateDB) GetCodeSize ¶
GetCodeSize stub.
func (*StateDB) HasSuicided ¶
HasSuicided stub.
func (*StateDB) RevertToSnapshot ¶
RevertToSnapshot stub.
func (*StateDB) SubBalance ¶
SubBalance stub.
Click to show internal directories.
Click to hide internal directories.