For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::macros::storage

Module storage

Functions

  • Declares the contract's storage.
  • Same as storage, except the user is in charge of providing an implementation of the init constructor function with signature fn init<Context>(context: Context) -> Self, which allows for manual control of storage slot allocation. Similarly, no StorageLayout struct 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.