From f3e2186ec20c19424bb5c77beda1a13c145cdb8e Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 23 Jan 2024 10:24:02 +0100 Subject: [PATCH] Update solidity to 0.8.23 --- contracts/Configuration.sol | 2 +- contracts/Endian.sol | 2 +- contracts/Groth16.sol | 2 +- contracts/Marketplace.sol | 2 +- contracts/Periods.sol | 2 +- contracts/Proofs.sol | 2 +- contracts/Requests.sol | 2 +- contracts/StateRetrieval.sol | 2 +- contracts/TestVerifier.sol | 2 +- contracts/Verifier.sol | 2 +- contracts/verifiers/local/verifier_groth.sol | 2 +- hardhat.config.js | 2 +- verifier/template/verifier_groth.sol | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/contracts/Configuration.sol b/contracts/Configuration.sol index 894039e..0a4b922 100644 --- a/contracts/Configuration.sol +++ b/contracts/Configuration.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/contracts/Endian.sol b/contracts/Endian.sol index 68fc971..e76bd8a 100644 --- a/contracts/Endian.sol +++ b/contracts/Endian.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; contract Endian { /// reverses byte order to allow conversion between little endian and big diff --git a/contracts/Groth16.sol b/contracts/Groth16.sol index c790e48..a425396 100644 --- a/contracts/Groth16.sol +++ b/contracts/Groth16.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; struct G1Point { uint x; diff --git a/contracts/Marketplace.sol b/contracts/Marketplace.sol index 9302929..e1fdbd1 100644 --- a/contracts/Marketplace.sol +++ b/contracts/Marketplace.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; diff --git a/contracts/Periods.sol b/contracts/Periods.sol index 796b61a..bb7bcb9 100644 --- a/contracts/Periods.sol +++ b/contracts/Periods.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; contract Periods { type Period is uint256; diff --git a/contracts/Proofs.sol b/contracts/Proofs.sol index 78d1738..2eebe74 100644 --- a/contracts/Proofs.sol +++ b/contracts/Proofs.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; import "./Configuration.sol"; import "./Requests.sol"; diff --git a/contracts/Requests.sol b/contracts/Requests.sol index 40a1385..090dd17 100644 --- a/contracts/Requests.sol +++ b/contracts/Requests.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; type RequestId is bytes32; type SlotId is bytes32; diff --git a/contracts/StateRetrieval.sol b/contracts/StateRetrieval.sol index 3293932..6a9a2e3 100644 --- a/contracts/StateRetrieval.sol +++ b/contracts/StateRetrieval.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "./Requests.sol"; diff --git a/contracts/TestVerifier.sol b/contracts/TestVerifier.sol index e69b9d2..9a80ba9 100644 --- a/contracts/TestVerifier.sol +++ b/contracts/TestVerifier.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; import "./Verifier.sol"; diff --git a/contracts/Verifier.sol b/contracts/Verifier.sol index 0116653..051d14c 100644 --- a/contracts/Verifier.sol +++ b/contracts/Verifier.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; interface IVerifier { function verifyProof( diff --git a/contracts/verifiers/local/verifier_groth.sol b/contracts/verifiers/local/verifier_groth.sol index af6fb60..14f727e 100644 --- a/contracts/verifiers/local/verifier_groth.sol +++ b/contracts/verifiers/local/verifier_groth.sol @@ -17,7 +17,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; library Pairing { struct G1Point { uint X; diff --git a/hardhat.config.js b/hardhat.config.js index 016d94a..a6ba333 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -4,7 +4,7 @@ require("hardhat-deploy-ethers") module.exports = { solidity: { - version: "0.8.8", + version: "0.8.23", settings: { optimizer: { enabled: true, diff --git a/verifier/template/verifier_groth.sol b/verifier/template/verifier_groth.sol index 4a2dcbb..600dd5c 100644 --- a/verifier/template/verifier_groth.sol +++ b/verifier/template/verifier_groth.sol @@ -17,7 +17,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // SPDX-License-Identifier: MIT -pragma solidity ^0.8.8; +pragma solidity 0.8.23; library Pairing { struct G1Point { uint X;