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 IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>;
type OwnerKeyOf: Convert<Self::IdtyIndex, Option<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>
To only allow WoT members to be invited
sourcetype OnSmithDelete: OnSmithDelete<Self::IdtyIndex>
type OnSmithDelete: OnSmithDelete<Self::IdtyIndex>
Notify when a smith is removed (for authority-members to react)
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
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.
sourcetype MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter
type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter
Identifier for an authority-member
sourcetype IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>
type IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>
Something that gives the IdtyId of an AccountId
sourcetype OwnerKeyOf: Convert<Self::IdtyIndex, Option<Self::AccountId>>
type OwnerKeyOf: Convert<Self::IdtyIndex, Option<Self::AccountId>>
Something that give the owner key of an identity
sourcetype IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>
type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>
Something that gives the IdtyId of an AccountId
sourcetype MaxByIssuer: Get<u32>
type MaxByIssuer: Get<u32>
Maximum number of active certifications by issuer
sourcetype MinCertForMembership: Get<u32>
type MinCertForMembership: Get<u32>
Minimum number of certifications to become a Smith
sourcetype SmithInactivityMaxDuration: Get<u32>
type SmithInactivityMaxDuration: Get<u32>
Maximum duration of inactivity before a smith is removed
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet