pub trait OnReapIdentity<AccountId> {
// Required method
fn on_reap_identity(
who: &AccountId,
bytes: u32,
subs: u32,
) -> DispatchResult;
}
Expand description
Trait to handle reaping identity from state.
Required Methods§
sourcefn on_reap_identity(who: &AccountId, bytes: u32, subs: u32) -> DispatchResult
fn on_reap_identity(who: &AccountId, bytes: u32, subs: u32) -> DispatchResult
What to do when an identity is reaped. For example, the implementation could send an XCM program to another chain. Concretely, a type implementing this trait in the Polkadot runtime would teleport enough DOT to the People Chain to cover the Identity deposit there.
This could also directly include Transact { poke_deposit(..), ..}
.
Inputs
who
: Whose identity was reaped.bytes
: The byte size ofIdentityInfo
.subs
: The number of sub-accounts they had.
Object Safety§
This trait is not object safe.