Skip to content

Commit d84a2e7

Browse files
authored
Adds changelog + enhancements (#117)
1 parent 4072a86 commit d84a2e7

File tree

3 files changed

+121
-4
lines changed

3 files changed

+121
-4
lines changed

CHANGELOG.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Changelog
2+
3+
## 8.0.0 /2024-09-25
4+
5+
## What's Changed
6+
7+
New Async Bittensor CLI from the ground-up
8+
9+
* UI enhancements, fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/116
10+
* Adds contrib guidelines by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/115
11+
* Adds release pre-reqs by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/114
12+
* Revising README by @rajkaramchedu in https://github.com/opentensor/btcli/pull/113
13+
* Adds improvements and minor fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/112
14+
* Speedups by @thewhaleking in https://github.com/opentensor/btcli/pull/111
15+
* Don't check size of PGP fingerprint if it's not set by @thewhaleking in https://github.com/opentensor/btcli/pull/110
16+
* Give user their UID immediately after root/sn registration. by @thewhaleking in https://github.com/opentensor/btcli/pull/108
17+
* Ninth and final set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/107
18+
* Eighth set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/106
19+
* Enhancement: max-stake and table tweak by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/105
20+
* Seventh set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/104
21+
* Adds support for list type inputs by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/103
22+
* Sixth set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/102
23+
* Query_Multi method by @thewhaleking in https://github.com/opentensor/btcli/pull/101
24+
* Table fixes / E2E Test - Senate command fix by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/100
25+
* Fifth set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/99
26+
* Fourth set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/98
27+
* Update help language for swap command. by @thewhaleking in https://github.com/opentensor/btcli/pull/97
28+
* Tests/senate e2e by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/96
29+
* Decode CHK SS58 by @thewhaleking in https://github.com/opentensor/btcli/pull/95
30+
* Third set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/94
31+
* E2E tests + fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/92
32+
* Second set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/91
33+
* First set of Typer docstrings by @rajkaramchedu in https://github.com/opentensor/btcli/pull/90
34+
* Doc Creation Assistance by @thewhaleking in https://github.com/opentensor/btcli/pull/89
35+
* Use on chain identities rather than github by @thewhaleking in https://github.com/opentensor/btcli/pull/88
36+
* Enhances tables & other fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/87
37+
* Fixes subnets create not parsing hotkey by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/86
38+
* fix set-id prompts by @thewhaleking in https://github.com/opentensor/btcli/pull/85
39+
* Adds guard rails for take value by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/84
40+
* Adds alias for hotkey by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/83
41+
* Better config input/output by @thewhaleking in https://github.com/opentensor/btcli/pull/82
42+
* _get_vote_data => subtensor.get_vote_data by @thewhaleking in https://github.com/opentensor/btcli/pull/81
43+
* Param decls reused in `btcli config clear` by @thewhaleking in https://github.com/opentensor/btcli/pull/80
44+
* Adds fixes and improvements by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/78
45+
* Validate proposal hashes in `root senate-vote` by @thewhaleking in https://github.com/opentensor/btcli/pull/77
46+
* Prevent self-assignment as a child hotkey by @opendansor in https://github.com/opentensor/btcli/pull/76
47+
* Adds enhancements and fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/75
48+
* Fixes root table + subnet list total calculations by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/74
49+
* Enhances sudo set and fixes root boost by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/73
50+
* Feat/thewhaleking/galina fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/72
51+
* Revert "Feat/thewhaleking/galina fixes" by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/71
52+
* Feat/thewhaleking/galina fixes by @thewhaleking in https://github.com/opentensor/btcli/pull/70
53+
* Enhancements, better UX, bug fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/69
54+
* Update README.md by @thewhaleking in https://github.com/opentensor/btcli/pull/68
55+
* Add --all functions for managing child hotkeys and take. by @opendansor in https://github.com/opentensor/btcli/pull/65
56+
* Fixes subnets pow register by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/64
57+
* Raj/Galina Fixes by @thewhaleking in https://github.com/opentensor/btcli/pull/63
58+
* Torch and registration fixes by @thewhaleking in https://github.com/opentensor/btcli/pull/62
59+
* Handle KeyFileError when unlocking coldkey/hotkey by @thewhaleking in https://github.com/opentensor/btcli/pull/61
60+
* Fixes for root + enhancements by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/60
61+
* Fixes processors and update_interval flags by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/59
62+
* Fixes/Enhancements for wallets, faucet, network info by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/58
63+
* Fix: wallets looking for default addresses in inspect, overview, balance by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/57
64+
* Feat/thewhaleking/verbosity by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/56
65+
* Updates regen command string to fix regen test by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/54
66+
* Enhancement to staking by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/51
67+
* Enhances root list-delegates by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/49
68+
* Child Hotkey Refactor Update by @opendansor in https://github.com/opentensor/btcli/pull/48
69+
* Remove Py-Substrate-Interface class entirely by @thewhaleking in https://github.com/opentensor/btcli/pull/47
70+
* Correctly create just the config directory path. by @thewhaleking in https://github.com/opentensor/btcli/pull/46
71+
* Enhances tests according to changes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/45
72+
* Adds table.j2 for --html by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/44
73+
* Root alias + enhancements by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/43
74+
* Move subtensor_interface and utils to under the bittensor/ dir by @thewhaleking in https://github.com/opentensor/btcli/pull/42
75+
* btcli fixes by @thewhaleking in https://github.com/opentensor/btcli/pull/41
76+
* Enhances help sections of all commands by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/40
77+
* UI Enhancements + fixes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/39
78+
* Adds fixes and improvements by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/38
79+
* setup fixes by @thewhaleking in https://github.com/opentensor/btcli/pull/37
80+
* Fix delegate info type by @thewhaleking in https://github.com/opentensor/btcli/pull/36
81+
* Adds python version dependency + title changes by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/35
82+
* Revamps help text UI and messages by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/34
83+
* Integrate bt decoder by @thewhaleking in https://github.com/opentensor/btcli/pull/33
84+
* Enhances UI of commands by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/32
85+
* Adds --no-prompt, fixes bugs + tests by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/31
86+
* Fixes output string in wallet transfer by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/30
87+
* root get weights: html, caching, slicing by @thewhaleking in https://github.com/opentensor/btcli/pull/29
88+
* Fix DeprecationWarning from pkg_tools by @thewhaleking in https://github.com/opentensor/btcli/pull/28
89+
* Package up BTCLI by @roman-opentensor in https://github.com/opentensor/btcli/pull/27
90+
* Removes subnets template dependency by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/26
91+
* Metagraph Config by @thewhaleking in https://github.com/opentensor/btcli/pull/25
92+
* UI improvements, bug fixes, root coverage by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/24
93+
* Child Hotkey + Takes by @opendansor in https://github.com/opentensor/btcli/pull/23
94+
* Config command improvements by @thewhaleking in https://github.com/opentensor/btcli/pull/22
95+
* Feedback/Improvements to HTML output by @thewhaleking in https://github.com/opentensor/btcli/pull/21
96+
* HTML Additions: Stake Show and general Improvements by @thewhaleking in https://github.com/opentensor/btcli/pull/20
97+
* Fixes + coverage for staking + sudo by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/19
98+
* Initial support for HTML table outputs by @thewhaleking in https://github.com/opentensor/btcli/pull/17
99+
* Fixes + E2E coverage for Root commands by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/14
100+
* Fix of the weights commands by @thewhaleking in https://github.com/opentensor/btcli/pull/13
101+
* weights commands by @thewhaleking in https://github.com/opentensor/btcli/pull/12
102+
* E2E Setup + wallet commands by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/11
103+
* subnets commands by @thewhaleking in https://github.com/opentensor/btcli/pull/9
104+
* Sudo Commands by @thewhaleking in https://github.com/opentensor/btcli/pull/8
105+
* SubtensorInterface built-in substrate.close by @thewhaleking in https://github.com/opentensor/btcli/pull/7
106+
* Restore functionality for `stake remove` by @thewhaleking in https://github.com/opentensor/btcli/pull/6
107+
* Feat/opendansor/revoke children by @opendansor in https://github.com/opentensor/btcli/pull/5
108+
* stake commands by @thewhaleking in https://github.com/opentensor/btcli/pull/4
109+
* Root commands by @thewhaleking in https://github.com/opentensor/btcli/pull/3
110+
* Initial commit for Typer (wallet commands) by @thewhaleking in https://github.com/opentensor/btcli/pull/1

bittensor_cli/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,9 @@ def get_config(self):
10061006

10071007
for key, value in self.config.items():
10081008
if isinstance(value, dict):
1009+
if key == "network" and value is None:
1010+
value = "None (default = finney)"
1011+
10091012
# Nested dictionaries: only metagraph for now, but more may be added later
10101013
for idx, (sub_key, sub_value) in enumerate(value.items()):
10111014
table.add_row(key if idx == 0 else "", str(sub_key), str(sub_value))

bittensor_cli/src/commands/wallets.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async def wallet_balance(
275275
style="green",
276276
no_wrap=True,
277277
),
278-
title=f"[underline dark_orange]Wallet Coldkey Balance[/underline dark_orange]\n\n[dark_orange]Network: {subtensor.network}",
278+
title=f"[underline dark_orange]Wallet Coldkey Balance[/underline dark_orange]\n[dark_orange]Network: {subtensor.network}",
279279
show_footer=True,
280280
show_edge=False,
281281
border_style="bright_black",
@@ -595,9 +595,13 @@ async def overview(
595595
for wallet_name, wallet_path in all_wallet_data
596596
]
597597

598-
all_coldkey_wallets, invalid_wallets = validate_coldkey_presence(all_coldkey_wallets)
598+
all_coldkey_wallets, invalid_wallets = validate_coldkey_presence(
599+
all_coldkey_wallets
600+
)
599601
for invalid_wallet in invalid_wallets:
600-
print_error(f"No coldkeypub found for wallet: ({invalid_wallet.name})", status)
602+
print_error(
603+
f"No coldkeypub found for wallet: ({invalid_wallet.name})", status
604+
)
601605
all_hotkeys, _ = validate_coldkey_presence(all_hotkeys)
602606

603607
print_verbose("Fetching key addresses", status)
@@ -1331,7 +1335,7 @@ def neuron_row_maker(
13311335
Column("[bold white]Hotkey", style="bright_magenta", overflow="fold"),
13321336
Column("[bold white]Stake", style="light_goldenrod2"),
13331337
Column("[bold white]Emission", style="rgb(42,161,152)"),
1334-
title=f"[underline dark_orange]Wallets[/underline dark_orange]\n\n[dark_orange]Network: {subtensor.network}\n",
1338+
title=f"[underline dark_orange]Wallets[/underline dark_orange]\n[dark_orange]Network: {subtensor.network}\n",
13351339
show_edge=False,
13361340
expand=True,
13371341
box=box.MINIMAL,

0 commit comments

Comments
 (0)