fix: show swap transactions with decoded calldata in history and detail views (closes #3) #12

Closed
clawbot wants to merge 4 commits from fix/swap-tx-display into main

4 Commits

Author SHA1 Message Date
efc5404d6d Show decoded calldata in transaction detail view
All checks were successful
check / check (push) Successful in 22s
Add decoded transaction summary (matching the approval screen
format) to the transaction detail view. For unknown contract
calls, show 'Unknown Contract Call' label with full raw
calldata hex (not truncated).
2026-02-27 12:05:21 -08:00
497d011b3c Classify transactions by decoded calldata in history
Use the shared decodeCalldata module to detect Uniswap swaps,
token approvals, and unknown contract calls in parseTx. Swaps
now show 'Swap TOKEN_A → TOKEN_B' instead of 'Sent'. Unknown
contract calls show 'Contract Call'. Raw input and decoded
data are passed through for the detail view.
2026-02-27 12:05:17 -08:00
93aecc87ef Use shared decodeCalldata in approval view
Replace the local decodeCalldata function in approval.js with
an import from the new shared module.
2026-02-27 12:05:11 -08:00
b2c947bfb7 Extract decodeCalldata to shared module
Move the calldata decoding logic (ERC-20 and Uniswap) from
approval.js into src/shared/decodeCalldata.js so it can be
reused by both the approval screen and transaction history.
2026-02-27 12:05:08 -08:00