diff --git a/package-lock.json b/package-lock.json index 39cd015a1..e29ac4ba8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7294,9 +7294,9 @@ } }, "node_modules/solc": { - "version": "0.8.28", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.28.tgz", - "integrity": "sha512-AFCiJ+b4RosyyNhnfdVH4ZR1+TxiL91iluPjw0EJslIu4LXGM9NYqi2z5y8TqochC4tcH9QsHfwWhOIC9jPDKA==", + "version": "0.8.29", + "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.29.tgz", + "integrity": "sha512-M1hmcsejAtT1RWC+wy45Oi8a82nSnDl65wDzA3/8uWTC7R7VcnrMVIHv6/LHqnQPZ7OM2RIeKh3zpNo4E5lYbw==", "dev": true, "license": "MIT", "dependencies": { @@ -7312,7 +7312,7 @@ "solcjs": "solc.js" }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" } }, "node_modules/solc/node_modules/semver": { diff --git a/tests/format/HexLiteral/HexLiteral.sol b/tests/format/HexLiteral/HexLiteral.sol index 894b4f70a..109dca288 100644 --- a/tests/format/HexLiteral/HexLiteral.sol +++ b/tests/format/HexLiteral/HexLiteral.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap b/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap index 467e6a27e..e1167f6e6 100644 --- a/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap @@ -9,7 +9,7 @@ singleQuote: false | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -18,7 +18,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract HexLiteral { bytes8 hex1 = hex"DeadBeef"; @@ -37,7 +37,7 @@ singleQuote: true | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -46,7 +46,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/ModifierInvocations/ModifierInvocations.sol b/tests/format/ModifierInvocations/ModifierInvocations.sol index c1e762ac9..25626d0f2 100644 --- a/tests/format/ModifierInvocations/ModifierInvocations.sol +++ b/tests/format/ModifierInvocations/ModifierInvocations.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap b/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap index 26d93c2dd..450dbf143 100644 --- a/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap @@ -8,7 +8,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. @@ -27,7 +27,7 @@ contract ModifierInvocations is ModifierDefinitions { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/NumberLiteral/NumberLiteral.sol b/tests/format/NumberLiteral/NumberLiteral.sol index a52ccffb1..3dd35e56d 100644 --- a/tests/format/NumberLiteral/NumberLiteral.sol +++ b/tests/format/NumberLiteral/NumberLiteral.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract NumberLiteral { function numbers()public { diff --git a/tests/format/NumberLiteral/__snapshots__/jsfmt.spec.js.snap b/tests/format/NumberLiteral/__snapshots__/jsfmt.spec.js.snap index 699992314..8f689b2ac 100644 --- a/tests/format/NumberLiteral/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/NumberLiteral/__snapshots__/jsfmt.spec.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract NumberLiteral { function numbers()public { @@ -22,7 +22,7 @@ contract NumberLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract NumberLiteral { function numbers() public { diff --git a/tests/format/Parentheses/AddNoParentheses.sol b/tests/format/Parentheses/AddNoParentheses.sol index f65a8a239..4f81b78d5 100644 --- a/tests/format/Parentheses/AddNoParentheses.sol +++ b/tests/format/Parentheses/AddNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitAndNoParentheses.sol b/tests/format/Parentheses/BitAndNoParentheses.sol index 8a2b9a82a..3f20e7ee4 100644 --- a/tests/format/Parentheses/BitAndNoParentheses.sol +++ b/tests/format/Parentheses/BitAndNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitOrNoParentheses.sol b/tests/format/Parentheses/BitOrNoParentheses.sol index dd2d4d351..b3b6e3e93 100644 --- a/tests/format/Parentheses/BitOrNoParentheses.sol +++ b/tests/format/Parentheses/BitOrNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitXorNoParentheses.sol b/tests/format/Parentheses/BitXorNoParentheses.sol index 21ff78baf..3619143d0 100644 --- a/tests/format/Parentheses/BitXorNoParentheses.sol +++ b/tests/format/Parentheses/BitXorNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/DivNoParentheses.sol b/tests/format/Parentheses/DivNoParentheses.sol index 8e33166e0..52717ae44 100644 --- a/tests/format/Parentheses/DivNoParentheses.sol +++ b/tests/format/Parentheses/DivNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ExpNoParentheses.sol b/tests/format/Parentheses/ExpNoParentheses.sol index 335876277..3fb91d65e 100644 --- a/tests/format/Parentheses/ExpNoParentheses.sol +++ b/tests/format/Parentheses/ExpNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/LogicNoParentheses.sol b/tests/format/Parentheses/LogicNoParentheses.sol index 8a246ba70..2345f549f 100644 --- a/tests/format/Parentheses/LogicNoParentheses.sol +++ b/tests/format/Parentheses/LogicNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { diff --git a/tests/format/Parentheses/ModNoParentheses.sol b/tests/format/Parentheses/ModNoParentheses.sol index ce1cb41e3..15050bdb9 100644 --- a/tests/format/Parentheses/ModNoParentheses.sol +++ b/tests/format/Parentheses/ModNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/MulNoParentheses.sol b/tests/format/Parentheses/MulNoParentheses.sol index 8ff3f03f4..5c33e83c8 100644 --- a/tests/format/Parentheses/MulNoParentheses.sol +++ b/tests/format/Parentheses/MulNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ShiftLNoParentheses.sol b/tests/format/Parentheses/ShiftLNoParentheses.sol index 40c36d005..6bf3aa5e8 100644 --- a/tests/format/Parentheses/ShiftLNoParentheses.sol +++ b/tests/format/Parentheses/ShiftLNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ShiftRNoParentheses.sol b/tests/format/Parentheses/ShiftRNoParentheses.sol index 16850aa38..af677ea33 100644 --- a/tests/format/Parentheses/ShiftRNoParentheses.sol +++ b/tests/format/Parentheses/ShiftRNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/SubNoParentheses.sol b/tests/format/Parentheses/SubNoParentheses.sol index a6e8ff7e5..6b1aa7858 100644 --- a/tests/format/Parentheses/SubNoParentheses.sol +++ b/tests/format/Parentheses/SubNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap b/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap index 5cf658be8..e51bd2d48 100644 --- a/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap @@ -8,7 +8,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) @@ -102,7 +102,7 @@ contract AddNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract AddNoParentheses { function addAdd( @@ -205,7 +205,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) @@ -299,7 +299,7 @@ contract BitAndNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitAndNoParentheses { function bitAndAdd( @@ -402,7 +402,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) @@ -496,7 +496,7 @@ contract BitOrNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitOrNoParentheses { function bitOrAdd( @@ -599,7 +599,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) @@ -693,7 +693,7 @@ contract BitXorNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract BitXorNoParentheses { function bitXorAdd( @@ -796,7 +796,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) @@ -890,7 +890,7 @@ contract DivNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract DivNoParentheses { function divAdd( @@ -993,7 +993,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) @@ -1087,7 +1087,7 @@ contract ExpNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ExpNoParentheses { function expAdd( @@ -1190,7 +1190,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1212,7 +1212,7 @@ contract LogicNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1243,7 +1243,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) @@ -1337,7 +1337,7 @@ contract ModNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ModNoParentheses { function modAdd( @@ -1440,7 +1440,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) @@ -1534,7 +1534,7 @@ contract MulNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract MulNoParentheses { function mulAdd( @@ -1637,7 +1637,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) @@ -1731,7 +1731,7 @@ contract ShiftLNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ShiftLNoParentheses { function shiftLAdd( @@ -1834,7 +1834,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) @@ -1928,7 +1928,7 @@ contract ShiftRNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract ShiftRNoParentheses { function shiftRAdd( @@ -2031,7 +2031,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) @@ -2125,7 +2125,7 @@ contract SubNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.28; +pragma solidity 0.8.29; contract SubNoParentheses { function subAdd(