IChainlinkRelayerFactory

Git Source

Inherits: IAuthorizable

Functions

sequencerUptimeFeed

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

function sequencerUptimeFeed() external view returns (IChainlinkOracle _sequencerUptimeFeed);

deployChainlinkRelayer

Deploys a new ChainlinkRelayer contract

function deployChainlinkRelayer(
  address _priceFeed,
  uint256 _staleThreshold
) external 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;

Parameters

NameTypeDescription
_sequencerUptimeFeedaddressThe address of the Chainlink sequencer uptime feed

Events

NewChainlinkRelayer

Emitted when a new ChainlinkRelayer contract is deployed

event NewChainlinkRelayer(
  address indexed _chainlinkRelayer, address _priceFeed, address _sequencerUptimeFeed, uint256 _staleThreshold
);

Parameters

NameTypeDescription
_chainlinkRelayeraddressAddress of the deployed ChainlinkRelayer contract
_priceFeedaddressAddress of the price feed to be used by the ChainlinkRelayer contract
_sequencerUptimeFeedaddressAddress of the sequencer uptime feed to be used by the ChainlinkRelayer contract
_staleThresholduint256Stale threshold to be used by the ChainlinkRelayer contract

Errors

ChainlinkRelayerFactory_NullSequencerUptimeFeed

Throws if the provided sequencer uptime feed address is null

error ChainlinkRelayerFactory_NullSequencerUptimeFeed();