Module module

Module module 

Source
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§

SubModule
A wrapper struct for a module implementing the Module trait.

Traits§

Module
Represents a module in the Odra system.
ModuleComponent
Represents a component that can be a part of a module.
ModulePrimitive
A marker trait for a module component that does not emit events.
Revertible
Represents a component that can revert the contract execution.