Struct orml_oracle::module::Pallet[][src]

pub struct Pallet<T, I = ()>(_);

Implementations

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn feed_values(
    origin: OriginFor<T>,
    values: Vec<(T::OracleKey, T::OracleValue)>
) -> DispatchResultWithPostInfo
[src]

Feed the external value.

Require authorized operator.

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn raw_values<KArg1, KArg2>(
    k1: KArg1,
    k2: KArg2
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>> where
    KArg1: EncodeLike<T::AccountId>,
    KArg2: EncodeLike<T::OracleKey>, 
[src]

Raw values for each oracle operators

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn is_updated<KArg>(k: KArg) -> bool where
    KArg: EncodeLike<<T as Config<I>>::OracleKey>, 
[src]

True if Self::values(key) is up to date, otherwise the value is stale

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn values<KArg>(
    k: KArg
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>> where
    KArg: EncodeLike<<T as Config<I>>::OracleKey>, 
[src]

Combined value, may not be up to date

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn members() -> OrderedSet<T::AccountId>[src]

The current members of the collective. This is stored sorted (just by value).

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn nonces<KArg>(k: KArg) -> Option<u32> where
    KArg: EncodeLike<T::AccountId>, 
[src]

impl<T: Config<I>, I: 'static> Pallet<T, I>[src]

pub fn read_raw_values(
    key: &T::OracleKey
) -> Vec<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
[src]

pub fn get(
    key: &T::OracleKey
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
[src]

Returns fresh combined value if has update, or latest combined value.

Note this will update values storage if has update.

pub fn get_no_op(
    key: &T::OracleKey
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
[src]

Returns fresh combined value if has update, or latest combined value.

This is a no-op function which would not change storage.

pub fn get_all_values(
) -> Vec<(T::OracleKey, Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>)>
[src]

Trait Implementations

impl<T: Config<I>, I: 'static> Callable<T> for Pallet<T, I>[src]

type Call = Call<T, I>

impl<T: Config<I>, I: 'static> ChangeMembers<<T as Config>::AccountId> for Pallet<T, I>[src]

impl<T, I> Clone for Pallet<T, I>[src]

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>[src]

impl<T: Config<I>, I: 'static> DataProvider<<T as Config<I>>::OracleKey, <T as Config<I>>::OracleValue> for Pallet<T, I>[src]

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]

impl<T, I> Debug for Pallet<T, I>[src]

impl<T, I> Eq for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> GetPalletVersion for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> Hooks<<T as Config>::BlockNumber> for Pallet<T, I>[src]

fn on_initialize(_n: T::BlockNumber) -> Weight[src]

on_initialize to return the weight used in on_finalize.

impl<T: Config<I>, I: 'static> InitializeMembers<<T as Config>::AccountId> for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> IntegrityTest for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> ModuleErrorMetadata for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> OffchainWorker<<T as Config>::BlockNumber> for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> OnFinalize<<T as Config>::BlockNumber> for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> OnGenesis for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> OnInitialize<<T as Config>::BlockNumber> for Pallet<T, I>[src]

impl<T: Config<I>, I: 'static> OnRuntimeUpgrade for Pallet<T, I>[src]

impl<T, I> PartialEq<Pallet<T, I>> for Pallet<T, I>[src]

Auto Trait Implementations

impl<T, I> RefUnwindSafe for Pallet<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, I> Send for Pallet<T, I> where
    I: Send,
    T: Send
[src]

impl<T, I> Sync for Pallet<T, I> where
    I: Sync,
    T: Sync
[src]

impl<T, I> Unpin for Pallet<T, I> where
    I: Unpin,
    T: Unpin
[src]

impl<T, I> UnwindSafe for Pallet<T, I> where
    I: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,