@@ -17,6 +17,7 @@ import { Verifier } from "../../src/Verifier.sol";
1717import { ParametersRegistry } from "../../src/ParametersRegistry.sol " ;
1818import { ExitPenalties } from "../../src/ExitPenalties.sol " ;
1919import { OperatorsData } from "../../src/OperatorsData.sol " ;
20+ import { MetaOperatorRegistry } from "../../src/MetaOperatorRegistry.sol " ;
2021import { CuratedGate } from "../../src/CuratedGate.sol " ;
2122import { CuratedGateFactory } from "../../src/CuratedGateFactory.sol " ;
2223
@@ -51,7 +52,6 @@ struct GateCurveParams {
5152 uint256 allowedExitDelay;
5253 uint256 exitDelayFee;
5354 uint256 maxWithdrawalRequestFee;
54- uint256 depositAllocationWeight;
5555}
5656
5757struct CuratedGateConfig {
@@ -64,6 +64,7 @@ struct CuratedGateConfig {
6464struct CuratedDeployParams {
6565 // Lido addresses
6666 address lidoLocatorAddress;
67+ address norAddress;
6768 address aragonAgent;
6869 address easyTrackEVMScriptExecutor;
6970 address proxyAdmin;
@@ -115,8 +116,6 @@ struct CuratedDeployParams {
115116 uint256 defaultAllowedExitDelay;
116117 uint256 defaultExitDelayFee;
117118 uint256 defaultMaxWithdrawalRequestFee;
118- uint256 defaultDepositAllocationWeight;
119- uint256 identifiedCommunityStakersGateDepositAllocationWeight;
120119 // Curated gates
121120 CuratedGateConfig[] curatedGates;
122121 // GateSeal
@@ -149,6 +148,7 @@ abstract contract DeployBase is Script {
149148 Verifier public verifier;
150149 HashConsensus public hashConsensus;
151150 ParametersRegistry public parametersRegistry;
151+ MetaOperatorRegistry public metaOperatorsRegistry;
152152 OperatorsData public operatorsData;
153153 CuratedGateFactory public curatedGateFactory;
154154 address [] public curatedGateInstances;
@@ -219,6 +219,18 @@ abstract contract DeployBase is Script {
219219
220220 accounting = Accounting (_deployProxy (deployer, address (dummyImpl)));
221221
222+ MetaOperatorRegistry metaOperatorsRegistryImpl = new MetaOperatorRegistry (
223+ address (curatedModule),
224+ config.norAddress
225+ );
226+ metaOperatorsRegistry = MetaOperatorRegistry (
227+ _deployProxy (
228+ config.proxyAdmin,
229+ address (metaOperatorsRegistryImpl)
230+ )
231+ );
232+ metaOperatorsRegistry.initialize (deployer);
233+
222234 oracle = FeeOracle (_deployProxy (deployer, address (dummyImpl)));
223235
224236 FeeDistributor feeDistributorImpl = new FeeDistributor ({
@@ -277,9 +289,7 @@ abstract contract DeployBase is Script {
277289 defaultAllowedExitDelay: config.defaultAllowedExitDelay,
278290 defaultExitDelayFee: config.defaultExitDelayFee,
279291 defaultMaxWithdrawalRequestFee: config
280- .defaultMaxWithdrawalRequestFee,
281- defaultDepositAllocationWeight: config
282- .defaultDepositAllocationWeight
292+ .defaultMaxWithdrawalRequestFee
283293 })
284294 });
285295
@@ -386,12 +396,6 @@ abstract contract DeployBase is Script {
386396 curveId,
387397 params.maxWithdrawalRequestFee
388398 );
389- if (params.depositAllocationWeight != 0 ) {
390- parametersRegistry.setDepositAllocationWeight (
391- curveId,
392- params.depositAllocationWeight
393- );
394- }
395399 }
396400 accounting.revokeRole (
397401 accounting.MANAGE_BOND_CURVES_ROLE (),
@@ -407,7 +411,8 @@ abstract contract DeployBase is Script {
407411 lidoLocator: config.lidoLocatorAddress,
408412 parametersRegistry: address (parametersRegistry),
409413 accounting: address (accounting),
410- exitPenalties: address (exitPenalties)
414+ exitPenalties: address (exitPenalties),
415+ metaOperatorsRegistry: address (metaOperatorsRegistry)
411416 });
412417
413418 {
@@ -687,6 +692,14 @@ abstract contract DeployBase is Script {
687692 deployJson.set ("ChainId " , chainId);
688693 deployJson.set ("CuratedModule " , address (curatedModule));
689694 deployJson.set ("CuratedModuleImpl " , address (curatedModuleImpl));
695+ deployJson.set (
696+ "MetaOperatorRegistry " ,
697+ address (metaOperatorsRegistry)
698+ );
699+ deployJson.set (
700+ "MetaOperatorRegistryImpl " ,
701+ address (metaOperatorsRegistryImpl)
702+ );
690703 deployJson.set ("ParametersRegistry " , address (parametersRegistry));
691704 deployJson.set (
692705 "ParametersRegistryImpl " ,
0 commit comments