Skip to content

v0.1.0: spending limits for AI agents, enforced on-chain

Choose a tag to compare

@ahmad-codex ahmad-codex released this 20 Oct 20:44
· 7 commits to main since this release
56a3ca5

Added

  • PurserAccount: ERC-4337 v0.7 account with an owner and session keys. Each key has an allow-list of
    (contract, function) pairs, per-transaction caps and per-period budgets for ETH and ERC-20
    tokens, and a validity window. Over-limit operations run with the owner's co-signature. Revoke,
    freeze, ERC-1271, UUPS upgrades by the owner.
  • PurserFactory: CREATE2 factory for ERC-1967 proxies.
  • Foundry tests: unit tests through a real EntryPoint, fuzz tests against a budget model, and
    invariant tests for budgets, revocation and policy integrity. Slither configuration.
  • Deploy script with a deterministic factory address, and a demo seed script.
  • @purser/sdk: viem client that builds, signs and submits user operations through a bundler
    or handleOps, decodes policy errors, and reads state and events within public RPC log limits.
  • @purser/server: MCP server (streamable HTTP and stdio) with wallet_status, send_eth,
    send_token, call_contract, get_request and list_requests, an approvals API, and the
    console.
  • Console: balances, per-agent budget meters, approvals, activity, revoke and freeze.
  • ghcr.io/ahmad-codex/purser:demo: one docker run starts a chain, deploys, seeds an agent, serves the console and plays the demo story.
  • docker compose up for a local chain with a seeded demo, scripts/demo.ts end-to-end demo,
    scripts/deploy-testnet.sh for Base Sepolia and Sepolia.