Logo Lanfrica

Sammy-Samy/Chama-Chain

Domain:

digital infrastructuresocioeconomic

Record type:

software
Creator:
Sam
Host:
Trustless rotating savings clubs (ROSCAs) on Stellar Soroban. Members contribute each cycle; the smart contract auto-rotates the pot. Built for Africa # Chama Chain 🌍 > On-chain rotating savings clubs (ROSCAs) on Stellar Soroban β€” Built for Africa πŸš€ Chama Chain brings the traditional African *chama* (rotating savings club) fully on-chain. Members contribute a fixed amount each cycle; the smart contract automatically rotates the full pot to one member per round β€” trustless, transparent, unstoppable. **ROSCAs power a $100B+ informal savings economy across Africa. Chama Chain makes them trustless.** --- ## ✨ Features - **Create a Chama** β€” Set member wallets, contribution amount, and cycle duration - **On-chain Contributions** β€” Members contribute each cycle via Soroban token transfers - **Automatic Rotation** β€” Contract enforces payout order and auto-distributes the pot - **Cycle Tracking** β€” Full on-chain history of every cycle, contribution, and payout - **Trustless** β€” No admin can steal funds; the contract enforces every rule ## πŸ—οΈ Architecture ``` chama-chain/ β”œβ”€β”€ contracts/ β”‚ └── chama_core/ # ROSCA logic β€” create, contribute, rotate, withdraw β”œβ”€β”€ frontend/ # Next.js 14 app β”‚ └── src/ β”‚ β”œβ”€β”€ app/ # Pages: home, create, club detail, dashboard β”‚ β”œβ”€β”€ components/ # UI components β”‚ β”œβ”€β”€ hooks/ # Stellar/Freighter hooks β”‚ └── lib/ # Contract client, network config β”œβ”€β”€ .github/workflows/ # CI/CD └── docker-compose.yml ``` ## πŸš€ Quick Start ### Prerequisites - Rust + `wasm32-unknown-unknown` target - Stellar CLI - Node.js 20+ and pnpm 9+ ### 1. Clone & install ```bash git clone github.com cd chama-chain cp .env.example .env ``` ### 2. Build & deploy contracts ```bash cd contracts cargo build --target wasm32-unknown-unknown --release bash deploy.sh ``` ### 3. Run frontend ```bash cd frontend pnpm install pnpm dev ``` Open localhost. ## πŸ”§ Environment Variables | Variable | Description | |---|---| | `NEXT_PUBLIC_STELLAR_NETWORK` | `testnet` or `mainnet` | | `NEXT_PUBLIC_CHAMA …

Licenses