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§
- Ensure
Personal Alias - Guard to ensure that the given origin is a person. The contextual alias of the person is provided on success.
- Ensure
Personal Alias InContext - Guard to ensure that the given origin is a person. The alias of the person within the context provided as an argument is returned on success.
- Ensure
Personal Identity - Guard to ensure that the given origin is a person. The underlying identity of the person is provided on success.
- Ensure
Revised Personal Alias - Guard to ensure that the given origin is a person.
- Ensure
Revised Personal Alias InContext - Guard to ensure that the given origin is a person.
- Genesis
Config - Can be used to configure the genesis state of this pallet.
- Pallet
- The
Pallet
struct, the main type that implements traits and standalone functions within the pallet.
Enums§
- Call
- Contains a variant per dispatchable extrinsic that this pallet has.
- Error
- The
Error
enum of this pallet. - Event
- The
Event
enum of this pallet - Origin
Traits§
- Config
- Configuration trait of this pallet.
Functions§
- ensure_
personal_ alias - Ensure that the origin
o
represents an extrinsic (i.e. transaction) from a personal alias. ReturnsOk
with the personal alias that signed the extrinsic or anErr
otherwise. - ensure_
personal_ identity - Ensure that the origin
o
represents an extrinsic (i.e. transaction) from a personal identity. ReturnsOk
with the personal identity that signed the extrinsic or anErr
otherwise. - ensure_
revised_ personal_ alias - Ensure that the origin
o
represents an extrinsic (i.e. transaction) from a personal alias with revision information.
Type Aliases§
- Account
ToAlias - Conversion of an account ID to a contextual alias.
- Account
ToPersonal Id - Association of an account ID to a personal ID.
- Active
Members - The number of people currently included in a ring.
- Alias
ToAccount - Conversion of a contextual alias to an account ID.
- Chunks
- Paginated collection of static chunks used by the verifiable crypto.
- Current
Ring Index - Keeps track of the ring index currently being populated.
- KeyMigration
Queue - A map of all the people who have declared their intent to migrate their keys and are waiting for the next mutation session.
- Keys
- The current individuals we recognise, but not necessarily yet included in a ring.
- Module
Deprecated - Type alias to
Pallet
, to be used byconstruct_runtime
. - Next
Personal Id - The next free and never reserved personal ID.
- Onboarding
Queue - Paginated collection of people public keys ready to be included in a ring.
- Onboarding
Size - Maximum number of people queued before onboarding to a ring.
- Pending
Suspensions - A map of all rings which currently have pending suspensions and need cleaning, along with their respective number of suspended keys which need to be removed.
- People
- The current individuals we recognise, but not necessarily yet included in a ring.
- Queue
Page Indices - Keeps track of the page indices of the head and tail of the onboarding queue.
- Reserved
Personal Id - Candidates’ reserved identities which we track.
- Ring
Building People Limit - Hint for the maximum number of people that can be included in a ring through a single root building call. If no value is set, then the onboarding size will be used instead.
- Ring
Keys - Both the keys that are included in built rings and the keys that will be used in future rings.
- Ring
Keys Status - Stores the meta information for each ring, the number of keys and how many are actually included in the root.
- Rings
State - The state of the pallet regarding the actions that are currently allowed to be performed on all existing rings.
- Root
- The current individuals we recognise.