Skip to content

Commit

Permalink
rollback solidity version
Browse files Browse the repository at this point in the history
  • Loading branch information
lufaque committed Feb 3, 2025
1 parent 4dfbee4 commit 37937c0
Show file tree
Hide file tree
Showing 46 changed files with 1,183 additions and 303 deletions.
2 changes: 1 addition & 1 deletion contracts/ChildPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IConceroBridge} from "./Interfaces/IConceroBridge.sol";
import {CCIPReceiver} from "@chainlink/contracts-ccip/src/v0.8/ccip/applications/CCIPReceiver.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/ConceroBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Constants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

address constant USDC_ARBITRUM = 0xaf88d065e77c8cC2239327C5EDb3A432268e5831;
address constant USDC_BASE = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913;
Expand Down
2 changes: 1 addition & 1 deletion contracts/DexSwap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IDexSwap} from "./Interfaces/IDexSwap.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/InfraCCIP.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IConceroBridge} from "./Interfaces/IConceroBridge.sol";
import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/InfraCLF.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {InfraCommon} from "./InfraCommon.sol";
import {IDexSwap} from "./Interfaces/IDexSwap.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/InfraCommon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {USDC_ARBITRUM, USDC_BASE, USDC_OPTIMISM, USDC_POLYGON, USDC_POLYGON_AMOY, USDC_ARBITRUM_SEPOLIA, USDC_BASE_SEPOLIA, USDC_OPTIMISM_SEPOLIA, USDC_AVALANCHE, USDC_ETHEREUM, USDC_OPTIMISM, USDC_SEPOLIA, USDC_FUJI} from "./Constants.sol";
import {CHAIN_ID_AVALANCHE, WRAPPED_NATIVE_AVALANCHE, CHAIN_ID_ETHEREUM, WRAPPED_NATIVE_ETHEREUM, CHAIN_ID_ARBITRUM, WRAPPED_NATIVE_ARBITRUM, CHAIN_ID_BASE, WRAPPED_NATIVE_BASE, CHAIN_ID_POLYGON, WRAPPED_NATIVE_POLYGON, WRAPPED_NATIVE_OPTIMISM, CHAIN_ID_OPTIMISM} from "./Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/InfraOrchestrator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {CHAIN_SELECTOR_ARBITRUM, CHAIN_SELECTOR_BASE, CHAIN_SELECTOR_OPTIMISM, CHAIN_SELECTOR_POLYGON, CHAIN_SELECTOR_AVALANCHE, CHAIN_SELECTOR_ETHEREUM} from "./Constants.sol";
import {InfraCommon} from "./InfraCommon.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/ICCIP.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

interface ICCIP {
///@notice CCIP transaction types
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IConceroBridge.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IInfraStorage} from "./IInfraStorage.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IDexSwap.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

interface IDexSwap {
/// @notice Concero Struct to track DEX Data
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IInfraCLF.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IInfraStorage} from "./IInfraStorage.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IInfraOrchestrator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IInfraStorage} from "./IInfraStorage.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IInfraStorage.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

interface IInfraStorage {
///@notice Chainlink Functions Request Type
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IParentPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IPool} from "./IPool.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IParentPoolCLFCLA.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @contact email: security@concero.io
*/

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

interface IParentPoolCLFCLA {
event WithdrawalRequestInitiated(
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IParentPoolViewViaDelegate.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

interface IParentPoolViewViaDelegate {
function calculateLpAmountViaDelegate(
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

interface IPool {
/* FUNCTIONS */
Expand Down
2 changes: 1 addition & 1 deletion contracts/Interfaces/IWETH.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/LPToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Libraries/ChildPoolStorage.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

contract ChildPoolStorage {
/* STATE VARIABLES */
Expand Down
2 changes: 1 addition & 1 deletion contracts/Libraries/InfraStorage.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IInfraStorage} from "../Interfaces/IInfraStorage.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Libraries/InfraStorageSetters.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {InfraStorage} from "./InfraStorage.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Libraries/LibConcero.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Libraries/ParentPoolStorage.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IParentPool} from "../Interfaces/IParentPool.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/ParentPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @notice If you discover any security vulnerabilities, please report them responsibly.
* @contact email: security@concero.io
*/
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IConceroBridge} from "./Interfaces/IConceroBridge.sol";
import {AutomationCompatibleInterface} from "@chainlink/contracts/src/v0.8/automation/interfaces/AutomationCompatibleInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/ParentPoolCommon.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {LPToken} from "./LPToken.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/PauseDummy.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// deployed with salt: 0xdddd5f804b9d293dce8819d232e8d76381605a62f2d34c122b9ca6815a0000c8
// to address: 0x00c4d25487297C4fc1341aa840a4F56e474f6A0d
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

error Paused();

Expand Down
2 changes: 1 addition & 1 deletion contracts/Proxy/ConceroProxyAdmin.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/transparent/ProxyAdmin.sol)

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {ITransparentUpgradeableProxy} from "./TransparentUpgradeableProxy.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Proxy/TransparentUpgradeableProxy.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/transparent/TransparentUpgradeableProxy.sol)

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const config: HardhatUserConfig = {
tests: "test/hardhat",
},
solidity: {
version: "0.8.22",
version: "0.8.20",
settings: {
// evmVersion: "paris",
optimizer: {
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/Bridge/BridgeBaseTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {BaseTest, console} from "../utils/BaseTest.t.sol";
import {InfraOrchestratorWrapper} from "./wrappers/InfraOrchestratorWrapper.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/Bridge/BridgeCompression.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {console, Vm} from "forge-std/src/Test.sol";
import {BridgeBaseTest} from "./BridgeBaseTest.t.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/Bridge/StartBridge.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// SPDX-License-Identifier: MIT
//
//pragma solidity ^0.8.22;
//pragma solidity 0.8.20;
//
//import {ConceroBridge} from "contracts/ConceroBridge.sol";
//import {BaseTest, console, Vm} from "../utils/BaseTest.t.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/Bridge/wrappers/InfraOrchestratorWrapper.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {IInfraStorage} from "contracts/Interfaces/IInfraStorage.sol";
import {IDexSwap} from "contracts/Interfaces/IDexSwap.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/Mocks/ConceroMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// SPDX-License-Identifier: SEE LICENSE IN LICENSE
//pragma solidity ^0.8.22;
//pragma solidity 0.8.20;
//
//import {ConceroBridge} from "contracts/ConceroBridge.sol";
//import {Storage} from "contracts/Libraries/Storage.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/ParentPool/BaseTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// SPDX-License-Identifier: UNLICENSED
//pragma solidity ^0.8.22;
//pragma solidity 0.8.20;
//
//import {Test, console, Vm} from "forge-std/Test.sol";
//import {ParentPool} from "contracts/ParentPool.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/ParentPool/Withdraw.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {VmSafe} from "forge-std/src/Vm.sol";
import {BaseTest, console} from "../utils/BaseTest.t.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {BaseTest} from "../../utils/BaseTest.t.sol";
import {Test, console, Vm} from "forge-std/src/Test.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
//pragma solidity ^0.8.22;
//pragma solidity 0.8.20;
//
//import {Test, console} from "forge-std/Test.sol";
//import {ParentPoolDeploy} from "../../../script/ParentPoolDeploy.s.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/ParentPool/wrappers/ParentPoolWrapper.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {ParentPool} from "contracts/ParentPool.sol";
import {IParentPool} from "contracts/Interfaces/IParentPool.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/scripts/DeployInfra.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {DeployHelper} from "../utils/DeployHelper.sol";
import {ConceroBridge} from "contracts/ConceroBridge.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/utils/BaseTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {console, Vm, Test} from "forge-std/src/Test.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/utils/DeployHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import {Script} from "forge-std/src/Script.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/utils/InfraBaseTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
pragma solidity 0.8.20;

import "forge-std/src/Test.sol";
import {DexSwap} from "contracts/DexSwap.sol";
Expand Down
Loading

0 comments on commit 37937c0

Please sign in to comment.