domain_test_primitives

Trait TimestampApi

source
pub trait TimestampApi<Block: BlockT>: Core<Block> {
    // Provided method
    fn timestamp(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<Moment, ApiError> { ... }
}
Expand description

Api that returns the timestamp

Provided Methods§

source

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

Api to construct inherent timestamp extrinsic from given time

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§