Skip to content

Sandijigs/TrustCircle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌍 TrustCircle - Decentralized Micro-Lending Platform

Empowering Financial Inclusion Through Blockchain Technology

Celo Next.js Solidity License: MIT

Verified Smart Contracts βœ… | Deployed on Celo Sepolia βœ… | Production Ready πŸš€

Quick Start β€’ Documentation β€’ Live Demo β€’ Community


TrustCircle is a next-generation decentralized micro-lending platform built on the Celo blockchain, providing accessible financial services to unbanked and underbanked populations worldwide through blockchain technology, AI-powered credit scoring, and social verification mechanisms.

🎯 Key Features

  • πŸ’° Multi-Currency Lending: Support for cUSD, cEUR, and cREAL stablecoins
  • πŸ€– AI Credit Scoring: Intelligent credit assessment (300-850 score range)
  • 🎫 Soul-Bound Identity: Non-transferable verification tokens
  • 🀝 Social Lending Circles: Community-based loan approvals
  • πŸ” Secure & Audited: OpenZeppelin contracts with security best practices
  • πŸ“± Mobile-First: Responsive design for smartphone access
  • πŸ”— WalletConnect: Seamless wallet connection experience
  • ⚑ Low Fees: 8-25% APY (vs 100%+ traditional micro-loans)

πŸ—οΈ Project Structure

trustcircle/                    # Monorepo root
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ frontend/              # Next.js 15 + React 19 app
β”‚   β”œβ”€β”€ contracts/             # Solidity smart contracts (verified βœ…)
β”‚   └── shared/                # Shared TypeScript utilities
β”œβ”€β”€ docs/                      # Comprehensive documentation
β”‚   β”œβ”€β”€ WALLETCONNECT_INTEGRATION.md
β”‚   β”œβ”€β”€ FRONTEND_INTEGRATION.md
β”‚   └── ...
└── README_COMPREHENSIVE.md    # Full project documentation

πŸ›  Technology Stack

Frontend

  • Next.js 15 with App Router
  • React 19 & TypeScript 5.6
  • Tailwind CSS for styling
  • Reown AppKit (WalletConnect v3)
  • Wagmi 2.12 & Viem 2.21
  • TanStack Query for data fetching

Smart Contracts

  • Solidity 0.8.24
  • Hardhat development environment
  • OpenZeppelin security libraries
  • UUPS Proxy pattern for upgradeability

Blockchain

  • Celo blockchain (Mainnet & Sepolia)
  • Mento Protocol stablecoins (cUSD, cEUR, cREAL)
  • Verified Contracts on Blockscout βœ…

AI & Services

  • Anthropic Claude for credit scoring
  • Neynar SDK for Farcaster integration
  • WalletConnect Cloud for wallet connections

πŸ“œ Deployed Smart Contracts

All contracts are verified on Celo Sepolia Blockscout βœ…

Contract Address Purpose
CreditScore 0x72Bf1C... On-chain credit scoring
VerificationSBT 0x57B545... Identity verification
LendingPool 0xFce256... Liquidity pools
CollateralManager 0x62B863... Collateral management
LoanManager 0x5C8D2d... Loan lifecycle
LendingCircle 0xa50dc2... Social lending circles

πŸ“„ Verification Status: View Details


⚑ Quick Start

Prerequisites

  • Node.js 18+ and npm 9+
  • Git
  • MetaMask or compatible Web3 wallet

1. Clone & Install

git clone https://github.com/yourusername/trustcircle.git
cd trustcircle
npm install

2. Environment Setup

# Frontend
cp packages/frontend/.env.example packages/frontend/.env.local

# Contracts (if deploying)
cp packages/contracts/.env.example packages/contracts/.env.local

Required Environment Variables:

# Get from https://cloud.walletconnect.com/
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id

# Optional: AI credit scoring
ANTHROPIC_API_KEY=your_api_key

# Optional: Farcaster integration
NEYNAR_API_KEY=your_neynar_key

3. Start Development Server

npm run dev

Open http://localhost:3000 πŸŽ‰

4. Get Test Tokens

Visit Celo Faucet to get testnet CELO and stablecoins.


πŸ“ Development Commands

# Development
npm run dev                    # Start frontend dev server
npm run build                  # Build all packages
npm run test                   # Run all tests
npm run lint                   # Lint code

# Smart Contracts
npm run compile                # Compile contracts
npm run test:contracts         # Test contracts
npm run deploy:sepolia         # Deploy to testnet

πŸ’‘ Tip: See README_COMPREHENSIVE.md for all commands and detailed workflows.


πŸ“š Documentation

Core Documentation

Integration Guides

Deployment & Operations

Reference

External Resources


πŸ”’ Security

Current Status

βœ… OpenZeppelin security-audited contracts
βœ… Reentrancy protection
βœ… Role-based access control
βœ… Pausable functionality
βœ… Upgradeable pattern (UUPS)
βœ… Verified on Blockscout

Pre-Mainnet Requirements

⏳ Professional security audit
⏳ Bug bounty program
⏳ Multi-signature admin wallet
⏳ Timelock for upgrades

Found a security issue? Email: security@trustcircle.io (Do NOT open public issues)

🀝 Contributing

We welcome contributions! See Contributing Guidelines for details.

Ways to contribute:

  • πŸ› Report bugs
  • πŸ’‘ Suggest features
  • πŸ“ Improve documentation
  • πŸ’» Submit code
  • πŸ§ͺ Write tests

πŸ—Ί Roadmap

Phase 1: MVP βœ… (Completed)

  • Smart contracts deployed & verified
  • Basic frontend structure
  • WalletConnect integration

Phase 2: Beta 🚧 (In Progress)

  • Complete frontend UI
  • AI credit scoring
  • Farcaster integration
  • Comprehensive testing

Phase 3: Mainnet 🎯 (Q3 2025)

  • Security audit
  • Bug bounty program
  • Mainnet deployment
  • Marketing launch

Full Roadmap: See detailed roadmap


πŸ’¬ Community

Stay connected with the TrustCircle community:


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

Built with:


⚠️ Disclaimer

IMPORTANT: TrustCircle is currently in beta testing on testnet. Use at your own risk. This is not financial advice. Smart contracts carry inherent risks. Users are responsible for compliance with local regulations.


Made with ❀️ by the TrustCircle Team

⭐ Star us on GitHub if you find this project useful!

πŸ“– Full Documentation β€’ πŸš€ Quick Start β€’ πŸ’¬ Community

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors