Trait pallet_smith_members::pallet::Config
source · pub trait Config: Config {
type IsWoTMember: IsMember<Self::IdtyIndex>;
type OnSmithDelete: OnSmithDelete<Self::IdtyIndex>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen;
type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter;
type IdtyAttr: Idty<Self::IdtyIndex, Self::AccountId>;
type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>;
type MaxByIssuer: Get<u32>;
type MinCertForMembership: Get<u32>;
type SmithInactivityMaxDuration: Get<u32>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait. The pallet’s config trait.
Required Associated Types§
sourcetype IsWoTMember: IsMember<Self::IdtyIndex>
type IsWoTMember: IsMember<Self::IdtyIndex>
Trait to check if identity is a WoT members.
type OnSmithDelete: OnSmithDelete<Self::IdtyIndex>
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type for this pallet.
sourcetype IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen
type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen
A short identity index type.
sourcetype MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter
type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter
Identifier type for an authority-member.
sourcetype IdtyAttr: Idty<Self::IdtyIndex, Self::AccountId>
type IdtyAttr: Idty<Self::IdtyIndex, Self::AccountId>
Something that gives the IdtyIndex of an AccountId and reverse.
sourcetype IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>
type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>
Something that gives the AccountId of an identity.
sourcetype MaxByIssuer: Get<u32>
type MaxByIssuer: Get<u32>
Maximum number of active certifications per issuer.
sourcetype MinCertForMembership: Get<u32>
type MinCertForMembership: Get<u32>
Minimum number of certifications required to become a Smith.
sourcetype SmithInactivityMaxDuration: Get<u32>
type SmithInactivityMaxDuration: Get<u32>
Maximum duration of inactivity allowed before a Smith is removed.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet.