Feat/Root claim update for netuids#722
Merged
ibraheem-abe merged 22 commits intostagingfrom Dec 4, 2025
Merged
Conversation
basfroman
previously approved these changes
Nov 26, 2025
Comment on lines
+1054
to
+1074
| def parse_subnet_range(input_str: str, total_subnets: int) -> list[int]: | ||
| """ | ||
| Parse subnet range input like "1-24, 30-40, 5". | ||
|
|
||
| Args: | ||
| input_str: Comma-separated list of subnets and ranges | ||
| Examples: "1-5", "1,2,3", "1-5, 10, 20-25" | ||
| total_subnets: Total number of subnets available | ||
|
|
||
| Returns: | ||
| Sorted list of unique subnet IDs | ||
|
|
||
| Raises: | ||
| ValueError: If input format is invalid | ||
|
|
||
| Examples: | ||
| >>> parse_subnet_range("1-5, 10") | ||
| [1, 2, 3, 4, 5, 10] | ||
| >>> parse_subnet_range("5, 3, 1") | ||
| [1, 3, 5] | ||
| """ |
basfroman
approved these changes
Nov 26, 2025
This was referenced Dec 6, 2025
Closed
Closed
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root stake claim update for netuids
Updated commands
1.
btcli stake claimImportant
Walks through the steps of selecting > Swap vs Keep
Prompts which subnets to Swap or Keep
2.
btcli stake claim keep --netuids 1-20, 40-128Important
Allows to directly set netuids to keep
Using
btcli stake claim keepwill setkeepfor all subnets.3.
btcli stake claim swap --netuids 1-20, 40-128Important
Allows to directly set netuids to swap
Using
btcli stake claim swapwill setswapfor all subnets.Enhancements to existing commands
4.
btcli subnet metagraph --netuid 0Important
Now displays a breakdown of validator's root claim settings. Eg: Keep (5) -> Validator is keeping alpha for 5 subnets
5.
btcli subnet metagraph --netuid 14Important
Displays current claim type for validators in the subnet
Only neurons who have stake on root will have their claim type