Feat: AI analysis foundation#218
Merged
MatiasOS merged 24 commits intoopenscan-explorer:release/v1.2.1-afrom Feb 13, 2026
Merged
Feat: AI analysis foundation#218MatiasOS merged 24 commits intoopenscan-explorer:release/v1.2.1-afrom
MatiasOS merged 24 commits intoopenscan-explorer:release/v1.2.1-afrom
Conversation
…e component styling\n- Update CSS styles for improved visual consistency\n- Add Spanish translations for settings updates
|
🚀 Preview: https://pr-218--openscan.netlify.app |
c9d86b8 to
6c25795
Compare
- Add aiAnalysis.sectionTitle to English and Spanish address translations
- Wrap AccountDisplay, ERC20Display, ERC721Display, ERC1155Display in page-with-analysis 2-column grid layout - Add AIAnalysis panel to each display with appropriate analysis type (account for EOA, contract for token displays) - Build context objects with address data, token metadata, and verification status per display type - Add onTransactionsChange callback to TransactionHistory to expose loaded transactions to AccountDisplay for richer AI context - Include recent transaction summaries (first 10 txs) in EOA context
- Thread app language through AIAnalysis -> useAIAnalysis -> AIService -> AIPromptTemplates - Add language instruction to all prompt templates so AI responds in the user's selected language (e.g., Spanish when app is set to es) - Default to English with no extra instruction for en locale
Use @erc7730/sdk ClearSigner to decode transaction calldata into human-readable format (intent, formatted fields, security warnings) before sending context to the LLM.
Conditionally inject system prompt hint when erc7730Intent is present in the context, instructing the LLM to use decoded fields and highlight security warnings.
- Add 2-column layout with AI analysis panel on the right - Build rich context from tx data, decoded input, event logs, L2 fields, and ERC-7730 pre-analysis for LLM consumption - Add i18n keys for transaction AI analysis section (en + es)
AugustoL
reviewed
Feb 13, 2026
AugustoL
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the AI analysis foundation across EVM pages, including a reusable analysis panel, provider-agnostic AI service, prompt templates, caching, and settings-managed API keys, plus enriched transaction context via ERC-7730 pre-analysis and contract/ABI summarization.
Related Issue
Closes #170
Type of Change
Changes Made
Screenshots (if applicable)
Example images:

Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes