Trait pallet_identity::pallet::Config
source · pub trait Config: Config {
Show 20 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type Currency: ReservableCurrency<Self::AccountId>;
type BasicDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type ByteDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type UsernameDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type SubAccountDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type MaxSubAccounts: Get<u32>;
type IdentityInformation: IdentityInformationProvider;
type MaxRegistrars: Get<u32>;
type Slashed: OnUnbalanced<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::NegativeImbalance>;
type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type RegistrarOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type OffchainSignature: Verify<Signer = Self::SigningPublicKey> + Parameter;
type SigningPublicKey: IdentifyAccount<AccountId = Self::AccountId>;
type UsernameAuthorityOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type PendingUsernameExpiration: Get<BlockNumberFor<Self>>;
type UsernameGracePeriod: Get<BlockNumberFor<Self>>;
type MaxSuffixLength: Get<u32>;
type MaxUsernameLength: 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.
Required Associated Types§
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 BasicDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type BasicDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The amount held on deposit for a registered identity.
sourcetype ByteDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type ByteDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The amount held on deposit per encoded byte for a registered identity.
sourcetype UsernameDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type UsernameDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The amount held on deposit per registered username. This value should change only in runtime upgrades with proper migration of existing deposits.
sourcetype SubAccountDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type SubAccountDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The amount held on deposit for a registered subaccount. This should account for the fact that one storage item’s value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes.
sourcetype MaxSubAccounts: Get<u32>
type MaxSubAccounts: Get<u32>
The maximum number of sub-accounts allowed per identified account.
sourcetype IdentityInformation: IdentityInformationProvider
type IdentityInformation: IdentityInformationProvider
Structure holding information about an identity.
sourcetype MaxRegistrars: Get<u32>
type MaxRegistrars: Get<u32>
Maximum number of registrars allowed in the system. Needed to bound the complexity of, e.g., updating judgements.
sourcetype Slashed: OnUnbalanced<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::NegativeImbalance>
type Slashed: OnUnbalanced<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::NegativeImbalance>
What to do with slashed funds.
sourcetype ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin which may forcibly set or remove a name. Root can always do this.
sourcetype RegistrarOrigin: EnsureOrigin<Self::RuntimeOrigin>
type RegistrarOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin which may add or remove registrars. Root can always do this.
sourcetype OffchainSignature: Verify<Signer = Self::SigningPublicKey> + Parameter
type OffchainSignature: Verify<Signer = Self::SigningPublicKey> + Parameter
Signature type for pre-authorizing usernames off-chain.
Can verify whether an Self::SigningPublicKey
created a signature.
sourcetype SigningPublicKey: IdentifyAccount<AccountId = Self::AccountId>
type SigningPublicKey: IdentifyAccount<AccountId = Self::AccountId>
Public key that corresponds to an on-chain Self::AccountId
.
sourcetype UsernameAuthorityOrigin: EnsureOrigin<Self::RuntimeOrigin>
type UsernameAuthorityOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin which may add or remove username authorities. Root can always do this.
sourcetype PendingUsernameExpiration: Get<BlockNumberFor<Self>>
type PendingUsernameExpiration: Get<BlockNumberFor<Self>>
The number of blocks within which a username grant must be accepted.
sourcetype UsernameGracePeriod: Get<BlockNumberFor<Self>>
type UsernameGracePeriod: Get<BlockNumberFor<Self>>
The number of blocks that must pass to enable the permanent deletion of a username by its respective authority.
sourcetype MaxSuffixLength: Get<u32>
type MaxSuffixLength: Get<u32>
The maximum length of a suffix.
sourcetype MaxUsernameLength: Get<u32>
type MaxUsernameLength: Get<u32>
The maximum length of a username, including its suffix and any system-added delimiters.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.