Module storage
Functions
- Marks a struct as the one describing the storage layout of a contract.
- Same as
storage, except the user is in charge of providing an implementation of theinitconstructor function with signaturefn init<Context>(context: Context) -> Self, which allows for manual control of storage slot allocation. Similarly, noStorageLayoutstruct will be created.
Globals
- Stores a map from a module to the name of the struct that describes its storage layout. This is then used when generating a
storage_layout()getter on the contract struct.