referrerpolicy=no-referrer-when-downgrade
pub trait AuthorProvider<AccountId> {
    // Required method
    fn author() -> AccountId;
}
Expand description

Abstraction over “something that can provide the block author”.

Required Methods§

source

fn author() -> AccountId

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AccountId> AuthorProvider<AccountId> for ()

source§

fn author() -> AccountId

Implementors§

source§

impl<AccountId> AuthorProvider<AccountId> for OtherAuthorProvider

source§

impl<T: Config> AuthorProvider<<T as Config>::AccountId> for Pallet<T>