Merged
Conversation
basfroman
previously approved these changes
Nov 3, 2025
thewhaleking
previously approved these changes
Nov 4, 2025
|
|
||
| if result is None: | ||
| return "Swap" | ||
| return next(iter(result.keys())) |
Contributor
There was a problem hiding this comment.
This can never have more than one entry, or is this one of those dumb scenarios where we get back like {"Swap": ()} from subtensor?
Collaborator
Author
There was a problem hiding this comment.
Yess we get it back like {'Keep': ()}
Comment on lines
+909
to
+922
| block_hash = await subtensor.substrate.get_chain_head() | ||
| ( | ||
| all_subnets, | ||
| root_state, | ||
| identities, | ||
| old_identities, | ||
| root_claim_types, | ||
| ) = await asyncio.gather( | ||
| subtensor.all_subnets(block_hash=block_hash), | ||
| subtensor.get_subnet_state(netuid=0, block_hash=block_hash), | ||
| subtensor.query_all_identities(block_hash=block_hash), | ||
| subtensor.get_delegate_identities(block_hash=block_hash), | ||
| subtensor.get_all_coldkeys_claim_type(block_hash=block_hash), | ||
| ) |
Contributor
|
Would prefer if we had a test. |
4318006
Collaborator
Author
|
Agreed agreed - will add tests in another PR in favour of rolling this out fast |
basfroman
approved these changes
Nov 4, 2025
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 support
New commands
1.
btcli stake set-claimorbtcli stake claimImportant
Displays existing claim settings and allows you to update it
In the future, this command will allow to set claim types per netuid when support is added to the chain
2.
btcli stake process-claimImportant
Allows users to manually process their unclaimed emissions for an extrinsic fee
A maximum of 5 netuids can be processed at a time
Enhancements to existing commands
3.
btcli subnet metagraph --netuid 0Important
Displays current claim type for all validators on root
4.
btcli subnet metagraph --netuid 14Important
Displays current claim type for neuron participants in a subnet.
Only neurons who have stake on root will have their claim type
5.
btcli stake listImportant
Now displays claimable amount for each subnet as a new column
5.
btcli stake list --liveImportant
Also supports showing claimable stake in live version