Documentation
¶
Index ¶
- type StateDB
- func (s *StateDB) GetLogData() (topics [][]common.Hash, data [][]byte)
- func (s *StateDB) GetPredicateStorageSlots(address common.Address, index int) ([]byte, bool)
- func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, dst *common.Address, ...)
- func (s *StateDB) SetPredicateStorageSlots(address common.Address, predicates [][]byte)
- type VmStateDB
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
}
func New ¶
New creates a new *StateDB with the given VmStateDB, effectively wrapping it with additional functionality.
func (*StateDB) GetLogData ¶
GetLogData returns the underlying topics and data from each log included in the StateDB. Test helper function.
func (*StateDB) GetPredicateStorageSlots ¶
GetPredicateStorageSlots returns the storage slots associated with the address+index pair as a byte slice as well as a boolean indicating if the address+index pair exists. A list of access tuples can be included within transaction types post EIP-2930. The address is declared directly on the access tuple and the index is the i'th occurrence of an access tuple with the specified address.
Ex. AccessList[[AddrA, Predicate1], [AddrB, Predicate2], [AddrA, Predicate3]] In this case, the caller could retrieve predicates 1-3 with the following calls: GetPredicateStorageSlots(AddrA, 0) -> Predicate1 GetPredicateStorageSlots(AddrB, 0) -> Predicate2 GetPredicateStorageSlots(AddrA, 1) -> Predicate3