Skip to content

Commit

Permalink
feat: use separate, pinned versions of OZ
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jan 27, 2025
1 parent 45d636f commit 5aff377
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 387 deletions.
7 changes: 5 additions & 2 deletions smart-contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ignored_warnings_from = ["lib/openzeppelin-contracts/contracts"]

remappings = [
# Bolt-Registry remappings
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin-v4.9.0/=lib/openzeppelin-contracts-v4.9.0/",
"@openzeppelin-v5.0.0/=lib/openzeppelin-contracts-v5.0.0/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"@openzeppelin/foundry-upgrades/=lib/openzeppelin-foundry-upgrades/",
"@symbiotic/middleware-sdk/=lib/middleware-sdk/src/",
Expand All @@ -33,7 +34,9 @@ remappings = [

# EigenLayer remapping contexts
"lib/eigenlayer-contracts/:@openzeppelin-upgrades/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable-v4.9.0/",
"lib/eigenlayer-contracts/:@openzeppelin/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-v4.9.0/",
# Note: we pin the openzeppelin version used for EL to 4.9.0. When/if EL upgrades to v5, we need to update this.
# "lib/eigenlayer-contracts/:@openzeppelin/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-v4.9.0/",
"lib/eigenlayer-contracts/:@openzeppelin/=lib/openzeppelin-contracts-v4.9.0",
"lib/eigenlayer-contracts/:ds-test/=lib/eigenlayer-contracts/lib/ds-test/src/",
"lib/eigenlayer-contracts/:forge-std/=lib/eigenlayer-contracts/lib/forge-std/src/"
]
Expand Down
4 changes: 2 additions & 2 deletions smart-contracts/src/contracts/EigenLayerMiddlewareV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
pragma solidity ^0.8.27;

import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import {UUPSUpgradeable} from "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
import {Time} from "@openzeppelin/contracts/utils/types/Time.sol";
import {UUPSUpgradeable} from "@openzeppelin-v5.0.0/contracts/proxy/utils/UUPSUpgradeable.sol";
import {Time} from "@openzeppelin-v5.0.0/contracts/utils/types/Time.sol";

import {PauseableEnumerableSet} from "@symbiotic/middleware-sdk/libraries/PauseableEnumerableSet.sol";

Expand Down
194 changes: 0 additions & 194 deletions smart-contracts/stdinput.json

This file was deleted.

185 changes: 0 additions & 185 deletions smart-contracts/stdinput_raw.json

This file was deleted.

2 changes: 1 addition & 1 deletion smart-contracts/test/holesky/EigenLayerMiddlewareV1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.27;

import {Test, console} from "forge-std/Test.sol";
import {IERC20} from "@openzeppelin/contracts-eigenlayer/token/ERC20/IERC20.sol";
import {IERC20} from "@openzeppelin-v4.9.0/contracts/token/ERC20/IERC20.sol";
import {
IAllocationManager, IAllocationManagerTypes
} from "@eigenlayer/src/contracts/interfaces/IAllocationManager.sol";
Expand Down
2 changes: 1 addition & 1 deletion smart-contracts/test/holesky/SymbioticMiddleware.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {INetworkRegistry} from "@symbiotic/core/interfaces/INetworkRegistry.sol"
import {IBaseDelegator} from "@symbiotic/core/interfaces/delegator/IBaseDelegator.sol";
import {Subnetwork} from "@symbiotic/core/contracts/libraries/Subnetwork.sol";

import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol";
import {IERC20} from "@openzeppelin-v4.9.0/contracts/interfaces/IERC20.sol";

contract SymbioticMiddlewareHoleskyTest is Test {
using Subnetwork for address;
Expand Down
2 changes: 1 addition & 1 deletion smart-contracts/test/mainnet/EigenLayerMiddlewareV1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.27;

import {Test, console} from "forge-std/Test.sol";
import {IERC20} from "@openzeppelin/contracts-eigenlayer/token/ERC20/IERC20.sol";
import {IERC20} from "@openzeppelin-v4.9.0/contracts/token/ERC20/IERC20.sol";
import {
IAllocationManager, IAllocationManagerTypes
} from "@eigenlayer/src/contracts/interfaces/IAllocationManager.sol";
Expand Down
2 changes: 1 addition & 1 deletion smart-contracts/test/mainnet/SymbioticMiddleware.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {INetworkRegistry} from "@symbiotic/core/interfaces/INetworkRegistry.sol"
import {IBaseDelegator} from "@symbiotic/core/interfaces/delegator/IBaseDelegator.sol";
import {Subnetwork} from "@symbiotic/core/contracts/libraries/Subnetwork.sol";

import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol";
import {IERC20} from "@openzeppelin-v4.9.0/contracts/interfaces/IERC20.sol";

contract SymbioticMiddlewareMainnetTest is Test {
using Subnetwork for address;
Expand Down

0 comments on commit 5aff377

Please sign in to comment.