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

Update pragma and default compiler to 0.8.22 #401

Merged
merged 5 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
5 changes: 5 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.4.4 (2024-10-21)

### Potentially breaking changes
- Update pragma versions to 0.8.22. ([#401](https://github.com/OpenZeppelin/contracts-wizard/pull/401))

## 0.4.3 (2024-04-08)

- Add timestamp based Governor and Votes clock options. ([#347](https://github.com/OpenZeppelin/contracts-wizard/pull/347))
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openzeppelin/wizard",
"version": "0.4.3",
"version": "0.4.4",
"description": "A boilerplate generator to get started with OpenZeppelin Contracts",
"license": "MIT",
"repository": "github:OpenZeppelin/contracts-wizard",
Expand All @@ -20,8 +20,8 @@
"update-env": "rm ./src/environments/hardhat/package-lock.json && npm install --package-lock-only --prefix ./src/environments/hardhat && rm ./src/environments/hardhat/upgradeable/package-lock.json && npm install --package-lock-only --prefix ./src/environments/hardhat/upgradeable"
},
"devDependencies": {
"@openzeppelin/contracts": "^5.0.0",
"@openzeppelin/contracts-upgradeable": "^5.0.0",
"@openzeppelin/contracts": "^5.1.0",
"@openzeppelin/contracts-upgradeable": "^5.1.0",
"@types/node": "^18.0.0",
"@types/semver": "^7.5.7",
"array.prototype.flat": "^1.2.4",
Expand Down
36 changes: 18 additions & 18 deletions packages/core/src/contract.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
}␊
Expand All @@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
Expand All @@ -36,7 +36,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import "./Quux.sol";␊
Expand All @@ -51,7 +51,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
Expand All @@ -66,7 +66,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import "./Quux.sol";␊
Expand All @@ -82,7 +82,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
}␊
Expand All @@ -94,7 +94,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
// The following functions are overrides required by Solidity.␊
Expand All @@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
// The following functions are overrides required by Solidity.␊
Expand All @@ -138,7 +138,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
function _otherFunction() internal whenNotPaused {}␊
Expand All @@ -151,7 +151,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
function _otherFunction() internal whenNotPaused override(ERC20, OtherParent) {␊
Expand All @@ -166,7 +166,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
constructor() {␊
Expand All @@ -181,7 +181,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
Expand All @@ -198,7 +198,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
function _otherFunction() internal {␊
Expand All @@ -213,7 +213,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
function _otherFunction() internal override {␊
Expand All @@ -229,7 +229,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
uint value = 42;␊
Expand All @@ -242,7 +242,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract Foo {␊
uint value = 42;␊
Expand All @@ -256,7 +256,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract FooBarBaz {␊
}␊
Expand All @@ -268,7 +268,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
/// @custom:security-contact [email protected]
contract Foo {␊
Expand Down
Binary file modified packages/core/src/contract.test.ts.snap
Binary file not shown.
18 changes: 9 additions & 9 deletions packages/core/src/custom.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract MyContract {␊
}␊
Expand All @@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/utils/Pausable.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
Expand All @@ -46,7 +46,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
Expand All @@ -64,7 +64,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
Expand Down Expand Up @@ -95,7 +95,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
contract MyContract {␊
}␊
Expand All @@ -107,7 +107,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
Expand All @@ -122,7 +122,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/access/AccessControl.sol";␊
Expand All @@ -139,7 +139,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
Expand All @@ -154,7 +154,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.20;␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
Expand Down
Binary file modified packages/core/src/custom.test.ts.snap
Binary file not shown.
6 changes: 3 additions & 3 deletions packages/core/src/environments/hardhat/package-lock.json

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

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

Loading