File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -5810,11 +5810,18 @@ def subnets_set_symbol(
5810
5810
symbol : str = typer .Argument (help = "The symbol to set for your subnet." ),
5811
5811
):
5812
5812
"""
5813
- Allows the user to update their subnet symbol.
5813
+ Allows the user to update their subnet symbol to a different available symbol. The full list of available symbols can be found here:
5814
+ [#8CB9E9]https://github.com/opentensor/subtensor/blob/main/pallets/subtensor/src/subnets/symbols.rs#L8[/#8CB9E9]
5815
+
5814
5816
5815
5817
EXAMPLE
5816
5818
5817
- [green]$[/green] btcli subnets set-symbol --netuid 1 シ
5819
+ [green]$[/green] btcli subnets set-symbol [dark_orange]--netuid 1 シ[/dark_orange]
5820
+
5821
+
5822
+ JSON OUTPUT:
5823
+ If --json-output is used, the output will be in the following schema:
5824
+ [#AFEFFF]{success: [dark_orange]bool[/dark_orange], message: [dark_orange]str[/dark_orange]}[/#AFEFFF]
5818
5825
"""
5819
5826
self .verbosity_handler (quiet , verbose , json_output )
5820
5827
if len (symbol ) > 1 :
Original file line number Diff line number Diff line change @@ -2458,7 +2458,12 @@ async def set_symbol(
2458
2458
prompt : bool = False ,
2459
2459
json_output : bool = False ,
2460
2460
) -> bool :
2461
- """Set a subtensor's symbol"""
2461
+ """
2462
+ Set a subtensor's symbol, given the netuid and symbol.
2463
+
2464
+ The symbol must be a symbol that subtensor recognizes as available
2465
+ (defined in https://github.com/opentensor/subtensor/blob/main/pallets/subtensor/src/subnets/symbols.rs#L8)
2466
+ """
2462
2467
if not await subtensor .subnet_exists (netuid ):
2463
2468
err = f"Subnet { netuid } does not exist."
2464
2469
if json_output :
You can’t perform that action at this time.
0 commit comments