@@ -15,6 +15,7 @@ import {OptInService} from "@symbioticfi/core/src/contracts/service/OptInService
15
15
import {Vault} from "@symbioticfi/core/src/contracts/vault/Vault.sol " ;
16
16
import {NetworkRestakeDelegator} from "@symbioticfi/core/src/contracts/delegator/NetworkRestakeDelegator.sol " ;
17
17
import {FullRestakeDelegator} from "@symbioticfi/core/src/contracts/delegator/FullRestakeDelegator.sol " ;
18
+ import {OperatorSpecificDelegator} from "@symbioticfi/core/src/contracts/delegator/OperatorSpecificDelegator.sol " ;
18
19
import {Slasher} from "@symbioticfi/core/src/contracts/slasher/Slasher.sol " ;
19
20
import {VetoSlasher} from "@symbioticfi/core/src/contracts/slasher/VetoSlasher.sol " ;
20
21
@@ -23,6 +24,8 @@ import {VaultConfigurator, IVaultConfigurator} from "@symbioticfi/core/src/contr
23
24
import {IVault} from "@symbioticfi/core/src/interfaces/vault/IVault.sol " ;
24
25
import {INetworkRestakeDelegator} from "@symbioticfi/core/src/interfaces/delegator/INetworkRestakeDelegator.sol " ;
25
26
import {IBaseDelegator} from "@symbioticfi/core/src/interfaces/delegator/IBaseDelegator.sol " ;
27
+ import {IBaseSlasher} from "@symbioticfi/core/src/interfaces/slasher/IBaseSlasher.sol " ;
28
+ import {ISlasher} from "@symbioticfi/core/src/interfaces/slasher/ISlasher.sol " ;
26
29
27
30
import {DefaultStakerRewardsFactory} from "../../src/contracts/defaultStakerRewards/DefaultStakerRewardsFactory.sol " ;
28
31
import {DefaultStakerRewards} from "../../src/contracts/defaultStakerRewards/DefaultStakerRewards.sol " ;
@@ -70,8 +73,10 @@ contract DefaultStakerRewardsFactoryTest is Test {
70
73
operatorMetadataService = new MetadataService (address (operatorRegistry));
71
74
networkMetadataService = new MetadataService (address (networkRegistry));
72
75
networkMiddlewareService = new NetworkMiddlewareService (address (networkRegistry));
73
- operatorVaultOptInService = new OptInService (address (operatorRegistry), address (vaultFactory));
74
- operatorNetworkOptInService = new OptInService (address (operatorRegistry), address (networkRegistry));
76
+ operatorVaultOptInService =
77
+ new OptInService (address (operatorRegistry), address (vaultFactory), "OperatorVaultOptInService " );
78
+ operatorNetworkOptInService =
79
+ new OptInService (address (operatorRegistry), address (networkRegistry), "OperatorNetworkOptInService " );
75
80
76
81
address vaultImpl =
77
82
address (new Vault (address (delegatorFactory), address (slasherFactory), address (vaultFactory)));
@@ -101,6 +106,19 @@ contract DefaultStakerRewardsFactoryTest is Test {
101
106
);
102
107
delegatorFactory.whitelist (fullRestakeDelegatorImpl);
103
108
109
+ address operatorSpecificDelegatorImpl = address (
110
+ new OperatorSpecificDelegator (
111
+ address (operatorRegistry),
112
+ address (networkRegistry),
113
+ address (vaultFactory),
114
+ address (operatorVaultOptInService),
115
+ address (operatorNetworkOptInService),
116
+ address (delegatorFactory),
117
+ delegatorFactory.totalTypes ()
118
+ )
119
+ );
120
+ delegatorFactory.whitelist (operatorSpecificDelegatorImpl);
121
+
104
122
address slasherImpl = address (
105
123
new Slasher (
106
124
address (vaultFactory),
@@ -164,7 +182,7 @@ contract DefaultStakerRewardsFactoryTest is Test {
164
182
),
165
183
withSlasher: false ,
166
184
slasherIndex: 0 ,
167
- slasherParams: ""
185
+ slasherParams: abi.encode (ISlasher. InitParams ({baseParams: IBaseSlasher. BaseParams ({isBurnerHook: true })}))
168
186
})
169
187
);
170
188
0 commit comments