Skip to content

Rasslonely/drcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DRCP - Disaster Response Coordination Protocol

Trustless Humanitarianism. Instant Relief.

Lisk Sepolia The Graph Next.js


🌍 The Problem

Disaster relief in Southeast Asia faces a 72-hour latency gap. While victims wait, funds are trapped in bureaucratic processes with:

  • ❌ Hidden fees - Intermediaries extract 15-30% in "admin costs"
  • ❌ Zero transparency - Donors can't track where money goes
  • ❌ Slow response - Funds take 3+ days to reach victims
  • ❌ Fraud risk - No verification of relief distribution

πŸ’‘ Our Solution

DRCP is a parametric disaster relief protocol on Lisk that eliminates intermediaries through:

Feature Description
πŸ›οΈ DAO Governance Token holders vote on fund releases - no central authority
πŸ“Š Radical Transparency Every Rupiah tracked on-chain via The Graph
⚑ Instant Execution Smart contracts release funds immediately after DAO approval
πŸ… Impact NFTs Soulbound tokens verify volunteer contributions

πŸš€ Live Demo

Resource Link
Web App disaster-protocol.vercel.app
Vault Contract 0x6e1cA331F1f701d7B24f7367f5c8A9D07EeEc518
ImpactNFT 0x7D1E0D4C089c6FC1F4500f6C98365DDA6D316E8B
Governor 0x8fA50988f36af835de40153E871689148aE54E49
RescueToken 0x4080ACE95cf319c40F952D2dCCE21b070270f14d
Timelock 0xb38c87D42AA5fbF778e1093c61D5e4a010996EB0

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        Frontend (Next.js)                   β”‚
β”‚  Dashboard β”‚ Donate β”‚ Governance β”‚ Transparency β”‚ Volunteer β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    The Graph (Indexer)                      β”‚
β”‚         Real-time queries for deposits, votes, tasks        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   Lisk Sepolia (Blockchain)                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”‚
β”‚  β”‚ParametricVaultβ”‚  β”‚ DRCPGovernor β”‚  β”‚  ImpactNFT   β”‚      β”‚
β”‚  β”‚  (Funds)      β”‚  β”‚   (DAO)      β”‚  β”‚ (Reputation) β”‚      β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                         β”‚
β”‚  β”‚ RescueToken  β”‚  β”‚ DRCPTimelock β”‚                         β”‚
β”‚  β”‚ (Governance) β”‚  β”‚  (Security)  β”‚                         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“¦ Project Structure

disaster-protocol/
β”œβ”€β”€ contracts/          # Solidity smart contracts (Hardhat)
β”œβ”€β”€ web-app/            # Next.js 15 frontend
β”œβ”€β”€ subgraph/           # The Graph indexer
β”œβ”€β”€ ai-engine/          # Disaster prediction API (Python)
β”œβ”€β”€ mobile-app/         # React Native app (experimental)
└── SECURITY.md         # Security policy & bug bounty

πŸ› οΈ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Web App

cd web-app
cp env.example .env.local
# Fill in NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
npm install
npm run dev

Smart Contracts

cd contracts
cp .env.example .env
# Fill in PRIVATE_KEY and RPC URLs
npm install
npx hardhat compile
npx hardhat test

πŸ”‘ Key Features

For Donors

  • πŸ’³ One-click USDC donations
  • πŸ“ˆ Real-time fund tracking dashboard
  • 🧾 On-chain donation receipts

For Volunteers

  • πŸ… Earn Impact NFTs for verified contributions
  • πŸ“Š Build portable "Resilience Resume"
  • πŸ—³οΈ Governance voting power via RescueToken

For Organizations

  • πŸ›οΈ Create relief campaigns with DAO governance
  • πŸ“‹ Submit task verifications on-chain
  • πŸ” Full audit trail for compliance

πŸ” Security

  • All contracts follow OpenZeppelin standards
  • Role-based access control (ADMIN, DAO, ORACLE)
  • Timelock on governance actions
  • See SECURITY.md for bug bounty program

πŸ† Built For

Lisk Builders Challenge 2026

Deployed on Lisk Sepolia testnet with full smart contract verification.


πŸ“„ License

MIT License - see LICENSE for details.


🀝 Contact


Built with ❀️ for disaster victims everywhere

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors