Attribute Macro frame_support_procedural::extra_constants
source · #[extra_constants]
Expand description
Allows you to define some extra constants to be added into constant metadata.
Item must be defined as:
ⓘ
#[pallet::extra_constants]
impl<T: Config> Pallet<T> where $optional_where_clause {
/// $some_doc
$vis fn $fn_name() -> $some_return_type {
...
}
...
}
I.e. a regular rust impl
block with some optional where clause and functions with 0 args,
0 generics, and some return type.
Macro expansion
The macro add some extra constants to pallet constant metadata.