This repository contains a fully functional Stake Smart Contract built using Solidity. The contract utilizes Chainlink VRF v2.5 for secure randomness and Chainlink Automation for automated execution.
- 👤 Author: Wasim Choudhary
- 🌐 Blockchain: Ethereum (Sepolia Testnet)
- ⚙️ Framework: Foundry
- 🎯 Purpose: A decentralized staking platform where participants enter by sending ETH. A winner is randomly chosen at the end of each staking period using Chainlink VRF.
- ✅ Stake Entry: Users can enter the stake pool by sending the required ETH entry fee.
- 🎲 Random Winner Selection: Chainlink VRF is used to ensure fair and verifiable randomness.
- 🤖 Automated Execution: Chainlink Automation performs upkeep to trigger winner selection.
- 📡 Event Emission: Events are emitted for transparency and off-chain tracking.
- Foundry installed.
- Node.js and npm installed.
- Sepolia ETH for testing on the Sepolia testnet.
- Chainlink subscription with LINK tokens.
-
Clone the repository:
git clone https://github.com/wasim007choudhary/Stake-Smart-Contract---Foundry.git
-
Install Foundry dependencies:
forge install
-
Install additional packages (e.g., Chainlink-Brownie-contracts):