-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Staking] Make exits manual, patch lack of delay for {increasing, dec…
…reasing} bonds (#810) * init * stash * checkpoint * checkpoint * checkpoint * save middle of refactor * save * checkpoint * clean * clean * clean * clean init collator candidate helper functions * checkpoint * stash * merged execute and cancel functions but kept events different for execution * clean * init unit test updates st tests compile now but 62 fail * gradual progress * fix origins according to review feedback, only a few more tests left * 3 unit tests left * 2 * all unit tests pass, update all runtime configs * update existing precompile code * update chainspecs * update integration test imports * update benchmarking wip * update bond more bond less benchmarking * more unit tests for new execute and leave extrinsics * cancel delegation request unit tests for all delegation request types * update unit test utils * finish excecute and cancel extrinsic benchmarking with hardcoded uniform delay of 2 rounds * nits and start adding schedule to prefix old extrinsic names because behavior changed * fix constraints to allow making and executing delegation requests while candidate is leaving * runtime upgrade first pass, needs unit tests * clean * finish runtime migration and add unit tests * clean * clean * try partial update TS * ts progress and change name of nominate extrinsic to delegate * clean TS and remove duplicate tests * try add ts types to types bundle * fix * fix * fix * fix * fix * try fix TS test * fix * fix * move migration into pallet migrations and add pre checks and post checks * fix * cargo lock * address most review comments * improve readability of can_leave calls * more * revert mixing migrations * remove unnecessary constraint to enable making and executing candidate bond requests if the candidate is scheduled to leave aka leaving * fix merge * more nominator - and nomination - * revert mistake * update precompile * add execute and cancel fns to staking precompile * more precompile unit coverage wip * precompile unit test coverage * finish updating precompiles with new extrinsic names and add tests for all new while preserving tests for old * fix test utils to panic at line where error occurs instead of line in mock fn * fix benchmarking code for execute leave candidates * try fix benchmarking * try * try debug * try again * benchmark and weights for leave candidates extrinsics * last todos * update src contracts and revert unnecessary bench changes * accept notlesh suggestions * and update precompile tests with pallet changes just made * compiled StakingDelegationAttaker contract * prettier * clean unit tests and fix bench again * improve deprecated docs for StakingInterface.sol * increase max block weight safety margin to 50 percent * remove outdated comment
- Loading branch information
Showing
42 changed files
with
9,963 additions
and
6,503 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.