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

feat(smith-members): refact: constants

parent 2f79db4c
No related branches found
No related tags found
No related merge requests found
Pipeline #34920 failed
......@@ -102,22 +102,19 @@ pub mod pallet {
+ MaxEncodedLen;
/// Identifier for an authority-member
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
#[pallet::constant]
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
#[pallet::constant]
type MinCertForMembership: Get<u32>;
/// Maximum duration of inactivity before a smith is removed
#[pallet::constant]
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.
......
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