ChainlinkRelayerFactory
Inherits: Authorizable, IChainlinkRelayerFactory
This contract is used to deploy ChainlinkRelayer contracts
The deployed contracts are ChainlinkRelayerChild instances
State Variables
_chainlinkRelayers
The enumerable set of deployed ChainlinkRelayer contracts
EnumerableSet.AddressSet internal _chainlinkRelayers;
Functions
constructor
constructor() Authorizable(msg.sender);
deployChainlinkRelayer
Deploys a new ChainlinkRelayer contract
function deployChainlinkRelayer(
address _aggregator,
uint256 _staleThreshold
) external isAuthorized returns (IBaseOracle _chainlinkRelayer);
Parameters
Name | Type | Description |
---|---|---|
_aggregator | address | Address of the aggregator to be used by the ChainlinkRelayer contract |
_staleThreshold | uint256 | Stale threshold to be used by the ChainlinkRelayer contract |
Returns
Name | Type | Description |
---|---|---|
_chainlinkRelayer | IBaseOracle | Address of the deployed ChainlinkRelayer contract |
chainlinkRelayersList
Getter for the list of ChainlinkRelayer contracts
function chainlinkRelayersList() external view returns (address[] memory _chainlinkRelayersList);
Returns
Name | Type | Description |
---|---|---|
_chainlinkRelayersList | address[] | List of ChainlinkRelayer contracts |