Skip to content

issam2021/CafeLoyal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CafeLoyal - Loyalty Points System for Cafes

A simple and efficient loyalty points smart contract built on Arc Testnet by Circle.

CafeLoyal allows cafe owners to reward customers with points for every purchase and let customers redeem those points for rewards.

Features

  • Award points to customers (earnPoints)
  • Redeem points for rewards (redeemPoints)
  • Check customer points balance (getPoints)
  • Track total customer spending
  • Update cafe name (owner only)

Deployed Contract

Network: Arc Testnet
Contract Address:
0xEFbbC8275f49Df0001aCcaDFE499C36d0a7F5642

Block Explorer: View on ArcScan

How to Use

1. Award Points (Cafe Owner)

earnPoints(customerAddress, 150)redeemPoints(100)getPoints(customerAddress)

Tech Stack

Language: Solidity ^0.8.30
Framework: Foundry
Network: Arc Testnet (Circle)
Gas Token: USDC


Local Development
# Install dependencies
forge install

# Build the project
forge build

# Run tests
forge test


About
This project was developed as part of my activity on Arc Testnet to explore loyalty systems and real-world use cases for blockchain in the cafe industry.
Built with ❤️ by issam2021

About

Cafe Loyalty Points System - Smart Contract on Arc Testnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors