Skip to content
Snippets Groups Projects
Commit d0cf333c authored by Cédric Moreau's avatar Cédric Moreau
Browse files

feat(#173): docstring for calls

parent a434e6f8
No related branches found
No related tags found
No related merge requests found
Pipeline #35393 failed
...@@ -280,6 +280,7 @@ pub mod pallet { ...@@ -280,6 +280,7 @@ pub mod pallet {
#[pallet::call] #[pallet::call]
impl<T: Config> Pallet<T> { impl<T: Config> Pallet<T> {
/// Invite a WoT member to try becoming a Smith
#[pallet::call_index(0)] #[pallet::call_index(0)]
#[pallet::weight(T::WeightInfo::invite_smith())] #[pallet::weight(T::WeightInfo::invite_smith())]
pub fn invite_smith( pub fn invite_smith(
...@@ -294,6 +295,7 @@ pub mod pallet { ...@@ -294,6 +295,7 @@ pub mod pallet {
Ok(().into()) Ok(().into())
} }
/// Accept an invitation (must have been invited first)
#[pallet::call_index(1)] #[pallet::call_index(1)]
#[pallet::weight(T::WeightInfo::accept_invitation())] #[pallet::weight(T::WeightInfo::accept_invitation())]
pub fn accept_invitation(origin: OriginFor<T>) -> DispatchResultWithPostInfo { pub fn accept_invitation(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
...@@ -305,6 +307,7 @@ pub mod pallet { ...@@ -305,6 +307,7 @@ pub mod pallet {
Ok(().into()) Ok(().into())
} }
/// Certify an invited smith which can lead the certified to become a Smith
#[pallet::call_index(2)] #[pallet::call_index(2)]
#[pallet::weight(T::WeightInfo::certify_smith())] #[pallet::weight(T::WeightInfo::certify_smith())]
pub fn certify_smith( pub fn certify_smith(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment