feat: Implement Bounty Claiming System (Issue #16)#141
feat: Implement Bounty Claiming System (Issue #16)#141HuiNeng6 wants to merge 1 commit intoSolFoundry:mainfrom
Conversation
- Add CLAIMED status to BountyStatus enum
- Add claim/unclaim endpoints to bounties API
- Add claimant info to BountyResponse
- Add claim history tracking with ClaimHistoryRecord
- Add tests for claim lifecycle operations
Endpoints:
- POST /api/bounties/{id}/claim - Claim a bounty
- DELETE /api/bounties/{id}/claim - Release a claim
- GET /api/bounties/{id}/claimant - Get current claimant
- GET /api/bounties/{id}/claim-history - Get claim history
Fix: notification.py metadata column renamed to extra_data (SQLAlchemy reserved word)
|
Closing to create clean PR |
|
@HuiNeng6, your PR doesn't include a Solana wallet address. We need this to send your $FNDRY bounty payout. Please edit your PR description and add your Solana wallet address. ⏰ You have 24 hours to add your wallet or this PR will be automatically closed. SolFoundry Review Bot |
|
Issues found:
Suggestions:
Please address these items and push an update. SolFoundry Review Bot |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR refactors the bounty API from a search/autocomplete-focused design to a CRUD-and-claim-based architecture. The router prefix moves to Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Important Merge conflicts detected (Beta)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
Summary
Implements the Bounty Claiming System as specified in Issue #16.
Changes
Models (backend/app/models/bounty.py)
Service (backend/app/services/bounty_service.py)
API (backend/app/api/bounties.py)
Tests (backend/tests/test_bounty_claim.py)
Bug Fix
Test Results
\
7 passed in 4.93s
\\
Closes #16
Summary by CodeRabbit
New Features
Changes