How pratikshakalbhor/freelancechain works
FreelanceChain is a Stellar-based freelance marketplace: clients post funded jobs, freelancers discover and apply, clients hire, freelancers submit work, and clients approve payment or enter dispute resolution. WalletContext and walletService provide multi-wallet access and signing; useEscrow orchestrates contract operations and records activity/indexed data. The README documents fee sponsorship and real-time chat, but sampled excerpts do not establish their runtime wiring, so those links are omitted. Several page and integration relationships are based on README capability descriptions rather than inspected page implementations.
Main entry points: useEscrow.js Escrow operations · App.js Application routes · MyJobs.js Manage jobs · ScalabilityContext.js Scalability services
Components 27
Marketplace workflow
- Application routes
src/App.js - Post job
src/pages/PostJobPage.js - Find jobs
src/pages/FindJobs.js - Manage jobs
src/pages/MyJobs.js - Dashboard
src/pages/DashboardPage.js
Wallet and escrow
- Wallet session
src/WalletContext.js - Wallet adapters
src/walletService.js - Escrow operations
src/hooks/useEscrow.js - Soroban escrow
escrow_contract/src/lib.rs - Stellar network
- Payments
src/pages/PaymentPage.js - Fee sponsor
src/utils/feeBump.js
Collaboration and trust
- Real-time chat
src/pages/ChatPage.js - Profile and reviews
src/components/ProfilePage.js - Review display
src/components/ReviewCard.js - Resolution center
src/pages/ResolutionCenter.js - Dispute handling
src/components/DisputeModal.js
Data and operations
- Activity history
src/pages/ActivityPage.js - Job indexer
src/utils/dataIndexer.js - Firebase data
src/firebase.js - Monitoring
src/pages/MonitoringPage.js - Scalability services
src/context/ScalabilityContext.js - Cache manager
src/utils/cacheManager.js - Request queues
src/utils/requestQueue.js - Performance metrics
src/utils/performanceMonitor.js
Other components
- Client
- Freelancer
Connections 41
- Client → Application routes: uses
- Freelancer → Application routes: uses
- Application routes → Post job: routes to
src/App.js - Application routes → Find jobs: routes to
src/App.js - Application routes → Manage jobs: routes to
src/App.js - Application routes → Dashboard: routes to
src/App.js - Application routes → Real-time chat: routes to
src/App.js - Application routes → Activity history: routes to
src/App.js - Application routes → Resolution center: routes to
src/App.js - Application routes → Monitoring: routes to
src/App.js - Post job → Escrow operations: uses
src/pages/PostJobPage.js - Client → Post job: creates job
- Freelancer → Find jobs: discovers jobs
- Find jobs → Manage jobs: applies for
- Client → Manage jobs: hires and reviews
- Freelancer → Manage jobs: submits work
- Manage jobs → Escrow operations: uses
- Client → Resolution center: disputes
- Resolution center → Dispute handling: handles
src/pages/ResolutionCenter.js - Client → Escrow operations: approves release
- Wallet session → Wallet adapters: connects wallets
src/WalletContext.js - Escrow operations → Wallet session: reads wallet
src/hooks/useEscrow.js - Escrow operations → Wallet adapters: signs transactions
src/hooks/useEscrow.js - Escrow operations → Soroban escrow: invokes escrow
- Soroban escrow → Stellar network: stores and releases
- Escrow operations → Job indexer: refreshes index
src/hooks/useEscrow.js - Escrow operations → Activity history: records activity
src/hooks/useEscrow.js - Job indexer → Firebase data: reads and writes
src/utils/dataIndexer.js - Activity history → Firebase data: loads history
- Profile and reviews → Review display: renders
src/components/ProfilePage.js - Review display → Firebase data: queries reviews
src/components/ReviewCard.js - Real-time chat → Freelancer: collaborates with
- Scalability services → Cache manager: provides
src/context/ScalabilityContext.js - Scalability services → Request queues: provides
src/context/ScalabilityContext.js - Scalability services → Performance metrics: provides
src/context/ScalabilityContext.js - Monitoring → Scalability services: reports metrics
src/pages/MonitoringPage.js - Escrow operations → Request queues: queues RPC
src/hooks/useEscrow.js - Escrow operations → Cache manager: invalidates cache
src/hooks/useEscrow.js - Escrow operations → Performance metrics: tracks calls
src/hooks/useEscrow.js - Payments → Stellar network: transfers funds
- Escrow operations → Fee sponsor: sponsors fees