OraclesManager
The base contract for oracles management. Allows adding/removing oracles, managing the minimal required amount of confirmations.
Variables
minConfirmations
Minimal required confirmations
excessConfirmations
Minimal required confirmations in case of too many confirmations
requiredOraclesCount
Count of required oracles
oracleAddresses
Oracle addresses
getOracleInfo
Maps an oracle address to the oracle details
Functions
initialize
Constructor that initializes the most important configurations.
Parameters:
_minConfirmations
uint8
Minimal required confirmations.
_excessConfirmations
uint8
Minimal required confirmations in case of too many confirmations.
setMinConfirmations
Sets minimal required confirmations.
Parameters:
_minConfirmations
uint8
Minimal required confirmations.
setExcessConfirmations
Sets minimal required confirmations in case of too many confirmations.
Parameters:
_excessConfirmations
uint8
Minimal required confirmations in case of too many confirmations.
addOracles
Add oracles.
Parameters:
_oracles
address[]
Oracles' addresses.
_required
bool[]
A transfer will not be confirmed without oracles having required set to true,
updateOracle
Update an oracle.
Parameters:
_oracle
address
An oracle address.
_isValid
bool
Is this oracle valid, i.e. should it be treated as an oracle.
_required
bool
If set to true a transfer will not be confirmed without this oracle.
Last updated