Trait MockClientContext

Source
pub trait MockClientContext {
    // Required methods
    fn host_timestamp(&self) -> Result<Timestamp, HostError>;
    fn host_height(&self) -> Result<Height, HostError>;
}

Required Methods§

Source

fn host_timestamp(&self) -> Result<Timestamp, HostError>

Returns the current timestamp of the local chain.

Source

fn host_height(&self) -> Result<Height, HostError>

Returns the current height of the local chain.

Implementors§