4 Commits

Author SHA1 Message Date
e169731b42 chore: merge feat/solana-colosseum into feat/x402-multichain
Brings in packages/routing, packages/hyperliquid (hypercore network), checkout
AnyTokenPay/HyperCorePay, Node 22 pins, tenant-ownership guards and the zcash
tag lock. Only conflict: drizzle _journal.json (kept 0010_onchain_billing and
0011_coupons_organization in order).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:39:32 +03:00
2b9172e384 feat(api): HyperCore verifier, Tempo requireMemo sessions and routed-fill bindings
- HYPERCORE_* config; the registry registers a hypercore SettlementVerifier
  (payee ledger via @settlekit/hyperliquid) only when enabled
- checkout sessions accept requireMemo (Tempo only); confirmations then need
  transferWithMemo(keccak256(session id))
- a route provider's stored destination fill skips only the payer and memo
  bindings; hypercore joins the observable networks
- drop the unused @settlekit/routing dependency from the API

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 18:48:20 +03:00
4cf8417728 feat(api): x402 v2 agent payments on Solana and every EVM chain
GET /v1/x402/research (x402 paymentMiddleware) and
POST /v1/x402/products/:productId/buy: one 402 challenge lists every
configured network; Solana/Base/Arbitrum settle through PayAI and
Ethereum/HyperEVM/Robinhood through the self-hosted facilitator, with
explicit per-network facilitator routing. Purchases use the upfront
flow: the facilitator settles BEFORE the handler, then the Payment is
recorded (tx hash unique, 409 on reuse), the entitlement granted and the
product's delivery actions run inline; the artifact is returned with the
PAYMENT-RESPONSE receipt. Product, price and required buyer fields are
validated before any challenge. Also exposes the facilitator's
/supported, /assets and bearer-guarded /verify and /settle, and
GET /v1/x402/networks. Runtime is built from env once at boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 18:41:21 +03:00
3be266d966 feat(api): verify payments on every enabled chain and lock Zcash quotes
- config: loadEvmChains + Zcash groups (BASE_RPC_URL/ARC_CHAIN_ID aliases
  kept), per-network SettlementVerifier registry (EVM via @settlekit/chains,
  Solana adapter, Zcash via Blockchair), boot refuses on RPC chain-id
  mismatch and warns when an RPC is unreachable
- payments: network-aware tx id validation; confirm binds payTo per
  network, session createdAt, payer, session id (Tempo memo) and the locked
  quote; retryable and late (manual review) outcomes are explicit
- checkout sessions: every accepted network's payTo validated for its
  chain family, acceptedNetworks/payToByNetwork, Solana reference and a
  Zcash quote with a unique amount tag
- tests: per-network table (disabled fails closed, chain confirms, 409 on
  reuse, 400 on wrong-family payTo or malformed tx id), bindings, registry,
  boot check and env

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 16:11:22 +03:00