Crate orml_oracle

Source
Expand description

§Oracle

A module to allow oracle operators to feed external data.

§Overview

This module exposes capabilities for oracle operators to feed external offchain data. The raw values can be combined to provide an aggregated value.

The data is valid only if fed by an authorized operator. pallet_membership in FRAME can be used to as source of T::Members.

Re-exports§

pub use module::*;

Modules§

module
The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

DefaultCombineData
Sort by value and returns median timestamped value. Returns prev_value if not enough valid values.

Traits§

CombineData
Combine data provided by operators
DataFeeder
Data provider with ability to provide data with no-op, and provide all data.
DataProvider
A simple trait to provide data
DataProviderExtended
Extended data provider to provide timestamped data by key with no-op, and all data.
OnNewData
New data handler
WeightInfo
Weight functions needed for orml_oracle.