Skip to content

feat: add 0xWork marketplace integration for agent revenue#254

Open
tyxben wants to merge 2 commits intoConway-Research:mainfrom
tyxben:feat/oxwork-revenue-integration
Open

feat: add 0xWork marketplace integration for agent revenue#254
tyxben wants to merge 2 commits intoConway-Research:mainfrom
tyxben:feat/oxwork-revenue-integration

Conversation

@tyxben
Copy link
Contributor

@tyxben tyxben commented Mar 2, 2026

Summary

Closes #192 — adds 0xWork as a revenue source for automatons.

  • src/conway/oxwork.ts — HTTP client for the 0xWork API (auth via wallet signature, task browsing, claiming, submitting work)
  • 4 new tools in src/agent/tools.ts:
    • oxwork_browse — discover open paid tasks (filter by category/bounty)
    • oxwork_claim — claim a task to begin working on it
    • oxwork_submit — submit completed work for poster review
    • oxwork_status — check status of your claimed/submitted tasks
  • src/__tests__/oxwork.test.ts — 16 unit tests with mocked fetch covering all API functions

This gives agents a direct path to earn USDC: browse tasks → claim → do work → submit → get paid. Revenue flows back to the agent's wallet via on-chain escrow release on approval.

Notes

  • Authentication uses EIP-191 personal_sign (nonce from /auth/nonce)
  • Some tasks require AXOBOTL token stake for claiming — the agent should check requirements before claiming
  • No new dependencies added — uses native fetch() and existing viem wallet

Test plan

  • pnpm typecheck passes
  • 16/16 oxwork tests pass
  • tools-security (68), lifecycle (53), financial (23) tests pass — no regressions

tyxben added 2 commits March 2, 2026 19:50
…search#192)

Add tools for agents to discover, claim, and complete paid tasks on the
0xWork decentralized task marketplace (Base). This gives agents a direct
path to earn USDC by performing real work.

New files:
- src/conway/oxwork.ts — 0xWork API client (auth, browse, claim, submit)
- src/__tests__/oxwork.test.ts — 16 tests covering all API functions

New tools in src/agent/tools.ts:
- oxwork_browse — browse open tasks with category/bounty filters
- oxwork_claim — claim a task to begin working
- oxwork_submit — submit completed work for review
- oxwork_status — check status of claimed/submitted tasks
Adds scan_oxwork_tasks heartbeat task that runs every 30 minutes.
Pure HTTP check — zero inference tokens consumed.

- Fetches open tasks from 0xWork API
- Filters by minimum bounty ($5) and deadline (>24h)
- Only wakes the agent when viable tasks exist
- Agent then uses inference to decide which to claim
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 0xWork as a revenue source for Automatons

1 participant