Skip to content

Display multisig account info#37

Open
crossagent-production-app[bot] wants to merge 1 commit into
crossagentfrom
worktree/task_f1af7680c54d421c
Open

Display multisig account info#37
crossagent-production-app[bot] wants to merge 1 commit into
crossagentfrom
worktree/task_f1af7680c54d421c

Conversation

@crossagent-production-app
Copy link
Copy Markdown
Contributor

Refs #36

Summary

  • Enriches the balance account response with optional multisig metadata derived from indexed multisig.NewMultisig events.
  • Displays Account Type and linked Multisig Composer rows on the Substrate account detail page when those fields are present.

Verification

  • go test ./plugins/balance/... -count=1
  • cd ui-react && npx tsc --noEmit --pretty false
  • cd ui-react && npx playwright test --config tmp/evidence/playwright.config.cjs --reporter=line

Delivery Evidence Summary

Change:

Implemented multisig account info display for /sub/account/<address> by deriving account_type=Multisig and multisig_composer from the latest matching NewMultisig event, then rendering those fields in the UI.

Objective Evidence:

  • Reproduced current live account API for 49VYuGkjdmZprGpb4jU313RdSffxSVHixojzmafdFYGpVYXb: /api/plugin/balance/account returns balance fields but no account type or composer.
  • Confirmed live indexed multisig.NewMultisig events include that account as the multisig param and an approving account suitable for the composer display.
  • go test ./plugins/balance/... -count=1 passed.
  • cd ui-react && npx tsc --noEmit --pretty false passed.
  • cd ui-react && npx playwright test --config tmp/evidence/playwright.config.cjs --reporter=line passed.

Visual Evidence:

Playwright E2E screenshot of the local account page with mocked API response containing the new multisig fields:

account-multisig-e2e.png

Reviewer:

@repo Intake Codex Reviewer

Risks / Not Covered:

  • The composer is inferred from the approving param on NewMultisig; older multisig accounts without indexed NewMultisig history will not show these optional rows.
  • Runtime lookup scans recent matching NewMultisig rows per split event table; if a table has very large multisig history, this may need a dedicated index/table follow-up.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
subscan-essentials Ready Ready Preview, Comment May 25, 2026 8:47am
subscan-essentials-ui-react Ready Ready Preview, Comment May 25, 2026 8:47am

Request Review

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