Docs
Contracts
Reference documentation
HistoricDataFeedStoreV2
GitHub
Explore on GitHub

HistoricDataFeedStoreV2

Overview

  1. Developer notes

    Storage layout

    mapping(key => mapping(counter => Transmission {bytes24 value, uint64 timestamp}))

    array[key] -> latestCounter

    We have a mapping of mappings where:

    - key is the feed id and mapping[key] is the mapping of counters;

    - counter is incremented whenever a new value for a feed is stored

    and presents a continuous feed history.

    Latest counter is stored at array[key].

    Each counter mapping is stored at keccak256(key) address.

    The value is then stored at keccak256(key) + counter.

Constants

Variables

Functions