Trait ValidateOracleTime

Source
pub trait ValidateOracleTime {
    // Required methods
    fn oracle_updated_after(&self) -> Result<Option<i64>, CoreError>;
    fn oracle_updated_before(&self) -> Result<Option<i64>, CoreError>;
    fn oracle_updated_after_slot(&self) -> Result<Option<u64>, CoreError>;
}
Expand description

Validate Oracle Time.

Required Methods§

Source

fn oracle_updated_after(&self) -> Result<Option<i64>, CoreError>

Oracle must be updated after this time.

Source

fn oracle_updated_before(&self) -> Result<Option<i64>, CoreError>

Oracle must be updated before this time.

Source

fn oracle_updated_after_slot(&self) -> Result<Option<u64>, CoreError>

Oracle must be updated after this slot.

Implementors§