Basic custom pallet construction.
This pallet does not depend on any externally defined traits.
This pallet does not depend on any other FRAME pallet or externally developed modules.
To add this pallet to your runtime, simply include the following to your runtime's Cargo.toml
file:
[dependencies.pallet-template]
default_features = false
git = 'https://github.com/czareko/pallet-identity.git'
and update your runtime's std
feature to include this pallet:
std = [
# --snip--
'pallet-identity/std',
]
You should implement it's trait like so:
/// Used for test_module
impl pallet_template::Config for Runtime {
type Event = Event;
}
and include it in your construct_runtime!
macro:
TemplatePallet: pallet_template::{Module, Call, Storage, Event<T>},
This template pallet does not have any genesis configuration.
You can view the reference docs for this pallet by running:
cargo doc --open