Loading repository data…
Loading repository data…
wiseman-umanah / repository
a repository dedicated to learning and experimenting with Hardhat, a powerful Ethereum development environment. This project contains structured examples, configurations, and tests to help you understand and utilize Hardhat for blockchain development.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Welcome to Learn Hat, a repository dedicated to learning and experimenting with Hardhat, a powerful Ethereum development environment. This project contains structured examples, configurations, and tests to help you understand and utilize Hardhat for blockchain development.
learn_hat/
├── .gitignore # Global gitignore for the repository
├── README.md # Root project documentation
├── hardhat_tutorial/ # Additional tutorials and examples
└── intro_to_hardhat/ # Main Hardhat project
## About Hardhat
Hardhat is a development environment designed for Ethereum smart contract developers. It provides tools for compiling, testing, debugging, and deploying smart contracts. This repository demonstrates how to use Hardhat effectively, including:
- Writing and testing Solidity contracts.
- Deploying contracts using Hardhat Ignition.
- Configuring networks for deployment (e.g., Sepolia testnet).
## Getting Started
### Prerequisites
Ensure you have the following installed:
- [Node.js](https://nodejs.org/) (v16 or later)
- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
- [Hardhat](https://hardhat.org/)
### Setup
1. Navigate to the `intro_to_hardhat` directory:
```bash
cd intro_to_hardhat
Install dependencies:
npm install
Create a .env file in the intro_to_hardhat directory with the following variables, for safe keeping. These keys will actually be added to hardhat configuration:
ETHERSCAN_API_KEY=your_etherscan_api_key
SEPOLIA_PRIVATE_KEY=your_sepolia_private_key
SEPOLIA_RPC=https://sepolia.infura.io/v3/your_project_id
Lock.sol and Token.sol for learning and experimentation.To compile the smart contracts, run:
npx hardhat compile
To execute the tests, run:
npx hardhat test
To deploy contracts using Hardhat Ignition, run:
npx hardhat ignition deploy ./ignition/modules/Token.ts
To start a local Hardhat network, run:
npx hardhat node
This project is licensed under the ISC License.
Happy learning! 🚀