-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RegisterInvariants to Configuration (#273)
* adding RegisterInvariants to Configuration * fixing failed tests * fix failing tests * fix lint issues * add-TallyVotesInvariant * remove temp * fix lint issues * adding invariants * changes to invariant * fix lint issues * addressing requested changes * "Remove getAllProposals" * "Remove invariant.go" * "Change naming conventions" * "Fix lint issues" * change naming conventions * "Change naming conventions" * Merge branch 'master' into likhita/add-invariants # Conflicts: # go.mod * Update types/module/server/manager.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update types/module/server/manager.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update types/module/server/manager.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update types/module/server/manager.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update types/module/server/manager.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update types/module/server/manager.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update x/group/server/server.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update types/module/server/module.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update x/group/server/invariants.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update x/group/server/invariants.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update x/group/server/invariants.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Update invariants and fix naming conventions * update types/module/server/manager.go * Fix failed tests * fix failing tests * fix failed tests * WIP * changes to manager * fix failed tests * Update invariants in group module * Update x/group/server/invariants.go * changes to invariants * Change naming convention for invariants * Remove `invariant` as param in types/module/server/testutil.go * Remove `invar` in `FixtureFactory` * Code cleaning * Implement tallyVotesInvariant without using serverImpl * invariant test in progress * invariant test in progress * Invariants test in progress * Modify invariants * change invariants * invariants test in progress * fix invariants * Invariants test added * update files * fix failed tests * fix failed tests * fix * fix errors * fix errors * Register Invariants in configurator * remove serverImpl in invariants test * add table tests for invariants * change table test name * change params in tallyVotesInvariant func * add changes to invariants_test * update stable_appconfig * change GroupAccount filed to Address * address changes * Update with CacheContext * remove unnecessary code * resolve requested changes * remove redundant return in experimental_appconfig * address requested changes * remove AllInvariants function * changes to invariant * remove unncessary changes * add votesInvariant const * add tallyTotalWeightInvariant * change naming conventions in tallyTotalWeightInvariant * fix lint issues * fix something * change naming conventions and add improvements to invariants * fix lint issue * fix lint issues * changes in groupTotalWeightInvariant * code refactoring in invariants_Test * changes in invariants_test * remove ReadAll and add LoadNext in invariants * close iterator * fix lint issues * changes to invariants * use groupIt with LoadNext * remove unecessary lines * refactoring code * refactor code * fix lint issues Co-authored-by: Anil Kumar Kammari <anil@vitwit.com> Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
- Loading branch information
1 parent
1b7c80e
commit 40e2a34
Showing
16 changed files
with
595 additions
and
66 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
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.