Welcome to the Smart Contract Lottery repository! This project implements a decentralized lottery system using Hardhat and Chainlink.
IPFS Host: ipfs://bafybeig3jj5sbasgtoo56l42vv7gjmvdmjqotcdn5ru2izx2fvdcneoney/
✨ Transparent and secure lottery powered by Ethereum smart contracts.
🔒 Provably fair random number generation using Chainlink's decentralized oracle network.
🎟️ User-friendly interface for buying tickets, viewing ongoing and past lotteries, and checking winning numbers.
💰 Automated prize distribution based on predefined rules.
🔧 Development environment integrated with Hardhat for testing and deployment.
📚 Detailed documentation and deployment guide.
- Clone the repository.
- Install the required dependencies with
npm install
. - Configure the Hardhat network settings in
hardhat.config.ts
. - Deploy the smart contracts using
npx hardhat run scripts/deploy.ts --network <network-name>
. - Run tests with
npx hardhat test
. - Interact with the lottery through the user-friendly interface.
👍 Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch.
- Implement your feature or bug fix.
- Write tests and ensure existing tests pass.
- Submit a pull request.
This project is licensed under the MIT License.
Let's create a fair and exciting lottery experience with blockchain technology! 🚀