How jenzylove/tifo works
Tifo is a matchday-commerce product: sellers describe stock and terms, an AI agent plans a promotion, buyers purchase through wallet or funding options, and an agent settles refunds and seller payouts against match results. The seller dashboard exposes books, autopilot controls, briefings and decision records. The graph preserves these documented capabilities and the sampled checkout, planning, wallet and chain-reading layers. Several runtime modules were not excerpted, so their relationships are shown only where the README documents them.
Main entry points: Checkout.tsx Checkout · Launch.tsx Drop launch · agent.ts Drop management · promos.ts Promotion contracts
Components 32
Seller planning
- Drop launch
web/components/manage/Launch.tsx - Post import
web/app/api/import/route.ts - Agent planning
web/lib/sellerAgent.ts - Matches and odds
web/lib/matches.ts - Offer calculations
packages/core/src/index.ts
Buyer commerce
- Checkout
web/components/Checkout.tsx - Digital delivery
web/components/Purchase.tsx - Shipping details
web/components/DeliveryForm.tsx - Booking slots
web/components/TimePicker.tsx - Cross-chain top-up
web/components/BridgeTopUp.tsx - Card top-up
web/components/CardTopUp.tsx - Naira top-up
web/components/NairaTopUp.tsx
Agent operations
- Agent cycle
web/app/api/tick/route.ts - Drop management
web/lib/agent.ts - Result settlement
web/lib/results.ts - Seller briefing
web/lib/brief.ts - Agent chat
web/app/api/chat/route.ts
Wallets and chain
- Seller account
web/lib/tifoAccount.ts - Promotion contracts
web/lib/promos.ts - Arc connectivity
web/lib/chain.ts - Passkey wallets
web/lib/circleWallet.ts - Google wallets
web/lib/googleWallet.ts
Seller operations
- Seller dashboard
web/components/manage/Manager.tsx - Sales books
web/components/manage/Books.tsx - Autopilot controls
web/components/manage/Autopilot.tsx - Contract book reader
web/lib/manager.ts - Agent decision log
web/lib/agentLog.ts
Other components
- Seller
- Buyer
- Circle Bridge
- Circle Onramp
- Sports result sources
Connections 37
- Seller → Drop launch: configures drop
- Drop launch → Agent planning: requests plan
- Drop launch → Post import: imports post
- Agent planning → Matches and odds: queries matches
web/lib/sellerAgent.ts - Matches and odds → Offer calculations: normalizes odds
web/lib/matches.ts - Drop launch → Seller account: opens account
- Drop launch → Promotion contracts: opens promotion
- Drop launch → Passkey wallets: signs launch
web/components/manage/Launch.tsx - Buyer → Checkout: places order
- Checkout → Passkey wallets: connects wallet
web/components/Checkout.tsx - Checkout → Promotion contracts: buys from drop
- Checkout → Shipping details: collects address
web/components/Checkout.tsx - Checkout → Digital delivery: reveals product
web/components/Checkout.tsx - Checkout → Booking slots: selects slot
web/components/Checkout.tsx - Checkout → Cross-chain top-up: offers bridge
web/components/Checkout.tsx - Checkout → Card top-up: offers card funding
web/components/Checkout.tsx - Checkout → Naira top-up: offers naira funding
web/components/Checkout.tsx - Cross-chain top-up → Circle Bridge: moves USDC
web/components/BridgeTopUp.tsx - Card top-up → Circle Onramp: funds wallet
- Naira top-up → Circle Onramp: funds wallet
- Agent cycle → Drop management: runs agent
- Drop management → Result settlement: settles outcomes
- Result settlement → Sports result sources: checks results
- Drop management → Promotion contracts: records decisions
- Drop management → Seller account: pays seller
- Drop management → Seller briefing: writes briefing
- Agent chat → Drop management: answers questions
- Seller dashboard → Contract book reader: loads books
web/components/manage/Manager.tsx - Contract book reader → Promotion contracts: reads drop data
web/lib/manager.ts - Contract book reader → Seller account: reads account
web/lib/manager.ts - Seller dashboard → Sales books: shows books
web/components/manage/Manager.tsx - Seller dashboard → Autopilot controls: shows controls
web/components/manage/Manager.tsx - Promotion contracts → Arc connectivity: reads contracts
web/lib/promos.ts - Seller account → Arc connectivity: reads account state
web/lib/tifoAccount.ts - Passkey wallets → Arc connectivity: submits transactions
web/lib/circleWallet.ts - Google wallets → Arc connectivity: signs transactions
- Seller → Agent decision log: reviews decisions