Expand description
Storage slot identification and decoding utilities for Solidity storage layouts.
This module provides functionality to identify and decode storage slots based on Solidity storage layout information from the compiler.
Structsยง
- Decoded
Slot Values - Decoded storage slot values
- Slot
Identifier - Storage slot identifier that uses Solidity [
StorageLayout
] to identify storage slots. - Slot
Info - Information about a storage slot including its label, type, and decoded values.
- Storage
Type Info - Wrapper type that holds both the original type label and the parsed DynSolType.
Constantsยง
- ENCODING_
INPLACE ๐ - ENCODING_
MAPPING ๐
Functionsยง
- get_
array_ ๐base_ indices - Returns the base indices for array types, e.g. โ[0][0]โ for 2D arrays.
- is_
struct - Checks if a given type label represents a struct type.
- serialize_
mapping_ ๐keys - Custom serializer for mapping keys
- serialize_
slot_ ๐type - Custom serializer for StorageTypeInfo that only outputs the label