Skip to content

feat(contracts): add dispute resolution for contested cancellations (… - #936

Open
alexitsejames-cpu wants to merge 1 commit into
ritik4ever:mainfrom
alexitsejames-cpu:feat/812-per-route-body-size-limits
Open

feat(contracts): add dispute resolution for contested cancellations (…#936
alexitsejames-cpu wants to merge 1 commit into
ritik4ever:mainfrom
alexitsejames-cpu:feat/812-per-route-body-size-limits

Conversation

@alexitsejames-cpu

Copy link
Copy Markdown

--title "feat(backend): per-route body size limits (#812)" `
--body "Tightens the global JSON body limit from 32kb to 16kb and adds a 256kb override on the two routes that accept larger payloads (evidence notes on submit and maintainer notes patch).

Changes

  • Global `express.json` limit: 32kb → 16kb
  • `POST /api/bounties/:id/submit` and `PATCH /api/bounties/:id/notes`: 256kb override via `largeBodyParser`
  • 413 error handler no longer leaks hardcoded `maxBytes`
  • `test/bodySize.test.ts`: 6 tests covering both the tightened default and the route-specific override" --base main
    --head feat/812-per-route-body-size-limits
    fixes [FEATURE] Add SECURITY.md with Stellar-specific security considerations #812

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e0ff5b66-0c99-46b5-b682-f8c732b43d77


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…itik4ever#689)

- Add contracts/src/disputes.rs with Dispute struct, DisputeKey storage,
  file_dispute and resolve_dispute entry points, get_dispute query
- Recipient can dispute a cancellation within a 7-day window
- Funds stay locked in escrow pending admin arbitration
- Admin can release to recipient, return to sender, or split
- Emit DisputeFiled and DisputeResolved events
- Add DisputeWindowExpired and DisputeAlreadyFiled error variants to errors.rs
- Wire pub mod disputes into lib.rs with three contractimpl entry points
@alexitsejames-cpu
alexitsejames-cpu force-pushed the feat/812-per-route-body-size-limits branch from 3af8001 to 3670aed Compare August 31, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add SECURITY.md with Stellar-specific security considerations

1 participant