-
Notifications
You must be signed in to change notification settings - Fork 15
Sarthak #45
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
Sarthak #45
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe PR migrates from an approved-tokens model to a deposited-tokens and sponsor-centric model across UI, state, caching, and ABI. It updates multiple clients to read getDepositedTokensList, adds sponsor management (block/unblock), revises IndexedDB schemas, updates ABIs, enlarges navigation branding, and changes a factory address. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant UI as Client UI
participant C as Contract (HackHub)
participant DB as IndexedDB Cache
rect rgb(240,248,255)
note over UI,DB: Initial load
UI->>DB: getExtendedHackathonDetails()
DB-->>UI: depositedTokens?, tokenTotals, sponsors?
UI->>C: getDepositedTokensList()
C-->>UI: [tokenAddrs]
UI->>C: getTokenTotal/symbol/decimals (per token)
C-->>UI: totals/symbols/decimals
UI->>DB: setExtendedHackathonDetails(..., depositedTokens, ...)
end
rect rgb(245,255,240)
note over User,C: Sponsor deposit (on-chain, out of scope here)
end
rect rgb(255,248,240)
note over User,UI: Sponsor management
User->>UI: Block/Unblock sponsor
UI->>C: blockSponsor(s) / unblockSponsor(s)
C-->>UI: tx result
UI->>C: getAllSponsors / getSponsorProfile / getSponsorTokenAmount
C-->>UI: sponsors + contributions
UI->>DB: setExtendedHackathonDetails(..., sponsors)
end
sequenceDiagram
autonumber
actor Judge
participant JC as Judge Client
participant C as Contract (HackHub)
note over JC,C: Payout breakdown source
JC->>C: getDepositedTokensList()
C-->>JC: [tokenAddrs]
JC->>C: getTokenTotal/symbol (per token)
C-->>JC: totals/symbols
JC-->>Judge: Render payouts based on deposited tokens
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60–90 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (11)
✨ 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/Style
Chores