Skip to content

feat(backend): add endpoint to list dispute history and evidence for … - #1092

Open
Killerjunior wants to merge 1 commit into
ritik4ever:mainfrom
Killerjunior:feat/772-dispute-history-endpoint
Open

Killerjunior wants to merge 1 commit into
ritik4ever:mainfrom
Killerjunior:feat/772-dispute-history-endpoint

Conversation

@Killerjunior

Copy link
Copy Markdown

Closes #772

Description

Key changes:

  • Added GET /api/bounties/:id/disputes returning all recorded dispute events for a given bounty.
  • Extracted and structured dispute records (including reason, evidence link/IPFS CID, timestamps, and resolution outcome) dynamically from the audit log and contract event transitions without redundant state storage.
  • Ensured bounties with no dispute history return an empty array ([]) with HTTP 200 rather than a 404.
  • Extended disputeBountySchema and disputeBounty to support optional evidence submissions when opening a dispute.
  • Added comprehensive unit and integration tests covering dispute history, evidence linking, resolution outcomes, and edge cases.
  • Updated OpenAPI documentation and spec snapshots.

Type of change

  • Bug fix
  • New feature
  • Breaking change

Security Checklist

  • Input validation changed (added optional evidence field validation to disputeBountySchema)
  • Auth modified
  • New external fetch
  • Dependency added
  • Secret handling

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Killerjunior is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Killerjunior Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@github-actions github-actions Bot added documentation Improvements or additions to documentation backend labels Aug 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add endpoint to list dispute history and evidence for a bounty

1 participant