Skip to content

Commit b8ff5c7

Browse files
committed
refactor: Move mock files to test folder
1 parent a4270c5 commit b8ff5c7

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

script/bridges/layerZero/IexecLayerZeroBridge.s.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ contract Deploy is Script {
5959
}
6060
}
6161

62+
/**
63+
* This script is used to configure the IexecLayerZeroBridge contract on both source
64+
* and target chains.
65+
* It sets required LayerZero bridge config: peer address and enforced options.
66+
* It also grants the bridge the necessary roles in the RLCCrosschainToken contract
67+
* or RLCLiquidityUnifier contract, depending on the configuration.
68+
*/
6269
contract Configure is Script {
6370
using OptionsBuilder for bytes;
6471

test/units/RLCLiquidityUnifierUpgrade.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
pragma solidity ^0.8.22;
44

55
import {TestHelperOz5} from "@layerzerolabs/test-devtools-evm-foundry/contracts/TestHelperOz5.sol";
6-
import {RLCLiquidityUnifierV2} from "../../src/mocks/RLCLiquidityUnifierV2Mock.sol";
76
import {RLCLiquidityUnifier} from "../../src/RLCLiquidityUnifier.sol";
87
import {TestUtils} from "./utils/TestUtils.sol";
98
import {UpgradeUtils} from "../../script/lib/UpgradeUtils.sol";
109
import {RLCMock} from "./mocks/RLCMock.sol";
10+
import {RLCLiquidityUnifierV2} from "./mocks/RLCLiquidityUnifierV2Mock.sol";
1111

1212
contract RLCLiquidityUnifierUpgradeTest is TestHelperOz5 {
1313
using TestUtils for *;

test/units/bridges/layerZero/IexecLayerZeroBridgeUpgrade.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
pragma solidity ^0.8.22;
44

55
import {TestHelperOz5} from "@layerzerolabs/test-devtools-evm-foundry/contracts/TestHelperOz5.sol";
6-
import {IexecLayerZeroBridgeV2} from "../../../../src/mocks/IexecLayerZeroBridgeV2Mock.sol";
6+
import {IexecLayerZeroBridgeV2} from "../../mocks/IexecLayerZeroBridgeV2Mock.sol";
77
import {TestUtils} from "./../../utils/TestUtils.sol";
88
import {UpgradeUtils} from "../../../../script/lib/UpgradeUtils.sol";
99
import {IexecLayerZeroBridge} from "../../../../src/bridges/layerZero/IexecLayerZeroBridge.sol";

src/mocks/IexecLayerZeroBridgeV2Mock.sol renamed to test/units/mocks/IexecLayerZeroBridgeV2Mock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
pragma solidity ^0.8.22;
44

5-
import {IexecLayerZeroBridge} from "../bridges/layerZero/IexecLayerZeroBridge.sol";
5+
import {IexecLayerZeroBridge} from "../../../src/bridges/layerZero/IexecLayerZeroBridge.sol";
66

77
/**
88
* @title IexecLayerZeroBridgeV2 - V2 implementation with additional features

src/mocks/RLCLiquidityUnifierV2Mock.sol renamed to test/units/mocks/RLCLiquidityUnifierV2Mock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
pragma solidity ^0.8.22;
44

5-
import {RLCLiquidityUnifier} from "../RLCLiquidityUnifier.sol";
5+
import {RLCLiquidityUnifier} from "../../../src/RLCLiquidityUnifier.sol";
66

77
/**
88
* @title RLCLiquidityUnifierV2 - V2 implementation with additional features

0 commit comments

Comments
 (0)