pub trait GetLastTimestamp<Block: BlockT>: Core<Block> {
    // Provided method
    fn get_last_timestamp(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<u64, ApiError> { ... }
}

Provided Methods§

source

fn get_last_timestamp( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<u64, ApiError>

Returns the last timestamp of a runtime.

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn GetLastTimestamp<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§

source§

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> GetLastTimestamp<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send, u64: UnwindSafe + RefUnwindSafe, __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,