Trait pallet_clock::Clock

pub trait Clock<T>where
    T: Config,{
    // Required methods
    fn current_round(
    ) -> RoundInfo<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number>;
    fn round_duration(
    ) -> <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number;
}

Required Methods§

fn current_round( ) -> RoundInfo<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number>

fn round_duration( ) -> <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number

Implementors§

§

impl<T> Clock<T> for ClockMock<T>where T: Config,

source§

impl<T: Config> Clock<T> for Pallet<T>