Skip to content

Implement dashboard wallet network guard - #200

Merged
El-swaggerito merged 1 commit into
Axionvera:mainfrom
panditdhamdhere:feat/wallet-network-guard
Jul 30, 2026
Merged

Implement dashboard wallet network guard#200
El-swaggerito merged 1 commit into
Axionvera:mainfrom
panditdhamdhere:feat/wallet-network-guard

Conversation

@panditdhamdhere

Copy link
Copy Markdown
Contributor

Summary

  • add a centralized wallet network guard for sensitive dashboard actions
  • detect Freighter network changes through polling and focus refresh
  • block transfer, mint, and whitelist signing on mismatch
  • warn without blocking dashboard-local compliance and asset registration actions
  • add clear recovery guidance, fixtures, tests, and documentation

Testing

  • npx tsc --noEmit
  • npx vitest run
  • npm run lint
  • npm run build

Closes #180

Adds a per-action wallet network guard that blocks signing actions and warns
on dashboard-local actions when Freighter is on a different network than the
dashboard targets.

Freighter emits no network-change event and the wallet store only captured the
network at connect time, so a mid-session switch went undetected. A polling
watcher mounted at the app shell keeps the stored network current, which also
fixes the stale reading behind the existing page-level environment screen.

Closes #180
@El-swaggerito
El-swaggerito merged commit 08c5669 into Axionvera:main Jul 30, 2026
2 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.

Implement Aegis dashboard wallet network guard

2 participants