Skip to content

Commit

Permalink
change Utils08 filename
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Jan 8, 2025
1 parent ee99877 commit 97d7ef3
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "@celo-contracts-8/common/mocks/EpochManager_WithMocks.sol";
import "@celo-contracts-8/common/IsL2Check.sol";
import "@celo-contracts-8/common/PrecompilesOverrideV2.sol";

contract Utils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOverrideV2 {
contract TestWithUtils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOverrideV2 {
IRegistry registry;
PrecompileHandler ph;
EpochManager_WithMocks public epochManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract E2E_EpochManager is ECDSAHelper08, Devchain {

EnumerableSet.AddressSet internal electedGroupsHelper;

function setUp() public virtual override(Devchain, Utils08) {
function setUp() public virtual override(Devchain, TestWithUtils08) {
epochManagerOwner = Ownable(address(epochManagerContract)).owner();
epochManagerEnabler = registryContract.getAddressForOrDie(EPOCH_MANAGER_ENABLER_REGISTRY_ID);
firstElected = getValidators().getRegisteredValidators();
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test-sol/devchain/e2e/utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import "@celo-contracts-8/common/FeeCurrencyDirectory.sol";
import "@celo-contracts/stability/interfaces/ISortedOracles.sol";
import "@celo-contracts/common/interfaces/ICeloUnreleasedTreasury.sol";

import "@test-sol/utils08.sol";
import "@test-sol/TestWithUtils08.sol";

contract Devchain is Utils08 {
contract Devchain is TestWithUtils08 {
// All core contracts that are expected to be in the Registry on the devchain
ISortedOracles sortedOracles;
FeeCurrencyDirectory feeCurrencyDirectory;
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test-sol/devchain/migration/Migration.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.8.20;

import { Utils08 } from "@test-sol/utils08.sol";
import { TestWithUtils08 } from "@test-sol/TestWithUtils08.sol";

import { MigrationsConstants } from "@migrations-sol/constants.sol";

Expand All @@ -23,7 +23,7 @@ import "@openzeppelin/contracts8/token/ERC20/IERC20.sol";

import { console2 } from "forge-std-8/console2.sol";

contract IntegrationTest is Utils08 {
contract IntegrationTest is TestWithUtils08 {
uint256 constant RESERVE_BALANCE = 69411663406170917420347916; // current as of 08/20/24

function setUp() public virtual override {
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test-sol/unit/common/EpochManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import { IMockValidators } from "@celo-contracts-8/governance/test/IMockValidato
import { EpochRewardsMock08 } from "@celo-contracts-8/governance/test/EpochRewardsMock.sol";
import "@celo-contracts-8/stability/test/MockStableToken.sol";

import { Utils08 } from "@test-sol/utils08.sol";
import { TestWithUtils08 } from "@test-sol/TestWithUtils08.sol";
import { ValidatorsMock } from "@test-sol/unit/governance/validators/mocks/ValidatorsMock.sol";

contract EpochManagerTest is Utils08 {
contract EpochManagerTest is TestWithUtils08 {
EpochManager_WithMocks epochManagerContract;
MockSortedOracles sortedOracles;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import "@celo-contracts-8/common/test/MockCeloToken.sol";
import { MockCeloUnreleasedTreasury } from "@celo-contracts-8/common/test/MockCeloUnreleasedTreasury.sol";
import { EpochRewardsMock08 } from "@celo-contracts-8/governance/test/EpochRewardsMock.sol";

import { Utils08 } from "@test-sol/utils08.sol";
import { TestWithUtils08 } from "@test-sol/TestWithUtils08.sol";
import { EpochManagerEnablerMock } from "@test-sol/mocks/EpochManagerEnablerMock.sol";
import { ValidatorsMock } from "@test-sol/unit/governance/validators/mocks/ValidatorsMock.sol";

contract EpochManagerEnablerTest is Utils08 {
contract EpochManagerEnablerTest is TestWithUtils08 {
EpochManagerEnablerMock epochManagerEnablerContract;
MockCeloUnreleasedTreasury celoUnreleasedTreasury;
MockCeloToken08 celoToken;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.7 <0.8.20;

import { Utils08 } from "@test-sol/utils08.sol";
import { TestWithUtils08 } from "@test-sol/TestWithUtils08.sol";
import "@test-sol/utils/WhenL2-08.sol";

import "@celo-contracts-8/common/FeeCurrencyDirectory.sol";
import "@celo-contracts-8/common/mocks/MockOracle.sol";

contract FeeCurrencyDirectoryTest is Utils08 {
contract FeeCurrencyDirectoryTest is TestWithUtils08 {
FeeCurrencyDirectory directory;
MockOracle oracle;
address nonOwner;
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test-sol/unit/common/ProxyFactory08.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ pragma solidity ^0.8.15;
import "@celo-contracts-8/common/ProxyFactory08.sol";
import "@celo-contracts/common/interfaces/IProxy.sol";

import { Utils08 } from "@test-sol/utils08.sol";
import { TestWithUtils08 } from "@test-sol/TestWithUtils08.sol";

contract ProxyFactoryTest is Utils08 {
contract ProxyFactoryTest is TestWithUtils08 {
ProxyFactory08 proxyFactory08;
bytes proxyInitCode;
address constant owner = address(0xAA963FC97281d9632d96700aB62A4D1340F9a28a);
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test-sol/utils/ECDSAHelper08.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pragma solidity >=0.5.13 <0.8.20;
import { Utils08 } from "@test-sol/utils08.sol";
import { TestWithUtils08 } from "@test-sol/TestWithUtils08.sol";
import "@test-sol/utils/SECP256K1.sol";

contract ECDSAHelper08 is Utils08 {
contract ECDSAHelper08 is TestWithUtils08 {
ISECP256K1 sECP256K1;

function addressToPublicKey(
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test-sol/utils/WhenL2-08.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pragma solidity >=0.5.13 <0.9.0;
pragma experimental ABIEncoderV2;

import "@test-sol/utils08.sol";
import "@test-sol/TestWithUtils08.sol";

contract WhenL2 is Utils08 {
contract WhenL2 is TestWithUtils08 {
function setUp() public virtual override {
super.setUp();
whenL2WithEpochManagerInitialization();
Expand Down

0 comments on commit 97d7ef3

Please sign in to comment.