deBridge
Search…
AggregatorBase
Base contract for aggregation of transfer's confirmations

Modifiers

onlyOracle

1
modifier onlyOracle();
Copied!
Method can be called only by valid oracle.

onlyAdmin

1
modifier onlyAdmin();
Copied!
Method can be called only by admin.

Read-Only Functions

minConfirmations

1
function minConfirmations() public view returns (uint256);
Copied!
Returns minimal required confirmations to confirm the transfer.

getOracleInfo

1
function getOracleInfo(address _oracle)
2
public
3
view
4
returns (OracleInfo memory);
Copied!
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

1
function updateOracleAdmin(address _oracle, address _newOracleAdmin)
2
external;
Copied!
Updates oracle's admin if called by oracle's admin.
Parameter
Type
Description
_oracle
address
Oracle address
_newOracleAdmin
address
Update admin address

setMinConfirmations

1
function setMinConfirmations(uint256 _minConfirmations) external onlyAdmin;
Copied!
Sets minimal required confirmations to confirm the transfer.
Parameter
Type
Description
_minConfirmations
uint256
Minimal required confirmations

addOracle

1
function addOracle(address _oracle, address _admin, bool _required)
2
external onlyAdmin;
Copied!
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

1
function updateOracle(address _oracle, bool _isValid, bool _required)
2
external onlyAdmin;
Copied!
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
Last modified 2mo ago