Skip to content

tashmeetsk/GiftCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎁 GiftCore

A decentralized gift card platform that converts Core tokens into real-world gift cards through blockchain technology. Built on Core DAO with automated contract creation, email delivery, and secure payment processing. Fast. Secure. Real value.


πŸ“‹ Table of Contents

  1. Project Title
  2. Project Description
  3. Project Vision
  4. Future Scope
  5. Key Features
  6. Frontend Showcase
  7. Tech Stack
  8. Contract Addresses
  9. Demo

Project Title

GiftCore - Blockchain to Real-World Gift Card Platform


Project Description

GiftCore is a decentralized gift card platform deployed on Core DAO that converts Core tokens into real-world gift cards for major e-commerce platforms. The platform bridges the gap between cryptocurrency and traditional commerce by providing instant gift card generation with automated email delivery and secure smart contract technology.

Project Vision

Many crypto holders struggle to use their digital assets for everyday purchases. GiftCore solves this by creating a seamless bridge between Core tokens and real-world shopping, enabling users to instantly convert their crypto into usable gift cards for Amazon, and other major retailers while maintaining the security and transparency of blockchain technology.

Future Scope

  • Multi-platform expansion supporting additional gift card providers (Google Play, Apple Store, Steam, etc.)
  • Mainnet deployment on Core DAO mainnet for production use
  • Mobile application for on-the-go gift card purchases
  • Bulk purchase functionality for corporate and enterprise users
  • Gift card marketplace for peer-to-peer trading of unused cards
  • Advanced analytics dashboard for purchase history and spending insights
  • Integration with DeFi protocols for yield-earning gift card wallets
  • Multi-chain support beyond Core DAO ecosystem

Key Features

  • Instant gift card generation with real-time Core token to USD conversion
  • Automated email delivery with professional voucher codes in XXXX-XXXX-XXXX format
  • Smart contract factory for secure, individual transaction contracts
  • Real-time price feeds using CoinGecko API for accurate conversions
  • 5% service fee structure with transparent pricing
  • Minimum purchase validation ($0.50 minimum value)
  • Email verification system with comprehensive validation
  • Transaction monitoring with automatic status updates
  • Secure payment processing with reentrancy protection
  • User-friendly interface with step-by-step purchase flow

Full demonstration of Core token to gift card conversion process

πŸ”Ή Landing Page & Main Interface

GiftCore Main Interface

Modern swap interface showing Core token balance, real-time pricing, and gift card selection

πŸ”Ή Purchase Flow

Purchase Flow Demo

Seamless purchase experience with amount validation, email collection, and confirmation modal

πŸ”Ή Transaction Processing

Transaction Processing

Real-time transaction monitoring with contract creation, payment processing, and email delivery

πŸ”Ή Success & Email Delivery

Success Screen

Professional email delivery with formatted voucher codes and redemption instructions

Success Screen


Tech Stack

Frontend:

  • Next.js 15
  • TypeScript
  • React
  • Tailwind CSS
  • Shadcn UI
  • Wagmi v2
  • Viem

Blockchain:

  • Ethers.js
  • Core DAO Network
  • Smart Contract Factory Pattern
  • Reentrancy Guard Protection

Backend & APIs:

  • Next.js API Routes
  • EmailJS Integration
  • CoinGecko Price API
  • Environment-based Configuration

Email & Notifications:

  • EmailJS Service
  • Professional Email Templates
  • Automated Voucher Generation
  • SMTP Integration

Contract Development:

  • Solidity ^0.8.19
  • OpenZeppelin Libraries
  • Factory Pattern Implementation
  • Event-driven Architecture

Contract Addresses

Core DAO Network

  • Factory Contract: 0x7D7C793AdfbEB5CAd88422f32c57Fc9eB0C2A35f image

  • Network: Core DAO Tesnet2

  • Chain ID: 1114

  • RPC URL: https://rpc.test2.btcs.network

  • Block Explorer: https://scan.test2.btcs.network/

Contract features:

  • βœ… Verified source code
  • βœ… Factory pattern for individual transactions
  • βœ… Owner-controlled contract creation
  • βœ… Reentrancy protection
  • βœ… Event emission for monitoring

Demo

Live Application: https://gift-core.vercel.app

Features to explore:

  • Connect your Core DAO wallet
  • Check real-time CORE token balance
  • Select gift card amount with USD conversion
  • Experience the automated contract creation
  • Receive professional gift card emails
  • Test the complete purchase flow

How It Works

  1. Connect Wallet - Connect your Core DAO wallet to the platform
  2. Select Amount - Choose gift card value with real-time price conversion
  3. Enter Email - Provide email address for gift card delivery
  4. Confirm Purchase - Review transaction details and confirm
  5. Contract Creation - Factory creates individual contract for your transaction
  6. Payment Processing - Send exact CORE amount to fulfill contract
  7. Email Delivery - Receive professional gift card with voucher code
  8. Redeem & Enjoy - Use voucher code on retailer platform

Security Features

  • Individual smart contracts for each transaction ensuring isolation
  • Reentrancy protection preventing double-spending attacks
  • Owner-controlled factory with pause functionality for emergencies
  • Exact amount validation preventing overpayment or underpayment
  • Email verification with comprehensive validation patterns
  • Event-driven monitoring for reliable transaction tracking
  • Timeout protection with 5-minute payment windows
  • Transparent pricing with clear fee structure display

Pricing Structure

  • Service Fee: 5% of transaction value
  • Minimum Purchase: $0.50 USD equivalent
  • Real-time Conversion: Live CORE/USD pricing via CoinGecko
  • No Hidden Fees: Transparent pricing with upfront calculations

Supported Gift Cards

Currently Available:

  • Amazon Gift Cards
  • Flipkart

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •