Skip to content

Latest commit

Β 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

🧱 BlockDare β€” On-Chain Challenge Tracker

BlockDare is a decentralized application (dApp) that lets users create, track, and complete personal or public challenges directly on the blockchain β€” ensuring transparency, immutability, and fair play.

Built with Solidity, Ethereum, and a focus on simplicity for beginner developers.


Screenshot 2025-10-29 140931

✨ Features

  • πŸ”’ Immutable Records: All challenges are stored permanently on-chain.
  • πŸ§‘β€πŸ€β€πŸ§‘ Fair & Transparent: Every challenge is tied to its creator’s wallet.
  • βœ… Completion Tracking: Only the creator can mark a challenge as completed.
  • πŸ“œ Event Logging: Creation and completion events are emitted for off-chain tracking.
  • πŸ’‘ Beginner-Friendly: Clean Solidity code with helpful comments.

🧠 How It Works

  1. Create a Challenge
    Submit a short title and description.
    The contract records your challenge with a timestamp and creator address.

  2. View Challenges
    Anyone can view all challenges on-chain or query by ID.

  3. Complete a Challenge
    Only the challenge creator can mark it as completed.


πŸ”— Deploy Smart Contract Network:Celo Sepolia Testnet Verified Source : https://celo-sepolia.blockscout.com/address/0x7b0D9575Cfa6bc88249103c2c40Ee34B9B038d6F Contact Address : 0x7b0D9575Cfa6bc88249103c2c40Ee34B9B038d6F

🧩 Smart Contract

Language: Solidity ^0.8.0
License: MIT
File: BlockDare.sol

Key Functions

Function Description
createChallenge(string _title, string _description) Create a new challenge and store it permanently.
completeChallenge(uint256 _id) Mark a challenge as completed (only creator can call).
getChallenge(uint256 _id) Fetch challenge details by ID.
getTotalChallenges() Returns total number of challenges created.

πŸš€ Getting Started

Prerequisites

Installation

# Clone the repository
git clone https://github.com/yourusername/blockdare.git

# Enter the project directory
cd blockdare

# Install dependencies (if using Hardhat)
npm install

About

hello

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages