System Architecture
Overview
OwnaFarm consists of three layers: Frontend, Backend, and Blockchain.
Frontend Layer
Farmer Portal
/
Landing page
/register-farm
Multi-step farmer registration
/admin
Invoice management
Investor App
/
Homepage with active crops
/shop
Seed marketplace
/farm
Personal garden view
/leaderboard
Investor rankings
/profile
User stats
Backend Layer
Responsibilities
User Management
Profiles, authentication, KYC
Game State
XP, levels, water points
Document Storage
Farmer documents to R2
Event Indexing
Sync blockchain events
Data Stores
PostgreSQL
Primary database
Valkey
Caching and sessions
Cloudflare R2
Document storage
Blockchain Layer
Smart Contracts
GoldToken
ERC-20
Platform currency
GoldFaucet
-
Testnet distribution
OwnaFarmNFT
ERC-1155
Invoice tokens
OwnaFarmVault
-
Yield reserve
Why Mantle
Layer 2
Low gas fees
EVM Compatible
Standard tooling
Fast Finality
Quick confirmations
Data Distribution
Financial state
Blockchain
Immutable, trustless
User identity
Database
Privacy, compliance
Game mechanics
Database
Flexibility
Documents
Cloud storage
Size, access
Communication Patterns
Frontend to Backend
Frontend to Blockchain
Backend to Blockchain
Last updated
