chore(nodejs): Update to active LTS v20 (#2011)

* chore(nodejs): Use active LTS v20 for nodejs

This updates nodejs to use the active LTS v20 from the maintenance LTS
v18.  This expands compatibility with packages, adds native support for
more features, etc.

In addition, the ci-seed-chain workflow was updated to use the
.tool-version file instead of hardcoded version.

* chore(hardhat): Update hardhat for nodejs 20 support
This commit is contained in:
Nick DeLuca 2024-08-20 11:50:03 -07:00 committed by GitHub
parent eaacd83de5
commit 8023be0067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 958 additions and 1252 deletions

View File

@ -72,7 +72,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
cache: npm cache: npm
node-version: 18 node-version-file: .tool-versions
cache-dependency-path: kava-bridge/contract/package.json cache-dependency-path: kava-bridge/contract/package.json
- name: "install ERC20 contract deployment dependencies" - name: "install ERC20 contract deployment dependencies"
run: "npm install" run: "npm install"

View File

@ -1,2 +1,2 @@
golang 1.21.9 golang 1.21.9
nodejs 18.16.0 nodejs 20.16.0

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"private": true, "private": true,
"description": "Solidity contracts for Kava Blockchain", "description": "Solidity contracts for Kava Blockchain",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=20.0.0"
}, },
"scripts": { "scripts": {
"build": "npm run clean && npm run compile && npm run ethermint-json", "build": "npm run clean && npm run compile && npm run ethermint-json",
@ -23,14 +23,14 @@
"test": "hardhat test" "test": "hardhat test"
}, },
"devDependencies": { "devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^2.0.2", "@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@openzeppelin/contracts": "4.8.3", "@openzeppelin/contracts": "4.8.3",
"@typescript-eslint/eslint-plugin": "^5.59.6", "@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6", "@typescript-eslint/parser": "^5.59.6",
"eslint": "^8.40.0", "eslint": "^8.40.0",
"eslint-config-prettier": "8.8.0", "eslint-config-prettier": "8.8.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"hardhat": "^2.14.0", "hardhat": "^2.22.8",
"prettier": "2.8.8", "prettier": "2.8.8",
"prettier-plugin-solidity": "^1.1.3", "prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.4.1", "solhint": "^3.4.1",