-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix tests compile errors * Add method Utility::BatchAll * Add function set_vote_cap_ratio * Add function vote_cap * Add function vote_to_capital * Add function compute_delegator_total_vote * Fix import * Add function allocate_delegator_votes * Fix function ensure_referendum_expired * Fix test `notify_remove_delegator_vote_fail_works` * Remove tests `split_voting_works` and `abstain_voting_works` * Remove delegator_vote_roles in GenesisConfig * Remove `set_delegator_role` and add `add_delegator` * Fix `ensure_referendum_expired` * Fix integration-tests vtoken_voting::vote_works * Fix compiles * Add function account_vote * Optimize compute_delegator_total_vote * Optimize allocate_delegator_votes * Remove try_select_derivative_index, try_add_delegator_vote, try_sub_delegator_vote * Minor fix * Allow vote by any conviction * Test `add_delegator_works` * Fix test `successful_but_zero_conviction_vote_balance_can_be_unlocked` * Fix integration-tests/bifrost-kusama/src/vtoken_voting.rs * Allow vote by any conviction * Fix * Fix tests * Fix copyright * Fix benchmarking, clippy and copyright * Fix
- Loading branch information
Showing
17 changed files
with
559 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ std = [ | |
"sp-io/std", | ||
"sp-runtime/std", | ||
"xcm/std", | ||
"xcm-builder/std", | ||
] | ||
kusama = [] | ||
polkadot = [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.