Skip to content

feat: import multisig wallets by Subscan address lookup - #249

Merged
freehere107 merged 2 commits into
masterfrom
codex/import-multisig-address
Oct 8, 2026
Merged

freehere107 merged 2 commits into
masterfrom
codex/import-multisig-address

Conversation

@freehere107

@freehere107 freehere107 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Users switching browsers can now add a known multisig by address from the wallet list or empty state. The selected network's Subscan search API supplies members and threshold; the UI previews them and saves a persistent local configuration only after user confirmation. No transaction is signed or submitted.

  • Validate member uniqueness, threshold, network limits, and the derived public key before importing; compare public keys independently of SS58 prefixes.
  • Reuse the configured API key and expose its settings from the import dialog.
  • Distinguish missing configuration, API/auth failures, unsupported networks, and address mismatches. Offer manual member entry as a fallback.
  • Invalidate pending lookups on address edits, closing the dialog, or network changes.
  • Apply the same response validation to existing Subscan detail recovery.
  • Keep long wallet names and addresses within fixed table columns, preserve horizontal status and action controls, and use a shortened address as the default imported wallet name.

Network scope

The endpoint remains network-specific (/api/v2/scan/search). Backend source has a global multisig index fallback, but requires the account to exist in the queried network. This UI does not enumerate all networks or imply complete global coverage.

Validation

  • npm run check: lint, 19 unit tests, type checking, and production build passed.
  • Stylelint passed.
  • Verified the populated wallet list in the local browser with a full-address wallet name and a large DOT balance; status and action controls remain visible.
  • Browser checks on Asset Hub Paseo: empty-state entry, Chinese dialog, invalid-address rejection, and real missing-API-key response.
  • Offline tests cover valid configurations with different SS58 prefixes/member order, mismatches, duplicate keys, thresholds, network limits, and API failures.

Remaining validation

An authenticated successful lookup and persistent import still need an end-to-end check. The public Asset Hub Paseo endpoint returned code 403 without an API key. No production release is included.

@freehere107
freehere107 marked this pull request as ready for review October 8, 2026 03:20
@freehere107
freehere107 merged commit 0174d9b into master Oct 8, 2026
2 of 3 checks passed
@freehere107
freehere107 deleted the codex/import-multisig-address branch October 8, 2026 03:20
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