Skip to content

Commit

Permalink
chore(deps): bump solidity version to v0.8.21 (#221)
Browse files Browse the repository at this point in the history
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

When verifying the QGB contract, these were signaled by Etherscan:

https://sepolia.etherscan.io/solcbuginfo?a=FullInlinerNonExpressionSplitArgumentEvaluationOrder

https://sepolia.etherscan.io/solcbuginfo?a=MissingSideEffectsOnSelectorAccess

Which are fixed with this version bump.

Also closes:
#136

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [ ] New and updated code has appropriate documentation
- [ ] New and updated code has new and/or updated testing
- [ ] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [ ] Linked issues closed with keywords
  • Loading branch information
rach-id authored Oct 15, 2023
1 parent 729fceb commit 3dc8592
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[profile.default]
solc_version = "0.8.20"
solc_version = "0.8.21"
via_ir = true
gas_reports = ["*"]
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import fs from "fs";

const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
version: "0.8.21",
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile_Environment
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt update && apt install -y git build-essential software-properties-common
RUN curl -L https://foundry.paradigm.xyz | bash && . /root/.bashrc && foundryup

# install solc
RUN wget https://github.com/ethereum/solidity/releases/download/v0.8.19/solc-static-linux -O /usr/bin/solc && chmod +x /usr/bin/solc
RUN wget https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux -O /usr/bin/solc && chmod +x /usr/bin/solc

# install go
RUN wget https://go.dev/dl/go1.21.1.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz && echo 'PATH=$PATH:/usr/local/go/bin:/root/go/bin' >> ~/.bashrc
Expand Down
2 changes: 1 addition & 1 deletion src/Blobstream.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol";
import "openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Constants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

/// @dev bytes32 encoding of the string "checkpoint"
bytes32 constant VALIDATOR_SET_HASH_DOMAIN_SEPARATOR =
Expand Down
2 changes: 1 addition & 1 deletion src/DataRootTuple.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

/// @notice A tuple of data root with metadata. Each data root is associated
/// with a Celestia block height.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/Constants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "./Types.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/Types.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

/// @notice A representation of the Celestia-app namespace ID and its version.
/// See: https://celestiaorg.github.io/celestia-app/specs/namespace.html
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/Utils.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "./Constants.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/binary/BinaryMerkleProof.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

/// @notice Merkle Tree Proof structure.
struct BinaryMerkleProof {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/binary/BinaryMerkleTree.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "../Constants.sol";
import "../Utils.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/binary/TreeHasher.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "../Constants.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/binary/test/BinaryMerkleTree.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/binary/test/TreeHasher.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/NamespaceMerkleMultiproof.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "./NamespaceNode.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/NamespaceMerkleProof.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "./NamespaceNode.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/NamespaceMerkleTree.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "../Constants.sol";
import "../Types.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/NamespaceNode.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "../Types.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/TreeHasher.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "../Constants.sol";
import "../Types.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/test/NamespaceMerkleTree.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/namespace/test/TreeHasher.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/tree/test/Utils.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/verifier/DAVerifier.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/verifier/test/DAVerifier.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/verifier/test/RollupInclusionProofs.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/test/Blobstream.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.19;
pragma solidity ^0.8.21;

import "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol";

Expand Down
2 changes: 1 addition & 1 deletion wrappers/Blobstream.sol/wrapper.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wrappers/ERC1967Proxy.sol/wrapper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3dc8592

Please sign in to comment.