Skip to content

wasim007choudhary/Stake-Smart-Contract---Foundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏆 Stake Smart Contract

📘 Overview

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.

🚀 Features

  • 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.

🧰 Prerequisites

  • Foundry installed.
  • Node.js and npm installed.
  • Sepolia ETH for testing on the Sepolia testnet.
  • Chainlink subscription with LINK tokens.

⚙️ Installation

  1. Clone the repository:

    git clone https://github.com/wasim007choudhary/Stake-Smart-Contract---Foundry.git
    
  2. Install Foundry dependencies:

    forge install
  3. Install additional packages (e.g., Chainlink-Brownie-contracts):



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published