-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Keeper staking tests to use simapp (#5683)
* use simapp into keeper * refactor TestHistoricalInfo to use simapp * refactor historical info test * temporal commit on querier test, it passes * commit end of day refactoring * rename and temp commit * fix test query validators * make TestQueryDelegations pass with simapp :D * rename function * make TestQueryRedelegations pass with simapp * finish keeper refactor for querier in staking using simapp * refactor delegation test TestUnbondDelegation to use simapp * make all test pass temporary * avoid usage of historicals * refactor creation of the simapp * refactor creation of simapp * comment before creating new way to generate accounts * make TestDelegation pass with generated accounts * refactor to use accounts * refactor test unbondingdelegationsmax entries * refactor TestUndelegateSelfDelegationBelowMinSelfDelegation to use simapp * update TestUndelegate from unbonding validator and fix bug * refactor TestUndelegateFromUnbondedValidator to use simapp * TestUnbondingAllDelegationFromValidator to use simapp * refactor TestGetRedelegationsFromSrcValidator to use simapp * refactor TestRedelegation to use simapp * refactor TestRedelegateToSameValidator to use simapp * refacotr TestRedelegationMaxEntries to use simapp * refactor delegation test * refactor TestRedelegateFromUnbondingValidator to use simapp * finish refactor delegation test * refactor and remove unused code * migrate revocation of old slash test * fix TestSlashUnbondingDelegation test to use simapp * refactor TestSlashRedelegation to use simapp * refactor TestSlashAtFutureHeight test * test TestSlashAtNegativeHeight migrated to simapp * migrated two tests from slash_test to use simapp * refactor TestSlashWithRedelegation * end refactoring slash_test * refactor first test validation to simapp * refacor TestUpdateValidatorByPowerIndex to use simapp * refactor TestUpdateBondedValidatorsDecreaseCliff to simapp * refactor TestSlashToZeroPowerRemoved * TestValidatorBasics * refactro TestGetValidatorSortingUnmixed to simapp * refactor TestGetValidatorSortingMixed test to simap * refctor TestGetValidatorsEdgeCases to use simapp * make test TestValidatorBondHeight pass * refactor TestFullValidatorSetPowerChange test * end refactoring validator_test * clean code * move methods * rename * rename commont test * git remove unused vars * refactor ordering functions * refactor old genesis_test to use simapp * refactor TestValidatorByPowerIndex * refactor TestDuplicatesMsgCreateValidator * refactor TestInvalidPubKeyTypeMsgCreateValidator * temporary commit * refactor TestLegacyValidatorDelegations to use simapp * refactor TestIncrementsMsgDelegate * refactor next * refactor TestEditValidatorIncreaseMinSelfDelegationBeyondCurrentBond * refactor TestIncrementsMsgUnbond * refator TestMultipleMsgCreateValidator * refactor TestMultipleMsgDelegate * refactor TestJailValidator * refactor TestUnbondingPeriod and TestValidatorQueue * refactor TestUnbondingFromUnbondingValidator and TestRedelegationPeriod * refactor TestTransitiveRedelegation and TestMultipleRedelegationAtSameTime * refactor TestMultipleRedelegationAtUniqueTimes and TestMultipleUnbondingDelegationAtSameTime * refactor TestMultipleUnbondingDelegationAtUniqueTimes and TestUnbondingWhenExcessValidators * end refactor handler_test * remove test_common * remove create test public keys * fix based on PR comments * use prealloc array for ConvertAddrsToValAddrs * fix lint errors * fix lint errors 2 * remove duplicated func * rename function names * Update simapp/test_helpers.go * Update x/staking/keeper/keeper.go * Update simapp/test_helpers.go * Update simapp/test_helpers.go * add last touches to the PR * edit text Co-authored-by: Alexander Bezobchuk <[email protected]> Co-authored-by: Alessio Treglia <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,651 additions
and
1,518 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
Oops, something went wrong.