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

feat(smith-members): refact: constants

parent f9b04638
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !217. Comments created here will be created in the context of that merge request.
...@@ -102,22 +102,19 @@ pub mod pallet { ...@@ -102,22 +102,19 @@ pub mod pallet {
+ MaxEncodedLen; + MaxEncodedLen;
/// Identifier for an authority-member /// Identifier for an authority-member
type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter; type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter;
/// Something that gives the IdtyId of an AccountId
type IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>;
/// Something that gives the IdtyId of an AccountId
type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>;
/// Maximum number of active certifications by issuer /// Maximum number of active certifications by issuer
#[pallet::constant] #[pallet::constant]
type MaxByIssuer: Get<u32>; type MaxByIssuer: Get<u32>;
/// Minimum number of certifications to be able to create a smith
#[pallet::constant]
type MinCertForCreateIdtyRight: Get<u32>;
/// Minimum number of certifications to become a Smith /// Minimum number of certifications to become a Smith
#[pallet::constant] #[pallet::constant]
type MinCertForMembership: Get<u32>; type MinCertForMembership: Get<u32>;
/// Maximum duration of inactivity before a smith is removed /// Maximum duration of inactivity before a smith is removed
#[pallet::constant] #[pallet::constant]
type InactivityMaxDuration: Get<u32>; type InactivityMaxDuration: Get<u32>;
/// Something that gives the IdtyId of an AccountId
type IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>;
/// Something that gives the IdtyId of an AccountId
type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>;
} }
/// Events type. /// Events type.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment