Loading repository data…
Loading repository data…
nawodyaishan / repository
"Hardhat Smart Contract Lottery" is a blockchain project that leverages Ethereum smart contracts to implement a lottery system. Developed using Hardhat, this project provides a comprehensive setup for Solidity development, testing, and deployment.
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.
This Ethereum project provides a decentralized, transparent lottery system built using Solidity and the Hardhat development environment. It leverages Chainlink VRF for secure randomness in winner selection.
Prerequisites
Setup
Clone the Repository:
git clone https://github.com/nawodyaishan/hardhat-smart-contract-lottery.git
cd hardhat-smart-contract-lottery
Install Dependencies:
bun install
Environment Variables:
.env file in the project root (not tracked by version control).Core Smart Contracts
Raffle.sol
VRFCoordinatorV2Mock.sol
Essential Hardhat Tasks
bun run compile: Compiles smart contracts.bun run test: Executes the test suite.bun run deploy:contracts: Deploys to the specified network.bun run verify: Verifies contracts on Etherscan (use --network networkName).contracts/ directory.test/ directory using Mocha/Chai.bun run deploy:contracts --network hardhathardhat.config.tsbun run deploy:contracts --network <targetNetwork>bun run verify.