AggregatorBase

Base contract for aggregation of transfer's confirmations

Modifiers

onlyOracle

modifier onlyOracle();

Throws if called by any account other than the oracle.

onlyAdmin

modifier onlyAdmin();

Throws if called by any account other than the admin.

Read-Only Functions

ORACLE_ROLE

function ORACLE_ROLE() public view returns (bytes32);

Returns oracle role identifier.

minConfirmations

function minConfirmations() public view returns (uint256);

Returns minimal required confirmations to confirm the transfer.

getOracleInfo

function getOracleInfo(address _oracle)
public
view
returns (OracleInfo memory);

Returns information about the oracle.

Parameter

Type

Description

_oracle

address

Oracle's address

State-Changing Functions

updateOracleAddress

function updateOracleAddress(address _oracle, address _newOracle) external;

Updates oracle's address if called by oracle's admin.

Parameter

Type

Description

_oracle

address

Oracle address

_newOracle

address

Update oracle address

updateOracleAdmin

function updateOracleAdmin(address _oracle, address _newOracleAdmin)
external;

Updates oracle's admin if called by oracle's admin.

Parameter

Type

Description

_oracle

address

Oracle address

_newOracleAdmin

address

Update admin address

setMinConfirmations

function setMinConfirmations(uint256 _minConfirmations) external;

Sets minimal required confirmations to confirm the transfer.

Parameter

Type

Description

_minConfirmations

uint256

Minimal required confirmations

addOracle

function addOracle(address _oracle, address _admin) external;

Add new oracle.

Parameter

Type

Description

_oracle

address

Oracle's address

_admin

address

Admin's address

removeOracle

function removeOracle(address _oracle) external;

Remove oracle.

Parameter

Type

Description

_oracle

address

Oracle's address