How baala-codes/rent-olana works
This is a Solana physical-asset rental marketplace: owners publish listings, renters discover and book them, and the on-chain program governs escrow and rental outcomes. The portal combines backend search and metadata with wallet-signed program transactions; the backend mirrors finalized chain state for discovery and history, but does not move funds. The graph preserves listing, booking, settlement, dispute, and administration stages, plus the client contract and backend mirror layers. Some subsystem links rely on README statements or the SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: App.tsx Portal navigation · ProgramContext.tsx Portal state and actions · state.rs Listing and rental state · client.ts Backend API client
Components 27
Browser portal
- Portal navigation
frontend/src/App.tsx - Market discovery
frontend/src/views/MarketView.tsx - Listing booking
frontend/src/views/ListingDetailView.tsx - Listing management
frontend/src/views/ManageView.tsx - Rental and admin views
frontend/src/views - Portal state and actions
frontend/src/ProgramContext.tsx - Backend API client
frontend/src/api/client.ts - Metadata commitment
frontend/src/metadata/store.ts
Provider backend
- HTTP API
backend/src/http.ts - Chain reconciliation
backend/src/mirror.ts - Search and rental mirror
backend/src/db.ts - Solana chain reader
backend/src/chain.ts - Media storage
backend/src/media.ts - JSONL audit
backend/src/audit.ts
Off-chain contract
- API and search contract
shared/src/api.ts - Metadata contract
shared/src/metadata.ts
Solana client
- Instruction and account client
clients/ts/wire.ts
On-chain program
- Listing and rental state
programs/asset-rental/src/state.rs - Listing operations
programs/asset-rental/src/instructions/register_asset.rs - Booking and escrow
programs/asset-rental/src/instructions/create_rental.rs - Settlement and cancellation
programs/asset-rental/src/instructions/settle_rental.rs - Dispute resolution
programs/asset-rental/src/instructions/resolve_dispute.rs - Platform administration
programs/asset-rental/src/instructions/config.rs
Other components
- Owners
- Renters
- Admins
- Solana RPC
Connections 31
- Owners → Portal navigation: manage listings
README.md - Renters → Portal navigation: discover and rent
README.md - Admins → Portal navigation: administer
README.md - Portal navigation → Market discovery: routes to
frontend/src/App.tsx - Portal navigation → Listing booking: opens listing
frontend/src/App.tsx - Portal navigation → Listing management: routes to
frontend/src/App.tsx - Portal navigation → Rental and admin views: routes to
frontend/src/App.tsx - Market discovery → Portal state and actions: reads listings
frontend/src/views/MarketView.tsx - Portal state and actions → Backend API client: searches backend
frontend/src/ProgramContext.tsx - Portal state and actions → Solana RPC: reads and submits
README.md - Listing management → Portal state and actions: uses actions
frontend/src/views/ManageView.tsx - Listing management → Backend API client: uploads media
frontend/src/views/ManageView.tsx - Listing management → Metadata commitment: saves metadata
frontend/src/views/ManageView.tsx - Backend API client → HTTP API: requests API
README.md - HTTP API → Search and rental mirror: queries mirror
backend/src/http.ts - HTTP API → Media storage: serves media
backend/src/http.ts - Chain reconciliation → Solana chain reader: reads finalized state
README.md - Chain reconciliation → Search and rental mirror: updates mirror
backend/src/mirror.ts - Chain reconciliation → JSONL audit: records events
backend/src/mirror.ts - Listing booking → Portal state and actions: books rental
README.md - Rental and admin views → Portal state and actions: submits actions
README.md - Portal state and actions → Instruction and account client: builds instructions
frontend/src/ProgramContext.tsx - Instruction and account client → Solana RPC: encodes transactions
README.md - Solana RPC → Listing and rental state: executes program
README.md - Listing operations → Listing and rental state: creates listings
- Booking and escrow → Listing and rental state: creates rentals
programs/asset-rental/src/instructions/create_rental.rs - Settlement and cancellation → Listing and rental state: updates rental
programs/asset-rental/src/instructions/settle_rental.rs - Dispute resolution → Listing and rental state: resolves dispute
- Platform administration → Listing and rental state: updates config
- API and search contract → Backend API client: defines payloads
- Metadata contract → Backend API client: defines metadata