Introduce OnReapAccount (#4585)

* Initial run and gun at `OnReapAccount`

* Fix some imports

* More fixes

* Whitespace

* More wack-a-mole

* Gotta catch em all

* Update lib.rs

* Small doc update

* Whitespace
This commit is contained in:
Shawn Tabrizi
2020-01-10 01:46:23 +01:00
committed by Gavin Wood
parent 78c73e76c3
commit a1e0076aa8
19 changed files with 57 additions and 5 deletions
+8 -1
View File
@@ -67,10 +67,17 @@ pub trait Contains<T: Ord> {
/// The account with the given id was killed.
#[impl_trait_for_tuples::impl_for_tuples(30)]
pub trait OnFreeBalanceZero<AccountId> {
/// The account was the given id was killed.
/// The account with the given id was killed.
fn on_free_balance_zero(who: &AccountId);
}
/// The account with the given id was reaped.
#[impl_trait_for_tuples::impl_for_tuples(30)]
pub trait OnReapAccount<AccountId> {
/// The account with the given id was reaped.
fn on_reap_account(who: &AccountId);
}
/// Outcome of a balance update.
pub enum UpdateBalanceOutcome {
/// Account balance was simply updated.