2 Commits

Author SHA1 Message Date
9d2bc4eae0 feat(arc/circle): ERC-8004 + ERC-8183 + arc-chains, swap-fee + DCW contract-exec
New packages (port/adapter pattern, zero new external deps, deterministic local impls + tests):
- @settlekit/erc8004: agent identity / reputation / validation on Arc (real Arc Testnet registry addresses); AgentRegistryClient + LocalErc8004Port.
- @settlekit/erc8183: autonomous-agent job lifecycle (create→fund→submit→evaluate→settle/refund) as a validated state machine; JobClient + LocalErc8183Port.
- @settlekit/arc-chains: single source of truth for Arc/Circle chain + token + contract constants.

Extensions:
- app-kit swap: slippage tolerance + custom swap-fee collection (Stablecoin-FX monetization), validateBps, LocalAppKitSdk.lastSwapConfig().
- circle-wallets: Developer-Controlled-Wallet contract execution + transaction polling (drives ERC-8004/8183 on-chain).

1130 tests across 192 suites, typecheck + full build green.
2026-06-20 19:08:41 +03:00
a93f04ef8d feat(app-kit): Circle App Kit on Arc — Send/Bridge/Swap/Unified Balance + settlement bridge
- @settlekit/app-kit: port/adapter wrapper over @circle-fin/app-kit (zero new external dep; consumer injects new AppKit()).
- Validated, Result-typed ArcPaymentClient: send/estimateSend/bridge/swap/deposit/spend with chain+token allow-lists, kit-key gating for swap, normalized TransferResult, typed SettleKitError mapping (retryable integration_error vs payment_failed).
- LocalAppKitSdk: deterministic in-memory client for tests/demos.
- ArcSettlementProvider: implements settlement-core SettlementProvider via arc.send() with withIdempotency — the 'go live on Arc' seam for the worker's settlement jobs.
- 22 tests; covers eCommerce checkout (send/bridge) and Stablecoin FX (swap) use-cases.
2026-06-20 18:55:10 +03:00