Module storage

Module storage 

Source

Re-exports§

pub use packing::FieldLocation;

Modules§

evm
hashmap
mapping
Type-safe wrapper for EVM storage mappings (hash-based key-value storage).
packing
Shared utilities for packing and unpacking values in EVM storage slots.
slots
Type-safe wrapper for EVM storage mappings (hash-based key-value storage).
types 🔒
vec
Dynamic array (Vec<T>) implementation for the Storable trait.

Structs§

LayoutCtx
Describes the context in which a Storable value is being loaded or stored.
Mapping
Type-safe access wrapper for EVM storage mappings (hash-based key-value storage).
NestedMapping
Type-safe access wrapper for nested EVM storage mappings (two-level hash-based storage).
Slot
Type-safe wrapper for a single EVM storage slot.

Enums§

Layout
Describes how a type is laid out in EVM storage.

Traits§

ContractStorage
Trait providing access to a contract’s address and storage provider.
PrecompileStorageProvider
Low-level storage provider for interacting with the EVM.
Storable
Trait for types that can be stored/loaded from EVM storage.
StorableType
Helper trait to access storage layout information without requiring const generic parameter.
StorageKey
Trait for types that can be used as storage mapping keys.
StorageOps
Storage operations for a given (contract) address.
VecSlotExt
Extension trait providing efficient single-element operations for Slot<Vec<T>, Id>.

Functions§

double_mapping_slot
Compute storage slot for a double mapping (mapping[key1][key2])
mapping_slot
Compute storage slot for a mapping