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.
- Award points to customers (
earnPoints) - Redeem points for rewards (
redeemPoints) - Check customer points balance (
getPoints) - Track total customer spending
- Update cafe name (owner only)
Network: Arc Testnet
Contract Address:
0xEFbbC8275f49Df0001aCcaDFE499C36d0a7F5642
Block Explorer: View on ArcScan
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