From c9589d0b4841be19f5988bd933248f8790f7b868 Mon Sep 17 00:00:00 2001 From: Louis <107303182+0x0Louis@users.noreply.github.com> Date: Fri, 12 May 2023 13:32:05 +0200 Subject: [PATCH] update interfaces and libraries versioning (#103) * update interfaces versioning * update libraries versioning --- src/interfaces/IJoeFactory.sol | 2 +- src/interfaces/IJoePair.sol | 2 +- src/interfaces/IJoeRouter01.sol | 2 +- src/interfaces/IJoeRouter02.sol | 2 +- src/interfaces/ILBFactory.sol | 2 +- src/interfaces/ILBFlashLoanCallback.sol | 2 +- src/interfaces/ILBLegacyFactory.sol | 2 +- src/interfaces/ILBLegacyPair.sol | 2 +- src/interfaces/ILBLegacyRouter.sol | 2 +- src/interfaces/ILBLegacyToken.sol | 2 +- src/interfaces/ILBPair.sol | 2 +- src/interfaces/ILBRouter.sol | 2 +- src/interfaces/ILBToken.sol | 2 +- src/interfaces/IPendingOwnable.sol | 2 +- src/interfaces/IWNATIVE.sol | 2 +- src/libraries/AddressHelper.sol | 2 +- src/libraries/BinHelper.sol | 2 +- src/libraries/Clone.sol | 2 +- src/libraries/Constants.sol | 2 +- src/libraries/FeeHelper.sol | 2 +- src/libraries/ImmutableClone.sol | 2 +- src/libraries/JoeLibrary.sol | 2 +- src/libraries/OracleHelper.sol | 2 +- src/libraries/PairParameterHelper.sol | 2 +- src/libraries/PendingOwnable.sol | 2 +- src/libraries/PriceHelper.sol | 2 +- src/libraries/ReentrancyGuard.sol | 2 +- src/libraries/TokenHelper.sol | 2 +- src/libraries/math/BitMath.sol | 2 +- src/libraries/math/Encoded.sol | 2 +- src/libraries/math/LiquidityConfigurations.sol | 2 +- src/libraries/math/PackedUint128Math.sol | 2 +- src/libraries/math/SafeCast.sol | 2 +- src/libraries/math/SampleMath.sol | 2 +- src/libraries/math/TreeMath.sol | 2 +- src/libraries/math/Uint128x128Math.sol | 2 +- src/libraries/math/Uint256x256Math.sol | 2 +- 37 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/interfaces/IJoeFactory.sol b/src/interfaces/IJoeFactory.sol index ae1a336e..b6af5769 100644 --- a/src/interfaces/IJoeFactory.sol +++ b/src/interfaces/IJoeFactory.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /// @title Joe V1 Factory Interface /// @notice Interface to interact with Joe V1 Factory diff --git a/src/interfaces/IJoePair.sol b/src/interfaces/IJoePair.sol index a5b44c74..e54b901e 100644 --- a/src/interfaces/IJoePair.sol +++ b/src/interfaces/IJoePair.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /// @title Joe V1 Pair Interface /// @notice Interface to interact with Joe V1 Pairs diff --git a/src/interfaces/IJoeRouter01.sol b/src/interfaces/IJoeRouter01.sol index d251641a..46a14dde 100644 --- a/src/interfaces/IJoeRouter01.sol +++ b/src/interfaces/IJoeRouter01.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /// @title Joe V1 Router01 Interface /// @notice Interface to interact with Joe V1 Router diff --git a/src/interfaces/IJoeRouter02.sol b/src/interfaces/IJoeRouter02.sol index 318ddd6e..1598089e 100644 --- a/src/interfaces/IJoeRouter02.sol +++ b/src/interfaces/IJoeRouter02.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IJoeRouter01} from "./IJoeRouter01.sol"; diff --git a/src/interfaces/ILBFactory.sol b/src/interfaces/ILBFactory.sol index a0088147..57a3146a 100644 --- a/src/interfaces/ILBFactory.sol +++ b/src/interfaces/ILBFactory.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBFlashLoanCallback.sol b/src/interfaces/ILBFlashLoanCallback.sol index 6afa791b..1827e397 100644 --- a/src/interfaces/ILBFlashLoanCallback.sol +++ b/src/interfaces/ILBFlashLoanCallback.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBLegacyFactory.sol b/src/interfaces/ILBLegacyFactory.sol index 4642233c..ea374a17 100644 --- a/src/interfaces/ILBLegacyFactory.sol +++ b/src/interfaces/ILBLegacyFactory.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBLegacyPair.sol b/src/interfaces/ILBLegacyPair.sol index e6f6e35f..8dd9dece 100644 --- a/src/interfaces/ILBLegacyPair.sol +++ b/src/interfaces/ILBLegacyPair.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBLegacyRouter.sol b/src/interfaces/ILBLegacyRouter.sol index d8ad6f9d..974e2302 100644 --- a/src/interfaces/ILBLegacyRouter.sol +++ b/src/interfaces/ILBLegacyRouter.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBLegacyToken.sol b/src/interfaces/ILBLegacyToken.sol index 7a06d90a..8d92c97e 100644 --- a/src/interfaces/ILBLegacyToken.sol +++ b/src/interfaces/ILBLegacyToken.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import "openzeppelin/utils/introspection/IERC165.sol"; diff --git a/src/interfaces/ILBPair.sol b/src/interfaces/ILBPair.sol index 00f89b17..48984fd4 100644 --- a/src/interfaces/ILBPair.sol +++ b/src/interfaces/ILBPair.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBRouter.sol b/src/interfaces/ILBRouter.sol index 9497589c..d969b3d0 100644 --- a/src/interfaces/ILBRouter.sol +++ b/src/interfaces/ILBRouter.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/ILBToken.sol b/src/interfaces/ILBToken.sol index 06352194..90e8bfaf 100644 --- a/src/interfaces/ILBToken.sol +++ b/src/interfaces/ILBToken.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Token Interface diff --git a/src/interfaces/IPendingOwnable.sol b/src/interfaces/IPendingOwnable.sol index 6fa423de..765e830c 100644 --- a/src/interfaces/IPendingOwnable.sol +++ b/src/interfaces/IPendingOwnable.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Pending Ownable Interface diff --git a/src/interfaces/IWNATIVE.sol b/src/interfaces/IWNATIVE.sol index ec26b5e2..8286c973 100644 --- a/src/interfaces/IWNATIVE.sol +++ b/src/interfaces/IWNATIVE.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/libraries/AddressHelper.sol b/src/libraries/AddressHelper.sol index f2ec73ec..bc12b860 100644 --- a/src/libraries/AddressHelper.sol +++ b/src/libraries/AddressHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Address Helper Library diff --git a/src/libraries/BinHelper.sol b/src/libraries/BinHelper.sol index a42f3765..b0ae6fe1 100644 --- a/src/libraries/BinHelper.sol +++ b/src/libraries/BinHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/libraries/Clone.sol b/src/libraries/Clone.sol index 446bd973..1390b7f2 100644 --- a/src/libraries/Clone.sol +++ b/src/libraries/Clone.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Clone diff --git a/src/libraries/Constants.sol b/src/libraries/Constants.sol index bab199b6..eacb63f6 100644 --- a/src/libraries/Constants.sol +++ b/src/libraries/Constants.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Constants Library diff --git a/src/libraries/FeeHelper.sol b/src/libraries/FeeHelper.sol index 22a15a07..22666355 100644 --- a/src/libraries/FeeHelper.sol +++ b/src/libraries/FeeHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Constants} from "./Constants.sol"; diff --git a/src/libraries/ImmutableClone.sol b/src/libraries/ImmutableClone.sol index ef7b905b..ddfa8814 100644 --- a/src/libraries/ImmutableClone.sol +++ b/src/libraries/ImmutableClone.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Immutable Clone Library diff --git a/src/libraries/JoeLibrary.sol b/src/libraries/JoeLibrary.sol index ba4ec6d7..48d076c9 100644 --- a/src/libraries/JoeLibrary.sol +++ b/src/libraries/JoeLibrary.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Joe Library Helper Library diff --git a/src/libraries/OracleHelper.sol b/src/libraries/OracleHelper.sol index eadc4462..64ce4b72 100644 --- a/src/libraries/OracleHelper.sol +++ b/src/libraries/OracleHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {SampleMath} from "./math/SampleMath.sol"; import {SafeCast} from "./math/SafeCast.sol"; diff --git a/src/libraries/PairParameterHelper.sol b/src/libraries/PairParameterHelper.sol index 83436ce9..57a8187b 100644 --- a/src/libraries/PairParameterHelper.sol +++ b/src/libraries/PairParameterHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Constants} from "./Constants.sol"; import {SafeCast} from "./math/SafeCast.sol"; diff --git a/src/libraries/PendingOwnable.sol b/src/libraries/PendingOwnable.sol index 3f4fead9..252da1c7 100644 --- a/src/libraries/PendingOwnable.sol +++ b/src/libraries/PendingOwnable.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IPendingOwnable} from "../interfaces/IPendingOwnable.sol"; diff --git a/src/libraries/PriceHelper.sol b/src/libraries/PriceHelper.sol index e53e3a37..f5872530 100644 --- a/src/libraries/PriceHelper.sol +++ b/src/libraries/PriceHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Uint128x128Math} from "./math/Uint128x128Math.sol"; import {Uint256x256Math} from "./math/Uint256x256Math.sol"; diff --git a/src/libraries/ReentrancyGuard.sol b/src/libraries/ReentrancyGuard.sol index 9b783e7f..439fd27b 100644 --- a/src/libraries/ReentrancyGuard.sol +++ b/src/libraries/ReentrancyGuard.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Reentrancy Guard Library diff --git a/src/libraries/TokenHelper.sol b/src/libraries/TokenHelper.sol index 0b0cc3ad..e613cb99 100644 --- a/src/libraries/TokenHelper.sol +++ b/src/libraries/TokenHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol"; diff --git a/src/libraries/math/BitMath.sol b/src/libraries/math/BitMath.sol index 52953dd1..7a8bdabe 100644 --- a/src/libraries/math/BitMath.sol +++ b/src/libraries/math/BitMath.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Bit Math Library diff --git a/src/libraries/math/Encoded.sol b/src/libraries/math/Encoded.sol index 437197fc..77b5cabd 100644 --- a/src/libraries/math/Encoded.sol +++ b/src/libraries/math/Encoded.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Encoded Library diff --git a/src/libraries/math/LiquidityConfigurations.sol b/src/libraries/math/LiquidityConfigurations.sol index f57d952c..263db31a 100644 --- a/src/libraries/math/LiquidityConfigurations.sol +++ b/src/libraries/math/LiquidityConfigurations.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {PackedUint128Math} from "./PackedUint128Math.sol"; import {Encoded} from "./Encoded.sol"; diff --git a/src/libraries/math/PackedUint128Math.sol b/src/libraries/math/PackedUint128Math.sol index cb7da16c..2a484dea 100644 --- a/src/libraries/math/PackedUint128Math.sol +++ b/src/libraries/math/PackedUint128Math.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Constants} from "../Constants.sol"; diff --git a/src/libraries/math/SafeCast.sol b/src/libraries/math/SafeCast.sol index ca41a4d2..aac542c5 100644 --- a/src/libraries/math/SafeCast.sol +++ b/src/libraries/math/SafeCast.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Safe Cast Library diff --git a/src/libraries/math/SampleMath.sol b/src/libraries/math/SampleMath.sol index 8736e3b1..1e52ff02 100644 --- a/src/libraries/math/SampleMath.sol +++ b/src/libraries/math/SampleMath.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Encoded} from "./Encoded.sol"; diff --git a/src/libraries/math/TreeMath.sol b/src/libraries/math/TreeMath.sol index 43c6f2b7..52246d63 100644 --- a/src/libraries/math/TreeMath.sol +++ b/src/libraries/math/TreeMath.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {BitMath} from "./BitMath.sol"; diff --git a/src/libraries/math/Uint128x128Math.sol b/src/libraries/math/Uint128x128Math.sol index 63e6954f..02cb64cb 100644 --- a/src/libraries/math/Uint128x128Math.sol +++ b/src/libraries/math/Uint128x128Math.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Constants} from "../Constants.sol"; import {BitMath} from "./BitMath.sol"; diff --git a/src/libraries/math/Uint256x256Math.sol b/src/libraries/math/Uint256x256Math.sol index 817543df..b86ba92f 100644 --- a/src/libraries/math/Uint256x256Math.sol +++ b/src/libraries/math/Uint256x256Math.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title Liquidity Book Uint256x256 Math Library