hackquest logo

ChainPay

A Web3 payroll system enabling organizations to manage employees and execute transparent on-chain salary payments with automated duplicate prevention and full blockchain auditability.

Videos

Description

ChainPay is a full-stack decentralized payroll application that revolutionizes how organizations manage and execute salary payments by putting the entire process on-chain.

🎯 Problem Solved:

Traditional payroll systems lack transparency, depend on banks and HR software intermediaries, are prone to human error and fraud, and cause delays for global teams. ChainPay eliminates these issues through blockchain automation.

✨ Key Features:

• Employee Management - Add, update, remove employees with wallet address, salary, and role details

• On-Chain Payments - Direct ETH transfers from admin wallet to employee wallets

• Smart Contract Rules - Prevents duplicate payments within pay periods using timestamp logic

• Admin Dashboard - Clean Next.js UI for viewing employees, payment status, and executing payroll

• Full Transparency - Every payment is a verifiable blockchain transaction on Sepolia testnet

🛠️ Tech Stack:

• Smart Contracts: Solidity + Foundry for development and deployment

• Frontend: Next.js 14 + TypeScript + Tailwind CSS

• Web3: ethers.js for contract interaction and MetaMask integration

• Libraries: OpenZeppelin for security (Ownable, access control)

• Deployment: Vercel (frontend) + Sepolia testnet (contracts)

🔗 Repository: https://github.com/Janhavi312003/ChainPay

🌐 Live Demo: https://chain-pay-15p3.vercel.app/

🌐 Live Demo Video Link: https://yorecord.com/view?uid=a94c93e0-20ed-4c06-ab15-8a59d909d6b2

📜 Contract: [

0x0EEb8A711FF2ccB4C73EdC74dB9A1f42CD61C3a90x0EEb8A711FF2ccB4C73EdC74dB9A1f42CD61C3a9

]

Progress During Hackathon

🚀 Built entirely during this hackathon from scratch: 1) Smart Contracts (Foundry): - PayrollManager contract with employee struct (address, salary, role, lastPaid timestamp) - addEmployee(), updateEmployee(), removeEmployee() functions with admin-only access - payEmployee() with duplicate payment prevention logic - Deployed to Sepolia testnet at [0xYOUR_ADDRESS] - Verified on Etherscan with full source code 2) Frontend (Next.js + Tailwind): - Responsive admin dashboard with employee list and payment status - MetaMask wallet connection and network switching - Real-time contract interaction using ethers.js - Add/Edit/Remove employee forms with validation - Payment execution with transaction tracking - CSV export functionality for payroll records - Deployed to Vercel at [your-url.vercel.app] ✅ Testing & Documentation: - End-to-end testing on Sepolia with real transactions - Comprehensive README with setup instructions - Code pushed to GitHub with clean structure (contracts/ and frontend/ folders) - Environment variables properly configured and secured 📦 Deliverables: - Fully functional DApp live on Vercel - Verified smart contract on Sepolia - Complete source code on GitHub - Demo video showing all features

Tech Stack

Next
Web3
Solidity
Node
Typescript
Ethers
React
Metamask

Fundraising Status

Not fundraising

Team Leader
JJanhavi Sonurkar
Sector
DeFi