Versions in this module Expand all Collapse all v12 v12.2.0 Jan 3, 2024 Changes in this version + type Account struct + Balance *big.Int + CodeHash []byte + Nonce uint64 + func NewEmptyAccount() *Account + func (acct Account) IsContract() bool + type EVMConfig struct + BaseFee *big.Int + ChainConfig *params.ChainConfig + CoinBase common.Address + Params types.Params + type ExtStateDB interface + AppendJournalEntry func(JournalEntry) + type JournalEntry interface + Dirtied func() *common.Address + Revert func(*StateDB) + type Keeper interface + DeleteAccount func(ctx sdk.Context, addr common.Address) error + ForEachStorage func(ctx sdk.Context, addr common.Address, cb func(key, value common.Hash) bool) + GetAccount func(ctx sdk.Context, addr common.Address) *Account + GetCode func(ctx sdk.Context, codeHash common.Hash) []byte + GetState func(ctx sdk.Context, addr common.Address, key common.Hash) common.Hash + SetAccount func(ctx sdk.Context, addr common.Address, account Account) error + SetCode func(ctx sdk.Context, codeHash []byte, code []byte) + SetState func(ctx sdk.Context, addr common.Address, key common.Hash, value []byte) + type StateDB struct + func New(ctx sdk.Context, keeper Keeper, txConfig TxConfig) *StateDB + func (s *StateDB) AddAddressToAccessList(addr common.Address) + func (s *StateDB) AddBalance(addr common.Address, amount *big.Int) + func (s *StateDB) AddLog(log *ethtypes.Log) + func (s *StateDB) AddPreimage(_ common.Hash, _ []byte) + func (s *StateDB) AddRefund(gas 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(addr common.Address) + func (s *StateDB) Empty(addr common.Address) bool + func (s *StateDB) Exist(addr common.Address) bool + func (s *StateDB) ForEachStorage(addr common.Address, cb func(key, value common.Hash) bool) error + 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) GetCommittedState(addr common.Address, hash common.Hash) common.Hash + func (s *StateDB) GetContext() sdk.Context + func (s *StateDB) GetNonce(addr common.Address) uint64 + func (s *StateDB) GetRefund() uint64 + func (s *StateDB) GetState(addr common.Address, hash common.Hash) common.Hash + func (s *StateDB) HasSuicided(addr common.Address) bool + func (s *StateDB) Keeper() Keeper + func (s *StateDB) Logs() []*ethtypes.Log + func (s *StateDB) PrepareAccessList(sender common.Address, dst *common.Address, precompiles []common.Address, ...) + func (s *StateDB) RevertToSnapshot(revid 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) SlotInAccessList(addr common.Address, slot common.Hash) (addressPresent bool, slotPresent bool) + func (s *StateDB) Snapshot() int + func (s *StateDB) SubBalance(addr common.Address, amount *big.Int) + func (s *StateDB) SubRefund(gas uint64) + func (s *StateDB) Suicide(addr common.Address) bool + type Storage map[common.Hash]common.Hash + func (s Storage) SortedKeys() []common.Hash + type TxConfig struct + BlockHash common.Hash + LogIndex uint + TxHash common.Hash + TxIndex uint + func NewEmptyTxConfig(bhash common.Hash) TxConfig + func NewTxConfig(bhash, thash common.Hash, txIndex, logIndex uint) TxConfig