Skip to main content

KeeperOracles

Git Source ↗

Inherits: Ownable2Step ↗, EIP712 ↗, IKeeperOracles

Defines the functionality for verifying signatures of the whitelisted off-chain oracles.

Events​

OracleAdded​

Event emitted on the oracle addition

event OracleAdded(address indexed oracle);

Parameters

NameTypeDescription
oracleaddressThe address of the added oracle

OracleRemoved​

Event emitted on the oracle removal

event OracleRemoved(address indexed oracle);

Parameters

NameTypeDescription
oracleaddressThe address of the removed oracle

ConfigUpdated​

Event emitted on oracles config update

event ConfigUpdated(string configIpfsHash);

Parameters

NameTypeDescription
configIpfsHashstringThe IPFS hash of the new config

Functions​

isOracle​

Function for verifying whether oracle is registered or not

function isOracle(address oracle) external view returns (bool);

Parameters

NameTypeDescription
oracleaddressThe address of the oracle to check

Returns

NameTypeDescription
<none>booltrue for the registered oracle, false otherwise

totalOracles​

Total Oracles

function totalOracles() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The total number of oracles registered

addOracle​

Function for adding oracle to the set

function addOracle(address oracle) external override onlyOwner;

Parameters

NameTypeDescription
oracleaddressThe address of the oracle to add

removeOracle​

Function for removing oracle from the set

function removeOracle(address oracle) external override onlyOwner;

Parameters

NameTypeDescription
oracleaddressThe address of the oracle to remove

updateConfig​

Function for updating the config IPFS hash

function updateConfig(string calldata configIpfsHash) external override onlyOwner;

Parameters

NameTypeDescription
configIpfsHashstringThe new config IPFS hash