Trait orml_oracle::module::Config[][src]

pub trait Config<I: 'static = ()>: Config {
    type Event: From<Event<Self, I>> + IsType<Self::Event>;
    type OnNewData: OnNewData<Self::AccountId, Self::OracleKey, Self::OracleValue>;
    type CombineData: CombineData<Self::OracleKey, TimestampedValue<Self::OracleValue, <Self::Time as Time>::Moment>>;
    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>> + IsType<Self::Event>[src]

type OnNewData: OnNewData<Self::AccountId, Self::OracleKey, Self::OracleValue>[src]

Hook on new data received

type CombineData: CombineData<Self::OracleKey, TimestampedValue<Self::OracleValue, <Self::Time as Time>::Moment>>[src]

Provide the implementation to combine raw values to produce aggregated value

type Time: Time[src]

Time provider

type OracleKey: Parameter + Member[src]

The data key type

type OracleValue: Parameter + Member + Ord[src]

The data value type

type RootOperatorAccountId: Get<Self::AccountId>[src]

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

type WeightInfo: WeightInfo[src]

Weight information for extrinsics in this module.

Loading content...

Implementors

Loading content...