Documentation
¶
Index ¶
- func WrapStateDB(stateDB *state.StateDB) contract.StateDB
- type StateDBAdapter
- func (s *StateDBAdapter) AddBalance(address common.Address, amount *uint256.Int)
- func (s *StateDBAdapter) GetPredicateStorageSlots(address common.Address, index int) ([]byte, bool)
- func (s *StateDBAdapter) SetNonce(address common.Address, nonce uint64)
- func (s *StateDBAdapter) SetState(address common.Address, key, value common.Hash)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StateDBAdapter ¶ added in v0.8.8
StateDBAdapter wraps *state.StateDB to implement contract.StateDB
func (*StateDBAdapter) AddBalance ¶ added in v0.8.8
func (s *StateDBAdapter) AddBalance(address common.Address, amount *uint256.Int)
AddBalance adapts the AddBalance method to match the contract.StateDB interface
func (*StateDBAdapter) GetPredicateStorageSlots ¶ added in v0.8.8
GetPredicateStorageSlots implements the contract.StateDB interface
Click to show internal directories.
Click to hide internal directories.