// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; import '../slasher/Slasher.sol'; /// @dev Test Slasher contract /// @author Alexandas contract MockSlasher is Slasher { function init( address newOwner, address _governance, IStake _stake, IMajorCandidates _majorCandidates, uint256 _defaultSlashAmount, uint256 _publicNoticePeriod, uint64 maxCoef, uint64 _drafterCoef, uint64 _validatorCoef, uint64 _executorCoef ) external { _transferOwnership(newOwner); _setGovernance(_governance); _setStake(_stake); _setMajorCandidates(_majorCandidates); _setDefaultSlashAmount(_defaultSlashAmount); _setPublicNoticePeriod(_publicNoticePeriod); _setMaxCoef(maxCoef); _setDrafterCoef(_drafterCoef); _setValidatorCoef(_validatorCoef); _setExecutorCoef(_executorCoef); nonce = 1; } }