23 lines
639 B
Solidity
23 lines
639 B
Solidity
pragma solidity 0.4.24;
|
|
|
|
import "../interfaces/IBridgeValidators.sol";
|
|
import "../upgradeability/EternalStorage.sol";
|
|
import "./ValidatorStorage.sol";
|
|
|
|
contract Validatable is EternalStorage, ValidatorStorage {
|
|
function validatorContract() public view returns (IBridgeValidators) {
|
|
return IBridgeValidators(addressStorage[VALIDATOR_CONTRACT]);
|
|
}
|
|
|
|
modifier onlyValidator() {
|
|
require(validatorContract().isValidator(msg.sender));
|
|
/* solcov ignore next */
|
|
_;
|
|
}
|
|
|
|
function requiredSignatures() public view returns (uint256) {
|
|
return validatorContract().requiredSignatures();
|
|
}
|
|
|
|
}
|