Where Clean Energy Meets DeFi A Solana-powered platform that combines Buy Now Pay Later (BNPL) with renewable energy repayment.
The Project is live at - https://thezapcoin-official.netlify.app/
Zapcoin is a revolutionary DeFi platform built on the Solana blockchain that connects renewable energy production with financial services. The platform allows users to:
- Buy Now, Pay Later with Energy: Make purchases using BNPL smart contracts and repay loans using energy credits generated from renewable energy sources.
- Energy-to-Credit Conversion: Convert renewable energy production (measured in kWh) into "eZap" tokens with financial value.
- DePIN Integration: Verify energy production in real-time through IoT devices connected to renewable energy sources.
- Energy Marketplace: Trade tokenized energy credits on a decentralized marketplace.
- ZapCoin Token Utility: Use the native token for marketplace transactions, governance, and rewards.
- Frontend: React-based UI with Vite, TypeScript, and Tailwind CSS
- Smart Contracts: Solana programs written in Rust using the Anchor framework
- Wallet Integration: Support for Phantom, Solflare, and other Solana wallets
- Node.js >= 18.x
- npm >= 9.x or yarn >= 1.22.x
- Solana CLI >= 1.16.x (for contract development)
- Anchor >= 0.28.x (for contract development)
bash
git clone <YOUR_GIT_URL> cd <YOUR_PROJECT_NAME>
npm install
npm run dev
bash
npm run build:program
npm run deploy:program
npm run test:program
- On-chain loan agreements
- Flexible repayment terms
- Multiple payment options (Fiat, Crypto, Energy credits)
- Automated repayment tracking
- Solar panel integration
- Energy production tracking
- Real-time energy-to-credit conversion
- Automated loan repayment
- Hardware-based verification
- Smart meter connectivity
- Tamper-proof energy validation
- Real-time energy data feeds
- Multi-source validation
- Fraud prevention mechanisms
- Energy credit trading
- Token swaps (SOL ↔ eZap)
- Price discovery
- Trading analytics
| Layer | Technology |
|---|---|
| Frontend | React, Vite, TypeScript, Tailwind CSS |
| UI Components | shadcn/ui, Framer Motion |
| Blockchain | Solana |
| Smart Contracts | Rust, Anchor Framework |
| Wallet | Phantom, Solflare |
| Data Oracles | Switchboard |
| State Management | React Query, Context API |
| Visualization | Recharts |
| Deployment | Netlify |
This project is configured for easy deployment to Netlify. For detailed deployment instructions, see DEPLOYMENT.md.
-
Build the project: bash npm run build:all
-
Deploy to Netlify: bash npm run deploy:netlify
This project is licensed under the MIT License - see the LICENSE file for details.