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§

source

type IsWoTMember: IsMember<Self::IdtyIndex>

To only allow WoT members to be invited

source

type OnSmithDelete: OnSmithDelete<Self::IdtyIndex>

Notify when a smith is removed (for authority-members to react)

source

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

The overarching event type.

source

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

A short identity index.

source

type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter

Identifier for an authority-member

source

type IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>

Something that gives the IdtyId of an AccountId

source

type OwnerKeyOf: Convert<Self::IdtyIndex, Option<Self::AccountId>>

Something that give the owner key of an identity

source

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

Something that gives the IdtyId of an AccountId

source

type MaxByIssuer: Get<u32>

Maximum number of active certifications by issuer

source

type MinCertForMembership: Get<u32>

Minimum number of certifications to become a Smith

source

type SmithInactivityMaxDuration: Get<u32>

Maximum duration of inactivity 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§