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:
Name | Type | Description |
---|---|---|
| uint8 | Minimal required confirmations. |
| uint8 | Minimal required confirmations in case of too many confirmations. |
setMinConfirmations
Sets minimal required confirmations.
Parameters:
Name | Type | Description |
---|---|---|
| uint8 | Minimal required confirmations. |
setExcessConfirmations
Sets minimal required confirmations in case of too many confirmations.
Parameters:
Name | Type | Description |
---|---|---|
| uint8 | Minimal required confirmations in case of too many confirmations. |
addOracles
Add oracles.
Parameters:
Name | Type | Description |
---|---|---|
| address[] | Oracles' addresses. |
| bool[] | A transfer will not be confirmed without oracles having required set to true, |
updateOracle
Update an oracle.
Parameters:
Name | Type | Description |
---|---|---|
| address | An oracle address. |
| bool | Is this oracle valid, i.e. should it be treated as an oracle. |
| bool | If set to true a transfer will not be confirmed without this oracle. |
Last updated