Expand description
Module definition and implementation.
An Odra module is a composition of ModuleComponents (eg. other modules) and ModulePrimitives (Var, Mapping, List).
In order to create a module, you need to create a struct that implements the Module trait.
However, most of the time you will want to use #[odra::module] macro to generate the module.
Structs§
Traits§
- Module
- Represents a module in the Odra system.
- Module
Component - Represents a component that can be a part of a module.
- Module
Primitive - A marker trait for a module component that does not emit events.
- Revertible
- Represents a component that can revert the contract execution.