Skip to content

Add transaction history with receipt polling and UI#7

Merged
wakamex merged 1 commit intomainfrom
feat/transaction-history
Mar 1, 2026
Merged

Add transaction history with receipt polling and UI#7
wakamex merged 1 commit intomainfrom
feat/transaction-history

Conversation

@wakamex
Copy link
Owner

@wakamex wakamex commented Mar 1, 2026

Summary

  • Persist decoded transaction data at sign time into state.main.txHistory (keyed by lowercase address, capped at 200 entries)
  • Poll eth_getTransactionReceipt every 15s via new TxTracker class to update pending tx status to confirmed/failed
  • Add a History view in the sidebar with status badges (green/yellow/red), decoded method names, and block explorer links
  • State migration 44 adds txHistory: {} for existing users

Test plan

  • npx tsc --noEmit --project tsconfig.build.json passes
  • npm run bundle builds cleanly
  • npm run test:unit:main -- 853 tests pass
  • All pre-push tests pass (1024 total)
  • Manual: approve a transaction, verify it appears in History view as "pending"
  • Manual: wait for confirmation, verify status updates to "confirmed" with block number
  • Manual: click "Explorer" link, verify block explorer opens for the tx hash
  • Manual: click "Clear", confirm dialog, verify history is emptied

🤖 Generated with Claude Code

Record decoded transaction data at sign time, poll for confirmations via
eth_getTransactionReceipt, and show a chronological history view with
status badges, decoded descriptions, and explorer links.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wakamex wakamex merged commit 5a34e89 into main Mar 1, 2026
1 check failed
wakamex added a commit that referenced this pull request Mar 2, 2026
Resolve conflicts across shared files. All migrations (43, 44, 45) now
registered. _version stays at 45. Verified Chains.send signature and
approveTransactionRequest callback type match txHash usage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
wakamex added a commit that referenced this pull request Mar 2, 2026
Resolve conflicts across shared files. All migrations (43, 44, 45) now
registered. _version stays at 45. Verified Chains.send signature and
approveTransactionRequest callback type match txHash usage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant