diff --git a/package-lock.json b/package-lock.json index 145dda42ee1..d19ef9905d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -83,7 +83,7 @@ "eslint-plugin-n": "^15.7.0", "eslint-plugin-prettier": "^5.5.0", "eslint-plugin-promise": "^6.1.1", - "hardhat": "^2.24.3", + "hardhat": "^2.25.0", "husky": "^9.1.7", "jest-yaml-transform": "^0.2.0", "lint-staged": "^15.5.2", @@ -91,7 +91,7 @@ "prettier": "^3.5.3", "prettier-plugin-astro": "^0.14.1", "prettier-plugin-solidity": "^1.4.3", - "solhint": "^5.1.0", + "solhint": "^5.2.0", "solhint-plugin-chainlink-solidity": "github:smartcontractkit/chainlink-solhint-rules", "solhint-plugin-prettier": "^0.1.0", "ts-jest": "^29.4.0", @@ -6363,6 +6363,15 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@humanwhocodes/momoa": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/momoa/-/momoa-2.0.4.tgz", + "integrity": "sha512-RE815I4arJFtt+FVeU1Tgp9/Xvecacji8w/V6XtXsWWH/wz/eNkNbhb+ny/+PlVZjV0rxQpRSQKNKE3lcktHEA==", + "dev": true, + "engines": { + "node": ">=10.10.0" + } + }, "node_modules/@humanwhocodes/object-schema": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", @@ -12831,6 +12840,15 @@ } } }, + "node_modules/ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", + "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", + "dev": true, + "peerDependencies": { + "ajv": ">=5.0.0" + } + }, "node_modules/algoliasearch": { "version": "5.27.0", "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.27.0.tgz", @@ -13915,6 +13933,25 @@ "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==", "license": "MIT" }, + "node_modules/better-ajv-errors": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/better-ajv-errors/-/better-ajv-errors-2.0.2.tgz", + "integrity": "sha512-1cLrJXEq46n0hjV8dDYwg9LKYjDb3KbeW7nZTv4kvfoDD9c2DXHIE31nxM+Y/cIfXMggLUfmxbm6h/JoM/yotA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@humanwhocodes/momoa": "^2.0.4", + "chalk": "^4.1.2", + "jsonpointer": "^5.0.1", + "leven": "^3.1.0 < 4" + }, + "engines": { + "node": ">= 18.20.6" + }, + "peerDependencies": { + "ajv": "4.11.8 - 8" + } + }, "node_modules/better-path-resolve": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/better-path-resolve/-/better-path-resolve-1.0.0.tgz", @@ -19705,11 +19742,10 @@ } }, "node_modules/hardhat": { - "version": "2.24.3", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.24.3.tgz", - "integrity": "sha512-2dhniQ1wW8/Wh3mP91kKcEnVva93mWYRaYLkV+a0ATkUEKrByGF2P5hCrlNHbqYP//D7L0CGYLtDjPQY6ILaVA==", + "version": "2.25.0", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.25.0.tgz", + "integrity": "sha512-yBiA74Yj3VnTRj7lhnn8GalvBdvsMOqTKRrRATSy/2v0VIR2hR0Jcnmfn4aQBLtGAnr3Q2c8CxL0g3LYegUp+g==", "dev": true, - "license": "MIT", "dependencies": { "@ethereumjs/util": "^9.1.0", "@ethersproject/abi": "^5.1.2", @@ -23190,6 +23226,15 @@ ], "license": "MIT" }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/jsonschema": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.5.0.tgz", @@ -23299,7 +23344,6 @@ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -30698,20 +30742,22 @@ } }, "node_modules/solhint": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/solhint/-/solhint-5.1.0.tgz", - "integrity": "sha512-KWg4gnOnznxHXzH0fUvnhnxnk+1R50GiPChcPeQgA7SKQTSF1LLIEh8R1qbkCEn/fFzz4CfJs+Gh7Rl9uhHy+g==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/solhint/-/solhint-5.2.0.tgz", + "integrity": "sha512-9NZC1zt+O2K7zEZOhTT9rFeB6GdxC6qTX5pWX70RaQoflR9RejJQUC+/19LNi+e7K9Ptb4k7XAWO9wY5mkprHg==", "dev": true, - "license": "MIT", "dependencies": { "@solidity-parser/parser": "^0.20.0", "ajv": "^6.12.6", + "ajv-errors": "^1.0.1", "antlr4": "^4.13.1-patch-1", "ast-parents": "^0.0.1", + "better-ajv-errors": "^2.0.2", "chalk": "^4.1.2", "commander": "^10.0.0", "cosmiconfig": "^8.0.0", "fast-diff": "^1.2.0", + "fs-extra": "^11.1.0", "glob": "^8.0.3", "ignore": "^5.2.4", "js-yaml": "^4.1.0", @@ -30795,6 +30841,20 @@ "node": ">=14" } }, + "node_modules/solhint/node_modules/fs-extra": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", + "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/solhint/node_modules/glob": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", @@ -30823,6 +30883,18 @@ "dev": true, "license": "MIT" }, + "node_modules/solhint/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/solhint/node_modules/minimatch": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", @@ -30866,6 +30938,15 @@ "node": ">=10" } }, + "node_modules/solhint/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/solidity-coverage": { "version": "0.8.16", "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.16.tgz", diff --git a/package.json b/package.json index e04c59f3023..05777815d03 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "eslint-plugin-n": "^15.7.0", "eslint-plugin-prettier": "^5.5.0", "eslint-plugin-promise": "^6.1.1", - "hardhat": "^2.24.3", + "hardhat": "^2.25.0", "husky": "^9.1.7", "jest-yaml-transform": "^0.2.0", "lint-staged": "^15.5.2", @@ -122,7 +122,7 @@ "prettier": "^3.5.3", "prettier-plugin-astro": "^0.14.1", "prettier-plugin-solidity": "^1.4.3", - "solhint": "^5.1.0", + "solhint": "^5.2.0", "solhint-plugin-chainlink-solidity": "github:smartcontractkit/chainlink-solhint-rules", "solhint-plugin-prettier": "^0.1.0", "ts-jest": "^29.4.0",