bittensor-cli 9.21.0__tar.gz → 9.21.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/PKG-INFO +3 -3
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/cli.py +37 -36
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/pyproject.toml +3 -3
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/README.md +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/doc_generation_helper.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/balances.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/chain_data.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/mev_shield.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/registration.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/root.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/serving.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/transfer.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/minigraph.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/networking.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/subtensor_interface.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/main-filters.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/main-header.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/neuron-details.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/price-multi.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/price-single.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/subnet-details-header.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/subnet-details.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/subnet-metrics.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/subnets-table.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/table.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/view.css +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/view.j2 +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/view.js +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/utils.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/axon/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/axon/axon.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/contribute.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/contributors.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/create.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/dissolve.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/refund.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/update.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/utils.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/view.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/liquidity/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/liquidity/liquidity.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/liquidity/utils.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/proxy.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/add.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/auto_staking.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/children_hotkeys.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/claim.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/list.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/move.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/remove.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/wizard.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/subnets/__init__.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/subnets/mechanisms.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/subnets/price.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/subnets/subnets.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/sudo.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/view.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/wallets.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/weights.py +0 -0
- {bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bittensor-cli
|
|
3
|
-
Version: 9.21.
|
|
3
|
+
Version: 9.21.1
|
|
4
4
|
Summary: Bittensor CLI
|
|
5
5
|
Author: bittensor.com
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -19,7 +19,7 @@ Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
20
|
Classifier: Topic :: Utilities
|
|
21
21
|
Requires-Dist: wheel
|
|
22
|
-
Requires-Dist: async-substrate-interface
|
|
22
|
+
Requires-Dist: async-substrate-interface>=2.0.3,<3.0.0
|
|
23
23
|
Requires-Dist: aiohttp~=3.13
|
|
24
24
|
Requires-Dist: backoff~=2.2.1
|
|
25
25
|
Requires-Dist: bittensor-drand>=1.3.0
|
|
@@ -30,7 +30,7 @@ Requires-Dist: Jinja2
|
|
|
30
30
|
Requires-Dist: pycryptodome>=3.0.0,<4.0.0
|
|
31
31
|
Requires-Dist: PyYAML~=6.0
|
|
32
32
|
Requires-Dist: rich>=13.7,<15.0
|
|
33
|
-
Requires-Dist: cyscale>=0.3.
|
|
33
|
+
Requires-Dist: cyscale>=0.3.3,<1.0.0
|
|
34
34
|
Requires-Dist: typer>=0.16
|
|
35
35
|
Requires-Dist: typing_extensions>4.0.0; python_version<'3.11'
|
|
36
36
|
Requires-Dist: bittensor-wallet==4.0.1
|
|
@@ -585,7 +585,7 @@ def parse_mnemonic(mnemonic: str) -> str:
|
|
|
585
585
|
)
|
|
586
586
|
if int(items[0][0]) != 1:
|
|
587
587
|
print_error("Numbered mnemonics must begin with 1")
|
|
588
|
-
raise typer.Exit()
|
|
588
|
+
raise typer.Exit(1)
|
|
589
589
|
if [int(x[0]) for x in items] != list(
|
|
590
590
|
range(int(items[0][0]), int(items[-1][0]) + 1)
|
|
591
591
|
):
|
|
@@ -593,7 +593,7 @@ def parse_mnemonic(mnemonic: str) -> str:
|
|
|
593
593
|
"Missing or duplicate numbers in a numbered mnemonic. "
|
|
594
594
|
"Double-check your numbered mnemonics and try again."
|
|
595
595
|
)
|
|
596
|
-
raise typer.Exit()
|
|
596
|
+
raise typer.Exit(1)
|
|
597
597
|
response = " ".join(item[1] for item in items)
|
|
598
598
|
else:
|
|
599
599
|
response = mnemonic
|
|
@@ -639,7 +639,7 @@ def get_creation_data(
|
|
|
639
639
|
if json_path:
|
|
640
640
|
if not os.path.exists(json_path):
|
|
641
641
|
print_error(f"The JSON file '{json_path}' does not exist.")
|
|
642
|
-
raise typer.Exit()
|
|
642
|
+
raise typer.Exit(1)
|
|
643
643
|
|
|
644
644
|
if json_path and not json_password:
|
|
645
645
|
json_password = Prompt.ask(
|
|
@@ -747,7 +747,7 @@ def debug_callback(value: bool) -> None:
|
|
|
747
747
|
f"file was created using the {arg__('BTCLI_DEBUG_FILE')} environment variable, please set the value for"
|
|
748
748
|
f" the same location, and re-run this {arg__('btcli --debug')} command."
|
|
749
749
|
)
|
|
750
|
-
raise typer.Exit()
|
|
750
|
+
raise typer.Exit(1)
|
|
751
751
|
save_file_loc_ = Prompt.ask(
|
|
752
752
|
"Enter the file location to save the debug log for the previous command.",
|
|
753
753
|
default="~/.bittensor/debug-export",
|
|
@@ -1588,6 +1588,7 @@ class CLIManager:
|
|
|
1588
1588
|
f.write(
|
|
1589
1589
|
f"BTCLI {__version__}\n"
|
|
1590
1590
|
f"Async-Substrate-Interface: {importlib.metadata.version('async-substrate-interface')}\n"
|
|
1591
|
+
f"Cyscale: {importlib.metadata.version('cyscale')}\n"
|
|
1591
1592
|
f"Bittensor-Wallet: {importlib.metadata.version('bittensor-wallet')}\n"
|
|
1592
1593
|
f"Command: {' '.join(sys.argv)}\n"
|
|
1593
1594
|
f"Config: {self.config}\n"
|
|
@@ -1638,7 +1639,7 @@ class CLIManager:
|
|
|
1638
1639
|
)
|
|
1639
1640
|
if quiet and verbose:
|
|
1640
1641
|
print_error("Cannot specify both `--quiet` and `--verbose`")
|
|
1641
|
-
raise typer.Exit()
|
|
1642
|
+
raise typer.Exit(1)
|
|
1642
1643
|
if json_output and verbose:
|
|
1643
1644
|
verbosity_console_handler(3)
|
|
1644
1645
|
elif json_output or quiet:
|
|
@@ -1837,7 +1838,7 @@ class CLIManager:
|
|
|
1837
1838
|
raise typer.Exit()
|
|
1838
1839
|
else:
|
|
1839
1840
|
print_error(f"{error}")
|
|
1840
|
-
raise typer.Exit()
|
|
1841
|
+
raise typer.Exit(1)
|
|
1841
1842
|
|
|
1842
1843
|
for arg, val in args.items():
|
|
1843
1844
|
if val is not None:
|
|
@@ -2028,7 +2029,7 @@ class CLIManager:
|
|
|
2028
2029
|
print_error(
|
|
2029
2030
|
f"Proxy {name} already exists. Use `btcli config update-proxy` to update it."
|
|
2030
2031
|
)
|
|
2031
|
-
raise typer.Exit()
|
|
2032
|
+
raise typer.Exit(1)
|
|
2032
2033
|
proxy_type_val: str
|
|
2033
2034
|
if isinstance(proxy_type, ProxyType):
|
|
2034
2035
|
proxy_type_val = proxy_type.value
|
|
@@ -2439,7 +2440,7 @@ class CLIManager:
|
|
|
2439
2440
|
|
|
2440
2441
|
if mechanism_count is None or mechanism_count <= 0:
|
|
2441
2442
|
print_error(f"Subnet {netuid} does not exist.")
|
|
2442
|
-
raise typer.Exit()
|
|
2443
|
+
raise typer.Exit(1)
|
|
2443
2444
|
|
|
2444
2445
|
if mechanism_id is not None:
|
|
2445
2446
|
if mechanism_id < 0 or mechanism_id >= mechanism_count:
|
|
@@ -2447,7 +2448,7 @@ class CLIManager:
|
|
|
2447
2448
|
f"Mechanism ID {mechanism_id} is out of range for subnet {netuid}. "
|
|
2448
2449
|
f"Valid range: [bold cyan]0 to {mechanism_count - 1}[/bold cyan]."
|
|
2449
2450
|
)
|
|
2450
|
-
raise typer.Exit()
|
|
2451
|
+
raise typer.Exit(1)
|
|
2451
2452
|
return mechanism_id
|
|
2452
2453
|
|
|
2453
2454
|
if mechanism_count == 1:
|
|
@@ -2546,14 +2547,14 @@ class CLIManager:
|
|
|
2546
2547
|
f"Error: Wallet does not exist. \n"
|
|
2547
2548
|
f"Please verify your wallet information: {wallet}"
|
|
2548
2549
|
)
|
|
2549
|
-
raise typer.Exit()
|
|
2550
|
+
raise typer.Exit(1)
|
|
2550
2551
|
|
|
2551
2552
|
if validate == WV.WALLET_AND_HOTKEY and not valid[1]:
|
|
2552
2553
|
print_error(
|
|
2553
2554
|
f"Error: Wallet '{wallet.name}' exists but the hotkey '{wallet.hotkey_str}' does not. \n"
|
|
2554
2555
|
f"Please verify your wallet information: {wallet}"
|
|
2555
2556
|
)
|
|
2556
|
-
raise typer.Exit()
|
|
2557
|
+
raise typer.Exit(1)
|
|
2557
2558
|
if return_wallet_and_hotkey:
|
|
2558
2559
|
valid = utils.is_valid_wallet(wallet)
|
|
2559
2560
|
if valid[1]:
|
|
@@ -2671,7 +2672,7 @@ class CLIManager:
|
|
|
2671
2672
|
print_error(
|
|
2672
2673
|
"You have specified both the inclusion and exclusion options. Only one of these options is allowed currently."
|
|
2673
2674
|
)
|
|
2674
|
-
raise typer.Exit()
|
|
2675
|
+
raise typer.Exit(1)
|
|
2675
2676
|
|
|
2676
2677
|
if netuids:
|
|
2677
2678
|
netuids = parse_to_list(
|
|
@@ -2781,7 +2782,7 @@ class CLIManager:
|
|
|
2781
2782
|
"""
|
|
2782
2783
|
if not is_valid_ss58_address(destination_ss58_address):
|
|
2783
2784
|
print_error("You have entered an incorrect ss58 address. Please try again.")
|
|
2784
|
-
raise typer.Exit()
|
|
2785
|
+
raise typer.Exit(1)
|
|
2785
2786
|
|
|
2786
2787
|
self.verbosity_handler(quiet, verbose, json_output, prompt)
|
|
2787
2788
|
proxy = self.is_valid_proxy_name_or_ss58(proxy, announce_only)
|
|
@@ -3815,7 +3816,7 @@ class CLIManager:
|
|
|
3815
3816
|
if valid_ss58s:
|
|
3816
3817
|
ss58_addresses = valid_ss58s
|
|
3817
3818
|
else:
|
|
3818
|
-
raise typer.Exit()
|
|
3819
|
+
raise typer.Exit(1)
|
|
3819
3820
|
else:
|
|
3820
3821
|
if wallet_name:
|
|
3821
3822
|
coldkey_or_ss58 = wallet_name
|
|
@@ -3838,7 +3839,7 @@ class CLIManager:
|
|
|
3838
3839
|
if valid_ss58s:
|
|
3839
3840
|
ss58_addresses = valid_ss58s
|
|
3840
3841
|
else:
|
|
3841
|
-
raise typer.Exit()
|
|
3842
|
+
raise typer.Exit(1)
|
|
3842
3843
|
else:
|
|
3843
3844
|
wallet_name = (
|
|
3844
3845
|
coldkey_or_ss58_list[0] if coldkey_or_ss58_list else wallet_name
|
|
@@ -3897,7 +3898,7 @@ class CLIManager:
|
|
|
3897
3898
|
"This command is currently disabled as it used external APIs which are no longer "
|
|
3898
3899
|
"feasible; meanwhile a chain native data fetching solution is being investigated."
|
|
3899
3900
|
)
|
|
3900
|
-
raise typer.Exit()
|
|
3901
|
+
raise typer.Exit(1)
|
|
3901
3902
|
|
|
3902
3903
|
self.verbosity_handler(quiet, verbose, False, False)
|
|
3903
3904
|
wallet = self.wallet_ask(
|
|
@@ -4066,7 +4067,7 @@ class CLIManager:
|
|
|
4066
4067
|
if coldkey_ss58:
|
|
4067
4068
|
if not is_valid_ss58_address(coldkey_ss58):
|
|
4068
4069
|
print_error("You entered an invalid ss58 address")
|
|
4069
|
-
raise typer.Exit()
|
|
4070
|
+
raise typer.Exit(1)
|
|
4070
4071
|
else:
|
|
4071
4072
|
coldkey_or_ss58 = Prompt.ask(
|
|
4072
4073
|
"Enter the [blue]wallet name[/blue] or [blue]coldkey ss58 address[/blue]",
|
|
@@ -4568,7 +4569,7 @@ class CLIManager:
|
|
|
4568
4569
|
if coldkey_ss58:
|
|
4569
4570
|
if not is_valid_ss58_address(coldkey_ss58):
|
|
4570
4571
|
print_error("You entered an invalid ss58 address")
|
|
4571
|
-
raise typer.Exit()
|
|
4572
|
+
raise typer.Exit(1)
|
|
4572
4573
|
else:
|
|
4573
4574
|
if wallet_name:
|
|
4574
4575
|
coldkey_or_ss58 = wallet_name
|
|
@@ -4718,7 +4719,7 @@ class CLIManager:
|
|
|
4718
4719
|
if coldkey_ss58:
|
|
4719
4720
|
if not is_valid_ss58_address(coldkey_ss58):
|
|
4720
4721
|
print_error("You entered an invalid ss58 address")
|
|
4721
|
-
raise typer.Exit()
|
|
4722
|
+
raise typer.Exit(1)
|
|
4722
4723
|
else:
|
|
4723
4724
|
if wallet_name:
|
|
4724
4725
|
coldkey_or_ss58 = wallet_name
|
|
@@ -5032,12 +5033,12 @@ class CLIManager:
|
|
|
5032
5033
|
|
|
5033
5034
|
if amount <= 0:
|
|
5034
5035
|
print_error(f"You entered an incorrect stake amount: {amount}")
|
|
5035
|
-
raise typer.Exit()
|
|
5036
|
+
raise typer.Exit(1)
|
|
5036
5037
|
if Balance.from_tao(amount) > free_balance:
|
|
5037
5038
|
print_error(
|
|
5038
5039
|
f"You dont have enough balance to stake. Current free Balance: {free_balance}."
|
|
5039
5040
|
)
|
|
5040
|
-
raise typer.Exit()
|
|
5041
|
+
raise typer.Exit(1)
|
|
5041
5042
|
logger.debug(
|
|
5042
5043
|
"args:\n"
|
|
5043
5044
|
f"network: {network}\n"
|
|
@@ -5551,7 +5552,7 @@ class CLIManager:
|
|
|
5551
5552
|
print_error(
|
|
5552
5553
|
"Invalid destination hotkey ss58 address. Please enter a valid ss58 address."
|
|
5553
5554
|
)
|
|
5554
|
-
raise typer.Exit()
|
|
5555
|
+
raise typer.Exit(1)
|
|
5555
5556
|
else:
|
|
5556
5557
|
if is_valid_ss58_address(destination_hotkey):
|
|
5557
5558
|
destination_hotkey = destination_hotkey
|
|
@@ -5559,7 +5560,7 @@ class CLIManager:
|
|
|
5559
5560
|
print_error(
|
|
5560
5561
|
"Invalid destination hotkey ss58 address. Please enter a valid ss58 address or wallet name."
|
|
5561
5562
|
)
|
|
5562
|
-
raise typer.Exit()
|
|
5563
|
+
raise typer.Exit(1)
|
|
5563
5564
|
|
|
5564
5565
|
if not wallet_name:
|
|
5565
5566
|
wallet_name = Prompt.ask(
|
|
@@ -6347,7 +6348,7 @@ class CLIManager:
|
|
|
6347
6348
|
|
|
6348
6349
|
if all_netuids and netuid:
|
|
6349
6350
|
print_error("Specify either a netuid or `--all`, not both.")
|
|
6350
|
-
raise typer.Exit()
|
|
6351
|
+
raise typer.Exit(1)
|
|
6351
6352
|
|
|
6352
6353
|
if all_netuids:
|
|
6353
6354
|
netuid = None
|
|
@@ -6422,11 +6423,11 @@ class CLIManager:
|
|
|
6422
6423
|
|
|
6423
6424
|
if len(proportions) != len(children):
|
|
6424
6425
|
print_error("You must have as many proportions as you have children.")
|
|
6425
|
-
raise typer.Exit()
|
|
6426
|
+
raise typer.Exit(1)
|
|
6426
6427
|
|
|
6427
6428
|
if sum(proportions) > 1.0:
|
|
6428
6429
|
print_error("Your proportion total must not exceed 1.0.")
|
|
6429
|
-
raise typer.Exit()
|
|
6430
|
+
raise typer.Exit(1)
|
|
6430
6431
|
|
|
6431
6432
|
wallet = self.wallet_ask(
|
|
6432
6433
|
wallet_name,
|
|
@@ -6506,7 +6507,7 @@ class CLIManager:
|
|
|
6506
6507
|
)
|
|
6507
6508
|
if all_netuids and netuid:
|
|
6508
6509
|
print_error("Specify either a netuid or '--all', not both.")
|
|
6509
|
-
raise typer.Exit()
|
|
6510
|
+
raise typer.Exit(1)
|
|
6510
6511
|
if all_netuids:
|
|
6511
6512
|
netuid = None
|
|
6512
6513
|
elif not netuid:
|
|
@@ -6601,7 +6602,7 @@ class CLIManager:
|
|
|
6601
6602
|
)
|
|
6602
6603
|
if all_netuids and netuid:
|
|
6603
6604
|
print_error("Specify either a netuid or '--all', not both.")
|
|
6604
|
-
raise typer.Exit()
|
|
6605
|
+
raise typer.Exit(1)
|
|
6605
6606
|
if all_netuids:
|
|
6606
6607
|
netuid = None
|
|
6607
6608
|
elif not netuid:
|
|
@@ -7360,7 +7361,7 @@ class CLIManager:
|
|
|
7360
7361
|
print_error(
|
|
7361
7362
|
f"Take value must be between {min_value} and {max_value}. Provided value: {take}"
|
|
7362
7363
|
)
|
|
7363
|
-
raise typer.Exit()
|
|
7364
|
+
raise typer.Exit(1)
|
|
7364
7365
|
logger.debug(f"args:\nnetwork: {network}\ntake: {take}\nproxy: {proxy}\n")
|
|
7365
7366
|
result, ext_id = self._run_command(
|
|
7366
7367
|
sudo.set_take(
|
|
@@ -7542,11 +7543,11 @@ class CLIManager:
|
|
|
7542
7543
|
|
|
7543
7544
|
if amount <= 0:
|
|
7544
7545
|
print_error(f"You entered an incorrect stake and burn amount: {amount}")
|
|
7545
|
-
raise typer.Exit()
|
|
7546
|
+
raise typer.Exit(1)
|
|
7546
7547
|
|
|
7547
7548
|
if netuid == 0:
|
|
7548
7549
|
print_error("Cannot stake and burn on the root subnet.")
|
|
7549
|
-
raise typer.Exit()
|
|
7550
|
+
raise typer.Exit(1)
|
|
7550
7551
|
|
|
7551
7552
|
self._run_command(
|
|
7552
7553
|
sudo.stake_burn(
|
|
@@ -8266,18 +8267,18 @@ class CLIManager:
|
|
|
8266
8267
|
"Unable to use `--reuse-last` or `--html` when config `no-cache` is set to `True`. "
|
|
8267
8268
|
"Set the`no-cache` field to `False` by using `btcli config set` or editing the config.yml file."
|
|
8268
8269
|
)
|
|
8269
|
-
raise typer.Exit()
|
|
8270
|
+
raise typer.Exit(1)
|
|
8270
8271
|
|
|
8271
8272
|
# For Rao games
|
|
8272
8273
|
effective_network = get_effective_network(self.config, network)
|
|
8273
8274
|
if is_rao_network(effective_network):
|
|
8274
8275
|
print_error("This command is disabled on the 'rao' network.")
|
|
8275
|
-
raise typer.Exit()
|
|
8276
|
+
raise typer.Exit(1)
|
|
8276
8277
|
|
|
8277
8278
|
if reuse_last:
|
|
8278
8279
|
if netuid is not None:
|
|
8279
8280
|
console.print("Cannot specify netuid when using `--reuse-last`")
|
|
8280
|
-
raise typer.Exit()
|
|
8281
|
+
raise typer.Exit(1)
|
|
8281
8282
|
subtensor = None
|
|
8282
8283
|
else:
|
|
8283
8284
|
if netuid is None:
|
|
@@ -8604,7 +8605,7 @@ class CLIManager:
|
|
|
8604
8605
|
if coldkey_ss58:
|
|
8605
8606
|
if not is_valid_ss58_address(coldkey_ss58):
|
|
8606
8607
|
print_error(f"Invalid SS58 address: {coldkey_ss58}")
|
|
8607
|
-
raise typer.Exit()
|
|
8608
|
+
raise typer.Exit(1)
|
|
8608
8609
|
wallet = None
|
|
8609
8610
|
else:
|
|
8610
8611
|
wallet = self.wallet_ask(
|
|
@@ -10219,7 +10220,7 @@ class CLIManager:
|
|
|
10219
10220
|
"""
|
|
10220
10221
|
if from_tao is None and from_rao is None:
|
|
10221
10222
|
print_error("Specify `--rao` and/or `--tao`.")
|
|
10222
|
-
raise typer.Exit()
|
|
10223
|
+
raise typer.Exit(1)
|
|
10223
10224
|
if from_rao is not None:
|
|
10224
10225
|
rao = int(float(from_rao))
|
|
10225
10226
|
console.print(
|
|
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "bittensor-cli"
|
|
7
|
-
version = "9.21.
|
|
7
|
+
version = "9.21.1"
|
|
8
8
|
description = "Bittensor CLI"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -29,7 +29,7 @@ classifiers = [
|
|
|
29
29
|
]
|
|
30
30
|
dependencies = [
|
|
31
31
|
"wheel",
|
|
32
|
-
"async-substrate-interface
|
|
32
|
+
"async-substrate-interface>=2.0.3,<3.0.0",
|
|
33
33
|
"aiohttp~=3.13",
|
|
34
34
|
"backoff~=2.2.1",
|
|
35
35
|
"bittensor-drand>=1.3.0",
|
|
@@ -40,7 +40,7 @@ dependencies = [
|
|
|
40
40
|
"pycryptodome>=3.0.0,<4.0.0",
|
|
41
41
|
"PyYAML~=6.0",
|
|
42
42
|
"rich>=13.7,<15.0",
|
|
43
|
-
"cyscale>=0.3.
|
|
43
|
+
"cyscale>=0.3.3,<1.0.0",
|
|
44
44
|
"typer>=0.16",
|
|
45
45
|
"typing_extensions>4.0.0; python_version<'3.11'",
|
|
46
46
|
"bittensor-wallet==4.0.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/__init__.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/mev_shield.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/registration.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/root.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/serving.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/extrinsics/transfer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/subtensor_interface.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/main-filters.j2
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/main-header.j2
RENAMED
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/price-multi.j2
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/price-single.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/subnets-table.j2
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/table.j2
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/bittensor/templates/view.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/contribute.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/crowd/contributors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/liquidity/__init__.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/liquidity/liquidity.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/auto_staking.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/stake/children_hotkeys.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/subnets/__init__.py
RENAMED
|
File without changes
|
{bittensor_cli-9.21.0 → bittensor_cli-9.21.1}/bittensor_cli/src/commands/subnets/mechanisms.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|