[−][src]Struct orml_oracle::Module
Implementations
impl<T: Trait + 'static> Module<T>
[src]
pub fn raw_values<KArg1, KArg2>(
k1: KArg1,
k2: KArg2
) -> Option<TimestampedValueOf<T>> where
KArg1: EncodeLike<T::OracleKey>,
KArg2: EncodeLike<T::AccountId>,
[src]
k1: KArg1,
k2: KArg2
) -> Option<TimestampedValueOf<T>> where
KArg1: EncodeLike<T::OracleKey>,
KArg2: EncodeLike<T::AccountId>,
pub fn has_update<K: EncodeLike<T::OracleKey>>(key: K) -> bool
[src]
pub fn values<K: EncodeLike<T::OracleKey>>(
key: K
) -> Option<TimestampedValueOf<T>>
[src]
key: K
) -> Option<TimestampedValueOf<T>>
impl<T: Trait> Module<T>
[src]
Can also be called using Call
.
pub fn feed_value(
origin: T::Origin,
key: T::OracleKey,
value: T::OracleValue
) -> DispatchResult
[src]
origin: T::Origin,
key: T::OracleKey,
value: T::OracleValue
) -> DispatchResult
pub fn feed_values(
origin: T::Origin,
values: Vec<(T::OracleKey, T::OracleValue)>
) -> DispatchResult
[src]
origin: T::Origin,
values: Vec<(T::OracleKey, T::OracleValue)>
) -> DispatchResult
impl<T: Trait> Module<T>
[src]
pub fn read_raw_values(key: &T::OracleKey) -> Vec<TimestampedValueOf<T>>
[src]
pub fn get(key: &T::OracleKey) -> Option<TimestampedValueOf<T>>
[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<TimestampedValueOf<T>>
[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<TimestampedValueOf<T>>)>
[src]
Trait Implementations
impl<T: Trait> Callable<T> for Module<T>
[src]
impl<T: Clone + Trait> Clone for Module<T>
[src]
impl<T: Copy + Trait> Copy for Module<T>
[src]
impl<T: Trait> DataProvider<<T as Trait>::OracleKey, <T as Trait>::OracleValue> for Module<T>
[src]
fn get(key: &T::OracleKey) -> Option<T::OracleValue>
[src]
impl<T: Trait> DataProviderExtended<<T as Trait>::OracleKey, <T as Trait>::OracleValue, <T as Trait>::AccountId> for Module<T>
[src]
fn feed_value(
who: T::AccountId,
key: T::OracleKey,
value: T::OracleValue
) -> DispatchResult
[src]
who: T::AccountId,
key: T::OracleKey,
value: T::OracleValue
) -> DispatchResult
impl<T: Trait> Debug for Module<T> where
T: Debug,
[src]
T: Debug,
impl<T: Trait> Decode for Module<T> where
PhantomData<(T,)>: Decode,
PhantomData<(T,)>: Decode,
[src]
PhantomData<(T,)>: Decode,
PhantomData<(T,)>: Decode,
impl<T: Trait> Encode for Module<T> where
PhantomData<(T,)>: Encode,
PhantomData<(T,)>: Encode,
[src]
PhantomData<(T,)>: Encode,
PhantomData<(T,)>: Encode,
fn encode_to<EncOut: Output>(&self, dest: &mut EncOut)
[src]
fn encode(&self) -> Vec<u8>
[src]
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
[src]
fn size_hint(&self) -> usize
[src]
impl<T: Trait> EncodeLike<Module<T>> for Module<T> where
PhantomData<(T,)>: Encode,
PhantomData<(T,)>: Encode,
[src]
PhantomData<(T,)>: Encode,
PhantomData<(T,)>: Encode,
impl<T: Eq + Trait> Eq for Module<T>
[src]
impl<T: Trait> ModuleErrorMetadata for Module<T>
[src]
fn metadata() -> &'static [ErrorMetadata]
[src]
impl<T: Trait> OffchainWorker<<T as Trait>::BlockNumber> for Module<T>
[src]
fn offchain_worker(_n: BlockNumber)
[src]
impl<T: Trait> OnFinalize<<T as Trait>::BlockNumber> for Module<T>
[src]
fn on_finalize(_n: T::BlockNumber)
[src]
impl<T: Trait> OnInitialize<<T as Trait>::BlockNumber> for Module<T>
[src]
fn on_initialize(_n: BlockNumber) -> u64
[src]
impl<T: Trait> OnRuntimeUpgrade for Module<T>
[src]
fn on_runtime_upgrade() -> u64
[src]
impl<T: PartialEq + Trait> PartialEq<Module<T>> for Module<T>
[src]
impl<T: Trait> StructuralEq for Module<T>
[src]
impl<T: Trait> StructuralPartialEq for Module<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Module<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Module<T> where
T: Send,
T: Send,
impl<T> Sync for Module<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Module<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Module<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<S> Codec for S where
S: Encode + Decode,
[src]
S: Encode + Decode,
impl<T, X> Decode for X where
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
[src]
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
impl<T> DecodeAll for T where
T: Decode,
[src]
T: Decode,
impl<T, X> Encode for X where
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
[src]
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
fn size_hint(&self) -> usize
[src]
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
[src]
F: FnOnce(&[u8]) -> R,
fn encode(&self) -> Vec<u8>
[src]
fn encode_to<W>(&self, dest: &mut W) where
W: Output,
[src]
W: Output,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T>> for T where
T: Encode,
[src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: Encode + ToOwned,
[src]
T: Encode + ToOwned,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> From<T> for T
[src]
impl<S> FullCodec for S where
S: Decode + FullEncode,
[src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T> Hashable for T where
T: Codec,
[src]
T: Codec,
fn blake2_128(&self) -> [u8; 16]
[src]
fn blake2_256(&self) -> [u8; 32]
[src]
fn blake2_128_concat(&self) -> Vec<u8>
[src]
fn twox_128(&self) -> [u8; 16]
[src]
fn twox_256(&self) -> [u8; 32]
[src]
fn twox_64_concat(&self) -> Vec<u8>
[src]
fn identity(&self) -> Vec<u8>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
Get a mutable reference to the inner from the outer.
impl<T> KeyedVec for T where
T: Codec,
[src]
T: Codec,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug,
[src]
T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug,
impl<T> Parameter for T where
T: Codec + EncodeLike<T> + Clone + Eq + Debug,
[src]
T: Codec + EncodeLike<T> + Clone + Eq + Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,