Documentation ¶
Index ¶
- type StateDB
- func (s *StateDB) AddBalance(addr common.Address, amount *big.Int)
- func (s *StateDB) AddBoundedBalance(addr common.Address, amount *big.Int)
- func (s *StateDB) AddBoundedEnergy(addr common.Address, amount *big.Int)
- func (s *StateDB) AddEnergy(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) BurnBalance(addr common.Address, amount *big.Int)
- func (s *StateDB) BurnEnergy(addr common.Address, amount *big.Int)
- 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) GetBoundedBalance(addr common.Address) *big.Int
- func (s *StateDB) GetBoundedEnergy(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) GetEnergy(addr common.Address) *big.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) MintBalance(addr common.Address, amount *big.Int)
- func (s *StateDB) MintEnergy(addr common.Address, amount *big.Int)
- 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) bool
- func (s *StateDB) SubBoundedBalance(addr common.Address, amount *big.Int) bool
- func (s *StateDB) SubBoundedEnergy(addr common.Address, amount *big.Int) bool
- func (s *StateDB) SubEnergy(addr common.Address, amount *big.Int) bool
- 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) AddBoundedBalance ¶
AddBoundedBalance stub.
func (*StateDB) AddBoundedEnergy ¶
AddBoundedEnergy stub.
func (*StateDB) AddPreimage ¶
AddPreimage stub.
func (*StateDB) AddTransfer ¶
func (*StateDB) CreateAccount ¶
CreateAccount stub.
func (*StateDB) GetBalance ¶
GetBalance stub.
func (*StateDB) GetBoundedBalance ¶
GetBoundedBalance stub.
func (*StateDB) GetBoundedEnergy ¶
GetBoundedEnergy stub.
func (*StateDB) GetCodeHash ¶
GetCodeHash stub.
func (*StateDB) GetCodeSize ¶
GetCodeSize stub.
func (*StateDB) HasSuicided ¶
HasSuicided stub.
func (*StateDB) MintBalance ¶
mintBalance stub
func (*StateDB) MintEnergy ¶
minEnergy stub
func (*StateDB) RevertToSnapshot ¶
RevertToSnapshot stub.
func (*StateDB) SubBalance ¶
SubBalance stub.
func (*StateDB) SubBoundedBalance ¶
SubBoundedBalance stub.
func (*StateDB) SubBoundedEnergy ¶
SubBoundedEnergy stub.
Click to show internal directories.
Click to hide internal directories.