Agent documentation index: llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Skip to main content

IFastUpdatesConfiguration

Interface for the block-latency feed configuration.

Sourced from IFastUpdatesConfiguration.sol on GitHub.

Functions​

getFeedConfigurations​

Returns the feed configurations, including removed ones.

function getFeedConfigurations(
) external view returns (
struct IFastUpdatesConfiguration.FeedConfiguration[]
);

getFeedId​

Returns the feed id at a given index. Removed (unused) feed index will return bytes21(0).

function getFeedId(
uint256 _index
) external view returns (
bytes21 _feedId
);

Parameters​

  • _index: The index.

Returns​

  • _feedId: The feed id.

getFeedIds​

Returns all feed ids. For removed (unused) feed indices, the feed id will be bytes21(0).

function getFeedIds(
) external view returns (
bytes21[]
);

getFeedIndex​

Returns the index of a feed.

function getFeedIndex(
bytes21 _feedId
) external view returns (
uint256 _index
);

Parameters​

  • _feedId: The feed id.

Returns​

  • _index: The index of the feed.

getNumberOfFeeds​

Returns the number of feeds, including removed ones.

function getNumberOfFeeds(
) external view returns (
uint256
);

getUnusedIndices​

Returns the unused indices - indices of removed feeds.

function getUnusedIndices(
) external view returns (
uint256[]
);

Events​

FeedAdded​

Event emitted when a feed is added.

event FeedAdded(
bytes21 feedId,
uint32 rewardBandValue,
uint24 inflationShare,
uint256 index
)

FeedRemoved​

Event emitted when a feed is removed.

event FeedRemoved(
bytes21 feedId,
uint256 index
)

FeedUpdated​

Event emitted when a feed is updated.

event FeedUpdated(
bytes21 feedId,
uint32 rewardBandValue,
uint24 inflationShare,
uint256 index
)

Structures​

FeedConfiguration​

The feed configuration struct.

struct FeedConfiguration {
bytes21 feedId;
uint32 rewardBandValue;
uint24 inflationShare;
}