Skip to content

feat: bootstrap payment API with bounties and payments endpoints#51

Open
khozakhulile27-netizen wants to merge 4 commits into
tscircuit:mainfrom
khozakhulile27-netizen:feat/1-payment-api
Open

feat: bootstrap payment API with bounties and payments endpoints#51
khozakhulile27-netizen wants to merge 4 commits into
tscircuit:mainfrom
khozakhulile27-netizen:feat/1-payment-api

Conversation

@khozakhulile27-netizen
Copy link
Copy Markdown

Closes #1

What this adds

Schema

  • bountySchema — tracks a bounty linked to a GitHub issue URL with a USD amount and status (open | in_progress | paid)
  • paymentSchema — records a payment sent to a recipient for completing a bounty

Routes

  • POST /bounties/create — create a new bounty with issue_url and amount_usd
  • GET /bounties/list — list all bounties
  • POST /payments/create — send a payment (bounty_id, recipient_username, amount_usd)

All routes follow the existing winterspec + zod pattern used in the project.

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

khozakhulile27-netizen commented May 23, 2026

✅ All CI checks passing. This PR is ready for review and merge.

/claim #1

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

/attempt #1

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

Review please

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

Please help me here i want the pr to review

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

@seveibar please review for me

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

@seveibar - This PR is ready for review! 🙏

This implementation bootstraps the payment API for issue #1:

What's included:

  • bountySchema — tracks bounties linked to GitHub issues with USD amounts and status
  • paymentSchema — records payments sent to recipients
  • POST /bounties/create — create new bounties
  • GET /bounties/list — list all bounties
  • POST /payments/create — send payments for completed bounties

Implementation follows:

  • Winterspec + Zod patterns (consistent with project standards)
  • RESTful API design
  • Proper status management (open | in_progress | paid)

Testing:

  • All endpoints tested locally
  • Data validation working correctly
  • Ready for production use

Ready to merge! Thanks! 🎉

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.

Bootstrap w/ API for sending payment

1 participant