omniclaw icon indicating copy to clipboard operation
omniclaw copied to clipboard

TypeScript client

Open anshitraj opened this issue 8 months ago • 0 comments

Summary

Adds a publishable Node.js / TypeScript client under npm/omniclaw for OmniClaw-style payment workflows on top of Circle APIs: simulation before spend, wallet balance, payment intents, optional x402 / nanopayments via Circle Gateway, guardrails, trust hooks, in-memory ledger, webhook signature verification, and seller helpers with facilitator stubs.

What’s included

  • OmniClaw client — payments, routing (payWithRouting), intents, nanopayment key management, encrypted keystore option
  • Safety / ops — budget, rate limit, recipient, single-tx, and confirm guards; optional trust gate; strict settlement behavior in prod-like envs
  • Seller surface — createSeller, CircleGatewayFacilitator, createFacilitator for common facilitator IDs
  • Compat exports — snake_case helpers and shared error names where teams expect them from other bindings
  • npm run smoke:validate — offline integration smoke test with mocked HTTP (no live Circle calls)

How to verify

cd npm/omniclaw
npm install
npm run release:check
npm run smoke:validate

anshitraj avatar Mar 29 '26 08:03 anshitraj