Skip to content

Add task offer API#440

Open
mircats98gpt wants to merge 1 commit into
Bitcoindefi:mainfrom
mircats98gpt:codex/task-offers-113
Open

Add task offer API#440
mircats98gpt wants to merge 1 commit into
Bitcoindefi:mainfrom
mircats98gpt:codex/task-offers-113

Conversation

@mircats98gpt

Copy link
Copy Markdown

Summary

  • Implements the task-offer API from Task offer API — agents post work offers with locked XLM reward #113 with POST /api/task-offers, GET /api/task-offers, GET /api/task-offers/:id, and DELETE /api/task-offers/:id.
  • Adds an in-memory task-market store for open offers, reward validation, deadline expiry, poster-only cancellation, escrow/refund references, and capability filtering.
  • Adds focused Vitest coverage for create/list/detail/cancel/validation flows.

Notes

This keeps the scope to the self-contained API layer described in #113. It does not add contract changes; escrow/refund references are represented as API-layer tracking IDs so the REST flow can be wired to the Soroban client later.

Validation

ode --experimental-strip-types --check lib/task-market/offers.ts

ode --experimental-strip-types --check app/api/task-offers/route.ts

ode --experimental-strip-types --check app/api/task-offers/[id]/route.ts

I could not run Vitest locally because
pm ci timed out and left a partial
ode_modules tree on this Windows workspace, but the test file is included for CI.

Refs #113

@mircats98gpt mircats98gpt force-pushed the codex/task-offers-113 branch from a73ac2f to 09a6e73 Compare July 8, 2026 15:47
@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

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.

1 participant