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§

source

fn check_account_worthiness(account: &T::AccountId) -> Result<(), DispatchError>

Check the worthiness of an account.

source

fn set_worthy(account: &T::AccountId)

Set an account as worthy. Only available for runtime benchmarks.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Config> CheckAccountWorthiness<T> for ()

source§

fn check_account_worthiness( _account: &T::AccountId ) -> Result<(), DispatchError>

source§

fn set_worthy(_account: &T::AccountId)

Implementors§