AggregatorBase

Base contract for aggregation of transfer's confirmations

Modifiers

onlyOracle

modifier onlyOracle();

Method can be called only by valid oracle.

onlyAdmin

modifier onlyAdmin();

Method can be called only by admin.

Read-Only Functions

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

exist

bool

Oracle is exist

isValid

bool

is valid oracle

required

bool

without this oracle (DSRM), the transfer will not be confirmed

admin

address

current oracle admin

State-Changing Functions

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 onlyAdmin;

Sets minimal required confirmations to confirm the transfer.

Parameter

Type

Description

_minConfirmations

uint256

Minimal required confirmations

addOracle

function addOracle(address _oracle, address _admin, bool _required)
external onlyAdmin;

Add new oracle.

Parameter

Type

Description

_oracle

address

Oracle's address

_admin

address

Admin's address

_required

bool

without this oracle (DSRM), the transfer will not be confirmed

updateOracle

function updateOracle(address _oracle, bool _isValid, bool _required)
external onlyAdmin;

Update oracle info.

Parameter

Type

Description

_oracle

address

Oracle's address

_isValid

bool

is valid oracle

_required

bool

without this oracle (DSRM), the transfer will not be confirmed