Struct orml_oracle::module::Pallet [−][src]
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]
origin: OriginFor<T>,
values: Vec<(T::OracleKey, T::OracleValue)>
) -> DispatchResultWithPostInfo
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]
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>,
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]
KArg: EncodeLike<<T as Config<I>>::OracleKey>,
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]
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>,
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]
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]
key: &T::OracleKey
) -> Vec<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
pub fn get(
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>>
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]
key: &T::OracleKey
) -> Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>
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]
) -> Vec<(T::OracleKey, Option<TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>>)>
Trait Implementations
impl<T: Config<I>, I: 'static> Callable<T> for Pallet<T, I>
[src]
impl<T: Config<I>, I: 'static> ChangeMembers<<T as Config>::AccountId> for Pallet<T, I>
[src]
fn change_members_sorted(
_incoming: &[T::AccountId],
outgoing: &[T::AccountId],
new: &[T::AccountId]
)
[src]
_incoming: &[T::AccountId],
outgoing: &[T::AccountId],
new: &[T::AccountId]
)
fn set_prime(_prime: Option<T::AccountId>)
[src]
pub fn change_members(
incoming: &[AccountId],
outgoing: &[AccountId],
new: Vec<AccountId, Global>
)
[src]
incoming: &[AccountId],
outgoing: &[AccountId],
new: Vec<AccountId, Global>
)
pub fn set_members_sorted(new_members: &[AccountId], old_members: &[AccountId])
[src]
pub fn compute_members_diff_sorted(
new_members: &[AccountId],
old_members: &[AccountId]
) -> (Vec<AccountId, Global>, Vec<AccountId, Global>)
[src]
new_members: &[AccountId],
old_members: &[AccountId]
) -> (Vec<AccountId, Global>, Vec<AccountId, Global>)
pub fn get_prime() -> Option<AccountId>
[src]
impl<T, I> Clone for Pallet<T, I>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
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: Config<I>, I: 'static> DataProvider<<T as Config<I>>::OracleKey, <T as Config<I>>::OracleValue> for Pallet<T, I>
[src]
fn get(key: &T::OracleKey) -> Option<T::OracleValue>
[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]
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>>)>
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]
fn current_version() -> PalletVersion
[src]
fn storage_version() -> Option<PalletVersion>
[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
.
fn on_finalize(_n: T::BlockNumber)
[src]
pub fn on_runtime_upgrade() -> u64
[src]
pub fn offchain_worker(_n: BlockNumber)
[src]
pub fn integrity_test()
[src]
impl<T: Config<I>, I: 'static> InitializeMembers<<T as Config>::AccountId> for Pallet<T, I>
[src]
fn initialize_members(members: &[T::AccountId])
[src]
impl<T: Config<I>, I: 'static> IntegrityTest for Pallet<T, I>
[src]
fn integrity_test()
[src]
impl<T: Config<I>, I: 'static> ModuleErrorMetadata for Pallet<T, I>
[src]
fn metadata() -> &'static [ErrorMetadata]
[src]
impl<T: Config<I>, I: 'static> OffchainWorker<<T as Config>::BlockNumber> for Pallet<T, I>
[src]
fn offchain_worker(n: <T as Config>::BlockNumber)
[src]
impl<T: Config<I>, I: 'static> OnFinalize<<T as Config>::BlockNumber> for Pallet<T, I>
[src]
fn on_finalize(n: <T as Config>::BlockNumber)
[src]
impl<T: Config<I>, I: 'static> OnGenesis for Pallet<T, I>
[src]
fn on_genesis()
[src]
impl<T: Config<I>, I: 'static> OnInitialize<<T as Config>::BlockNumber> for Pallet<T, I>
[src]
fn on_initialize(n: <T as Config>::BlockNumber) -> Weight
[src]
impl<T: Config<I>, I: 'static> OnRuntimeUpgrade for Pallet<T, I>
[src]
fn on_runtime_upgrade() -> Weight
[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]
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for Pallet<T, I> where
I: Send,
T: Send,
[src]
I: Send,
T: Send,
impl<T, I> Sync for Pallet<T, I> where
I: Sync,
T: Sync,
[src]
I: Sync,
T: Sync,
impl<T, I> Unpin for Pallet<T, I> where
I: Unpin,
T: Unpin,
[src]
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for Pallet<T, I> where
I: UnwindSafe,
T: UnwindSafe,
[src]
I: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsType<T> for T
[src]
pub fn from_ref(t: &T) -> &T
[src]
pub fn into_ref(&self) -> &T
[src]
pub fn from_mut(t: &mut T) -> &mut T
[src]
pub fn into_mut(&mut self) -> &mut T
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
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,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,
pub fn unchecked_into(self) -> T
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,