Expand description
Code generation for primitive type storage implementations.
Structsยง
- Array
Config ๐ - Configuration for generating array implementations
- Type
Config ๐ - Complete configuration for generating implementations for a type
Enumsยง
- Storable
Conversion ๐Strategy - Strategy for converting to U256
- Storage
KeyStrategy ๐ - Strategy for converting to storage key bytes
Constantsยง
- ALLOY_
INT_ ๐SIZES - RUST_
INT_ ๐SIZES
Functionsยง
- gen_
alloy_ ๐integers - Generate
StorableTypeandStorable<1>implementations for alloy integer types. - gen_
array_ ๐impl - Generate a complete
Storableimplementation for a fixed-size array - gen_
arrays_ ๐for_ type - Generate array implementations for a specific element type
- gen_
complete_ ๐impl_ set - Generate all storage-related impls for a type
- gen_
fixed_ ๐bytes - Generate
StorableTypeandStorable<1>implementations forFixedBytes<N>types. - gen_
nested_ ๐arrays - Generate nested array implementations for common small cases
- gen_
packed_ ๐array_ from_ evm_ words - Generate from_evm_words implementation for packed arrays
- gen_
packed_ ๐array_ load - Generate load implementation for packed arrays
- gen_
packed_ ๐array_ store - Generate store implementation for packed arrays
- gen_
packed_ ๐array_ to_ evm_ words - Generate to_evm_words implementation for packed arrays
- gen_
storable_ ๐alloy_ bytes - Generate
StorableTypeandStorable<1>implementations forFixedBytes<N>types. - gen_
storable_ ๐alloy_ ints - Generate
StorableTypeandStorable<1>implementations for all alloy integer types. - gen_
storable_ ๐arrays - Generate
Storableimplementations for fixed-size arrays of primitive types - gen_
storable_ ๐impl - Generate a
Storable<1>implementation based on the conversion strategy - gen_
storable_ ๐rust_ ints - Generate
StorableTypeandStorable<1>implementations for all standard Rust integer types. - gen_
storable_ ๐type_ impl - Generate a
StorableTypeimplementation - gen_
storage_ ๐key_ impl - Generate a
StorageKeyimplementation based on the conversion strategy - gen_
struct_ ๐array_ from_ evm_ words - Generate from_evm_words implementation for struct arrays.
- gen_
struct_ ๐array_ impl - Generate a single array implementation for a user-defined struct.
- gen_
struct_ ๐array_ load - Generate load implementation for struct arrays.
- gen_
struct_ ๐array_ store - Generate store implementation for struct arrays.
- gen_
struct_ ๐array_ to_ evm_ words - Generate to_evm_words implementation for struct arrays.
- gen_
struct_ ๐arrays - Generate array implementations for user-defined structs (multi-slot types).
- gen_
unpacked_ ๐array_ from_ evm_ words - Generate from_evm_words implementation for unpacked arrays
- gen_
unpacked_ ๐array_ load - Generate load implementation for unpacked arrays
- gen_
unpacked_ ๐array_ store - Generate store implementation for unpacked arrays
- gen_
unpacked_ ๐array_ to_ evm_ words - Generate to_evm_words implementation for unpacked arrays
- is_
packable ๐ - Whether a given amount of bytes (primitives only) should be packed, or not.