Skip to content

Comments

Feature/marketplace clean#8

Open
gerryalvrz wants to merge 204 commits intoCeloMexico:mainfrom
CeloMX:feature/marketplace-clean
Open

Feature/marketplace clean#8
gerryalvrz wants to merge 204 commits intoCeloMexico:mainfrom
CeloMX:feature/marketplace-clean

Conversation

@gerryalvrz
Copy link
Collaborator

No description provided.

…ct (#1)

* feat: Complete blockchain integration with SimpleBadge contract

🚀 Major Features Added:
- Deployed SimpleBadge ERC1155 contract to Celo Alfajores (0x7Ed5CC0cf0B0532b52024a0DDa8fAE24C6F66dc3)
- Real on-chain enrollment system replacing placeholder alerts
- ERC1155 metadata API for course badges (/api/metadata/milestone/[tokenId])

🔧 Smart Contract Integration:
- SimpleBadge.sol contract with claim functionality
- React hooks for blockchain interactions (useSimpleBadge.ts)
- Wagmi/Viem integration for wallet connections
- Dynamic Web3EnrollPanel for client-side blockchain interactions

🎨 UI/UX Improvements:
- Enhanced enrollment UI with loading states
- Real-time transaction tracking and feedback
- Success/error handling with blockchain explorer links
- SSR-compatible Web3 components (fixes WagmiProvider issues)

📋 API & Backend:
- Metadata endpoints for NFT compliance
- Course token ID mapping (desarrollo-dapps = token 1)
- Environment variable configuration for contract addresses

🏗️ Infrastructure:
- Hardhat compilation fixes (ESM compatibility)
- Updated Providers component structure
- Fixed ThemeProvider conflicts
- Production-ready environment setup

✅ Verified Working:
- Contract deployment and testing completed
- Enrollment flow functional end-to-end
- SSR/hydration issues resolved
- Ready for Vercel deployment

* chore: Add Vercel deployment configuration and comprehensive guide

📦 Deployment Setup:
- Enhanced vercel.json with production optimizations
- Security headers and CORS configuration
- Regional deployment settings (cle1)
- API function timeout configuration

📚 Documentation:
- Complete Vercel deployment guide with step-by-step instructions
- Production environment variables template
- SSL and security configuration details
- Troubleshooting and monitoring guides

🔧 CLI Integration:
- Vercel CLI successfully installed and authenticated
- Ready for deployment with proper build commands
- Prisma generation included in build process

✅ Production Ready:
- Environment variable templates provided
- Security headers configured
- Database SSL support documented
- Health check endpoints configured

* docs: Add deployment completion summary

- Document all blockchain integration work completed
- Detail Vercel deployment readiness status
- Provide comprehensive next steps guide
- Include success metrics and verification steps
…t on create for Category, Level, Instructor, Course, Module, Lesson
…and excluding config files from compilation

- Fix TypeScript error in auth middleware by converting null to undefined
- Exclude Playwright and Jest configs from TypeScript compilation
- Build now passes successfully locally
- Disable todos page temporarily to prevent Supabase build errors
- Make academy generateStaticParams more robust with database fallbacks
- Remove SSL certificate path dependency for Vercel deployment
- Build now succeeds locally and should work on Vercel
- Configure SSL certificate from environment variable in Vercel
- Write SSL cert to temp file for Prisma in production
- Keep SSL security while making it work in serverless environment
- Update DATABASE_URL to use SSL without file path dependency
…ation for /api/admin routes and improve error handling
…int violation by deleting lessons before modules, add proper slug validation for updates, and improve slug generation with timestamp suffix to avoid duplicates
…erview with delay, and show helpful success messages
- Implement dynamic token ID generation from course database IDs
- Add comprehensive deployment guide (DEPLOYMENT_GUIDE.md)
- Document NFT solution architecture (DYNAMIC_NFT_SOLUTION.md)
- Update SimpleBadge hook to use dynamic token IDs
- Enhance metadata API to fetch course data from database
- Update enrollment panel with dynamic token support
- Complete pre-deployment testing and verification
- Add address trimming and validation in useSimpleBadge hook
- Prevent invalid addresses with trailing spaces
- Add format validation (0x prefix and 42 char length)
- Add deployment monitoring scripts with comprehensive features
- Create deploy-and-monitor.sh for automated deployment workflow
- Create monitor-deployment.sh for real-time deployment tracking
- Add detailed documentation for deployment scripts
- Create PRODUCTION_STATUS.md as single source of truth (85/100 score)
- Update README.md with current tech stack and features
- Archive outdated production assessment docs (5 files)
- Remove redundant deployment summaries (3 files)
- Keep only current and essential documentation (6 core files)
- Add comprehensive cleanup plan and documentation index
- Improve documentation hierarchy and discoverability

Files Kept (6):
- README.md (updated)
- PRODUCTION_STATUS.md (new)
- DEPLOYMENT_GUIDE.md
- DEPLOYMENT_SUMMARY.md
- DYNAMIC_NFT_SOLUTION.md
- scripts/README.md

Files Archived (5):
- PRODUCTION_READINESS_ASSESSMENT.md
- PRODUCTION_READINESS_CHECKLIST.md
- PRODUCTION_READINESS_UPDATE_2025.md
- FUNCTIONALITY_ASSESSMENT_2025.md
- HARDHAT_DEPLOYMENT_GUIDE.md

Files Removed (3):
- DEPLOYMENT_COMPLETE_SUMMARY.md
- DEPLOYMENT_SETUP_SUMMARY.md
- VERCEL_DEPLOYMENT_GUIDE.md
- Add CoursePaywall component with beautiful locked content UI
- Create LessonAccessWrapper for client-side enrollment verification
- Implement enrollment-verification utility for server-side checks
- Integrate NFT badge verification into course lesson pages
- Add three paywall states: WALLET_NOT_CONNECTED, NOT_ENROLLED, LOADING
- Display enrollment benefits and direct enrollment action
- Real-time verification using Wagmi hooks
- Smooth hydration handling to prevent flash of content
- Free enrollment with only gas fees (~-zsh.001 USD)
- Complete documentation in COURSE_PAYWALL.md

Features:
- 🔒 Lessons locked until NFT badge claimed
- ✨ Beautiful paywall UI with clear messaging
- 🚀 One-click enrollment from paywall
- 🔄 Real-time access updates
- 📊 Verifiable on-chain enrollment
- 🎯 Course overview remains public
- 🛡️ Client-side verification (fast, no server load)
- 📱 Mobile-friendly paywall design

Benefits:
- Decentralized enrollment system
- No personal info required (wallet-based)
- Permanent proof of enrollment
- Easy to extend for paid courses
- Fraud prevention through blockchain

Security: Client-side verification (can add server-side later)
@vercel
Copy link

vercel bot commented Dec 11, 2025

@gerryalvrz is attempting to deploy a commit to the CeloMexico's projects Team on Vercel.

A member of the Team first needs to authorize it.

cultureic and others added 6 commits December 11, 2025 06:31
…management

- Add USDT token support (0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e) as payment method
- Implement dual payment system: 1 CMT or 1 USDT (for testing)
- Add shipping form with fields: name, lastname, email, address, postal code, state, phone
- Create ShippingInfo model in Prisma schema with email field
- Replace all alert() calls with custom Modal component
- Add Mexican states dropdown (32 states)
- Integrate shipping form into purchase flow
- Update API to handle shipping data storage
- Add admin shipping management page (/admin/envios)
- Add admin API endpoint for shipping data retrieval
- Improve error handling and logging
- Fix linting errors in marketplace and shipping components
@gerryalvrz gerryalvrz force-pushed the feature/marketplace-clean branch from 9caa77f to 4944563 Compare December 22, 2025 03:48
- Agregar Premios.xyz (CriptoUNAM - Gerardo Pedrizco & Fer Tello)
- Agregar Crosswords by Psylabs
- Agregar Chanchis (Daniel Lagart & Andrea Junes)
- Agregar imágenes de portada para cada proyecto
- Mostrar información del equipo en cada proyecto
- Actualizar página de showcase para mostrar autores
- Agregar sección 'Proyectos nuevos' (arriba) con miniapps de Farcaster
- Mantener sección 'Proyectos activos' con proyectos en producción
- Agregar sección 'Proyectos en construcción' con Impact Market Maker y SkateBounties
- Agregar campo 'status' a cada proyecto para categorización
- Definir tipo explícito ProjectType para evitar referencia circular
- Resolver error de compilación en ProjectImage component
…ress

- Set Payment Splitter contract address to 0x8fbfb62ABf46Ba81eEe5a41f0dF72d35cC75C18a as default
- Fix MERCHANT_ADDRESS to use environment variables instead of hardcoded Privy wallet
- Update database schema defaults to use treasury address instead of Privy wallet
- Add documentation for deployment and recovery steps
- Update API to set merchantAddress correctly:
  - Axolote items (fee splitting): Payment Splitter contract (0x8fbfb62ABf46Ba81eEe5a41f0dF72d35cC75C18a)
  - Regular items: Treasury address (0x795df83a989c74832b2D108FF8200989B59FbaCf)
- Update schema defaults to Payment Splitter contract (for axolote items)
- Fix TREASURY_ADDRESS to use correct Celo Mexico treasury wallet
- Ensures database accurately records where each payment was sent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants