Macro gear_common::wrap_storage_value
source · macro_rules! wrap_storage_value { (storage: $storage: ident, name: $name: ident, value: $val: ty) => { ... }; }
Expand description
Creates new type with specified name and value type and implements
ValueStorage
for it based on specified storage,
which is a Substrate
’s StorageValue
.
This macro main purpose is to follow newtype pattern
and avoid Substrate
dependencies in gear_common
.
Requires PhantomData
be in scope: from std
, core
or sp_std
.
Requires Config
be in scope of the crate root where it called.