Expand description
The pallet
module in each FRAME pallet hosts the most important items needed
to construct this pallet.
The main components of this pallet are:
Pallet
, which implements all of the dispatchable extrinsics of the pallet, among other public functions.- The subset of the functions that are dispatchable can be identified either in the
dispatchables
module or in theCall
enum.
- The subset of the functions that are dispatchable can be identified either in the
storage_types
, which contains the list of all types that are representing a storage item. Otherwise, all storage items are listed among Type Definitions.Config
, which contains the configuration trait of this pallet.Event
andError
, which are listed among the Enums.
Modules§
- dispatchables
- Auto-generated docs-only module listing all defined dispatchables for this pallet.
- storage_
types - Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.
Structs§
- Pallet
- The
Pallet
struct, the main type that implements traits and standalone functions within the pallet.
Enums§
- Call
- Identity pallet declaration.
- Error
- The
Error
enum of this pallet. - Event
- The
Event
enum of this pallet
Traits§
- Benchmark
Helper - Config
- Configuration trait of this pallet.
Type Aliases§
- Authority
Of - A map of the accounts who are authorized to grant usernames.
- Identity
Of - Information that is pertinent to identify the entity behind an account. First item is the registration, second is the account’s primary username.
- Module
Deprecated - Type alias to
Pallet
, to be used byconstruct_runtime
. - Pending
Usernames - Usernames that an authority has granted, but that the account controller has not confirmed
that they want it. Used primarily in cases where the
AccountId
cannot provide a signature because they are a pure proxy, multisig, etc. In order to confirm it, they should call accept_username. - Registrars
- The set of registrars. Not expected to get very big as can only be added through a special origin (likely a council motion).
- SubsOf
- Alternative “sub” identities of this account.
- SuperOf
- The super-identity of an alternative “sub” identity together with its name, within that
context. If the account is not some other account’s sub-identity, then just
None
. - Unbinding
Usernames - Usernames for which the authority that granted them has started the removal process by unbinding them. Each unbinding username maps to its grace period expiry, which is the first block in which the username could be deleted through a remove_username call.
- Username
Info Of - Reverse lookup from
username
to theAccountId
that has registered it and the provider of the username. Theowner
value should be a key in theUsernameOf
map, but it may not if the user has cleared their username or it has been removed. - Username
Of - Identifies the primary username of an account.