How mehetab-01/monconnect works
MonConnect is a React/TypeScript dApp for organizer–service-provider collaboration, NFT identity, escrow payments, and jury dispute resolution on Monad. Users choose a role, connect a wallet, and enter a role dashboard; organizers manage work and escrow, providers manage profiles and escrow jobs, and jurors access the dispute experience. The frontend’s chain helpers provide NFT and contract access. The README documents AVS voting, notifications, and an immutable ledger, but their detailed implementation is not shown in the sampled source, so those connections are represented cautiously.
Main entry points: App.tsx Role routing · nft.ts NFT identity utilities · OrganizerDashboard.tsx Organizer workspace · EscrowAndPayments.tsx Escrow and payments
Components 23
App entry and identity
- Role routing
src/App.tsx - Organizer sign-in
src/pages/OrganizerAuth.tsx - Provider sign-in
src/pages/ServiceAuth.tsx - NFT access guard
src/components/NFTGuard.tsx - Wallet controls
src/components/WalletButton.tsx - Visual background
src/components/VantaBackground.tsx
Organizer and provider workflow
- Dashboard landing
src/pages/Dashboard.tsx - Organizer workspace
src/pages/OrganizerDashboard.tsx - Provider workspace
src/pages/ServiceProviderDashboard.tsx - Escrow and payments
src/pages/EscrowAndPayments.tsx - Provider escrow jobs
src/pages/ServiceProviderEscrow.tsx
Blockchain access
- NFT identity utilities
src/utils/nft.ts - Contract interface
src/utils/chainConnectV2.ts - Escrow compatibility
src/utils/escrow.ts - Escrow contract
Jury and disputes
- Jury sign-in
src/pages/JuryAuth.tsx - Jury workspace
src/pages/JuryDashboard.tsx
Other components
- Organizer
- Service provider
- Juror
- Monad network
- Wallet provider
- AVS validators
Connections 32
- Organizer → Role routing: chooses role
src/App.tsx - Service provider → Role routing: chooses role
src/App.tsx - Juror → Role routing: chooses role
src/App.tsx - Role routing → Organizer sign-in: routes to
src/App.tsx - Role routing → Provider sign-in: routes to
src/App.tsx - Role routing → Jury sign-in: routes to
src/App.tsx - Role routing → Dashboard landing: routes to
src/App.tsx - Role routing → Organizer workspace: routes to
src/App.tsx - Role routing → Provider workspace: routes to
src/App.tsx - Role routing → Jury workspace: routes to
src/App.tsx - Role routing → NFT access guard: guards routes
src/App.tsx - Role routing → Visual background: renders
src/App.tsx - Organizer sign-in → NFT identity utilities: checks identity
src/pages/OrganizerAuth.tsx - Provider sign-in → NFT identity utilities: checks and mints
src/pages/ServiceAuth.tsx - Jury sign-in → Wallet provider: requests wallet
- NFT access guard → NFT identity utilities: checks ownership
src/components/NFTGuard.tsx - Wallet controls → NFT identity utilities: gets provider
src/components/WalletButton.tsx - Organizer workspace → Escrow and payments: opens payments
src/pages/OrganizerDashboard.tsx - Provider workspace → Provider escrow jobs: opens jobs
src/pages/ServiceProviderDashboard.tsx - Provider workspace → Contract interface: uses contract
src/pages/ServiceProviderDashboard.tsx - Organizer workspace → Contract interface: uses contract
src/pages/OrganizerDashboard.tsx - Organizer workspace → Escrow compatibility: uses escrow interface
src/pages/OrganizerDashboard.tsx - Provider escrow jobs → NFT identity utilities: gets provider
src/pages/ServiceProviderEscrow.tsx - Escrow and payments → NFT identity utilities: uses NFT utilities
src/pages/EscrowAndPayments.tsx - Escrow and payments → Escrow compatibility: uses escrow interface
src/pages/EscrowAndPayments.tsx - Escrow compatibility → Contract interface: re-exports interface
src/utils/escrow.ts - NFT identity utilities → Wallet provider: accesses wallet
- Contract interface → Monad network: configures contract
- Escrow and payments → Escrow contract: manages escrow
- Provider escrow jobs → Escrow contract: reads escrow jobs
- Jury workspace → AVS validators: dispute voting
- AVS validators → Escrow contract: verdict execution
README.md