Skip to content
Lattice

RedStoneAdapterInit

Git Source

Title: RedStoneAdapterInit

Author: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80)

One-shot initializer for a RedStone Push price-feed adapter diamond — seeds AccessControl (so the feed registry setters are admin-gated) and registers the IRedStoneAdapter interface (ERC-165). Delegatecalled by Diamond.initialize inside the initializing window (so it must NOT open its own pre/postInitializer; each __*_init guard passes because the window is already open). RedStone PriceFeedsAdapters are registered later via registerFeed, so no external reference is needed at init.

Functions

init

Runs the RedStone adapter + access-control module initializers. MUST be invoked via the diamond's initialize _init delegatecall.

function init(address admin) external;

Parameters

NameTypeDescription
adminaddressThe address granted DEFAULT_ADMIN_ROLE (controls the feed registry).