module

Attribute Macro module 

Source
#[module]
Expand description

Core element of the Odra framework, entry point for writing smart contracts.

Each module consists of two parts:

  1. Module definition - a struct which composition of stored values (Vars and Mappings) and modules.
  2. Module implementation - an implementation block.

The macro produces all the required code to use the module as a standalone smart contract.