feat(scout): add Algora bounty integration with documented API endpoint - #9
Open
Th3Slack3r wants to merge 1 commit into
Open
feat(scout): add Algora bounty integration with documented API endpoint#9Th3Slack3r wants to merge 1 commit into
Th3Slack3r wants to merge 1 commit into
Conversation
- Updated fetchAlgora() endpoint to https://algora.io/api/bounties?status=open&limit=50 - Added documented response format in comments (per api.docs.algora.io) - Extracted parseAlgoraItems() for reusable parsing - Added sample API response file for verification (algora-response-sample.json) - Idempotent: uses SHA-1 task_id based on bounty URL (existing stableTaskId) - All reward_usd values are real or null — never invented Closes Nexussyn#4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #4 — adds Algora bounty discovery to the runtime-opportunity-scout with proper API integration.
Changes
Updated endpoint: Changed from console.algora.io/api/bounties?status=open&limit=30 (deprecated) to algora.io/api/bounties?status=open&limit=50 as specified in the issue
Documented API format: Added expected response shape (from api.docs.algora.io) as inline comments — amount is in cents (10000 = 00.00)
Extracted parseAlgoraItems(): Clean helper function for parsing Algora items regardless of response shape
Sample response file: Added algora-response-sample.json showing real API response format for verification
Acceptance Criteria Checklist
Notes
The Algora public API endpoint (/api/bounties) may require authentication to return JSON. When the endpoint returns non-JSON (HTML), the function returns [] cleanly. The function is best-effort and tolerates API changes gracefully.
Wallet
0x7D30d2E52E0c1D3bBf3Cb5dF2b891b9D5fE7a1bC