Skip to content

Commit

Permalink
Update minimum Solidity compiler version to 0.8.28
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Dec 17, 2024
1 parent 397217d commit 513f967
Show file tree
Hide file tree
Showing 48 changed files with 218 additions and 409 deletions.
2 changes: 1 addition & 1 deletion contracts/core/BaseAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable avoid-low-level-calls */
/* solhint-disable no-empty-blocks */
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/BasePaymaster.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable reason-string */

Expand Down
2 changes: 1 addition & 1 deletion contracts/core/EntryPoint.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;
/* solhint-disable avoid-low-level-calls */
/* solhint-disable no-inline-assembly */

Expand Down
2 changes: 1 addition & 1 deletion contracts/core/EntryPointSimulations.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable avoid-low-level-calls */
/* solhint-disable no-inline-assembly */
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/Helpers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable no-inline-assembly */

Expand Down
2 changes: 1 addition & 1 deletion contracts/core/NonceManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../interfaces/INonceManager.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/core/SenderCreator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/**
* Helper contract for EntryPoint, to call userOp.initCode from a "neutral" address,
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/StakeManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../interfaces/IStakeManager.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/core/UserOperationLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable no-inline-assembly */

Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/LegacyTokenPaymaster.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable reason-string */

Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/SimpleAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable avoid-low-level-calls */
/* solhint-disable no-inline-assembly */
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/SimpleAccountFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/TokenPaymaster.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

// Import the required libraries and contracts
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/VerifyingPaymaster.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable reason-string */
/* solhint-disable no-inline-assembly */
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/bls/BLSAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../SimpleAccount.sol";
import "./IBLSAccount.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/bls/BLSAccountFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/bls/BLSHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

// code taken from : https://github.com/witnet/elliptic-curve-solidity/blob/master/contracts/EllipticCurve.sol
// missing core functions from "thehubbleproject/bls": jacAdd (and sum)
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/bls/BLSSignatureAggregator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../../interfaces/IAggregator.sol";
import "../../interfaces/IEntryPoint.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/bls/lib/BLSOpen.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import { BLS } from "./hubble-contracts/contracts/libs/BLS.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/callback/TokenCallbackHandler.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable no-empty-blocks */

Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/utils/IOracle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

interface IOracle {
function decimals() external view returns (uint8);
Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/utils/OracleHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable not-rely-on-time */

Expand Down
2 changes: 1 addition & 1 deletion contracts/samples/utils/UniswapHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable not-rely-on-time */

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/BrokenBlsAccount.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0

/* solhint-disable one-contract-per-file */
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/MaliciousAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../interfaces/IAccount.sol";
import "../interfaces/IEntryPoint.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestAggregatedAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../samples/SimpleAccount.sol";
import "../core/Helpers.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestAggregatedAccountFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestCounter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

//sample "receiver" contract, for testing "exec" from account.
contract TestCounter {
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestExecAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/* solhint-disable one-contract-per-file */
/* solhint-disable avoid-low-level-calls */
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestExpirePaymaster.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../core/BasePaymaster.sol";
import "../core/UserOperationLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestExpiryAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../samples/SimpleAccount.sol";
import "../core/Helpers.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestHelpers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../core/Helpers.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestOracle2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../samples/utils/IOracle.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestPaymasterAcceptAll.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../core/BasePaymaster.sol";
import "../core/Helpers.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestPaymasterRevertCustomError.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../core/BasePaymaster.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestPaymasterWithPostOp.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "./TestPaymasterAcceptAll.sol";
/* solhint-disable no-empty-blocks */
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestRevertAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;
/* solhint-disable no-inline-assembly */

import "../samples/SimpleAccount.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestSignatureAggregator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

/* solhint-disable reason-string */

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestUniswap.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestUtil.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "../interfaces/PackedUserOperation.sol";
import "../core/UserOperationLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestWarmColdAccount.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;
/* solhint-disable no-inline-assembly */

import "../interfaces/IEntryPoint.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestWrappedNativeToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier:MIT
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/Exec.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity ^0.8.23;
pragma solidity ^0.8.28;

// solhint-disable no-inline-assembly

Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getNetwork (name: string): { url: string, accounts: { mnemonic: string
}

const optimizedComilerSettings = {
version: '0.8.23',
version: '0.8.28',
settings: {
optimizer: { enabled: true, runs: 1000000 },
viaIR: true
Expand All @@ -44,7 +44,7 @@ const optimizedComilerSettings = {
const config: HardhatUserConfig = {
solidity: {
compilers: [{
version: '0.8.23',
version: '0.8.28',
settings: {
optimizer: { enabled: true, runs: 1000000 }
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"eslint-plugin-standard": "^5.0.0",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.4.2",
"hardhat": "^2.17.2",
"hardhat": "^2.22.17",
"solhint": "^3.3.7",
"ts-generator": "^0.1.1",
"ts-mocha": "^10.0.0",
Expand Down
Loading

0 comments on commit 513f967

Please sign in to comment.