domain_test_primitives

Trait TimestampApi

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

Api that returns the timestamp

Provided Methods§

Source

fn domain_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§