ChainlinkRelayerFactory

Git Source

Inherits: Authorizable, IChainlinkRelayerFactory

This contract is used to deploy ChainlinkRelayer contracts

The deployed contracts are ChainlinkRelayerChild instances

State Variables

sequencerUptimeFeed

Address of the Chainlink sequencer uptime feed used to consult the sequencer status

IChainlinkOracle public sequencerUptimeFeed;

_chainlinkRelayers

The enumerable set of deployed ChainlinkRelayer contracts

EnumerableSet.AddressSet internal _chainlinkRelayers;

Functions

constructor

constructor(address _sequencerUptimeFeed) Authorizable(msg.sender);

Parameters

NameTypeDescription
_sequencerUptimeFeedaddressThe address of the Chainlink sequencer uptime feed

deployChainlinkRelayer

Deploys a new ChainlinkRelayer contract

function deployChainlinkRelayer(
  address _priceFeed,
  uint256 _staleThreshold
) external isAuthorized returns (IBaseOracle _chainlinkRelayer);

Parameters

NameTypeDescription
_priceFeedaddressAddress of the price feed to be used by the ChainlinkRelayer contract
_staleThresholduint256Stale threshold to be used by the ChainlinkRelayer contract

Returns

NameTypeDescription
_chainlinkRelayerIBaseOracleAddress of the deployed ChainlinkRelayer contract

chainlinkRelayersList

Getter for the list of ChainlinkRelayer contracts

function chainlinkRelayersList() external view returns (address[] memory _chainlinkRelayersList);

Returns

NameTypeDescription
_chainlinkRelayersListaddress[]List of ChainlinkRelayer contracts

setSequencerUptimeFeed

Sets the Chainlink sequencer uptime feed contract address

function setSequencerUptimeFeed(address _sequencerUptimeFeed) external isAuthorized;

Parameters

NameTypeDescription
_sequencerUptimeFeedaddressThe address of the Chainlink sequencer uptime feed

_setSequencerUptimeFeed

function _setSequencerUptimeFeed(address _sequencerUptimeFeed) internal;