You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Stores the rank of a community (specified by its/// [`CommunityId`][`Config::CommunityId`]) member (specified by it's/// [`AccountId`][`frame_system::Config::AccountId`]).#[pallet::storage]#[pallet::getter(fn member_rank)]pub(super)typeMemberRanks<T> =
StorageDoubleMap<_,Blake2_128Concat,CommunityIdOf<T>,Blake2_128Concat,AccountIdOf<T>,MemberRankOf<T>>;
Implementation
Calls
Privileged methods (as of now, they'd have to pass a referenda):
promote_member: Increases the rank of a member in the community.
demote_member: Decreases the rank of a member in the community.
Traits
src/traits/rank.rs
pubtraitInspect<Rank>whereRank:Default + Parameter + PartialEq + PartialOrd + Saturating,{/// Retrieves the current rank of the memberfnrank(&self) -> Rank;}pubtraitMutate<Rank>whereRank:Default + Parameter + PartialEq + PartialOrd + Saturating,{/// Retrieves a new rank for the member as increasing by onefnpromote(&self) -> Self;/// Retrieves a new rank for the member as decreasing by onefndemote(&self) -> Self;}
The text was updated successfully, but these errors were encountered:
pandres95
changed the title
Promoting/demoting members within the community.
[Community] Promoting/demoting members within the community
Nov 17, 2023
pandres95
changed the title
[Community] Promoting/demoting members within the community
[Communities] Promoting/demoting members within the community
Nov 17, 2023
Types
Storage
Implementation
Calls
Privileged methods (as of now, they'd have to pass a
referenda
):promote_member
: Increases the rank of a member in the community.demote_member
: Decreases the rank of a member in the community.Traits
The text was updated successfully, but these errors were encountered: