-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for DRep Activity mechanism (#5796)
* Organize voting code in `ProposeNewConstitution` test * Organize more code in `ProposeNewConstitution` test * Initial version of DRepActivity test * Extract function for activity change proposals in `DRepActivity` * Register DReps after changing activity param * Add activity so that DReps expire * Refactor `activityChangeProposalTest` so that expected is optional * Remove `previousProposalInfo` parameter from `activityChangeProposalTest` * Fixes required by rebasing * Refactor `getCurrentEpochNo` so that it doesn't depend on era * Extract constants as variables for readability * Use `foldEpochState` to wait for stability * Fix hardcoded values * Apply suggested fix for typo in file name Co-authored-by: Mateusz Galazyn <[email protected]> * Move parameter explanations to the argument Haddocks * Move `KeyPair` class to `Testnet.Runtime` * Apply suggestions from code reviews Co-authored-by: Clément Hurlin <[email protected]> Co-authored-by: Mateusz Galazyn <[email protected]> --------- Co-authored-by: Mateusz Galazyn <[email protected]> Co-authored-by: Clément Hurlin <[email protected]>
- Loading branch information
1 parent
6526694
commit d1f30b5
Showing
10 changed files
with
703 additions
and
171 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
Large diffs are not rendered by default.
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
Oops, something went wrong.