4 Commits

Author SHA1 Message Date
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
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
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