Skip to content

Restore wallet registration overview - #3079

Draft
UnArbosFive wants to merge 1 commit into
mainfrom
restore-wallet-registrations
Draft

Restore wallet registration overview#3079
UnArbosFive wants to merge 1 commit into
mainfrom
restore-wallet-registrations

Conversation

@UnArbosFive

Copy link
Copy Markdown
Contributor

Problem

wallet overview now presents a stake portfolio. That leaves miners without a single command to list all hotkeys owned by local coldkeys, their subnet registrations, UIDs, and current incentive data. Composing the existing per-hotkey and per-subnet queries also misses the old overview workflow, especially for registered hotkeys with no alpha stake.

Root cause

The current overview derives its rows from stake positions. Ownership and subnet membership are separate chain state, so an owned registered miner can be absent from that view when the coldkey has no stake on it.

Fix

  • Add btcli wallet registrations, with --all and optional --netuid filtering.
  • Discover hotkeys from coldkey ownership and subnet membership at one pinned block.
  • Resolve each registration's UID and fetch its neuron metrics, including incentive, dividends, emission, activity, update age, and axon endpoint.
  • Keep a compact human-readable table while exposing the complete record in JSON mode.
  • Leave the stake-focused wallet overview behavior unchanged.

Validation

  • Added a regression case for an owned, registered miner with zero stake, covering UID, incentive, emission, update age, and axon output.
  • python -m pytest tests/unit/test_cli.py -q — 40 passed.
  • python -m pytest tests/unit -q — 1,094 passed, 1 skipped.
  • ruff format --check and ruff check pass for all changed files.

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
subtensor Ready Ready Preview Aug 12, 2026 10:21pm

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