How 2274802010922/pipicachu works
pipicachu is a Solana USDC escrow product for community digital-goods deals. Sellers create a shareable deal; buyers review terms and fees, fund it, and the seller records delivery. The buyer confirms or disputes, and an arbitrator resolves disputes; the on-chain program controls escrow, deadlines, bonds, and payout or refund. The web UI also supports arbitrator and organization management, fee transparency, and finalized-receipt verification. Arrows use README statements or shown imports/calls; several frontend and program internals are represented at their exact source paths because their implementations were not sampled.
Main entry points: deal.tsx Deal workflow UI · lib.rs Escrow program · payment-breakdown.tsx Fees and trust view · route.ts RPC proxy route
Components 26
Deal experience
- Deal workflow UI
src/frontend/features/deal.tsx - Deal controller
src/frontend/hooks/use-deal-controller.tsx - Deal details and progress
src/frontend/components/deal-details.tsx - Fees and trust view
src/frontend/components/payment-breakdown.tsx - Payment receipt
src/frontend/components/payment-receipt.tsx - Deal creation
src/frontend/features/create.tsx - Arbitrator workspace
src/frontend/features/arbitrator.tsx - Organization management
src/frontend/features/manage.tsx - Wallet connection
src/frontend/wallet.tsx - Language provider
src/frontend/i18n/provider.tsx
Escrow client
- Escrow instructions and queries
src/escrow/instructions.ts - Fee calculation
src/escrow/fees.ts - Arbitrator governance
src/escrow/governance.ts - Keeper settlement
src/escrow/keeper.ts
On-chain escrow
- Escrow program
programs/pipicachu-escrow/src/lib.rs - Account constraints
programs/pipicachu-escrow/src/contexts.rs - Settlement transfers
programs/pipicachu-escrow/src/settlement.rs
Service operations
- RPC proxy route
src/app/api/rpc/route.ts - RPC validation and upstream
src/backend/rpc.ts - Request rate limit
src/backend/rate-limit.ts - Program status route
src/app/api/program-status/route.ts - Authority verification
src/backend/program-authority.ts - Redis quota and reports
src/backend/redis.ts
Other components
- Buyer and seller
- Community arbitrator
- Solana network
Connections 29
- Buyer and seller → Deal workflow UI: use deal link
README.md - Community arbitrator → Arbitrator workspace: manage standing
- Buyer and seller → Deal creation: create deal
- Deal workflow UI → Deal controller: delegates actions
src/frontend/features/deal.tsx - Deal workflow UI → Deal details and progress: renders details
src/frontend/features/deal.tsx - Deal workflow UI → Fees and trust view: renders fees
src/frontend/features/deal.tsx - Deal workflow UI → Payment receipt: renders receipt
src/frontend/features/deal.tsx - Deal workflow UI → Fee calculation: calculates fees
src/frontend/features/deal.tsx - Fees and trust view → Fee calculation: calculates breakdown
src/frontend/components/payment-breakdown.tsx - Fees and trust view → Program status route: fetches status
src/frontend/components/payment-breakdown.tsx - Program status route → Authority verification: reads authority
src/app/api/program-status/route.ts - Deal workflow UI → Language provider: uses translations
src/frontend/features/deal.tsx - Deal workflow UI → Wallet connection: uses connected wallet
- Deal creation → Escrow instructions and queries: builds deal transaction
- Arbitrator workspace → Arbitrator governance: uses governance actions
- Organization management → Arbitrator governance: uses organization actions
- Deal controller → Escrow instructions and queries: loads and submits
- Escrow instructions and queries → RPC proxy route: sends RPC requests
- Wallet connection → Solana network: signs transactions
README.md - RPC proxy route → Request rate limit: limits requests
src/app/api/rpc/route.ts - RPC proxy route → RPC validation and upstream: validates and forwards
src/app/api/rpc/route.ts - RPC validation and upstream → Solana network: calls upstream RPC
src/backend/rpc.ts - Authority verification → RPC validation and upstream: reads program accounts
src/backend/program-authority.ts - Keeper settlement → Escrow program: submits finalize
README.md - Solana network → Escrow program: dispatches instructions
README.md - Escrow program → Account constraints: validates accounts
programs/pipicachu-escrow/src/lib.rs - Escrow program → Settlement transfers: executes settlement
programs/pipicachu-escrow/src/lib.rs - Escrow program → Solana network: moves escrow funds
README.md - Request rate limit → Redis quota and reports: uses shared quota