Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemDB ¶
type MemDB struct {
// contains filtered or unexported fields
}
MemDB is an in stateful wrapper around core.Genesis, that makes it easier to build genesis state.
func (*MemDB) SetBalance ¶ added in v0.1.9
type StorageSlot ¶
func EncodeStorage ¶
func EncodeStorage(layout solc.StorageLayout, values StorageValues) ([]StorageSlot, error)
EncodeStorage encodes the given storage values according to the given storage layout. If it does not find a slot for a label, it returns an error. If it does not support encoding a value, it returns an error.
func EncodeStorageEntry ¶ added in v0.1.9
func EncodeStorageEntry(layout solc.StorageLayout, label string, value any) (StorageSlot, error)
EncodeStorageEntry encodes the given storage value according to the given storage layout.
type StorageValues ¶
Click to show internal directories.
Click to hide internal directories.