Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add collective pallet. * finished setting members for council. * store council members to subtensor concilmember storgaemap. * add storagemap to store concil members inside subtensor pallet. * add a council call. * add council_set_max_registrations_per_block for council members. * Begin switching to pallet_membership for council mgnmt * Add test random collective * Add pallet-membership to Cargo.toml * Add pallet-membership config * EnsureRootOrHalfCouncil -> EnsureRootOrMajorityCouncil * Add pallet-membership to chainspec.rs * Remove --execution native flag from localnet * Enforce specific toolchain for project * Allow localnet to discover local validators instead of bootnode * Re-add pallet-collective from git over fs * Properly insert properties map into chainspec * Add SudoRuntimeCall, CouncilOrigin to subtensor::Config * Add sudo extrinsic to subtensor * Add Sudid event to subtensor * Fix testing for subtensor by removing collective, membership from runtime * Create EnsureCouncilMajority origin in runtime * Remove pallet-sudo from runtime, remove pallet-collective from dev-deps * CouncilMaxMembers -> 3, CouncilMaxProposals -> 10 * Remove sudo pallet from construct_runtime! * Remove sudo pallet config from runtime * Remove vestiges of sudo from chain_spec * Add localnet chain-spec for testing * Fix tabulation in subtensor::sudo comment * Re-add sudo to runtime * Ensure root for membership mngmt * Return DispatchResult of call from sudo * Add sudoUncheckedWeight extrinsic to subtensor * CouncilMotionDuration -> 1 DAY * Move collective pallet into repository * Add SenateCollective, SenateMembers to manage senate votes * 🤖 🧈 Reformat source code * Add VoteOrigin, ProposalOrigin to collective pallet * Add more test accounts to localnet_genesis * Fix removed finney testnet sudo key * Add CanPropose, CanVote, GetVotingMembers traits * Add CanPropose, CanVote implementations to runtime for collective * Remove threshold argument from collective::propose * Add max members for senate * Remove threshold argument from collective::benchmarks::propose * Add GetVotingMembers implementation for Collective * Remove unused pallet-collective in subtensor * Remove pallet_collective imports from subtensor * Add MemberManagement trait to subtensor, implementation in runtime * Add swap_member, members to MemberManagement trait * Implement new MemberManagement interface methods * Add senate module, do_join_senate, do_leave_senate extrinsics to subtensor * Add max_members to MemberManagement, fix vec includes for interface * Add subtensor::SenateRequiredStakePercentage storage * Add benchmarks for join_senate, leave_senate * Fix all broken benchmarks * Reverse sort stake comparison in join_senate for descending order * Fix all benchmarks properly this time * Speed up benchmarking process for subtensor * Use a full senate for senate benchmarking * Update weights and DB reads for join_senate, leave_senate * Remove senate member if required stake drops below threshold * Update remove_stake benchmark to include senate removal threshold * Update remove_stake weight * Fix division by zero case in join_senate * Remove cast votes of senate member when leaving * CouncilMotionDuration 7200 blocks -> 100 blocks * Use coldkey as signing origin for senate actions Add add_vote to TriumvirateInterface Update benchmarks for new signing scheme Fix some tabulation differences in benchmarks.rs * Update Cargo.lock for subtensor * Add collective, membership pallets to subtensor Cargo.toml * Update collective testing to support modifications * Add triumvirate+senate to subtensor testing * Up spec version 121 -> 122 * Handle result in CollectiveInterface::remove_votes * Begin implementing subtensor-specific senate testing * Add verbose errors for senate actions * Fix staking removal tests broken by weight updates * Add pallet-collective and pallet-membership to subtensor std for testing * Fix division by zero in remove_stake for senate removal * Add has_voted helper to pallet-collective * Add complete test suite for senate activities in subtensor * Fix errors from resolved merge conflicts * Update Cargo.toml authors and remove collective/migrations * Remove migrations testing in pallet-collective --------- Co-authored-by: Rubberbandits <dalegribble@riseup.net>
- Loading branch information