@@ -9,39 +9,10 @@ import {StakingLib} from "./StakingLib.sol";
99import {InvalidateLib} from "./InvalidateLib.sol " ;
1010import {ValidatorSelectionLib} from "./ValidatorSelectionLib.sol " ;
1111import {CommitteeAttestations} from "@aztec/shared/libraries/SignatureLib.sol " ;
12- import {
13- RewardBooster,
14- RewardBoostConfig,
15- IBoosterCore,
16- IValidatorSelection
17- } from "@aztec/core/reward-boost/RewardBooster.sol " ;
18- import {Slasher, ISlasher} from "@aztec/core/slashing/Slasher.sol " ;
1912
2013library ExtRollupLib2 {
2114 using TimeLib for Timestamp;
2215
23- function deployRewardBooster (RewardBoostConfig memory _config ) external returns (IBoosterCore) {
24- RewardBooster booster = new RewardBooster (IValidatorSelection (address (this )), _config);
25- return IBoosterCore (address (booster));
26- }
27-
28- function deploySlasher (
29- uint256 _slashingQuorum ,
30- uint256 _slashingRoundSize ,
31- uint256 _slashingLifetimeInRounds ,
32- uint256 _slashingExecutionDelayInRounds ,
33- address _slashingVetoer
34- ) external returns (ISlasher) {
35- Slasher slasher = new Slasher (
36- _slashingQuorum,
37- _slashingRoundSize,
38- _slashingLifetimeInRounds,
39- _slashingExecutionDelayInRounds,
40- _slashingVetoer
41- );
42- return ISlasher (address (slasher));
43- }
44-
4516 function setSlasher (address _slasher ) external {
4617 StakingLib.setSlasher (_slasher);
4718 }
0 commit comments