Skip to content

Commit 186bd4d

Browse files
authored
Merge pull request #15 from symbioticfi/new-delegator
Adapt new delegator
2 parents 07bf5b7 + 680ada8 commit 186bd4d

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

lib/core

Submodule core updated 228 files

test/defaultStakerRewards/DefaultStakerRewards.t.sol

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {Vault} from "@symbioticfi/core/src/contracts/vault/Vault.sol";
1616
import {NetworkRestakeDelegator} from "@symbioticfi/core/src/contracts/delegator/NetworkRestakeDelegator.sol";
1717
import {FullRestakeDelegator} from "@symbioticfi/core/src/contracts/delegator/FullRestakeDelegator.sol";
1818
import {OperatorSpecificDelegator} from "@symbioticfi/core/src/contracts/delegator/OperatorSpecificDelegator.sol";
19+
import {OperatorNetworkSpecificDelegator} from
20+
"@symbioticfi/core/src/contracts/delegator/OperatorNetworkSpecificDelegator.sol";
1921
import {Slasher} from "@symbioticfi/core/src/contracts/slasher/Slasher.sol";
2022
import {VetoSlasher} from "@symbioticfi/core/src/contracts/slasher/VetoSlasher.sol";
2123

@@ -127,6 +129,19 @@ contract DefaultStakerRewardsTest is Test {
127129
);
128130
delegatorFactory.whitelist(operatorSpecificDelegatorImpl);
129131

132+
address operatorNetworkSpecificDelegatorImpl = address(
133+
new OperatorNetworkSpecificDelegator(
134+
address(operatorRegistry),
135+
address(networkRegistry),
136+
address(vaultFactory),
137+
address(operatorVaultOptInService),
138+
address(operatorNetworkOptInService),
139+
address(delegatorFactory),
140+
delegatorFactory.totalTypes()
141+
)
142+
);
143+
delegatorFactory.whitelist(operatorNetworkSpecificDelegatorImpl);
144+
130145
address slasherImpl = address(
131146
new Slasher(
132147
address(vaultFactory),

test/defaultStakerRewards/DefaultStakerRewardsFactory.t.sol

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {Vault} from "@symbioticfi/core/src/contracts/vault/Vault.sol";
1616
import {NetworkRestakeDelegator} from "@symbioticfi/core/src/contracts/delegator/NetworkRestakeDelegator.sol";
1717
import {FullRestakeDelegator} from "@symbioticfi/core/src/contracts/delegator/FullRestakeDelegator.sol";
1818
import {OperatorSpecificDelegator} from "@symbioticfi/core/src/contracts/delegator/OperatorSpecificDelegator.sol";
19+
import {OperatorNetworkSpecificDelegator} from
20+
"@symbioticfi/core/src/contracts/delegator/OperatorNetworkSpecificDelegator.sol";
1921
import {Slasher} from "@symbioticfi/core/src/contracts/slasher/Slasher.sol";
2022
import {VetoSlasher} from "@symbioticfi/core/src/contracts/slasher/VetoSlasher.sol";
2123

@@ -119,6 +121,19 @@ contract DefaultStakerRewardsFactoryTest is Test {
119121
);
120122
delegatorFactory.whitelist(operatorSpecificDelegatorImpl);
121123

124+
address operatorNetworkSpecificDelegatorImpl = address(
125+
new OperatorNetworkSpecificDelegator(
126+
address(operatorRegistry),
127+
address(networkRegistry),
128+
address(vaultFactory),
129+
address(operatorVaultOptInService),
130+
address(operatorNetworkOptInService),
131+
address(delegatorFactory),
132+
delegatorFactory.totalTypes()
133+
)
134+
);
135+
delegatorFactory.whitelist(operatorNetworkSpecificDelegatorImpl);
136+
122137
address slasherImpl = address(
123138
new Slasher(
124139
address(vaultFactory),

0 commit comments

Comments
 (0)