-
Notifications
You must be signed in to change notification settings - Fork 15
Updated Ui with latest contracts #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughBroad refactor switching from a single-prize model to a multi-token sponsorship/payout system, adding ERC20 approval/deposit flows, token submission/approval, and per-token payouts. Introduces IndexedDB cache-first data loading with Suspense and pagination across listings. Updates ABIs for token-centric operations and simplifies hackathon creation by removing upfront prize funding. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant UI as InteractionClient
participant ERC20 as ERC20 Contract
participant HH as HackHub Contract
U->>UI: Enter token + amount + sponsor info
UI->>ERC20: read allowance(balanceOf)
alt allowance < amount
UI->>ERC20: approve(HackHub, amount)
ERC20-->>UI: Approval tx receipt
end
UI->>HH: depositToToken(token, amount, sponsorName, sponsorImage)
HH-->>UI: SponsorDeposited event
UI-->>U: Updated totals and sponsors
sequenceDiagram
participant V as Viewer
participant Page as Explorer/My/Organizer/Home
participant DB as IndexedDB (hackathonDB)
participant PC as publicClient
V->>Page: Load view
Page->>DB: get(cacheKey, chainId)
alt Cache hit & fresh
DB-->>Page: Cached data
Page-->>V: Render from cache
else Cache miss/stale
DB-->>Page: No/expired data
end
Page->>PC: Fetch hackathons/details
PC-->>Page: On-chain data
Page->>DB: set(cacheKey, chainId, data)
Page-->>V: Render updated data
Estimated code review effort🎯 5 (Critical) | ⏱️ ~90 minutes Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these settings in your CodeRabbit configuration. 📒 Files selected for processing (16)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
UI/UX
Changes