Trait orml_oracle::DataFeeder

source ·
pub trait DataFeeder<Key, Value, AccountId> {
    // Required method
    fn feed_value(
        who: Option<AccountId>,
        key: Key,
        value: Value
    ) -> Result<(), DispatchError>;
}
Expand description

Data provider with ability to provide data with no-op, and provide all data.

Required Methods§

source

fn feed_value( who: Option<AccountId>, key: Key, value: Value ) -> Result<(), DispatchError>

Provide a new value for a given key from an operator

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Config<I>, I: 'static> DataFeeder<<T as Config<I>>::OracleKey, <T as Config<I>>::OracleValue, <T as Config>::AccountId> for Pallet<T, I>