27b21d20d4
feat(examples): agent-buy scripts for Solana, EVM chains and Tempo
...
agent-buy-solana (x402 SVM via PayAI), agent-buy-evm <network> (x402 EVM
on Base/Arbitrum/Ethereum/HyperEVM/Robinhood) and agent-buy-tempo (MPP via
the mppx client with a spend guard). Adds resolveX402Network to
@settlekit/x402-client for registry network names.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 18:48:17 +03:00
b1e89f8e82
feat(arc): real ERC-8183 ABI + Circle DCW adapters + runnable example scripts
...
- erc8183-viem: rewritten to the REAL deployed AgenticCommerce ABI/address (createJob/setBudget/approve+fund/submit/complete/getJob, JobCreated jobId decode, status enum, USDC 6-dec); refund now throws (no on-chain function).
- @settlekit/erc8004-dcw + @settlekit/erc8183-dcw: Circle Developer-Controlled-Wallet adapters via circle-wallets contract-execution + polling (injected keccak + reader; no viem dep).
- circle-wallets: ARC/ARC-TESTNET added to CircleBlockchain.
- apps/examples: runnable offline erc8004-agent + erc8183-job lifecycle demos (Local ports; live viem/DCW wiring documented).
- 1302 tests / 213 suites, typecheck + full build green.
2026-06-20 23:57:15 +03:00
7d0589fb2e
feat(arc): live viem adapters (erc8004/erc8183/app-kit) + worker Arc settlement wiring
...
- @settlekit/erc8004-viem: viem adapter implementing Erc8004Port against deployed ERC-8004 registries (real ABIs, keccak256 hash derivation, Transfer-log agentId lookup).
- @settlekit/erc8183-viem: ABI-injectable viem adapter for Erc8183Port.
- @settlekit/app-kit-viem: viem-backed AppKitSdk (USDC ERC-20 transfer for Send + estimate; bridge/swap/unified throw a clear unsupported error).
- apps/worker: env-gated Arc settlement provider (SETTLEMENT_PROVIDER=arc) via app-kit-viem -> configureAppKit -> ArcSettlementProvider, falling back to local when unconfigured (default unchanged).
- apps/examples: Arc-commerce checkout demo (offline via LocalAppKitSdk).
- fixes: viem chain/account typing, app-kit-viem unsupported methods made async.
1233 tests / 208 suites, typecheck + full build green.
2026-06-20 23:42:01 +03:00
52661d9063
feat(examples): one-command Lepton nanopayments end-to-end demo
...
Add `pnpm --filter @settlekit/examples lepton` — a narrated, runnable demo that
exercises the real @settlekit packages across all four Lepton creator-payment
flows in one command:
Act 1 RFB 6 an AI agent pays an x402 citation toll to ground an answer
Act 2 RFB 6 per-listen royalties (skips free, plays charged)
Act 3 RFB 4 per-second streaming (accrue watched time, refund the reserve)
Act 4 RFB 6 OSS fund: engine-split budget, per-leg conserved, one-tx calldata
Everything settles over the local settlement provider (offline, no creds);
SETTLEMENT_PROVIDER=circle flips the identical flows to real Arc testnet USDC.
Wires the sidecars + oss-fund + settlement-core + x402-client into apps/examples
(deps + project references) and prints the total test-USDC moved. Built for the
<3min submission video / hands-on judging. Full suite 906 green; tsc -b clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 22:42:30 +03:00
598cd03f05
feat: implement all 8 SettleKit apps + fix x402 nonce round-trip
...
apps:
- api: Hono REST server, all §26 endpoints, 14 tests
- worker: delivery runner + payment-confirm + access-sync + renewal + webhook-retry jobs wired to real package clients
- dashboard: Next.js merchant dashboard, full §16/§27 sections + §28 product builder
- checkout: Next.js hosted USDC checkout with real delivery materialization
- marketplace: Next.js public marketplace + agent metadata.json route
- admin: Next.js risk/ops console wired to @settlekit/risk + database
- docs: Next.js docs site (9 static routes)
- examples: 5 runnable end-to-end examples
fix(x402): support pinned config.nonce so a stateless verifier can confirm
the challenge nonce round-trips (default stays random; package tests intact).
Full workspace: 590 tests passing (122 files), tsc green for all packages +
api/worker/examples, all 5 Next apps typecheck clean, docs next build green.
2026-06-15 10:49:14 +03:00
3fe0c88942
feat: implement all 77 SettleKit packages with real code
...
Core engine: entitlements (§14), delivery action runner (§21).
Payment rails: arc (viem USDC verify), circle (REST), x402 middleware, payments, webhooks (HMAC), notifications (Resend).
Integrations: github (Octokit App), discord (REST v10).
Commerce: saas billing, bundles, license-keys, api-keys, file-delivery (signed URLs + SigV4), usage/credits, agent-services, escrow, marketplace-core, risk.
Persistence: database (Drizzle/Postgres, 48 tables §25).
Plus supporting domain packages.
561 tests passing across 117 files; tsc -b green for every package.
2026-06-15 03:24:19 +03:00
4afda54455
feat: monorepo scaffold + @settlekit/common contract package
...
- pnpm workspace, shared tsconfig, vitest
- common: ids, money (USDC base-unit math), Result/SettleKitError, time
- domain types: product, customer, payment, entitlement, delivery, integration
- 13 passing contract tests
2026-06-15 02:55:22 +03:00