[][src]Trait orml_oracle::Trait

pub trait Trait<I: Instance = DefaultInstance>: Trait {
    type Event: From<Event<Self, I>> + Into<Self::Event>;
    type OnNewData: OnNewData<Self::AccountId, Self::OracleKey, Self::OracleValue>;
    type CombineData: CombineData<Self::OracleKey, TimestampedValueOf<Self, I>>;
    type Time: Time;
    type OracleKey: Parameter + Member;
    type OracleValue: Parameter + Member + Ord;
    type RootOperatorAccountId: Get<Self::AccountId>;
    type WeightInfo: WeightInfo;
}

Associated Types

type Event: From<Event<Self, I>> + Into<Self::Event>

type OnNewData: OnNewData<Self::AccountId, Self::OracleKey, Self::OracleValue>

Hook on new data received

type CombineData: CombineData<Self::OracleKey, TimestampedValueOf<Self, I>>

Provide the implementation to combine raw values to produce aggregated value

type Time: Time

Time provider

type OracleKey: Parameter + Member

The data key type

type OracleValue: Parameter + Member + Ord

The data value type

type RootOperatorAccountId: Get<Self::AccountId>

The root operator account id, recorad all sudo feeds on this account.

type WeightInfo: WeightInfo

Weight information for extrinsics in this module.

Loading content...

Implementors

Loading content...