Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Governance Protocol Release 5.2.0 #1414

Merged
merged 28 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
918a64c
Begin senate cli
May 31, 2023
90e2a09
Add helper functions to subtensor object for query_module, query_modu…
Jun 19, 2023
4d9e774
Merge branch 'master' into sudo-decentralization
Jun 19, 2023
7b60777
Remove unused senate helpers
Jun 19, 2023
d042aa1
Rename SenateCommand -> ProposalsCommand
Jun 19, 2023
446eb5f
Remove unused proposals info datatype
Jun 19, 2023
0429e41
Add proposals data in rich table
Jun 19, 2023
144b97b
Clarify + beautify calldata column
Jun 19, 2023
e63d6fb
Add SenateRegisterCommand
Jun 20, 2023
af51512
Add helper function wallet.is_senate_member
Jun 20, 2023
ad138c7
Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl
Jun 20, 2023
babc6f9
Use helper function to check senate membership
Jun 20, 2023
decd7c5
Add command to view senate members
Jun 20, 2023
9f28a2b
Use get_vote_data helper and refactor call data formatting for recursion
Jun 20, 2023
b4607d8
Add senate_vote and senate_leave cmd classes
Jun 20, 2023
53a7249
Add membership check in senate_register command
Jun 20, 2023
7b9251f
Add senate_leave, senate_vote extrinsic functions
Jun 20, 2023
ba15fd5
Import senate_leave, senate_vote extrinsic functions in subtensor_impl
Jun 20, 2023
0f845e0
Add senate, proposal_votes, senate_leave, senate_vote cmds to cli
Jun 20, 2023
8460c0d
Move closure helper funcs to main scope, add display_votes helper
Jun 21, 2023
2795834
Add senate size and active proposals metric, vote overview and nice n…
Jun 21, 2023
6a3ddde
Add delegate nice-name support to proposal_votes
Jun 21, 2023
23cc657
Use coldkey for senate actions instead of hotkey
Jun 26, 2023
57f604d
Merge branch 'master' into sudo-decentralization
shibshib Jun 28, 2023
f8ed0e6
Merge branch 'master' into sudo-decentralization
unconst Jun 28, 2023
567fe17
Up bittensor version to 5.2.0
Jun 28, 2023
8a1138a
Up bittensor version to 5.2.0
Jun 28, 2023
cf124a3
Add changelog for governance protocol update
Jun 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 5.2.0 / 2023-06-28

## What's Changed
* add default 1024 max stake limit for querying UIDs with vpermit. by @ifrit98 in https://github.com/opentensor/bittensor/pull/1379
* Fixes validator permit issue seen on master by @unconst in https://github.com/opentensor/bittensor/pull/1381
* Added conda environment by @shibshib in https://github.com/opentensor/bittensor/pull/1386
* Update package requirements (hotfix) by @ifrit98 in https://github.com/opentensor/bittensor/pull/1385
* Merge master into new_staging by @ifrit98 in https://github.com/opentensor/bittensor/pull/1388
* Fix axon requests signature using metadata by @unconst in https://github.com/opentensor/bittensor/pull/1394
* Governance Protocol Release by @Rubberbandits in https://github.com/opentensor/bittensor/pull/1414


**Full Changelog**: https://github.com/opentensor/bittensor/compare/v5.1.0...v5.2.0


## 5.1.0 / 2023-05-30

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.0
5.2.0
2 changes: 1 addition & 1 deletion bittensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
nest_asyncio.apply()

# Bittensor code and protocol version.
__version__ = '5.1.0'
__version__ = '5.2.0'
version_split = __version__.split(".")
__version_as_int__ = (100 * int(version_split[0])) + (10 * int(version_split[1])) + (1 * int(version_split[2]))
__new_signature_version__ = 360
Expand Down
19 changes: 19 additions & 0 deletions bittensor/_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ def __create_parser__() -> 'argparse.ArgumentParser':
ListDelegatesCommand.add_args( cmd_parsers )
RegenColdkeypubCommand.add_args( cmd_parsers )
RecycleRegisterCommand.add_args( cmd_parsers )
SenateCommand.add_args( cmd_parsers )
ProposalsCommand.add_args( cmd_parsers )
ShowVotesCommand.add_args( cmd_parsers )
SenateRegisterCommand.add_args( cmd_parsers )
SenateLeaveCommand.add_args( cmd_parsers )
VoteCommand.add_args( cmd_parsers )


return parser

Expand Down Expand Up @@ -156,6 +163,18 @@ def check_config (config: 'bittensor.Config'):
MyDelegatesCommand.check_config( config )
elif config.command == "recycle_register":
RecycleRegisterCommand.check_config( config )
elif config.command == "senate":
SenateCommand.check_config( config )
elif config.command == "proposals":
ProposalsCommand.check_config( config )
elif config.command == "proposal_votes":
ShowVotesCommand.check_config( config )
elif config.command == "senate_register":
SenateRegisterCommand.check_config( config )
elif config.command == "senate_leave":
SenateLeaveCommand.check_config( config )
elif config.command == "senate_vote":
VoteCommand.check_config( config )
else:
console.print(":cross_mark:[red]Unknown command: {}[/red]".format(config.command))
sys.exit()
Expand Down
12 changes: 12 additions & 0 deletions bittensor/_cli/cli_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,16 @@ def run ( self ):
ListSubnetsCommand.run( self )
elif self.config.command == 'recycle_register':
RecycleRegisterCommand.run( self )
elif self.config.command == "senate":
SenateCommand.run( self )
elif self.config.command == "proposals":
ProposalsCommand.run( self )
elif self.config.command == "proposal_votes":
ShowVotesCommand.run( self )
elif self.config.command == "senate_register":
SenateRegisterCommand.run( self )
elif self.config.command == "senate_leave":
SenateLeaveCommand.run( self )
elif self.config.command == "senate_vote":
VoteCommand.run( self )

1 change: 1 addition & 0 deletions bittensor/_cli/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
from .metagraph import MetagraphCommand
from .list import ListCommand
from .misc import UpdateCommand, ListSubnetsCommand
from .senate import SenateCommand, ProposalsCommand, ShowVotesCommand, SenateRegisterCommand, SenateLeaveCommand, VoteCommand
Loading