Skip to content

Add fake payment send and list API#41

Open
haocyan0723-code wants to merge 6 commits into
tscircuit:mainfrom
haocyan0723-code:codex-payment-send-api
Open

Add fake payment send and list API#41
haocyan0723-code wants to merge 6 commits into
tscircuit:mainfrom
haocyan0723-code:codex-payment-send-api

Conversation

@haocyan0723-code
Copy link
Copy Markdown

/claim #1

Adds a small fake payment API on top of the starter project.

What changed:

  • POST /payments/send creates a sent fake payment with recipient, amount, currency, and optional bounty issue.
  • GET /payments/list returns the in-memory payment records.
  • Adds a route test for sending and listing a payment.
  • Adds short README notes for the new endpoints.

Verification:

  • npx --yes bun test tests/routes/payments/send.test.ts
  • npx --yes bun test
  • npx --yes bun x winterspec bundle -o dist/bundle.js
  • npx --yes biome check lib\db\schema.ts lib\db\db-client.ts routes\payments\send.ts routes\payments\list.ts tests\routes\payments\send.test.ts README.md

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant