Skip to content

feat: ERC-4337 smart account classification + admin wallet type override#164

Merged
danbuildss merged 1 commit into
mainfrom
claude/luca-aeon-skills-caYGZ
Jun 29, 2026
Merged

feat: ERC-4337 smart account classification + admin wallet type override#164
danbuildss merged 1 commit into
mainfrom
claude/luca-aeon-skills-caYGZ

Conversation

@danbuildss

Copy link
Copy Markdown
Owner

Summary

  • ERC-4337 detection in address-classifier.ts — adds validateUserOp selector check (0x3a871cdd) before the smart_contract fallback. Smart accounts (Abstract, Coinbase, Biconomy, ZeroDev, etc.) now classify as smart_account instead of smart_contract
  • Books eligibility in wallet-eligibility.tssmart_account added to BOOKS_ELIGIBLE_ADDRESS_TYPES so manifest-declared smart accounts produce attributed revenue
  • New admin endpoint PATCH /api/admin/registry/update-wallet-type — override a wallet's address_type without raw SQL
  • Admin UI card in /luca-admin — Wallet Type Override form: address input + type dropdown + submit

Why

Agents running on ERC-4337 smart accounts (increasingly common) submitted wallets via manifest but showed "not valid for books" because the classifier saw bytecode and fell through to smart_contract. This fixes the classification permanently for future submissions and provides an admin override for existing affected wallets (e.g. Skopos).

Manual step after merge

Use the new Wallet Type Override card in luca-admin to fix Skopos's existing wallet row — set address_type to smart_account. No SQL needed.


Generated by Claude Code

- address-classifier: detect ERC-4337 accounts via validateUserOp selector
  (0x3a871cdd) before falling back to smart_contract; new smart_account type
- wallet-eligibility: add smart_account to BOOKS_ELIGIBLE_ADDRESS_TYPES so
  manifest-declared smart accounts produce attributed books
- new PATCH /api/admin/registry/update-wallet-type endpoint to manually correct
  misclassified wallet address_type without raw SQL
- luca-admin: Wallet Type Override card — input address + dropdown override type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjpGP3kYKnQuQAUoK6RZky
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zetta Ready Ready Preview, Comment Jun 29, 2026 7:05am

@danbuildss danbuildss merged commit 2daaf6c into main Jun 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants