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§

source

type IsWoTMember: IsMember<Self::IdtyIndex>

Trait to check if identity is a WoT members.

source

type OnSmithDelete: OnSmithDelete<Self::IdtyIndex>

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type for this pallet.

source

type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen

A short identity index type.

source

type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter

Identifier type for an authority-member.

source

type IdtyAttr: Idty<Self::IdtyIndex, Self::AccountId>

Something that gives the IdtyIndex of an AccountId and reverse.

source

type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>

Something that gives the AccountId of an identity.

source

type MaxByIssuer: Get<u32>

Maximum number of active certifications per issuer.

source

type MinCertForMembership: Get<u32>

Minimum number of certifications required to become a Smith.

source

type SmithInactivityMaxDuration: Get<u32>

Maximum duration of inactivity allowed before a Smith is removed.

source

type WeightInfo: WeightInfo

Type representing the weight of this pallet.

Object Safety§

This trait is not object safe.

Implementors§