IChainlinkRelayerFactory

Git Source

Inherits: IAuthorizable

Functions

deployChainlinkRelayer

Deploys a new ChainlinkRelayer contract

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

Parameters

NameTypeDescription
_aggregatoraddressAddress of the aggregator 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

Events

NewChainlinkRelayer

Emitted when a new ChainlinkRelayer contract is deployed

event NewChainlinkRelayer(address indexed _chainlinkRelayer, address _aggregator, uint256 _staleThreshold);