Skip to content

Commit

Permalink
fix: compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Oct 17, 2024
1 parent 153d625 commit 861b7c8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
8 changes: 4 additions & 4 deletions script/deploy/holesky/Preprod_Upgrade_bEIGEN_and_EIGEN.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ contract Preprod_Upgrade_bEIGEN_and_EIGEN is Script, Test {
// Perform upgrade
vm.startBroadcast();
EIGEN_ProxyAdmin.upgrade(
TransparentUpgradeableProxy(payable(address(bEIGEN_proxy))),
ITransparentUpgradeableProxy(payable(address(bEIGEN_proxy))),
address(bEIGEN_implementation)
);
EIGEN_ProxyAdmin.upgrade(
TransparentUpgradeableProxy(payable(address(EIGEN_proxy))),
ITransparentUpgradeableProxy(payable(address(EIGEN_proxy))),
address(EIGEN_implementation)
);
vm.stopBroadcast();
Expand All @@ -77,11 +77,11 @@ contract Preprod_Upgrade_bEIGEN_and_EIGEN is Script, Test {

function checkUpgradeCorrectness() public {
cheats.startPrank(address(proxyAdminOwner));
require(EIGEN_ProxyAdmin.getProxyImplementation(TransparentUpgradeableProxy(payable(address(EIGEN_proxy)))) == address(EIGEN_implementation),
require(EIGEN_ProxyAdmin.getProxyImplementation(ITransparentUpgradeableProxy(payable(address(EIGEN_proxy)))) == address(EIGEN_implementation),
"implementation set incorrectly");
require(EIGEN_proxy.bEIGEN() == bEIGEN_addressBefore,
"bEIGEN address changed unexpectedly");
require(EIGEN_ProxyAdmin.getProxyImplementation(TransparentUpgradeableProxy(payable(address(bEIGEN_proxy)))) == address(bEIGEN_implementation),
require(EIGEN_ProxyAdmin.getProxyImplementation(ITransparentUpgradeableProxy(payable(address(bEIGEN_proxy)))) == address(bEIGEN_implementation),
"implementation set incorrectly");
require(bEIGEN_proxy.EIGEN() == EIGEN_addressBefore,
"EIGEN address changed unexpectedly");
Expand Down
8 changes: 4 additions & 4 deletions script/deploy/holesky/bEIGEN_and_EIGEN_upgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ contract bEIGEN_and_EIGEN_upgrade is Script, Test {
function simulatePerformingUpgrade() public {
cheats.startPrank(opsMultisig);
// Upgrade contracts
token_ProxyAdmin.upgrade(TransparentUpgradeableProxy(payable(address(EIGEN_proxy))), address(EIGEN_implementation));
token_ProxyAdmin.upgrade(TransparentUpgradeableProxy(payable(address(bEIGEN_proxy))), address(bEIGEN_implementation));
token_ProxyAdmin.upgrade(ITransparentUpgradeableProxy(payable(address(EIGEN_proxy))), address(EIGEN_implementation));
token_ProxyAdmin.upgrade(ITransparentUpgradeableProxy(payable(address(bEIGEN_proxy))), address(bEIGEN_implementation));
cheats.stopPrank();
}

function checkUpgradeCorrectness() public {
vm.startPrank(opsMultisig);
require(token_ProxyAdmin.getProxyImplementation(TransparentUpgradeableProxy(payable(address(EIGEN_proxy)))) == address(EIGEN_implementation),
require(token_ProxyAdmin.getProxyImplementation(ITransparentUpgradeableProxy(payable(address(EIGEN_proxy)))) == address(EIGEN_implementation),
"implementation set incorrectly");
require(EIGEN_proxy.bEIGEN() == bEIGEN_addressBefore,
"bEIGEN address changed unexpectedly");
require(token_ProxyAdmin.getProxyImplementation(TransparentUpgradeableProxy(payable(address(bEIGEN_proxy)))) == address(bEIGEN_implementation),
require(token_ProxyAdmin.getProxyImplementation(ITransparentUpgradeableProxy(payable(address(bEIGEN_proxy)))) == address(bEIGEN_implementation),
"implementation set incorrectly");
require(bEIGEN_proxy.EIGEN() == EIGEN_addressBefore,
"EIGEN address changed unexpectedly");
Expand Down
2 changes: 1 addition & 1 deletion script/deploy/mainnet/EIGEN_upgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ contract EIGEN_upgrade is Script, Test {

function checkUpgradeCorrectness() public {
vm.prank(address(EIGEN_TimelockController));
require(EIGEN_ProxyAdmin.getProxyImplementation(TransparentUpgradeableProxy(payable(address(EIGEN_proxy)))) == address(EIGEN_implementation),
require(EIGEN_ProxyAdmin.getProxyImplementation(ITransparentUpgradeableProxy(payable(address(EIGEN_proxy)))) == address(EIGEN_implementation),
"implementation set incorrectly");
require(EIGEN_proxy.bEIGEN() == bEIGEN_addressBefore,
"bEIGEN address changed unexpectedly");
Expand Down
2 changes: 1 addition & 1 deletion script/deploy/mainnet/bEIGEN_upgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ contract bEIGEN_upgrade is Script, Test {

function checkUpgradeCorrectness() public {
vm.prank(address(bEIGEN_TimelockController));
require(bEIGEN_ProxyAdmin.getProxyImplementation(TransparentUpgradeableProxy(payable(address(bEIGEN_proxy)))) == address(bEIGEN_implementation),
require(bEIGEN_ProxyAdmin.getProxyImplementation(ITransparentUpgradeableProxy(payable(address(bEIGEN_proxy)))) == address(bEIGEN_implementation),
"implementation set incorrectly");
require(bEIGEN_proxy.EIGEN() == EIGEN_addressBefore,
"EIGEN address changed unexpectedly");
Expand Down
6 changes: 0 additions & 6 deletions src/contracts/interfaces/IStrategyManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,11 @@ interface IStrategyManager {
* @notice Returns bool for whether or not `strategy` enables credit transfers. i.e enabling
* depositIntoStrategyWithSignature calls or queueing withdrawals to a different address than the staker.
*/
<<<<<<< HEAD
function thirdPartyTransfersForbidden(IStrategy strategy) external view returns (bool);

/**
* @notice Getter function for the current EIP-712 domain separator for this contract.
* @dev The domain separator will change in the event of a fork that changes the ChainID.
*/
function domainSeparator() external view returns (bytes32);
=======
function thirdPartyTransfersForbidden(
IStrategy strategy
) external view returns (bool);
>>>>>>> db2ccda5 (feat: storage report (#753))
}
6 changes: 3 additions & 3 deletions src/test/token/EigenTransferRestrictions.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ pragma solidity ^0.8.27;

import "forge-std/Test.sol";

import "@openzeppelin-v4.9.0/contracts/proxy/transparent/ProxyAdmin.sol";
import "@openzeppelin-v4.9.0/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import "@openzeppelin-v4.9.0/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol";
import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol";
import "../harnesses/EigenHarness.sol";

contract EigenTransferRestrictionsTest is Test {
Expand Down

0 comments on commit 861b7c8

Please sign in to comment.