Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BTCli integration with new governance protocol (#1398)
* Begin senate cli * Add helper functions to subtensor object for query_module, query_module_map * Remove unused senate helpers * Rename SenateCommand -> ProposalsCommand * Remove unused proposals info datatype * Add proposals data in rich table * Clarify + beautify calldata column * Add SenateRegisterCommand * Add helper function wallet.is_senate_member * Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl * Use helper function to check senate membership * Add command to view senate members * Use get_vote_data helper and refactor call data formatting for recursion * Add senate_vote and senate_leave cmd classes * Add membership check in senate_register command * Add senate_leave, senate_vote extrinsic functions * Import senate_leave, senate_vote extrinsic functions in subtensor_impl * Add senate, proposal_votes, senate_leave, senate_vote cmds to cli * Move closure helper funcs to main scope, add display_votes helper * Add senate size and active proposals metric, vote overview and nice names * Add delegate nice-name support to proposal_votes * Use coldkey for senate actions instead of hotkey
- Loading branch information