bittensor-cli 9.10.2__py3-none-any.whl → 9.11.1__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/cli.py +541 -104
- bittensor_cli/src/__init__.py +4 -1
- bittensor_cli/src/bittensor/chain_data.py +17 -0
- bittensor_cli/src/bittensor/extrinsics/transfer.py +3 -1
- bittensor_cli/src/bittensor/subtensor_interface.py +110 -61
- bittensor_cli/src/bittensor/utils.py +20 -3
- bittensor_cli/src/commands/stake/add.py +8 -13
- bittensor_cli/src/commands/stake/move.py +15 -21
- bittensor_cli/src/commands/stake/remove.py +9 -27
- bittensor_cli/src/commands/subnets/price.py +11 -1
- bittensor_cli/src/commands/subnets/subnets.py +68 -0
- bittensor_cli/src/commands/sudo.py +5 -4
- bittensor_cli/src/commands/wallets.py +16 -3
- {bittensor_cli-9.10.2.dist-info → bittensor_cli-9.11.1.dist-info}/METADATA +31 -5
- {bittensor_cli-9.10.2.dist-info → bittensor_cli-9.11.1.dist-info}/RECORD +18 -18
- {bittensor_cli-9.10.2.dist-info → bittensor_cli-9.11.1.dist-info}/WHEEL +0 -0
- {bittensor_cli-9.10.2.dist-info → bittensor_cli-9.11.1.dist-info}/entry_points.txt +0 -0
- {bittensor_cli-9.10.2.dist-info → bittensor_cli-9.11.1.dist-info}/top_level.txt +0 -0
@@ -823,6 +823,7 @@ async def wallet_list(wallet_path: str, json_output: bool):
|
|
823
823
|
for wallet in wallets:
|
824
824
|
if (
|
825
825
|
wallet.coldkeypub_file.exists_on_device()
|
826
|
+
and os.path.isfile(wallet.coldkeypub_file.path)
|
826
827
|
and not wallet.coldkeypub_file.is_encrypted()
|
827
828
|
):
|
828
829
|
coldkeypub_str = wallet.coldkeypub.ss58_address
|
@@ -846,12 +847,24 @@ async def wallet_list(wallet_path: str, json_output: bool):
|
|
846
847
|
data = f"[bold red]Hotkey[/bold red][green] {hkey}[/green] (?)"
|
847
848
|
hk_data = {"name": hkey.name, "ss58_address": "?"}
|
848
849
|
if hkey:
|
849
|
-
|
850
|
+
try:
|
851
|
+
hkey_ss58 = hkey.get_hotkey().ss58_address
|
852
|
+
pub_only = False
|
853
|
+
except KeyFileError:
|
854
|
+
hkey_ss58 = hkey.get_hotkeypub().ss58_address
|
855
|
+
pub_only = True
|
856
|
+
except AttributeError:
|
857
|
+
hkey_ss58 = hkey.hotkey.ss58_address
|
858
|
+
pub_only = False
|
850
859
|
try:
|
851
860
|
data = (
|
852
861
|
f"[bold red]Hotkey[/bold red] [green]{hkey.hotkey_str}[/green] "
|
853
|
-
f"ss58_address [green]{hkey_ss58}[/green]
|
862
|
+
f"ss58_address [green]{hkey_ss58}[/green]"
|
854
863
|
)
|
864
|
+
if pub_only:
|
865
|
+
data += " [blue](hotkeypub only)[/blue]\n"
|
866
|
+
else:
|
867
|
+
data += "\n"
|
855
868
|
hk_data["name"] = hkey.hotkey_str
|
856
869
|
hk_data["ss58_address"] = hkey_ss58
|
857
870
|
except UnicodeDecodeError:
|
@@ -1836,7 +1849,7 @@ async def check_coldkey_swap(wallet: Wallet, subtensor: SubtensorInterface):
|
|
1836
1849
|
|
1837
1850
|
|
1838
1851
|
async def sign(
|
1839
|
-
wallet: Wallet, message: str, use_hotkey:
|
1852
|
+
wallet: Wallet, message: str, use_hotkey: bool, json_output: bool = False
|
1840
1853
|
):
|
1841
1854
|
"""Sign a message using the provided wallet or hotkey."""
|
1842
1855
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: bittensor-cli
|
3
|
-
Version: 9.
|
3
|
+
Version: 9.11.1
|
4
4
|
Summary: Bittensor CLI
|
5
5
|
Author: bittensor.com
|
6
6
|
Project-URL: homepage, https://github.com/opentensor/btcli
|
@@ -8,7 +8,7 @@ Project-URL: Repository, https://github.com/opentensor/btcli
|
|
8
8
|
Requires-Python: <3.14,>=3.9
|
9
9
|
Description-Content-Type: text/markdown
|
10
10
|
Requires-Dist: wheel
|
11
|
-
Requires-Dist: async-substrate-interface>=1.
|
11
|
+
Requires-Dist: async-substrate-interface>=1.5.2
|
12
12
|
Requires-Dist: aiohttp~=3.10.2
|
13
13
|
Requires-Dist: backoff~=2.2.1
|
14
14
|
Requires-Dist: GitPython>=3.0.0
|
@@ -168,10 +168,13 @@ You can set the commonly used values, such as your hotkey and coldkey names, the
|
|
168
168
|
The default location of the config file is: `~/.bittensor/config.yml`. An example of a `config.yml` is shown below:
|
169
169
|
|
170
170
|
```yaml
|
171
|
-
chain: ws://127.0.0.1:9945
|
172
171
|
network: local
|
173
|
-
|
174
|
-
|
172
|
+
use_cache: true
|
173
|
+
dashboard_path: null
|
174
|
+
disk_cache: false
|
175
|
+
rate_tolerance: null
|
176
|
+
safe_staking: true
|
177
|
+
wallet_hotkey: default
|
175
178
|
wallet_name: coldkey-user1
|
176
179
|
wallet_path: ~/.bittensor/wallets
|
177
180
|
metagraph_cols:
|
@@ -198,6 +201,29 @@ metagraph_cols:
|
|
198
201
|
btcli config --help
|
199
202
|
```
|
200
203
|
|
204
|
+
### ENV VARS
|
205
|
+
BTCLI accepts a few environment variables that can alter how it works:
|
206
|
+
- USE_TORCH (default 0): If set to 1, will use torch instead of numpy
|
207
|
+
- DISK_CACHE (default 0, also settable in config): If set to 1 (or set in config), will use disk caching for various safe-cachable substrate
|
208
|
+
calls (such as block number to block hash mapping), which can speed up subsequent calls.
|
209
|
+
- BTCLI_CONFIG_PATH (default `~/.bittensor/config.yml`): This will set the config file location, creating if it does not exist.
|
210
|
+
- BTCLI_DEBUG_FILE (default `~/.bittensor/debug.txt`): The file stores the most recent's command's debug log.
|
211
|
+
|
212
|
+
---
|
213
|
+
|
214
|
+
## Debugging
|
215
|
+
BTCLI will store a debug log for every command run. This file is overwritten for each new command run. The default location
|
216
|
+
of this file is `~/.bittensor/debug.txt` and can be set with the `BTCLI_DEBUG_FILE` env var (see above section).
|
217
|
+
|
218
|
+
The debug log will **NOT** contain any sensitive data (private keys), and is intended to be sent to the developers
|
219
|
+
for debugging. This file contains basic information about the command being run, the config, and the back and forth of requests and responses
|
220
|
+
to and from the chain.
|
221
|
+
|
222
|
+
If you encounter an issue, and would like to save the file somewhere it won't be overwritten, run `btcli --debug`,
|
223
|
+
and set the save file location. We recommend doing this first before anything, and then starting your debugging with
|
224
|
+
us on our [Discord](https://discord.gg/bittensor), or by opening an issue on [GitHub](https://github.com/opentensor/btcli/issues/new)
|
225
|
+
(where you can also upload your debug file).
|
226
|
+
|
201
227
|
---
|
202
228
|
|
203
229
|
## License
|
@@ -1,19 +1,19 @@
|
|
1
1
|
bittensor_cli/__init__.py,sha256=Lpv4NkbAQgwrfqFOnTMuR_S-fqGdaWCSLhxnFnGTHM0,1232
|
2
|
-
bittensor_cli/cli.py,sha256
|
2
|
+
bittensor_cli/cli.py,sha256=as8Tgqbb_dl1eAn4pivlZfI3gFwHSV_5w4vQQouK-ME,257916
|
3
3
|
bittensor_cli/doc_generation_helper.py,sha256=GexqjEIKulWg84hpNBEchJ840oOgOi7DWpt447nsdNI,91
|
4
4
|
bittensor_cli/version.py,sha256=dU1xsa3mG5FPdhzvqlzDByNcCHmzcFQH3q1pQr4u76g,720
|
5
|
-
bittensor_cli/src/__init__.py,sha256=
|
5
|
+
bittensor_cli/src/__init__.py,sha256=KbUXcd5rdDDQkYlIBpk-qeDiis5WWtUZ0359AO7EzjE,33335
|
6
6
|
bittensor_cli/src/bittensor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
bittensor_cli/src/bittensor/balances.py,sha256=q5KkxF8wmUguWAFddEKstfDKTxPe5ISHpT6br8x32rc,11148
|
8
|
-
bittensor_cli/src/bittensor/chain_data.py,sha256=
|
8
|
+
bittensor_cli/src/bittensor/chain_data.py,sha256=col3yk3ot1OuEtP1tJFbh2Cz9aU-RXX1NdspP9xwsvU,45041
|
9
9
|
bittensor_cli/src/bittensor/minigraph.py,sha256=BIzmSVLfBYiRAeGD_i1LAC8Cw7zxp38a91SIFEPMqYc,10479
|
10
10
|
bittensor_cli/src/bittensor/networking.py,sha256=pZLMs8YXpZzDMLXWMBb_Bj6TVkm_q9khyY-lnbwVMuE,462
|
11
|
-
bittensor_cli/src/bittensor/subtensor_interface.py,sha256=
|
12
|
-
bittensor_cli/src/bittensor/utils.py,sha256=
|
11
|
+
bittensor_cli/src/bittensor/subtensor_interface.py,sha256=FnLClCQKfn8IyGGKejWBw6jLMsbavEnNeUOSKWTEJwg,65024
|
12
|
+
bittensor_cli/src/bittensor/utils.py,sha256=Fy4NxHH4Ifeg3zlT5fvxx9DEM8HluAbCH8HdtfS0YV0,49297
|
13
13
|
bittensor_cli/src/bittensor/extrinsics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
bittensor_cli/src/bittensor/extrinsics/registration.py,sha256=Vzs0mAtQCZLNEmFReSYK13UjvCwPNrS9se7R-hjLlbc,66204
|
15
15
|
bittensor_cli/src/bittensor/extrinsics/root.py,sha256=tOG-xSO0ihC--AhPwrhLkm1nduvHbFAObeONGSHUdJw,19218
|
16
|
-
bittensor_cli/src/bittensor/extrinsics/transfer.py,sha256=
|
16
|
+
bittensor_cli/src/bittensor/extrinsics/transfer.py,sha256=5PagPiDmKluUu4NXeQ7qqdrlLU-DVdNP1FKb6WHNH7k,9472
|
17
17
|
bittensor_cli/src/bittensor/templates/main-filters.j2,sha256=ZM0l2exr6FKqw86GRyHHtw-h8Y5Ckgx-SPc-48gZoxI,914
|
18
18
|
bittensor_cli/src/bittensor/templates/main-header.j2,sha256=aZwB9NeEjNr0pM5mPYTYeky_031zAu6yErIMiwTPcwE,1684
|
19
19
|
bittensor_cli/src/bittensor/templates/neuron-details.j2,sha256=O_Mhg2E04BzW_cSGIldObhVTSRX29gDNqnimW4ty9rY,4848
|
@@ -28,24 +28,24 @@ bittensor_cli/src/bittensor/templates/view.css,sha256=OS0V_ixzdTU15FbNzpZW1m7-c6
|
|
28
28
|
bittensor_cli/src/bittensor/templates/view.j2,sha256=4ux3uyqz34v9VVAX17GezuPESk4z9n5kkd9HbnTsF_Y,1101
|
29
29
|
bittensor_cli/src/bittensor/templates/view.js,sha256=QIPnPp9SuYS9wcl7cwL8nFzd8idiDjNzrDjwwxpiVvY,45076
|
30
30
|
bittensor_cli/src/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
|
-
bittensor_cli/src/commands/sudo.py,sha256=
|
31
|
+
bittensor_cli/src/commands/sudo.py,sha256=Y8YmGAYdNMiJurpbTTlwjiRtlwYVTzJ3zMkELcIJDSo,34260
|
32
32
|
bittensor_cli/src/commands/view.py,sha256=9lx6vfOkel8KIefUhDNaBS_j5lNR2djcRFRbK4mbnDE,12535
|
33
|
-
bittensor_cli/src/commands/wallets.py,sha256=
|
33
|
+
bittensor_cli/src/commands/wallets.py,sha256=DAGQh3782zyQjA4b5VtS4YD_E7OXx2shrOppJ1Xzg9I,77332
|
34
34
|
bittensor_cli/src/commands/weights.py,sha256=iZMiZM3Y_WbglJdbN6QrRHnJ0AtlCOGmSJlXTIcOa3E,16529
|
35
35
|
bittensor_cli/src/commands/liquidity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
36
|
bittensor_cli/src/commands/liquidity/liquidity.py,sha256=AXCjBvQb2gakP8n1z81npYkZ_QF5CQy7r82AMtQwXzk,21692
|
37
37
|
bittensor_cli/src/commands/liquidity/utils.py,sha256=egfZHnvBMc8ydntAHnU6V5Zyi-wLkomjNuucUj73aZQ,6361
|
38
38
|
bittensor_cli/src/commands/stake/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
|
-
bittensor_cli/src/commands/stake/add.py,sha256=
|
39
|
+
bittensor_cli/src/commands/stake/add.py,sha256=1K3B-9G7yFyXyLnuNh-PBeve5hFwcf34o2GWB0WhbtQ,29510
|
40
40
|
bittensor_cli/src/commands/stake/children_hotkeys.py,sha256=1xR1FTljjaWD_-uTopVUkM88jNaz7vWuOwydG202lLQ,31736
|
41
41
|
bittensor_cli/src/commands/stake/list.py,sha256=tzjhiJucXgOGaw7TGt420nGosH85AEjvOimP1XXV3Xs,29038
|
42
|
-
bittensor_cli/src/commands/stake/move.py,sha256=
|
43
|
-
bittensor_cli/src/commands/stake/remove.py,sha256=
|
42
|
+
bittensor_cli/src/commands/stake/move.py,sha256=00MNAA9p5asjZ3ITMIzS18GN8nItRCA8ZhEBMj0sjcQ,34730
|
43
|
+
bittensor_cli/src/commands/stake/remove.py,sha256=85Ippd0NI46t4uJOVhf6nFa9OLSPjlNMxE2mkkK-sl0,50540
|
44
44
|
bittensor_cli/src/commands/subnets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
|
-
bittensor_cli/src/commands/subnets/price.py,sha256=
|
46
|
-
bittensor_cli/src/commands/subnets/subnets.py,sha256=
|
47
|
-
bittensor_cli-9.
|
48
|
-
bittensor_cli-9.
|
49
|
-
bittensor_cli-9.
|
50
|
-
bittensor_cli-9.
|
51
|
-
bittensor_cli-9.
|
45
|
+
bittensor_cli/src/commands/subnets/price.py,sha256=YWwoO31LIpa9lQ_BaSD1yC68HWsiNSv8ABRvhwxrQos,26209
|
46
|
+
bittensor_cli/src/commands/subnets/subnets.py,sha256=BZwSDm9ntZ6XgVnGa1rD3f0kFeFTizJ_sMPJcSlSiP8,96983
|
47
|
+
bittensor_cli-9.11.1.dist-info/METADATA,sha256=DJTVLOlu-BtTVCi5ICLRdlFCY28F43YbbgwuSGV2b2I,8794
|
48
|
+
bittensor_cli-9.11.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
49
|
+
bittensor_cli-9.11.1.dist-info/entry_points.txt,sha256=hBTLGLbVxmAKy69XSKaUZvjTCmyEzDGZKq4S8UOto8I,49
|
50
|
+
bittensor_cli-9.11.1.dist-info/top_level.txt,sha256=DvgvXpmTtI_Q1BbDZMlK90LFcGFCreN1daViEPV2iFw,14
|
51
|
+
bittensor_cli-9.11.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|