From 8129486c4578b61ee29e647ab03fedfa16651cfb Mon Sep 17 00:00:00 2001 From: polsan <125698252+Fleuveroi@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:49:53 +0300 Subject: [PATCH] Update package.json --- package.json | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index abeec1f..acfa9cf 100644 --- a/package.json +++ b/package.json @@ -1,25 +1,45 @@ +/** + * @fileoverview Configuration file for the Compound borrowing guide project. + * Defines project metadata, scripts, and dependencies needed for Ethereum development + * and interaction with the Compound protocol using Hardhat and web3.js. + */ { "name": "compound-borrow-guide", "version": "2.0.0", - "description": "Code examples for borrowing Ethereum assets from the Compound Protocol. https://compound.finance/", + "description": "Code examples for borrowing Ethereum assets from the Compound Protocol. Designed for use with a local Hardhat mainnet fork.", "main": "index.js", "scripts": { + // Command to start the Hardhat local fork. "start": "node ./scripts/run-localhost-fork.js", - "test": "echo \"Error: no test specified\" && exit 1" + // Standard Hardhat test command placeholder. + "test": "hardhat test" }, "keywords": [ "compound finance", "ethereum", - "web3" + "web3", + "defi", + "hardhat" ], "author": "Compound Labs, Inc.", "license": "MIT", "dependencies": { + // Only includes core runtime libraries if needed outside of development "@compound-finance/compound-js": "^0.4.1", + "web3": "^1.6.0" // Kept as a 'dependency' if used in the main runtime scripts. + }, + "devDependencies": { + // Development/testing tools are moved to devDependencies. + // Use the latest major version range (e.g., ^2.10.0 or greater). + "hardhat": "^2.10.0", + + // Hardhat plugins for Ethers and Web3 interaction. + // The required 'ethers' library is managed internally by hardhat-ethers. "@nomiclabs/hardhat-ethers": "^2.0.2", "@nomiclabs/hardhat-web3": "^2.0.0", - "ethers": "^5.4.7", - "hardhat": "^2.6.6", - "web3": "^1.6.0" + + // Removed explicit "ethers" dependency to prevent conflicts with Hardhat's internal version. + // If a specific version of ethers is required, it should be listed here, but generally avoided. + "dotenv": "^16.0.0" // Recommended addition for managing sensitive environment variables (like provider URLs/keys). } }