Skip to content

Commit 2814285

Browse files
committed
test: standardize semver for harness contracts
1 parent ff5ceec commit 2814285

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

src/test/TestConstants.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// SPDX-License-Identifier: BUSL-1.1
2+
pragma solidity ^0.8.27;
3+
4+
library TestConstants {
5+
string constant TEST_VERSION = "9.9.9";
6+
}

src/test/harnesses/AllocationManagerHarness.sol

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
pragma solidity ^0.8.27;
33

44
import "../../contracts/core/AllocationManager.sol";
5+
import "forge-std/Test.sol";
6+
import "../TestConstants.sol";
57

68
contract AllocationManagerHarness is AllocationManager {
79
using DoubleEndedQueue for DoubleEndedQueue.Bytes32Deque;
@@ -13,7 +15,14 @@ contract AllocationManagerHarness is AllocationManager {
1315
uint32 _DEALLOCATION_DELAY,
1416
uint32 _ALLOCATION_CONFIGURATION_DELAY
1517
)
16-
AllocationManager(_delegation, _pauserRegistry, _permissionController, _DEALLOCATION_DELAY, _ALLOCATION_CONFIGURATION_DELAY, "v9.9.9")
18+
AllocationManager(
19+
_delegation,
20+
_pauserRegistry,
21+
_permissionController,
22+
_DEALLOCATION_DELAY,
23+
_ALLOCATION_CONFIGURATION_DELAY,
24+
TestConstants.TEST_VERSION
25+
)
1726
{}
1827

1928
function deallocationQueueAtIndex(address operator, IStrategy strategy, uint index) external view returns (bytes32) {

src/test/harnesses/DelegationManagerHarness.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pragma solidity ^0.8.27;
33

44
import "../../contracts/core/DelegationManager.sol";
55
import "forge-std/Test.sol";
6+
import "../TestConstants.sol";
67

78
contract DelegationManagerHarness is DelegationManager {
89
constructor(
@@ -20,7 +21,7 @@ contract DelegationManagerHarness is DelegationManager {
2021
_pauserRegistry,
2122
_permissionController,
2223
_MIN_WITHDRAWAL_DELAY,
23-
"v9.9.9"
24+
TestConstants.TEST_VERSION
2425
)
2526
{}
2627

src/test/harnesses/EigenHarness.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
pragma solidity ^0.8.27;
33

44
import "../../contracts/token/Eigen.sol";
5+
import "../TestConstants.sol";
56

67
contract EigenHarness is Eigen {
7-
constructor(IERC20 _bEIGEN) Eigen(_bEIGEN, "1.6.0") {}
8+
constructor(IERC20 _bEIGEN) Eigen(_bEIGEN, TestConstants.TEST_VERSION) {}
89

910
/// expose internal mint function
1011
function mint(address to, uint amount) public {

0 commit comments

Comments
 (0)