referrerpolicy=no-referrer-when-downgrade

Function feed_values

Source
pub fn feed_values<T: Config<I>, I: 'static>(
    values: BoundedVec<(T::OracleKey, T::OracleValue), T::MaxFeedValues>,
)
Expand description

Feeds external data values into the oracle system.

§Dispatch Origin

The dispatch origin of this call must be a signed account that is either:

  • A member of the oracle operators set (managed by [SortedMembers])
  • The root origin

§Details

This function allows authorized oracle operators to submit timestamped key-value pairs into the oracle system. Each submitted value is immediately timestamped with the current block time and stored in the RawValues storage. The system then attempts to aggregate all raw values for each key using the configured CombineData trait implementation, updating the final Values storage with the aggregated result.

Only one submission per oracle operator per block is allowed to prevent spam and ensure fair participation. The function also triggers the OnNewData hook for each submitted value, allowing other pallets to react to new oracle data.

§Errors

§Events

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::feed_values.