Documentation ¶
Index ¶
- type MemStore
- type NativeContracts
- type StateDB
- func (s *StateDB) AddAddressToAccessList(addr common.Address)
- func (s *StateDB) AddBalance(address common.Address, amount *big.Int)
- func (s *StateDB) AddLog(l *types.Log)
- func (s *StateDB) AddPreimage(hash common.Hash, preimage []byte)
- func (s *StateDB) AddRefund(amount uint64)
- func (s *StateDB) AddSlotToAccessList(addr common.Address, slot common.Hash)
- func (s *StateDB) AddressInAccessList(addr common.Address) bool
- func (s *StateDB) Commit() error
- func (s *StateDB) CreateAccount(common.Address)
- func (s *StateDB) CurrentStore() *MemStore
- func (s *StateDB) Empty(address common.Address) bool
- func (s *StateDB) Exist(address common.Address) bool
- func (s *StateDB) ForEachStorage(addr common.Address, cb func(common.Hash, common.Hash) bool) error
- func (s *StateDB) GetBalance(address common.Address) *big.Int
- func (s *StateDB) GetCode(address common.Address) []byte
- func (s *StateDB) GetCodeHash(address common.Address) common.Hash
- func (s *StateDB) GetCodeSize(address common.Address) int
- func (s *StateDB) GetCommittedState(address common.Address, key common.Hash) common.Hash
- func (s *StateDB) GetLogs() []*types.Log
- func (s *StateDB) GetNonce(address common.Address) uint64
- func (s *StateDB) GetRefund() uint64
- func (s *StateDB) GetState(address common.Address, key common.Hash) common.Hash
- func (s *StateDB) HasSuicided(address common.Address) bool
- func (s *StateDB) PrepareAccessList(sender common.Address, dest *common.Address, precompiles []common.Address, ...)
- func (s *StateDB) RevertToSnapshot(revid int)
- func (s *StateDB) SetCode(address common.Address, code []byte)
- func (s *StateDB) SetNonce(address common.Address, nonce uint64)
- func (s *StateDB) SetState(address common.Address, key common.Hash, value common.Hash)
- func (s *StateDB) SlotInAccessList(addr common.Address, slot common.Hash) (addressOk bool, slotOk bool)
- func (s *StateDB) Snapshot() int
- func (s *StateDB) SubBalance(address common.Address, amount *big.Int)
- func (s *StateDB) SubRefund(amount uint64)
- func (s *StateDB) Suicide(address common.Address) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NativeContracts ¶
type StateDB ¶
type StateDB struct { Err error // contains filtered or unexported fields }
func NewStateDB ¶
func NewStateDB(ps *dao.Simple, bc NativeContracts) *StateDB
func (*StateDB) AddAddressToAccessList ¶
func (*StateDB) AddSlotToAccessList ¶
func (*StateDB) AddressInAccessList ¶
func (*StateDB) CreateAccount ¶
func (*StateDB) CurrentStore ¶
func (*StateDB) ForEachStorage ¶
func (*StateDB) GetCommittedState ¶
func (*StateDB) PrepareAccessList ¶
func (*StateDB) RevertToSnapshot ¶
func (*StateDB) SlotInAccessList ¶
Click to show internal directories.
Click to hide internal directories.