Off-chain: Validation and Supabase
All validation logic, gamification, and user management initially operate off the blockchain. This allows us to iterate quickly, scale without high costs, and maintain a smooth user experience.
π What happens off-chain?
π Location: detection of courts via OpenStreetMap and custom zones
πββοΈ Physical activity: steps, calories, heart rate, activity type
π² Manual validation: reopening the app to confirm the match was played
π§ͺ Criteria verification: minimum 3 out of 4 requirements + mandatory geolocation
β Match registration: saved in Supabase and added to the global ranking
π§Ύ Data Structure in Supabase
Users: personal data, history, avatar, language
Matches: validations by date, location, duration, compliance
Missions: active missions, streaks, and achievements
Rankings: calculation of positions, points, and airdrops
π Full Flow
Last updated