[][src]Crate orml_oracle

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 are submitted with unsigned transaction so it does not incure a transaction fee. However the data still needs to be signed by a session key to prevent spam and ensure the integrity.

Structs

DefaultCombineData

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

DefaultInstance

Default module instance

GenesisConfig

Genesis config for the module, allow to build genesis storage.

Instance0

Module instance

Instance1

Module instance

Instance2

Module instance

Instance3

Module instance

Instance4

Module instance

Instance5

Module instance

Instance6

Module instance

Instance7

Module instance

Instance8

Module instance

Instance9

Module instance

Instance10

Module instance

Instance11

Module instance

Instance12

Module instance

Instance13

Module instance

Instance14

Module instance

Instance15

Module instance

IsUpdated

True if Self::values(key) is up to date, otherwise the value is stale

Members

The current members of the collective. This is stored sorted (just by value).

Module
Nonces
RawValues

Raw values for each oracle operators

TimestampedValue
Values

Combined value, may not be up to date

Enums

Call

Dispatchable calls.

Error
RawEvent

Events for this module.

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

Trait
WeightInfo

Type Definitions

Event

RawEvent specialized for the configuration Trait

TimestampedValueOf