pub trait CheckAccountWorthiness<T: Config> {
// Required methods
fn check_account_worthiness(
account: &T::AccountId
) -> Result<(), DispatchError>;
fn set_worthy(account: &T::AccountId);
}
Expand description
Trait to check the worthiness of an account.
Required Methods§
sourcefn check_account_worthiness(account: &T::AccountId) -> Result<(), DispatchError>
fn check_account_worthiness(account: &T::AccountId) -> Result<(), DispatchError>
Check the worthiness of an account.
sourcefn set_worthy(account: &T::AccountId)
fn set_worthy(account: &T::AccountId)
Set an account as worthy. Only available for runtime benchmarks.
Object Safety§
This trait is not object safe.