Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(protocol): upgrade to use solc 0.8.27 #18037

Merged
merged 3 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/protocol/.solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"rules": {
"avoid-low-level-calls": "off",
"avoid-tx-origin": "off",
"compiler-version": ["error", "0.8.24"],
"compiler-version": ["error", "0.8.27"],
"func-name-mixedcase": "off",
"func-visibility": ["error", { "ignoreConstructors": true }],
"max-line-length": ["error", 120],
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/ITaikoL1.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "./TaikoData.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/TaikoData.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title TaikoData
/// @notice This library defines various data structures used in the Taiko
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/TaikoEvents.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "./TaikoData.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../common/EssentialContract.sol";
import "./libs/LibData.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibBonds.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

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

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibData.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../TaikoData.sol";
import "../../verifiers/IVerifier.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../../libs/LibAddress.sol";
import "../../libs/LibNetwork.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibProving.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../../verifiers/IVerifier.sol";
import "./LibBonds.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibUtils.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

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

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibVerifying.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../../signal/ISignalService.sol";
import "./LibBonds.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/provers/GuardianProver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "./TierProviderBase.sol";
import "./ITierRouter.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/tiers/ITierProvider.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title ITierProvider
/// @notice Defines interface to return tier configuration.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/tiers/ITierRouter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title ITierRouter
/// @notice Defines interface to return an ITierProvider
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/tiers/LibTiers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title LibTiers
/// @dev Tier ID cannot be zero and must be unique.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/tiers/TierProviderBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../../common/LibStrings.sol";
import "./ITierProvider.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/tiers/TierProviderV2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "./TierProviderBase.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L2/DelegateOwner.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../common/EssentialContract.sol";
import "../common/LibStrings.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L2/Lib1559Math.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@solady/src/utils/FixedPointMathLib.sol";
import "../libs/LibMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L2/LibL2Config.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title LibL2Config
library LibL2Config {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L2/TaikoL2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import { V3Struct } from "./lib/QuoteV3Auth/V3Struct.sol";
import { V3Parser } from "./lib/QuoteV3Auth/V3Parser.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import { V3Struct } from "../lib/QuoteV3Auth/V3Struct.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title ISigVerifyLib
/// @custom:security-contact [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title EnclaveIdStruct
/// @custom:security-contact [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import { LibString } from "solady/src/utils/LibString.sol";
import { Asn1Decode, NodePtr } from "../utils/Asn1Decode.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import { Base64 } from "solady/src/utils/Base64.sol";
import { BytesUtils } from "../../utils/BytesUtils.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title V3Struct
/// @custom:security-contact [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title TCBInfoStruct
/// @custom:security-contact [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title IPEMCertChainLib
/// @custom:security-contact [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
// Original source: https://github.com/JonahGroendal/asn1-decode
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

// Inspired by PufferFinance/rave - Apache-2.0 license
// https://github.com/JonahGroendal/asn1-decode/blob/5c2d1469fc678513753786acb441e597969192ec/contracts/Asn1Decode.sol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD 2-Clause License
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

// Inspired by ensdomains/dnssec-oracle - BSD-2-Clause license
// https://github.com/ensdomains/dnssec-oracle/blob/master/contracts/BytesUtils.sol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BSD 2-Clause License

pragma solidity 0.8.24;
pragma solidity ^0.8.27;

// Inspired by ensdomains/solsha1 - BSD 2-Clause License
// https://github.com/ensdomains/solsha1/blob/master/contracts/SHA1.sol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../interfaces/ISigVerifyLib.sol";
import "./BytesUtils.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title X509DateUtils
/// @custom:security-contact [email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/bridge/Bridge.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol";
import "../common/EssentialContract.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/bridge/IBridge.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title IBridge
/// @notice The bridge used in conjunction with the {ISignalService}.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/bridge/IQuotaManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title IQuotaManager
/// @custom:security-contact [email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/bridge/QuotaManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../common/EssentialContract.sol";
import "../common/LibStrings.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/AddressManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "./EssentialContract.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/AddressResolver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./IAddressManager.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/EssentialContract.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/IAddressManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title IAddressManager
/// @notice Manages a mapping of (chainId, name) pairs to Ethereum addresses.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/IAddressResolver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title IAddressResolver
/// @notice This contract acts as a bridge for name-to-address resolution.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/common/LibStrings.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title LibStrings
/// @custom:security-contact [email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/devnet/DevnetTaikoL1.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../L1/TaikoL1.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/devnet/DevnetTaikoL2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../L2/TaikoL2.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/hekla/HeklaTaikoL1.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../L1/TaikoL1.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/hekla/HeklaTaikoL2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../L2/TaikoL2.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/hekla/HeklaTierProvider.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "../L1/tiers/TierProviderBase.sol";
import "../L1/tiers/ITierRouter.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/libs/LibAddress.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/libs/LibBytes.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

library LibBytes {
error INNER_ERROR(bytes innerError);
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/libs/LibMath.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title LibMath
/// @dev This library offers additional math functions for uint256.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/libs/LibNetwork.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
pragma solidity ^0.8.27;

/// @title LibNetwork
library LibNetwork {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/libs/LibTrieProof.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// | |/ _` | | / / _ \ | |__/ _` | '_ (_-<
// |_|\__,_|_|_\_\___/ |____\__,_|_.__/__/

pragma solidity 0.8.24;
pragma solidity ^0.8.27;

import "@optimism/packages/contracts-bedrock/src/libraries/rlp/RLPReader.sol";
import "@optimism/packages/contracts-bedrock/src/libraries/rlp/RLPWriter.sol";
Expand Down
Loading