Attribute Macro frame_support::pallet_macros::constant

source ·
Expand description

Allows adding an associated type trait bounded by Get from pallet::config into metadata.


mod pallet {
    use frame_support::pallet_prelude::*;
    pub trait Config: frame_system::Config {
		/// This is like a normal `Get` trait, but it will be added into metadata.
		type Foo: Get<u32>;

Documentation for this macro can be found at frame_support::pallet_macros::constant.