-
Notifications
You must be signed in to change notification settings - Fork 198
feat: upsert second-class EVM chain Txs #11455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughAdds chain-adapter-based transaction parsing and upserting to txHistory for confirmed send and swap actions on second-class chains; parsing is attempted before action completion, errors are caught and logged so failures don't interrupt the action flow. Changes
Sequence Diagram(s)sequenceDiagram
participant Hook as Action Subscriber Hook
participant CAM as Chain Adapter Manager
participant History as txHistory Slice
participant Store as Redux Store
Note over Hook: Send/Swap action confirmed
alt second-class chain detected
Hook->>CAM: getChainAdapterManager().parsePath(txRaw)
alt parse success
CAM-->>Hook: parsedTx
Hook->>History: txHistory.upsertTxs(parsedTx)
History->>Store: dispatch(upsert action)
Store-->>History: state updated
else parse fails
CAM-->>Hook: error
Hook->>Hook: log error (silent)
end
end
Note over Hook: Complete action & clear polling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (6)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{tsx,jsx}📄 CodeRabbit inference engine (.cursor/rules/error-handling.mdc)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/naming-conventions.mdc)
Files:
**/*.{jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)
Files:
**/*.tsx📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)
Files:
🧠 Learnings (17)📓 Common learnings📚 Learning: 2025-08-22T15:07:18.021ZApplied to files:
📚 Learning: 2025-08-22T14:59:04.889ZApplied to files:
📚 Learning: 2025-12-17T14:50:01.629ZApplied to files:
📚 Learning: 2025-08-22T13:16:12.721ZApplied to files:
📚 Learning: 2025-09-08T15:53:09.362ZApplied to files:
📚 Learning: 2025-08-22T12:58:26.590ZApplied to files:
📚 Learning: 2025-09-12T13:44:17.019ZApplied to files:
📚 Learning: 2025-08-25T12:58:39.547ZApplied to files:
📚 Learning: 2025-09-04T10:18:34.140ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-08-14T17:54:32.563ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
🧬 Code graph analysis (1)src/hooks/useActionCenterSubscribers/useSendActionSubscriber.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
NeOMakinG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved merge conflict by keeping both imports: - getChainAdapterManager (used for parsing Txs) - getHyperEvmTransactionStatus (used for HyperEVM status check) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>



Description
Does precisely what it says on the box!
Ideally, wait for #11451, #11449, #11447 to go in so that
parseTx()implementation are there (for missing ones)/better (proper parsing of all transfers including internal transactions), so doesn't harm to get this as-is ATM.Issue (if applicable)
closes #11433
Risk
Low - isolated to second-class
Testing
Engineering
Operations
Screenshots (if applicable)
https://jam.dev/c/fd3929dc-11d4-43ac-b338-c1b651192364
https://jam.dev/c/b84a9c3d-3705-4cda-aec4-5380a02437fb
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.