Trait pallet_identity::pallet::Config
source · pub trait Config: Config {
Show 17 associated items
type ConfirmPeriod: Get<BlockNumberFor<Self>>;
type ValidationPeriod: Get<BlockNumberFor<Self>>;
type AutorevocationPeriod: Get<BlockNumberFor<Self>>;
type DeletionPeriod: Get<BlockNumberFor<Self>>;
type ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>;
type IdtyCreationPeriod: Get<BlockNumberFor<Self>>;
type CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>;
type IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen;
type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen;
type AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>;
type IdtyNameValidator: IdtyNameValidator;
type OnNewIdty: OnNewIdty<Self>;
type OnRemoveIdty: OnRemoveIdty<Self>;
type Signer: IdentifyAccount<AccountId = Self::AccountId>;
type Signature: Parameter + Verify<Signer = Self::Signer>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
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.
Required Associated Types§
sourcetype ConfirmPeriod: Get<BlockNumberFor<Self>>
type ConfirmPeriod: Get<BlockNumberFor<Self>>
Period during which the owner can confirm the new identity.
sourcetype ValidationPeriod: Get<BlockNumberFor<Self>>
type ValidationPeriod: Get<BlockNumberFor<Self>>
Period before which the identity has to be validated (become member).
sourcetype AutorevocationPeriod: Get<BlockNumberFor<Self>>
type AutorevocationPeriod: Get<BlockNumberFor<Self>>
Period before which an identity who lost membership is automatically revoked.
sourcetype DeletionPeriod: Get<BlockNumberFor<Self>>
type DeletionPeriod: Get<BlockNumberFor<Self>>
Period after which a revoked identity is removed and the keys are freed.
sourcetype ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>
type ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>
Minimum duration between two owner key changes.
sourcetype IdtyCreationPeriod: Get<BlockNumberFor<Self>>
type IdtyCreationPeriod: Get<BlockNumberFor<Self>>
Minimum duration between the creation of 2 identities by the same creator.
sourcetype CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>
type CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>
Management of the authorizations of the different calls. The default implementation allows everything.
sourcetype IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen
type IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen
Custom data to store in each identity.
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 AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>
type AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>
custom type for account data
sourcetype IdtyNameValidator: IdtyNameValidator
type IdtyNameValidator: IdtyNameValidator
Handle logic to validate an identity name
sourcetype OnRemoveIdty: OnRemoveIdty<Self>
type OnRemoveIdty: OnRemoveIdty<Self>
On identity removed.
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Because this pallet emits events, it depends on the runtime’s definition of an event.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet