This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js
Welcome to the documentation for My Hardhat Blockchain Project. This document provides an overview of the project's structure, setup, and usage.
- Introduction
- Getting Started
- Project Structure
- Usage
- Configuration
- Troubleshooting
- Contributing
- License
My Hardhat Blockchain Project is a decentralized application (dApp) built using the Hardhat development environment. It involves smart contracts written in Solidity and various tools for development, testing, and deployment.
Before you begin, ensure you have the following software installed:
- Node.js
- npm
- Hardhat (version ^2.17.1)
-
Clone this repository:
git clone https://github.com/Kushan2k/hardhat-blockchain.git
-
navigate to the directory
cd hardhat-blockchain
-
Install project dependencies:
yarn install or npm install
Explain the high-level structure of your project, including the directory layout, significant files, and their purposes.
Compiling Contracts To compile the smart contracts, run the following command:
yarn hardhat compile
Execute the test suite using: in a separate terminal run
yarn hardhat node
then run
yarn hardhat test --network localhost
Deploy the contracts to the Ethereum network:
npx hardhat run scripts/deploy.js --network <network_name>
Explain any configuration files, variables, or settings that the user might need to customize for their use case.
Provide solutions to common issues that users might encounter during setup, compilation, testing, or deployment.
If you'd like to contribute to this project, follow these steps:
Create a new branch: git checkout -b feature/your-feature-name. Commit your changes: git commit -am 'Add a new feature'. Push the branch: git push origin feature/your-feature-name. Submit a pull request.
This project is licensed under the MIT License.