From db8b924327e5d63feb68a6dba836548d7ac9f504 Mon Sep 17 00:00:00 2001 From: aboudjem Date: Tue, 17 Sep 2024 11:27:56 +0700 Subject: [PATCH] Update Solidity compiler version to 0.8.27 --- contracts/base/BasePaymaster.sol | 2 +- contracts/common/BiconomySponsorshipPaymasterErrors.sol | 2 +- contracts/common/BiconomyTokenPaymasterErrors.sol | 2 +- contracts/interfaces/IBiconomySponsorshipPaymaster.sol | 2 +- contracts/interfaces/IBiconomyTokenPaymaster.sol | 2 +- contracts/libraries/TokenPaymasterParserLib.sol | 2 +- contracts/mocks/Imports.sol | 2 +- contracts/mocks/MockValidator.sol | 2 +- contracts/sponsorship/BiconomySponsorshipPaymaster.sol | 2 +- contracts/token/BiconomyTokenPaymaster.sol | 2 +- contracts/token/oracles/TwapOracle.sol | 2 +- contracts/utils/SoladyOwnable.sol | 2 +- test/base/BaseEventsAndErrors.sol | 2 +- test/base/TestBase.sol | 2 +- test/unit/concrete/TestSponsorshipPaymaster.t.sol | 2 +- test/unit/concrete/TestTokenPaymaster.t.sol | 2 +- test/unit/concrete/TestTokenPaymasterParserLib.t.sol | 2 +- test/unit/fuzz/TestFuzz_TestSponsorshipPaymaster.t.sol | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/contracts/base/BasePaymaster.sol b/contracts/base/BasePaymaster.sol index 0f0699d..e802da4 100644 --- a/contracts/base/BasePaymaster.sol +++ b/contracts/base/BasePaymaster.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; /* solhint-disable reason-string */ diff --git a/contracts/common/BiconomySponsorshipPaymasterErrors.sol b/contracts/common/BiconomySponsorshipPaymasterErrors.sol index 70f2063..1760143 100644 --- a/contracts/common/BiconomySponsorshipPaymasterErrors.sol +++ b/contracts/common/BiconomySponsorshipPaymasterErrors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: LGPL-3.0-only -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; contract BiconomySponsorshipPaymasterErrors { /** diff --git a/contracts/common/BiconomyTokenPaymasterErrors.sol b/contracts/common/BiconomyTokenPaymasterErrors.sol index 1d2f775..b77a63f 100644 --- a/contracts/common/BiconomyTokenPaymasterErrors.sol +++ b/contracts/common/BiconomyTokenPaymasterErrors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: LGPL-3.0-only -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; contract BiconomyTokenPaymasterErrors { /** diff --git a/contracts/interfaces/IBiconomySponsorshipPaymaster.sol b/contracts/interfaces/IBiconomySponsorshipPaymaster.sol index 5e2a91c..2f09f28 100644 --- a/contracts/interfaces/IBiconomySponsorshipPaymaster.sol +++ b/contracts/interfaces/IBiconomySponsorshipPaymaster.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import "@openzeppelin/token/ERC20/IERC20.sol"; import { PackedUserOperation } from "@account-abstraction/core/UserOperationLib.sol"; diff --git a/contracts/interfaces/IBiconomyTokenPaymaster.sol b/contracts/interfaces/IBiconomyTokenPaymaster.sol index b5e1f2f..85321d2 100644 --- a/contracts/interfaces/IBiconomyTokenPaymaster.sol +++ b/contracts/interfaces/IBiconomyTokenPaymaster.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import { IOracle } from "./oracles/IOracle.sol"; diff --git a/contracts/libraries/TokenPaymasterParserLib.sol b/contracts/libraries/TokenPaymasterParserLib.sol index 0414174..0825676 100644 --- a/contracts/libraries/TokenPaymasterParserLib.sol +++ b/contracts/libraries/TokenPaymasterParserLib.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import { IBiconomyTokenPaymaster } from "../interfaces/IBiconomyTokenPaymaster.sol"; import "@account-abstraction/core/UserOperationLib.sol"; diff --git a/contracts/mocks/Imports.sol b/contracts/mocks/Imports.sol index cfb4fe1..8c9483d 100644 --- a/contracts/mocks/Imports.sol +++ b/contracts/mocks/Imports.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; /* solhint-disable reason-string */ diff --git a/contracts/mocks/MockValidator.sol b/contracts/mocks/MockValidator.sol index 7682958..7686876 100644 --- a/contracts/mocks/MockValidator.sol +++ b/contracts/mocks/MockValidator.sol @@ -1,3 +1,3 @@ -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import "@biconomy-devx/erc7579-msa/test/foundry/mocks/MockValidator.sol"; diff --git a/contracts/sponsorship/BiconomySponsorshipPaymaster.sol b/contracts/sponsorship/BiconomySponsorshipPaymaster.sol index d2d7342..ae58109 100644 --- a/contracts/sponsorship/BiconomySponsorshipPaymaster.sol +++ b/contracts/sponsorship/BiconomySponsorshipPaymaster.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; /* solhint-disable reason-string */ diff --git a/contracts/token/BiconomyTokenPaymaster.sol b/contracts/token/BiconomyTokenPaymaster.sol index 14d1dc8..085a106 100644 --- a/contracts/token/BiconomyTokenPaymaster.sol +++ b/contracts/token/BiconomyTokenPaymaster.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import { ReentrancyGuardTransient } from "@openzeppelin/utils/ReentrancyGuardTransient.sol"; import { IEntryPoint } from "@account-abstraction/interfaces/IEntryPoint.sol"; diff --git a/contracts/token/oracles/TwapOracle.sol b/contracts/token/oracles/TwapOracle.sol index 56df0d8..d670e9e 100644 --- a/contracts/token/oracles/TwapOracle.sol +++ b/contracts/token/oracles/TwapOracle.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import {IOracle} from "../../interfaces/oracles/IOracle.sol"; import {IERC20Metadata} from "@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol"; diff --git a/contracts/utils/SoladyOwnable.sol b/contracts/utils/SoladyOwnable.sol index 3d80b3f..63f1b8f 100644 --- a/contracts/utils/SoladyOwnable.sol +++ b/contracts/utils/SoladyOwnable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import { Ownable } from "@solady/auth/Ownable.sol"; diff --git a/test/base/BaseEventsAndErrors.sol b/test/base/BaseEventsAndErrors.sol index 021e399..6ef461f 100644 --- a/test/base/BaseEventsAndErrors.sol +++ b/test/base/BaseEventsAndErrors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicensed -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import { EventsAndErrors } from "@nexus/test/foundry/utils/EventsAndErrors.sol"; import { BiconomySponsorshipPaymasterErrors } from "../../contracts/common/BiconomySponsorshipPaymasterErrors.sol"; diff --git a/test/base/TestBase.sol b/test/base/TestBase.sol index d579fe4..8d90d93 100644 --- a/test/base/TestBase.sol +++ b/test/base/TestBase.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import { Test } from "forge-std/src/Test.sol"; import { Vm } from "forge-std/src/Vm.sol"; diff --git a/test/unit/concrete/TestSponsorshipPaymaster.t.sol b/test/unit/concrete/TestSponsorshipPaymaster.t.sol index e8d37c9..5eacdc9 100644 --- a/test/unit/concrete/TestSponsorshipPaymaster.t.sol +++ b/test/unit/concrete/TestSponsorshipPaymaster.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicensed -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import "../../base/TestBase.sol"; import { IBiconomySponsorshipPaymaster } from "../../../contracts/interfaces/IBiconomySponsorshipPaymaster.sol"; diff --git a/test/unit/concrete/TestTokenPaymaster.t.sol b/test/unit/concrete/TestTokenPaymaster.t.sol index c5bc3a6..b12c75b 100644 --- a/test/unit/concrete/TestTokenPaymaster.t.sol +++ b/test/unit/concrete/TestTokenPaymaster.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicensed -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import "../../base/TestBase.sol"; import { diff --git a/test/unit/concrete/TestTokenPaymasterParserLib.t.sol b/test/unit/concrete/TestTokenPaymasterParserLib.t.sol index 4abfe48..247c8bb 100644 --- a/test/unit/concrete/TestTokenPaymasterParserLib.t.sol +++ b/test/unit/concrete/TestTokenPaymasterParserLib.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicensed -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import "lib/forge-std/src/Test.sol"; import "../../../contracts/libraries/TokenPaymasterParserLib.sol"; diff --git a/test/unit/fuzz/TestFuzz_TestSponsorshipPaymaster.t.sol b/test/unit/fuzz/TestFuzz_TestSponsorshipPaymaster.t.sol index 78de5ad..577e827 100644 --- a/test/unit/fuzz/TestFuzz_TestSponsorshipPaymaster.t.sol +++ b/test/unit/fuzz/TestFuzz_TestSponsorshipPaymaster.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicensed -pragma solidity ^0.8.26; +pragma solidity ^0.8.27; import "../../base/TestBase.sol"; import { IBiconomySponsorshipPaymaster } from "../../../contracts/interfaces/IBiconomySponsorshipPaymaster.sol";