pub type Identity = Pallet<Runtime>;
Aliased Type§
struct Identity(/* private fields */);
Implementations
Source§impl<T> Pallet<T>where
T: Config,
impl<T> Pallet<T>where
T: Config,
Sourcepub fn subs(
who: &<T as Config>::AccountId,
) -> Vec<(<T as Config>::AccountId, Data)>
pub fn subs( who: &<T as Config>::AccountId, ) -> Vec<(<T as Config>::AccountId, Data)>
Get the subs of an account.
Sourcepub fn has_identity(
who: &<T as Config>::AccountId,
fields: <<T as Config>::IdentityInformation as IdentityInformationProvider>::FieldsIdentifier,
) -> bool
pub fn has_identity( who: &<T as Config>::AccountId, fields: <<T as Config>::IdentityInformation as IdentityInformationProvider>::FieldsIdentifier, ) -> bool
Check if the account has corresponding identity information by the identity field.
Sourcepub fn validate_signature(
data: &[u8],
signature: &<T as Config>::OffchainSignature,
signer: &<T as Config>::AccountId,
) -> Result<(), DispatchError>
pub fn validate_signature( data: &[u8], signature: &<T as Config>::OffchainSignature, signer: &<T as Config>::AccountId, ) -> Result<(), DispatchError>
Validate a signature. Supports signatures on raw data
or data
wrapped in HTML <Bytes>
.
Sourcepub fn insert_username(
who: &<T as Config>::AccountId,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
provider: Provider<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
)
pub fn insert_username( who: &<T as Config>::AccountId, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, provider: Provider<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>, )
A username has met all conditions. Insert the relevant storage items.
Sourcepub fn queue_acceptance(
who: &<T as Config>::AccountId,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
provider: Provider<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
)
pub fn queue_acceptance( who: &<T as Config>::AccountId, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, provider: Provider<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>, )
A username was granted by an authority, but must be accepted by who
. Put the username
into a queue for acceptance.
Sourcepub fn reap_identity(
who: &<T as Config>::AccountId,
) -> Result<(u32, u32, u32), DispatchError>
pub fn reap_identity( who: &<T as Config>::AccountId, ) -> Result<(u32, u32, u32), DispatchError>
Reap an identity, clearing associated storage items and refunding any deposits. This
function is very similar to (a) clear_identity
, but called on a target
account instead
of self; and (b) kill_identity
, but without imposing a slash.
Parameters:
target
: The account for which to reap identity state.
Return type is a tuple of the number of registrars, IdentityInfo
bytes, and sub accounts,
respectively.
NOTE: This function is here temporarily for migration of Identity info from the Polkadot Relay Chain into a system parachain. It will be removed after the migration.
Sourcepub fn poke_deposit(
target: &<T as Config>::AccountId,
) -> Result<(<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance), DispatchError>
pub fn poke_deposit( target: &<T as Config>::AccountId, ) -> Result<(<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance), DispatchError>
Update the deposits held by target
for its identity info.
Parameters:
target
: The account for which to update deposits.
Return type is a tuple of the new Identity and Subs deposits, respectively.
NOTE: This function is here temporarily for migration of Identity info from the Polkadot Relay Chain into a system parachain. It will be removed after the migration.
Sourcepub fn set_identity_no_deposit(
who: &<T as Config>::AccountId,
info: <T as Config>::IdentityInformation,
) -> Result<(), DispatchError>
pub fn set_identity_no_deposit( who: &<T as Config>::AccountId, info: <T as Config>::IdentityInformation, ) -> Result<(), DispatchError>
Set an identity with zero deposit. Used for benchmarking and XCM emulator tests that involve
rejig_deposit
.
Source§impl<T> Pallet<T>where
T: Config,
impl<T> Pallet<T>where
T: Config,
Identity pallet declaration.
Sourcepub fn add_registrar(
origin: <T as Config>::RuntimeOrigin,
account: <<T as Config>::Lookup as StaticLookup>::Source,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn add_registrar( origin: <T as Config>::RuntimeOrigin, account: <<T as Config>::Lookup as StaticLookup>::Source, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Add a registrar to the system.
The dispatch origin for this call must be T::RegistrarOrigin
.
account
: the account of the registrar.
Emits RegistrarAdded
if successful.
Sourcepub fn set_identity(
origin: <T as Config>::RuntimeOrigin,
info: Box<<T as Config>::IdentityInformation>,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn set_identity( origin: <T as Config>::RuntimeOrigin, info: Box<<T as Config>::IdentityInformation>, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Set an account’s identity information and reserve the appropriate deposit.
If the account already has identity information, the deposit is taken as part payment for the new deposit.
The dispatch origin for this call must be Signed.
info
: The identity information.
Emits IdentitySet
if successful.
Sourcepub fn set_subs(
origin: <T as Config>::RuntimeOrigin,
subs: Vec<(<T as Config>::AccountId, Data)>,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn set_subs( origin: <T as Config>::RuntimeOrigin, subs: Vec<(<T as Config>::AccountId, Data)>, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Set the sub-accounts of the sender.
Payment: Any aggregate balance reserved by previous set_subs
calls will be returned
and an amount SubAccountDeposit
will be reserved for each item in subs
.
The dispatch origin for this call must be Signed and the sender must have a registered identity.
subs
: The identity’s (new) sub-accounts.
Sourcepub fn clear_identity(
origin: <T as Config>::RuntimeOrigin,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn clear_identity( origin: <T as Config>::RuntimeOrigin, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Clear an account’s identity info and all sub-accounts and return all deposits.
Payment: All reserved balances on the account are returned.
The dispatch origin for this call must be Signed and the sender must have a registered identity.
Emits IdentityCleared
if successful.
Sourcepub fn request_judgement(
origin: <T as Config>::RuntimeOrigin,
reg_index: u32,
max_fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn request_judgement( origin: <T as Config>::RuntimeOrigin, reg_index: u32, max_fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Request a judgement from a registrar.
Payment: At most max_fee
will be reserved for payment to the registrar if judgement
given.
The dispatch origin for this call must be Signed and the sender must have a registered identity.
reg_index
: The index of the registrar whose judgement is requested.max_fee
: The maximum fee that may be paid. This should just be auto-populated as:
Registrars::<T>::get().get(reg_index).unwrap().fee
Emits JudgementRequested
if successful.
Sourcepub fn cancel_request(
origin: <T as Config>::RuntimeOrigin,
reg_index: u32,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn cancel_request( origin: <T as Config>::RuntimeOrigin, reg_index: u32, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Cancel a previous request.
Payment: A previously reserved deposit is returned on success.
The dispatch origin for this call must be Signed and the sender must have a registered identity.
reg_index
: The index of the registrar whose judgement is no longer requested.
Emits JudgementUnrequested
if successful.
Sourcepub fn set_fee(
origin: <T as Config>::RuntimeOrigin,
index: u32,
fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn set_fee( origin: <T as Config>::RuntimeOrigin, index: u32, fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Set the fee required for a judgement to be requested from a registrar.
The dispatch origin for this call must be Signed and the sender must be the account
of the registrar whose index is index
.
index
: the index of the registrar whose fee is to be set.fee
: the new fee.
Sourcepub fn set_account_id(
origin: <T as Config>::RuntimeOrigin,
index: u32,
new: <<T as Config>::Lookup as StaticLookup>::Source,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn set_account_id( origin: <T as Config>::RuntimeOrigin, index: u32, new: <<T as Config>::Lookup as StaticLookup>::Source, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Change the account associated with a registrar.
The dispatch origin for this call must be Signed and the sender must be the account
of the registrar whose index is index
.
index
: the index of the registrar whose fee is to be set.new
: the new account ID.
Sourcepub fn set_fields(
origin: <T as Config>::RuntimeOrigin,
index: u32,
fields: <<T as Config>::IdentityInformation as IdentityInformationProvider>::FieldsIdentifier,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn set_fields( origin: <T as Config>::RuntimeOrigin, index: u32, fields: <<T as Config>::IdentityInformation as IdentityInformationProvider>::FieldsIdentifier, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Set the field information for a registrar.
The dispatch origin for this call must be Signed and the sender must be the account
of the registrar whose index is index
.
index
: the index of the registrar whose fee is to be set.fields
: the fields that the registrar concerns themselves with.
Sourcepub fn provide_judgement(
origin: <T as Config>::RuntimeOrigin,
reg_index: u32,
target: <<T as Config>::Lookup as StaticLookup>::Source,
judgement: Judgement<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
identity: <T as Config>::Hash,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn provide_judgement( origin: <T as Config>::RuntimeOrigin, reg_index: u32, target: <<T as Config>::Lookup as StaticLookup>::Source, judgement: Judgement<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>, identity: <T as Config>::Hash, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Provide a judgement for an account’s identity.
The dispatch origin for this call must be Signed and the sender must be the account
of the registrar whose index is reg_index
.
reg_index
: the index of the registrar whose judgement is being made.target
: the account whose identity the judgement is upon. This must be an account with a registered identity.judgement
: the judgement of the registrar of indexreg_index
abouttarget
.identity
: The hash of theIdentityInformationProvider
for that the judgement is provided.
Note: Judgements do not apply to a username.
Emits JudgementGiven
if successful.
Sourcepub fn kill_identity(
origin: <T as Config>::RuntimeOrigin,
target: <<T as Config>::Lookup as StaticLookup>::Source,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn kill_identity( origin: <T as Config>::RuntimeOrigin, target: <<T as Config>::Lookup as StaticLookup>::Source, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Remove an account’s identity and sub-account information and slash the deposits.
Payment: Reserved balances from set_subs
and set_identity
are slashed and handled by
Slash
. Verification request deposits are not returned; they should be cancelled
manually using cancel_request
.
The dispatch origin for this call must match T::ForceOrigin
.
target
: the account whose identity the judgement is upon. This must be an account with a registered identity.
Emits IdentityKilled
if successful.
Sourcepub fn add_sub(
origin: <T as Config>::RuntimeOrigin,
sub: <<T as Config>::Lookup as StaticLookup>::Source,
data: Data,
) -> Result<(), DispatchError>
pub fn add_sub( origin: <T as Config>::RuntimeOrigin, sub: <<T as Config>::Lookup as StaticLookup>::Source, data: Data, ) -> Result<(), DispatchError>
Add the given account to the sender’s subs.
Payment: Balance reserved by a previous set_subs
call for one sub will be repatriated
to the sender.
The dispatch origin for this call must be Signed and the sender must have a registered
sub identity of sub
.
Sourcepub fn rename_sub(
origin: <T as Config>::RuntimeOrigin,
sub: <<T as Config>::Lookup as StaticLookup>::Source,
data: Data,
) -> Result<(), DispatchError>
pub fn rename_sub( origin: <T as Config>::RuntimeOrigin, sub: <<T as Config>::Lookup as StaticLookup>::Source, data: Data, ) -> Result<(), DispatchError>
Alter the associated name of the given sub-account.
The dispatch origin for this call must be Signed and the sender must have a registered
sub identity of sub
.
Sourcepub fn remove_sub(
origin: <T as Config>::RuntimeOrigin,
sub: <<T as Config>::Lookup as StaticLookup>::Source,
) -> Result<(), DispatchError>
pub fn remove_sub( origin: <T as Config>::RuntimeOrigin, sub: <<T as Config>::Lookup as StaticLookup>::Source, ) -> Result<(), DispatchError>
Remove the given account from the sender’s subs.
Payment: Balance reserved by a previous set_subs
call for one sub will be repatriated
to the sender.
The dispatch origin for this call must be Signed and the sender must have a registered
sub identity of sub
.
Sourcepub fn quit_sub(
origin: <T as Config>::RuntimeOrigin,
) -> Result<(), DispatchError>
pub fn quit_sub( origin: <T as Config>::RuntimeOrigin, ) -> Result<(), DispatchError>
Remove the sender as a sub-account.
Payment: Balance reserved by a previous set_subs
call for one sub will be repatriated
to the sender (not the original depositor).
The dispatch origin for this call must be Signed and the sender must have a registered super-identity.
NOTE: This should not normally be used, but is provided in the case that the non- controller of an account is maliciously registered as a sub-account.
Add an AccountId
with permission to grant usernames with a given suffix
appended.
The authority can grant up to allocation
usernames. To top up the allocation or
change the account used to grant usernames, this call can be used with the updated
parameters to overwrite the existing configuration.
Remove authority
from the username authorities.
Sourcepub fn set_username_for(
origin: <T as Config>::RuntimeOrigin,
who: <<T as Config>::Lookup as StaticLookup>::Source,
username: Vec<u8>,
signature: Option<<T as Config>::OffchainSignature>,
use_allocation: bool,
) -> Result<(), DispatchError>
pub fn set_username_for( origin: <T as Config>::RuntimeOrigin, who: <<T as Config>::Lookup as StaticLookup>::Source, username: Vec<u8>, signature: Option<<T as Config>::OffchainSignature>, use_allocation: bool, ) -> Result<(), DispatchError>
Set the username for who
. Must be called by a username authority.
If use_allocation
is set, the authority must have a username allocation available to
spend. Otherwise, the authority will need to put up a deposit for registering the
username.
Users can either pre-sign their usernames or accept them later.
Usernames must:
- Only contain lowercase ASCII characters or digits.
- When combined with the suffix of the issuing authority be less than the
MaxUsernameLength
.
Sourcepub fn accept_username(
origin: <T as Config>::RuntimeOrigin,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn accept_username( origin: <T as Config>::RuntimeOrigin, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Accept a given username that an authority
granted. The call must include the full
username, as in username.suffix
.
Sourcepub fn remove_expired_approval(
origin: <T as Config>::RuntimeOrigin,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn remove_expired_approval( origin: <T as Config>::RuntimeOrigin, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Remove an expired username approval. The username was approved by an authority but never
accepted by the user and must now be beyond its expiration. The call must include the
full username, as in username.suffix
.
Sourcepub fn set_primary_username(
origin: <T as Config>::RuntimeOrigin,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
) -> Result<(), DispatchError>
pub fn set_primary_username( origin: <T as Config>::RuntimeOrigin, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, ) -> Result<(), DispatchError>
Set a given username as the primary. The username should include the suffix.
Sourcepub fn unbind_username(
origin: <T as Config>::RuntimeOrigin,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
) -> Result<(), DispatchError>
pub fn unbind_username( origin: <T as Config>::RuntimeOrigin, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, ) -> Result<(), DispatchError>
Start the process of removing a username by placing it in the unbinding usernames map. Once the grace period has passed, the username can be deleted by calling remove_username.
Sourcepub fn remove_username(
origin: <T as Config>::RuntimeOrigin,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn remove_username( origin: <T as Config>::RuntimeOrigin, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Permanently delete a username which has been unbinding for longer than the grace period. Caller is refunded the fee if the username expired and the removal was successful.
Sourcepub fn kill_username(
origin: <T as Config>::RuntimeOrigin,
username: BoundedVec<u8, <T as Config>::MaxUsernameLength>,
) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
pub fn kill_username( origin: <T as Config>::RuntimeOrigin, username: BoundedVec<u8, <T as Config>::MaxUsernameLength>, ) -> Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>
Call with ForceOrigin privileges which deletes a username and slashes any deposit associated with it.
Trait Implementations
Source§impl<T> BeforeAllRuntimeMigrations for Pallet<T>where
T: Config,
impl<T> BeforeAllRuntimeMigrations for Pallet<T>where
T: Config,
Source§fn before_all_runtime_migrations() -> Weight
fn before_all_runtime_migrations() -> Weight
Source§impl<T> Benchmarking for Pallet<T>where
T: Config + Config,
<T as Config>::AccountId: From<AccountId32>,
<T as Config>::OffchainSignature: From<MultiSignature>,
impl<T> Benchmarking for Pallet<T>where
T: Config + Config,
<T as Config>::AccountId: From<AccountId32>,
<T as Config>::OffchainSignature: From<MultiSignature>,
Source§fn benchmarks(extra: bool) -> Vec<BenchmarkMetadata>
fn benchmarks(extra: bool) -> Vec<BenchmarkMetadata>
Source§fn run_benchmark(
extrinsic: &[u8],
c: &[(BenchmarkParameter, u32)],
whitelist: &[TrackedStorageKey],
verify: bool,
internal_repeats: u32,
) -> Result<Vec<BenchmarkResult>, BenchmarkError>
fn run_benchmark( extrinsic: &[u8], c: &[(BenchmarkParameter, u32)], whitelist: &[TrackedStorageKey], verify: bool, internal_repeats: u32, ) -> Result<Vec<BenchmarkResult>, BenchmarkError>
Source§impl<T> DispatchViewFunction for Pallet<T>where
T: Config,
impl<T> DispatchViewFunction for Pallet<T>where
T: Config,
fn dispatch_view_function<O>(
id: &ViewFunctionId,
input: &mut &[u8],
output: &mut O,
) -> Result<(), ViewFunctionDispatchError>where
O: Output,
Source§impl<T> GetStorageVersion for Pallet<T>where
T: Config,
impl<T> GetStorageVersion for Pallet<T>where
T: Config,
Source§fn in_code_storage_version() -> <Pallet<T> as GetStorageVersion>::InCodeStorageVersion
fn in_code_storage_version() -> <Pallet<T> as GetStorageVersion>::InCodeStorageVersion
storage_version
attribute, or
NoStorageVersionSet
if the attribute is missing.Source§fn on_chain_storage_version() -> StorageVersion
fn on_chain_storage_version() -> StorageVersion
Source§fn current_storage_version() -> Self::InCodeStorageVersion
fn current_storage_version() -> Self::InCodeStorageVersion
in_code_storage_version
and will be removed after March 2024.Self::current_storage_version
instead. Read moreSource§impl<T> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§fn on_initialize(_n: BlockNumber) -> Weight
fn on_initialize(_n: BlockNumber) -> Weight
Source§fn on_finalize(_n: BlockNumber)
fn on_finalize(_n: BlockNumber)
Source§fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
Hooks::on_finalize
). Read moreSource§fn on_poll(_n: BlockNumber, _weight: &mut WeightMeter)
fn on_poll(_n: BlockNumber, _weight: &mut WeightMeter)
Source§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
Executive
pallet. Read moreSource§fn try_state(_n: BlockNumber) -> Result<(), DispatchError>
fn try_state(_n: BlockNumber) -> Result<(), DispatchError>
Source§fn pre_upgrade() -> Result<Vec<u8>, DispatchError>
fn pre_upgrade() -> Result<Vec<u8>, DispatchError>
Source§fn post_upgrade(_state: Vec<u8>) -> Result<(), DispatchError>
fn post_upgrade(_state: Vec<u8>) -> Result<(), DispatchError>
Source§fn offchain_worker(_n: BlockNumber)
fn offchain_worker(_n: BlockNumber)
Source§fn integrity_test()
fn integrity_test()
Source§impl<T> IntegrityTest for Pallet<T>where
T: Config,
impl<T> IntegrityTest for Pallet<T>where
T: Config,
Source§impl<T> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§impl<T> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§fn on_finalize(
n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
)
fn on_finalize( n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number, )
Hooks::on_finalize
.Source§impl<T> OnGenesis for Pallet<T>where
T: Config,
impl<T> OnGenesis for Pallet<T>where
T: Config,
Source§fn on_genesis()
fn on_genesis()
Source§impl<T> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§impl<T> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§fn on_initialize(
n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
) -> Weight
fn on_initialize( n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number, ) -> Weight
Hooks::on_initialize
.Source§impl<T> OnPoll<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> OnPoll<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§impl<T> OnRuntimeUpgrade for Pallet<T>where
T: Config,
impl<T> OnRuntimeUpgrade for Pallet<T>where
T: Config,
Source§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
Source§fn pre_upgrade() -> Result<Vec<u8>, DispatchError>
fn pre_upgrade() -> Result<Vec<u8>, DispatchError>
Hooks::pre_upgrade
.Source§fn post_upgrade(state: Vec<u8>) -> Result<(), DispatchError>
fn post_upgrade(state: Vec<u8>) -> Result<(), DispatchError>
Hooks::post_upgrade
.Source§fn try_on_runtime_upgrade(checks: bool) -> Result<Weight, DispatchError>
fn try_on_runtime_upgrade(checks: bool) -> Result<Weight, DispatchError>
pre_upgrade
->
on_runtime_upgrade
-> post_upgrade
hooks for a migration. Read moreSource§impl<T> PalletInfoAccess for Pallet<T>where
T: Config,
impl<T> PalletInfoAccess for Pallet<T>where
T: Config,
Source§fn module_name() -> &'static str
fn module_name() -> &'static str
Source§fn crate_version() -> CrateVersion
fn crate_version() -> CrateVersion
Source§impl<T> PalletsInfoAccess for Pallet<T>where
T: Config,
impl<T> PalletsInfoAccess for Pallet<T>where
T: Config,
Source§impl<T> StorageInfoTrait for Pallet<T>where
T: Config,
impl<T> StorageInfoTrait for Pallet<T>where
T: Config,
fn storage_info() -> Vec<StorageInfo>
Source§impl<T> TryDecodeEntireStorage for Pallet<T>where
T: Config,
impl<T> TryDecodeEntireStorage for Pallet<T>where
T: Config,
Source§fn try_decode_entire_state() -> Result<usize, Vec<TryDecodeEntireStorageError>>
fn try_decode_entire_state() -> Result<usize, Vec<TryDecodeEntireStorageError>>
Ok(bytes_decoded)
if success.Source§impl<T> TryState<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
impl<T> TryState<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>where
T: Config,
Source§impl<T> WhitelistedStorageKeys for Pallet<T>where
T: Config,
impl<T> WhitelistedStorageKeys for Pallet<T>where
T: Config,
Source§fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>
fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>
Vec<TrackedStorageKey>
indicating the storage keys that
should be whitelisted during benchmarking. This means that those keys
will be excluded from the benchmarking performance calculation.