Trait orml_oracle::DataProviderExtended [−][src]
Extended data provider to provide timestamped data by key with no-op, and all data.
Required methods
pub fn get_no_op(key: &Key) -> Option<TimestampedValue>
[src]
Get timestamped value by key
pub fn get_all_values() -> Vec<(Key, Option<TimestampedValue>), Global>
[src]
Provide a list of tuples of key and timestamped value
Implementors
impl<T: Config<I>, I: 'static> DataProviderExtended<<T as Config<I>>::OracleKey, TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>> for Pallet<T, I>
[src]
fn get_no_op(
key: &T::OracleKey
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
[src]
key: &T::OracleKey
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
fn get_all_values(
) -> Vec<(T::OracleKey, Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>)>
[src]
) -> Vec<(T::OracleKey, Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>)>