Transparent, secure, and efficient crowdfunding powered by Aptos blockchain with built-in escrow protection.
lu_demo.mp4
lu_demo_adv.mp4
Aptos blockchain offers significantly lower transaction costs compared to Ethereum and other chains:
- Creating a campaign: ~$0.002 USD
- Making a pledge: ~$0.001 USD
- Claiming funds/Refunds: ~$0.001 USD
This means more of your money goes to the actual cause, not transaction fees!
- Sub-second finality (~0.4s)
- High throughput (100K+ TPS)
- Instant confirmation for backers
Move's resource-oriented programming prevents common vulnerabilities:
- โ No reentrancy attacks
- โ Built-in access control
- โ Formal verification support
- โ Type-safe asset handling
- Create Campaign - Set your funding goal and deadline
- Share - Campaign automatically added to global registry
- Wait for Funding - Backers pledge to your campaign
- Claim Funds - If goal reached after deadline, claim all funds
- Browse Campaigns - Discover campaigns via "All Active Campaigns"
- Pledge - Support projects with any amount of APT
- Protected Funds - Your pledge locked in secure escrow
- Automatic Refund - Get full refund if campaign fails
Pledge โ Escrow (Smart Contract) โ Success: Creator Claims
โ Failed: Backers Refund
All funds are held securely on-chain. No intermediaries, no fraud risk.
- ๐ Secure Escrow - Funds locked in smart contract until goal reached
- ๐ Global Registry - All campaigns discoverable on-chain
- ๐ฐ Full Refunds - Automatic refunds if campaign fails
- ๐ค AI Descriptions - AI-powered campaign description generator
- ๐ Real-time Progress - Live funding progress tracking
- ๐จ Modern UI - Beautiful dark-themed interface
- ๐ Wallet Integration - Petra & Martian wallet support
- โก Instant Updates - Real-time blockchain data
- Aptos - Layer 1 blockchain
- Move - Smart contract language
- Aptos SDK - Blockchain interaction
- Next.js 14 - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- Aptos Wallet Adapter - Wallet integration
- Resource-based storage - Campaign data stored on-chain
- Event emission - Transaction history tracking
- View functions - Gas-free data queries
- Node.js 18+
- Aptos CLI
- Petra or Martian wallet
# Clone the repository
git clone https://github.com/Harsh-Goel-1/Lu.git
cd Lu
# Install dependencies
cd frontend
npm install
# Configure contract address
# Edit frontend/lib/constants.ts with your deployed contract address
# Run development server
npm run devVisit http://localhost:3000 ๐
Detailed setup instructions available in frontend/README.md
Lu/
โโโ move/ # Smart Contract
โ โโโ sources/
โ โ โโโ crowdfund.move # Main contract with registry
โ โโโ Move.toml # Move configuration
โ โโโ README.md # Contract documentation
โ
โโโ frontend/ # Next.js Frontend
โ โโโ app/ # App router pages
โ โโโ components/ # React components
โ โโโ lib/ # Utilities & constants
โ โโโ hooks/ # Custom React hooks
โ โโโ README.md # Frontend setup guide
โ
โโโ README.md # This file
- Connect your wallet
- Click "Create Campaign"
- Fill in details:
- Campaign title
- Description (or use AI Suggest)
- Funding goal in APT
- Duration
- Sign transaction
- Your campaign is live!
- Browse active campaigns
- Click on a campaign card
- Enter pledge amount
- Confirm transaction
- Track your contribution
- Wait for deadline to pass
- Ensure goal was reached
- Click "Claim Funds"
- Receive funds in your wallet
- Check if campaign failed
- Click "Get Refund"
- Receive full refund automatically
- โ Reentrancy Protection - State updates before transfers
- โ Access Control - Creator-only claim functions
- โ Double-Action Prevention - Can't claim/refund twice
- โ Escrow Safety - Funds locked until conditions met
- โ Timestamp Validation - Deadline enforcement
- โ Successful campaigns (goal reached)
- โ Failed campaigns (goal not reached)
- โ Multiple pledges from same backer
- โ Edge cases and error handling
// Create a campaign
create_campaign(goal, deadline, metadata)
// Pledge to a campaign
pledge(campaign_address, amount)
// Claim funds (creator only)
claim_funds()
// Get refund (if campaign failed)
get_refund(campaign_address)// Get all campaigns
get_all_campaigns() โ address[]
// Get campaign details
get_campaign_info(address) โ CampaignInfo
// Check campaign status
is_campaign_active(address) โ bool
is_campaign_successful(address) โ bool| Feature | Traditional Platforms | Lu (Aptos) |
|---|---|---|
| Platform Fees | 5-10% | ~0% (only gas) |
| Transaction Fees | 2-3% | <$0.01 |
| Fund Security | Platform holds funds | Smart contract escrow |
| Transparency | Limited | Fully on-chain |
| Refund Process | Manual, slow | Automatic, instant |
| Censorship Risk | Platform controlled | Decentralized |
This project is licensed under the MIT License - see the LICENSE file for details.
- Rise In - For sponsoring the aptos track
- Amazon Web Services - For providing free access to AWS Lambda and Bedrock and much more
-
- Aptos Labs - For the amazing blockchain infrastructure
- Move Language - For secure smart contract development
- Community - For feedback and support
- Multi-chain support
- Milestone-based funding
- Campaign categories and tags
- Social features (comments, updates)
- Mobile app (iOS/Android)
- Analytics dashboard
- NFT rewards for backers
Made with โค๏ธ using Aptos & Move
โญ Star us on GitHub if you find this project useful!