[][src]Trait orml_oracle::DataProviderExtended

pub trait DataProviderExtended<Key, TimestampedValue> {
    fn get_no_op(key: &Key) -> Option<TimestampedValue>;
fn get_all_values() -> Vec<(Key, Option<TimestampedValue>)>; }

Extended data provider to provide timestamped data by key with no-op, and all data.

Required methods

fn get_no_op(key: &Key) -> Option<TimestampedValue>

Get timestamped value by key

fn get_all_values() -> Vec<(Key, Option<TimestampedValue>)>

Provide a list of tuples of key and timestamped value

Loading content...

Implementors

impl<T: Trait<I>, I: Instance> DataProviderExtended<<T as Trait<I>>::OracleKey, TimestampedValue<<T as Trait<I>>::OracleValue, <<T as Trait<I>>::Time as Time>::Moment>> for Module<T, I>[src]

Loading content...