bittensor-cli 9.0.0rc1__py3-none-any.whl → 9.0.0rc2__py3-none-any.whl
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/__init__.py +1 -1
- bittensor_cli/cli.py +2 -2
- bittensor_cli/src/__init__.py +3 -1
- bittensor_cli/src/commands/stake/children_hotkeys.py +2 -4
- bittensor_cli/src/commands/subnets/subnets.py +20 -8
- {bittensor_cli-9.0.0rc1.dist-info → bittensor_cli-9.0.0rc2.dist-info}/METADATA +2 -2
- {bittensor_cli-9.0.0rc1.dist-info → bittensor_cli-9.0.0rc2.dist-info}/RECORD +10 -10
- {bittensor_cli-9.0.0rc1.dist-info → bittensor_cli-9.0.0rc2.dist-info}/WHEEL +0 -0
- {bittensor_cli-9.0.0rc1.dist-info → bittensor_cli-9.0.0rc2.dist-info}/entry_points.txt +0 -0
- {bittensor_cli-9.0.0rc1.dist-info → bittensor_cli-9.0.0rc2.dist-info}/top_level.txt +0 -0
bittensor_cli/__init__.py
CHANGED
bittensor_cli/cli.py
CHANGED
@@ -65,7 +65,7 @@ except ImportError:
|
|
65
65
|
pass
|
66
66
|
|
67
67
|
|
68
|
-
__version__ = "9.0.
|
68
|
+
__version__ = "9.0.0rc2"
|
69
69
|
|
70
70
|
|
71
71
|
_core_version = re.match(r"^\d+\.\d+\.\d+", __version__).group(0)
|
@@ -937,7 +937,7 @@ class CLIManager:
|
|
937
937
|
try:
|
938
938
|
raise typer.Exit()
|
939
939
|
except Exception as e: # ensures we always exit cleanly
|
940
|
-
if not isinstance(e, typer.Exit):
|
940
|
+
if not isinstance(e, (typer.Exit, RuntimeError)): # temporarily to handle multiple run commands in one session
|
941
941
|
err_console.print(f"An unknown error has occurred: {e}")
|
942
942
|
|
943
943
|
if sys.version_info < (3, 10):
|
bittensor_cli/src/__init__.py
CHANGED
@@ -4,13 +4,14 @@ from typing import Any, Optional
|
|
4
4
|
|
5
5
|
|
6
6
|
class Constants:
|
7
|
-
networks = ["local", "finney", "test", "archive", "rao", "dev"]
|
7
|
+
networks = ["local", "finney", "test", "archive", "rao", "dev", "latent-lite"]
|
8
8
|
finney_entrypoint = "wss://entrypoint-finney.opentensor.ai:443"
|
9
9
|
finney_test_entrypoint = "wss://test.finney.opentensor.ai:443"
|
10
10
|
archive_entrypoint = "wss://archive.chain.opentensor.ai:443"
|
11
11
|
rao_entrypoint = "wss://rao.chain.opentensor.ai:443"
|
12
12
|
dev_entrypoint = "wss://dev.chain.opentensor.ai:443 "
|
13
13
|
local_entrypoint = "ws://127.0.0.1:9944"
|
14
|
+
latent_lite_entrypoint = "wss://lite.sub.latent.to:443"
|
14
15
|
network_map = {
|
15
16
|
"finney": finney_entrypoint,
|
16
17
|
"test": finney_test_entrypoint,
|
@@ -18,6 +19,7 @@ class Constants:
|
|
18
19
|
"local": local_entrypoint,
|
19
20
|
"dev": dev_entrypoint,
|
20
21
|
"rao": rao_entrypoint,
|
22
|
+
"latent-lite": latent_lite_entrypoint,
|
21
23
|
}
|
22
24
|
delegates_detail_url = "https://raw.githubusercontent.com/opentensor/bittensor-delegates/main/public/delegates.json"
|
23
25
|
|
@@ -544,8 +544,7 @@ async def set_children(
|
|
544
544
|
subtensor, netuid
|
545
545
|
)
|
546
546
|
console.print(
|
547
|
-
f"Your childkey request has been submitted. It will be completed around block {completion_block}
|
548
|
-
f"assuming you have the required key swap cost (default: 0.1 Tao) in your coldkey at that time. "
|
547
|
+
f"Your childkey request has been submitted. It will be completed around block {completion_block}. "
|
549
548
|
f"The current block is {current_block}"
|
550
549
|
)
|
551
550
|
console.print(
|
@@ -577,8 +576,7 @@ async def set_children(
|
|
577
576
|
)
|
578
577
|
console.print(
|
579
578
|
f"Your childkey request for netuid {netuid_} has been submitted. It will be completed around "
|
580
|
-
f"block {completion_block}
|
581
|
-
f"coldkey at that time. The current block is {current_block}."
|
579
|
+
f"block {completion_block}. The current block is {current_block}."
|
582
580
|
)
|
583
581
|
console.print(
|
584
582
|
":white_heavy_check_mark: [green]Sent set children request for all subnets.[/green]"
|
@@ -810,16 +810,17 @@ async def show(
|
|
810
810
|
prompt: bool = True,
|
811
811
|
) -> Optional[str]:
|
812
812
|
async def show_root():
|
813
|
-
|
813
|
+
block_hash = await subtensor.substrate.get_chain_head()
|
814
|
+
all_subnets = await subtensor.all_subnets(block_hash=block_hash)
|
814
815
|
root_info = next((s for s in all_subnets if s.netuid == 0), None)
|
815
816
|
if root_info is None:
|
816
817
|
print_error("The root subnet does not exist")
|
817
818
|
raise typer.Exit()
|
818
819
|
|
819
820
|
root_state, identities, old_identities = await asyncio.gather(
|
820
|
-
subtensor.get_subnet_state(netuid=0),
|
821
|
-
subtensor.query_all_identities(),
|
822
|
-
subtensor.get_delegate_identities(),
|
821
|
+
subtensor.get_subnet_state(netuid=0, block_hash=block_hash),
|
822
|
+
subtensor.query_all_identities(block_hash=block_hash),
|
823
|
+
subtensor.get_delegate_identities(block_hash=block_hash),
|
823
824
|
)
|
824
825
|
|
825
826
|
if root_state is None:
|
@@ -1031,16 +1032,21 @@ async def show(
|
|
1031
1032
|
if not await subtensor.subnet_exists(netuid=netuid):
|
1032
1033
|
err_console.print(f"[red]Subnet {netuid} does not exist[/red]")
|
1033
1034
|
raise typer.Exit()
|
1035
|
+
block_hash = await subtensor.substrate.get_chain_head()
|
1034
1036
|
(
|
1035
1037
|
subnet_info,
|
1036
1038
|
subnet_state,
|
1037
1039
|
identities,
|
1038
1040
|
old_identities,
|
1041
|
+
current_burn_cost,
|
1039
1042
|
) = await asyncio.gather(
|
1040
|
-
subtensor.subnet(netuid=netuid_),
|
1041
|
-
subtensor.get_subnet_state(netuid=netuid_),
|
1042
|
-
subtensor.query_all_identities(),
|
1043
|
-
subtensor.get_delegate_identities(),
|
1043
|
+
subtensor.subnet(netuid=netuid_, block_hash=block_hash),
|
1044
|
+
subtensor.get_subnet_state(netuid=netuid_, block_hash=block_hash),
|
1045
|
+
subtensor.query_all_identities(block_hash=block_hash),
|
1046
|
+
subtensor.get_delegate_identities(block_hash=block_hash),
|
1047
|
+
subtensor.get_hyperparameter(
|
1048
|
+
param_name="Burn", netuid=netuid_, block_hash=block_hash
|
1049
|
+
),
|
1044
1050
|
)
|
1045
1051
|
if subnet_state is None:
|
1046
1052
|
print_error(f"Subnet {netuid_} does not exist")
|
@@ -1281,6 +1287,11 @@ async def show(
|
|
1281
1287
|
if not verbose
|
1282
1288
|
else f"{subnet_info.alpha_in.tao:,.4f}"
|
1283
1289
|
)
|
1290
|
+
current_registration_burn = (
|
1291
|
+
Balance.from_rao(int(current_burn_cost))
|
1292
|
+
if current_burn_cost
|
1293
|
+
else Balance(0)
|
1294
|
+
)
|
1284
1295
|
|
1285
1296
|
console.print(
|
1286
1297
|
f"[{COLOR_PALETTE['GENERAL']['SUBHEADING']}]Subnet {netuid_}{subnet_name_display}[/{COLOR_PALETTE['GENERAL']['SUBHEADING']}]"
|
@@ -1291,6 +1302,7 @@ async def show(
|
|
1291
1302
|
f"\n Alpha Pool: [{COLOR_PALETTE['POOLS']['ALPHA_IN']}]{alpha_pool} {subnet_info.symbol}[/{COLOR_PALETTE['POOLS']['ALPHA_IN']}]"
|
1292
1303
|
# f"\n Stake: [{COLOR_PALETTE['STAKE']['STAKE_ALPHA']}]{subnet_info.alpha_out.tao:,.5f} {subnet_info.symbol}[/{COLOR_PALETTE['STAKE']['STAKE_ALPHA']}]"
|
1293
1304
|
f"\n Tempo: [{COLOR_PALETTE['STAKE']['STAKE_ALPHA']}]{subnet_info.blocks_since_last_step}/{subnet_info.tempo}[/{COLOR_PALETTE['STAKE']['STAKE_ALPHA']}]"
|
1305
|
+
f"\n Registration cost (recycled): [{COLOR_PALETTE['STAKE']['STAKE_ALPHA']}]τ {current_registration_burn.tao:.4f}[/{COLOR_PALETTE['STAKE']['STAKE_ALPHA']}]"
|
1294
1306
|
)
|
1295
1307
|
# console.print(
|
1296
1308
|
# """
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bittensor-cli
|
3
|
-
Version: 9.0.
|
3
|
+
Version: 9.0.0rc2
|
4
4
|
Summary: Bittensor CLI
|
5
5
|
Home-page: https://github.com/opentensor/btcli
|
6
6
|
Author: bittensor.com
|
@@ -25,7 +25,7 @@ Requires-Python: >=3.9
|
|
25
25
|
Description-Content-Type: text/markdown
|
26
26
|
Requires-Dist: wheel
|
27
27
|
Requires-Dist: async-property==0.2.2
|
28
|
-
Requires-Dist: async-substrate-interface>=1.0.
|
28
|
+
Requires-Dist: async-substrate-interface>=1.0.0rc12
|
29
29
|
Requires-Dist: aiohttp~=3.10.2
|
30
30
|
Requires-Dist: backoff~=2.2.1
|
31
31
|
Requires-Dist: GitPython>=3.0.0
|
@@ -1,7 +1,7 @@
|
|
1
|
-
bittensor_cli/__init__.py,sha256=
|
2
|
-
bittensor_cli/cli.py,sha256=
|
1
|
+
bittensor_cli/__init__.py,sha256=ahR14ZNIE6lpjK1vEC4NA8XjHQuOaQYjySuRNJTgpno,1216
|
2
|
+
bittensor_cli/cli.py,sha256=4o-3gpKQ9dQHLS4O4uX-rFBgIRaKH_51hgJYNqgAo1I,174144
|
3
3
|
bittensor_cli/doc_generation_helper.py,sha256=GexqjEIKulWg84hpNBEchJ840oOgOi7DWpt447nsdNI,91
|
4
|
-
bittensor_cli/src/__init__.py,sha256=
|
4
|
+
bittensor_cli/src/__init__.py,sha256=ybFc_B-cHvxjtpAbfwHaufuQFCkW9tz4Fab7F8nuvCw,25504
|
5
5
|
bittensor_cli/src/bittensor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
bittensor_cli/src/bittensor/balances.py,sha256=E-niENvR7lAaoS5ZyCmwl_9M-nspnkcuIxf_dHiJIDg,11078
|
7
7
|
bittensor_cli/src/bittensor/chain_data.py,sha256=6VyuoDLaJz2QC9NJz9x2Ampi2fdqXumg6cCFfN-Vpq4,30642
|
@@ -19,14 +19,14 @@ bittensor_cli/src/commands/sudo.py,sha256=PTOTp0_OmWksi29k4d33qmNWZAOKAcjZyU7G3w
|
|
19
19
|
bittensor_cli/src/commands/wallets.py,sha256=VgTIgA9L-Ugf6n2ut3b9cmAeRKbfNznB0_mYKoeR6IA,49197
|
20
20
|
bittensor_cli/src/commands/weights.py,sha256=icJpHGLBxMUYvVUFkmPxMYuKAgBx4ELjY7f1WvX3rqg,16433
|
21
21
|
bittensor_cli/src/commands/stake/__init__.py,sha256=uxomMv_QrYt5Qn3_X5UWFFh45ISjB0JmDmCFxVyX8nQ,6495
|
22
|
-
bittensor_cli/src/commands/stake/children_hotkeys.py,sha256=
|
22
|
+
bittensor_cli/src/commands/stake/children_hotkeys.py,sha256=k8XxWuoUVTaDi6PtrHwnVqc0gs9sGbrogP5XpCVbK7E,29745
|
23
23
|
bittensor_cli/src/commands/stake/move.py,sha256=yXpBiOZJy1L3-N8t5ezerGTMeaiQpsdqjxOA7EE1iXs,37467
|
24
24
|
bittensor_cli/src/commands/stake/stake.py,sha256=_0zUeEXm0iRQtqWAvk6qq9Y44GcItiyb2g9Ee9bdxYY,77686
|
25
25
|
bittensor_cli/src/commands/subnets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
bittensor_cli/src/commands/subnets/price.py,sha256=TWcRXUFeS_Q-pfyv0YIluAL8SE7d2gzTODK-9M2J5pw,29878
|
27
|
-
bittensor_cli/src/commands/subnets/subnets.py,sha256=
|
28
|
-
bittensor_cli-9.0.
|
29
|
-
bittensor_cli-9.0.
|
30
|
-
bittensor_cli-9.0.
|
31
|
-
bittensor_cli-9.0.
|
32
|
-
bittensor_cli-9.0.
|
27
|
+
bittensor_cli/src/commands/subnets/subnets.py,sha256=a4g5Dcx28Jzrlh2HE2VQ7iEpRSnx9XUFyy1gGGPM0v0,80882
|
28
|
+
bittensor_cli-9.0.0rc2.dist-info/METADATA,sha256=XScNNV2UmDogTn35NdwmJNrdSUGpwNFVSBvxwp1TrGw,6862
|
29
|
+
bittensor_cli-9.0.0rc2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
30
|
+
bittensor_cli-9.0.0rc2.dist-info/entry_points.txt,sha256=hBTLGLbVxmAKy69XSKaUZvjTCmyEzDGZKq4S8UOto8I,49
|
31
|
+
bittensor_cli-9.0.0rc2.dist-info/top_level.txt,sha256=DvgvXpmTtI_Q1BbDZMlK90LFcGFCreN1daViEPV2iFw,14
|
32
|
+
bittensor_cli-9.0.0rc2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|