How edwinariesto/stellar-social-donation-and-reward works
StelDot is a Stellar/Soroban donation-and-loyalty dApp. Donors connect a wallet, browse and fund campaigns, then claim on-chain rewards after meeting the threshold; owners manage campaigns and treasury, and the app also supports referral rewards, vouchers, and VIP attendance. The React app coordinates contract calls through the Stellar utility layer, while the Rust contract owns campaign and reward state. The sampled excerpts show principal calls and event-reading behavior; some additional capabilities are included from the README, whose implementation details were not sampled.
Main entry points: App.jsx dApp interface · stellar.js Stellar utilities · lib.rs Donation contract · main.jsx React entry
Components 18
Web application
- React entry
src/main.jsx - dApp interface
src/App.jsx - Campaign management
src/App.jsx - Donations and rewards
src/App.jsx - Voucher and VIP tools
src/App.jsx - Activity and analytics
src/App.jsx - Translations
src/utils/i18n.js - Splash screen
src/components/SplashScreen.jsx - Cloud background
src/components/AnimatedClouds.jsx
Soroban contract
- Donation contract
contracts/donation/src/lib.rs - Contract state
contracts/donation/src/lib.rs
Wallet and network
- Native XLM SAC
- Stellar utilities
src/utils/stellar.js - Freighter wallet
- Stellar RPC / Horizon
- Google Translate
Other components
- Donor
- Owner / cashier
Connections 20
- React entry → dApp interface: renders
src/main.jsx - dApp interface → Splash screen: renders
src/App.jsx - dApp interface → Cloud background: renders
src/App.jsx - dApp interface → Translations: uses translations
src/App.jsx - Donor → dApp interface: uses
README.md - Owner / cashier → dApp interface: uses
README.md - dApp interface → Campaign management: presents
README.md - dApp interface → Donations and rewards: presents
README.md - dApp interface → Voucher and VIP tools: presents
README.md - dApp interface → Activity and analytics: presents
README.md - Campaign management → Stellar utilities: submits calls
src/App.jsx - Donations and rewards → Stellar utilities: submits calls
src/App.jsx - Voucher and VIP tools → Stellar utilities: submits calls
src/App.jsx - Activity and analytics → Stellar utilities: fetches activity
src/App.jsx - Stellar utilities → Freighter wallet: requests access and signs
src/utils/stellar.js - Stellar utilities → Stellar RPC / Horizon: queries and submits
src/utils/stellar.js - Stellar utilities → Donation contract: invokes contract
src/utils/stellar.js - Donation contract → Contract state: reads and writes
contracts/donation/src/lib.rs - Donation contract → Native XLM SAC: checks balance and transfers
contracts/donation/src/lib.rs - Google Translate → dApp interface: translates campaign text
README.md