@@ -3,6 +3,7 @@ pragma solidity ^0.8.12;
33
44import {EOADeployer} from "zeus-templates/templates/EOADeployer.sol " ;
55import "../Env.sol " ;
6+ import "../TestUtils.sol " ;
67
78/**
89 * @title DeployRewardsCoordinatorImpl
@@ -13,6 +14,7 @@ import "../Env.sol";
1314 */
1415contract DeployRewardsCoordinatorImpl is EOADeployer {
1516 using Env for * ;
17+ using TestUtils for * ;
1618
1719 /// forgefmt: disable-next-item
1820 function _runAsEOA () internal override {
@@ -38,8 +40,7 @@ contract DeployRewardsCoordinatorImpl is EOADeployer {
3840 MAX_REWARDS_DURATION: Env.MAX_REWARDS_DURATION (),
3941 MAX_RETROACTIVE_LENGTH: Env.MAX_RETROACTIVE_LENGTH (),
4042 MAX_FUTURE_LENGTH: 63072000 , // 730 days (2 years)
41- GENESIS_REWARDS_TIMESTAMP: Env.GENESIS_REWARDS_TIMESTAMP (),
42- version: Env.deployVersion ()
43+ GENESIS_REWARDS_TIMESTAMP: Env.GENESIS_REWARDS_TIMESTAMP ()
4344 })
4445 )
4546 )
@@ -63,14 +64,13 @@ contract DeployRewardsCoordinatorImpl is EOADeployer {
6364 _validateProxyAdmin ();
6465 _validateImplConstructor ();
6566 _validateImplInitialized ();
66- _validateVersion ();
6767 _validateNewFunctionality ();
6868 _validateStorageLayout ();
6969 }
7070
7171 /// @dev Validate that the new RewardsCoordinator impl address is distinct from the current one
7272 function _validateNewImplAddress () internal view {
73- address currentImpl = Env ._getProxyImpl (address (Env.proxy.rewardsCoordinator ()));
73+ address currentImpl = TestUtils ._getProxyImpl (address (Env.proxy.rewardsCoordinator ()));
7474 address newImpl = address (Env.impl.rewardsCoordinator ());
7575
7676 assertFalse (currentImpl == newImpl, "RewardsCoordinator impl should be different from current implementation " );
@@ -81,20 +81,15 @@ contract DeployRewardsCoordinatorImpl is EOADeployer {
8181 address pa = Env.proxyAdmin ();
8282
8383 assertTrue (
84- Env ._getProxyAdmin (address (Env.proxy.rewardsCoordinator ())) == pa, "RewardsCoordinator proxyAdmin incorrect "
84+ TestUtils ._getProxyAdmin (address (Env.proxy.rewardsCoordinator ())) == pa, "RewardsCoordinator proxyAdmin incorrect "
8585 );
8686 }
8787
8888 /// @dev Validate the immutables set in the new RewardsCoordinator implementation constructor
8989 function _validateImplConstructor () internal view {
9090 RewardsCoordinator rewardsCoordinatorImpl = Env.impl.rewardsCoordinator ();
9191
92- // Validate version
93- assertEq (
94- keccak256 (bytes (rewardsCoordinatorImpl.version ())),
95- keccak256 (bytes (Env.deployVersion ())),
96- "RewardsCoordinator impl version mismatch "
97- );
92+ // Note: version() function has been removed in this upgrade
9893
9994 // Validate core dependencies
10095 assertTrue (
@@ -152,14 +147,6 @@ contract DeployRewardsCoordinatorImpl is EOADeployer {
152147 );
153148 }
154149
155- /// @dev Validate the version is correctly set
156- function _validateVersion () internal view {
157- assertEq (
158- keccak256 (bytes (Env.impl.rewardsCoordinator ().version ())),
159- keccak256 (bytes (Env.deployVersion ())),
160- "RewardsCoordinator version should match deploy version "
161- );
162- }
163150
164151 /// @dev Validate new Rewards v2.2 functionality
165152 function _validateNewFunctionality () internal view {
0 commit comments