From cb23dbfe20171a67b1faa6f90207ba2cf8d6cd33 Mon Sep 17 00:00:00 2001 From: teddy Date: Fri, 7 Jun 2024 12:19:35 -0300 Subject: [PATCH] chore: bump solidity version to 0.8.25 (#70) --- foundry.toml | 2 +- script/Deploy.s.sol | 2 +- script/Params.s.sol | 2 +- src/contracts/BConst.sol | 2 +- src/contracts/BFactory.sol | 2 +- src/contracts/BMath.sol | 2 +- src/contracts/BNum.sol | 2 +- src/contracts/BPool.sol | 2 +- src/contracts/BToken.sol | 2 +- src/interfaces/IBFactory.sol | 2 +- src/interfaces/IBPool.sol | 2 +- test/integration/DeploymentGas.t.sol | 2 +- test/integration/PoolSwap.t.sol | 2 +- test/unit/BFactory.t.sol | 2 +- test/unit/BPool.t.sol | 2 +- test/unit/BToken.t.sol | 2 +- test/utils/Pow.sol | 2 +- test/utils/Utils.sol | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/foundry.toml b/foundry.toml index 046a7d75..a38fc11a 100644 --- a/foundry.toml +++ b/foundry.toml @@ -9,7 +9,7 @@ multiline_func_header = 'params_first' sort_imports = true [profile.default] -solc_version = '0.8.23' +solc_version = '0.8.25' libs = ["node_modules", "lib"] optimizer_runs = 50 # TODO: increase for production and add via-ir ffi = true diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 33bf6eaf..608af6bc 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BFactory} from 'contracts/BFactory.sol'; import {Params} from 'script/Params.s.sol'; diff --git a/script/Params.s.sol b/script/Params.s.sol index c943cf24..15a5aaa6 100644 --- a/script/Params.s.sol +++ b/script/Params.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; contract Params { struct DeploymentParams { diff --git a/src/contracts/BConst.sol b/src/contracts/BConst.sol index 9f2c3ea4..1936aec6 100644 --- a/src/contracts/BConst.sol +++ b/src/contracts/BConst.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; contract BConst { uint256 public constant BONE = 10 ** 18; diff --git a/src/contracts/BFactory.sol b/src/contracts/BFactory.sol index b54ab2ba..8036a9d7 100644 --- a/src/contracts/BFactory.sol +++ b/src/contracts/BFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; // Builds new BPools, logging their addresses and providing `isBPool(address) -> (bool)` import {BPool} from './BPool.sol'; diff --git a/src/contracts/BMath.sol b/src/contracts/BMath.sol index d6579e4c..0bb625db 100644 --- a/src/contracts/BMath.sol +++ b/src/contracts/BMath.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BConst} from './BConst.sol'; import {BNum} from './BNum.sol'; diff --git a/src/contracts/BNum.sol b/src/contracts/BNum.sol index b2cfe6fd..040ac892 100644 --- a/src/contracts/BNum.sol +++ b/src/contracts/BNum.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BConst} from './BConst.sol'; diff --git a/src/contracts/BPool.sol b/src/contracts/BPool.sol index 47b9169b..660118af 100644 --- a/src/contracts/BPool.sol +++ b/src/contracts/BPool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BMath} from './BMath.sol'; diff --git a/src/contracts/BToken.sol b/src/contracts/BToken.sol index 98aa9b9b..884c335e 100644 --- a/src/contracts/BToken.sol +++ b/src/contracts/BToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BNum} from './BNum.sol'; diff --git a/src/interfaces/IBFactory.sol b/src/interfaces/IBFactory.sol index 3507aff0..d07a3e6d 100644 --- a/src/interfaces/IBFactory.sol +++ b/src/interfaces/IBFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {IBPool} from 'interfaces/IBPool.sol'; diff --git a/src/interfaces/IBPool.sol b/src/interfaces/IBPool.sol index f06e6fbb..c111948e 100644 --- a/src/interfaces/IBPool.sol +++ b/src/interfaces/IBPool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; diff --git a/test/integration/DeploymentGas.t.sol b/test/integration/DeploymentGas.t.sol index 992213cd..5bc4715c 100644 --- a/test/integration/DeploymentGas.t.sol +++ b/test/integration/DeploymentGas.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BFactory} from 'contracts/BFactory.sol'; diff --git a/test/integration/PoolSwap.t.sol b/test/integration/PoolSwap.t.sol index 46150b3f..016b4d7c 100644 --- a/test/integration/PoolSwap.t.sol +++ b/test/integration/PoolSwap.t.sol @@ -1,4 +1,4 @@ -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import {Test} from 'forge-std/Test.sol'; diff --git a/test/unit/BFactory.t.sol b/test/unit/BFactory.t.sol index bbd262ac..0914bcec 100644 --- a/test/unit/BFactory.t.sol +++ b/test/unit/BFactory.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; diff --git a/test/unit/BPool.t.sol b/test/unit/BPool.t.sol index 4f260277..0ea4f884 100644 --- a/test/unit/BPool.t.sol +++ b/test/unit/BPool.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; diff --git a/test/unit/BToken.t.sol b/test/unit/BToken.t.sol index 2d745f9e..ac16f760 100644 --- a/test/unit/BToken.t.sol +++ b/test/unit/BToken.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3 -pragma solidity ^0.8.23; +pragma solidity ^0.8.25; import {IERC20Errors} from '@openzeppelin/contracts/interfaces/draft-IERC6093.sol'; import {Test} from 'forge-std/Test.sol'; diff --git a/test/utils/Pow.sol b/test/utils/Pow.sol index b8f15d85..e9142c57 100644 --- a/test/utils/Pow.sol +++ b/test/utils/Pow.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {BNum} from 'contracts/BNum.sol'; diff --git a/test/utils/Utils.sol b/test/utils/Utils.sol index db195352..19225f9d 100644 --- a/test/utils/Utils.sol +++ b/test/utils/Utils.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.23; +pragma solidity 0.8.25; import {Test} from 'forge-std/Test.sol'; import {LibString} from 'solmate/utils/LibString.sol';