pallet-mandate-2.0.8 doesn't have any documentation.
Mandate Pallet
A Substrate pallet to allow the use of sudo
functions from a runtime module like the collective
.
Usage
Add the depedency
Edit runtime/Cargo.toml
and add the following:
[]
= false
= '2.0.0'
= "pallet-mandate"
Then add the mandate/std
to the [features]
section in the std
array, it should
look like this:
[]
= false
= '2.0.0'
= "pallet-mandate"
[]
= ['std']
= [
# Your substrate modules /std calls here
# ...
'mandate/std',
]
Add the module to your runtime
Trait implementation
You can use the ExternalOrigin
type to specify who can dispatch calls to the module.
For instance you can use with the collective
:
Adding the module
In the construct_runtime
macro call just add the Mandate: mandate::{Module, Call}
, it should
look like this:
construct_runtime!;