-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(genutil): Use sdk types genesis validator #21678
Merged
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
fddadd3
move use sdk types genesis validator
sontrinh16 41c5520
debug
sontrinh16 219213b
debug
sontrinh16 794ecbc
debug
sontrinh16 252f50f
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 0033996
fix conflict
sontrinh16 ed34222
debug
sontrinh16 17a42a3
assert nil for empty val set
sontrinh16 6bb526b
minor
sontrinh16 f9aa48b
fix test
sontrinh16 389b7b8
lint
sontrinh16 5775c9f
fix e2e test
sontrinh16 85a753e
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 5fe570c
add migration and genesis validator in genutil v2
sontrinh16 5b31f47
Merge branch 'son/use_sdk_genesis_validator' of https://github.com/co…
sontrinh16 dd2a634
cleanup
sontrinh16 fba3f54
lint
sontrinh16 05fe687
more lint
sontrinh16 e4f1972
resolve conflict
sontrinh16 80a92ae
minor
sontrinh16 fb41419
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 d0f9f1c
make work with migrate cmd
sontrinh16 7a7c42a
Merge branch 'son/use_sdk_genesis_validator' of https://github.com/co…
sontrinh16 ddf3149
remove migrator
sontrinh16 7c0ce57
rename
sontrinh16 641164f
remove duplicated code
sontrinh16 bbb3b01
Update x/genutil/migration/v052/migrate_test.go
sontrinh16 5d02a84
Update x/genutil/migration/v052/migrate.go
sontrinh16 e9e27f6
address comment
sontrinh16 cebc09d
Merge branch 'son/use_sdk_genesis_validator' of https://github.com/co…
sontrinh16 a0d41c9
populate simapp v2 export
sontrinh16 7075a3d
lint
sontrinh16 d1f59d2
minor
sontrinh16 528606f
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 b5abb09
address comment
sontrinh16 29156ed
remove encoding
sontrinh16 b1924fd
Merge branch 'son/use_sdk_genesis_validator' of https://github.com/co…
sontrinh16 bb2d7f1
fix test
sontrinh16 8937cb7
fix conflict
sontrinh16 b4014f3
fix test
sontrinh16 bae84ba
minor
sontrinh16 e1a6b0c
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 76ab968
address comments
sontrinh16 33e0432
Merge branch 'son/use_sdk_genesis_validator' of https://github.com/co…
sontrinh16 6a81119
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 496627d
Merge branch 'main' into son/use_sdk_genesis_validator
kocubinski f0c5509
place holder
sontrinh16 e7600cd
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 2d40cef
Merge branch 'main' into son/use_sdk_genesis_validator
kocubinski 7879361
refactor(genutil): export genesis with val set implementation (#22178)
kocubinski ebbf3e2
Merge branch 'main' into son/use_sdk_genesis_validator
sontrinh16 9ddc128
resolve conflict
sontrinh16 687866d
lint
sontrinh16 9b397f0
minor
sontrinh16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
Update remaining
cmttypes.GenesisValidator
usages for consistencyThe verification process has identified several instances where
cmttypes.GenesisValidator
is still being used in the codebase. These occurrences need to be addressed to maintain consistency with the change tosdk.GenesisValidator
in theExportedApp
struct:cmttypes.GenesisValidator
usageAction items:
sdk.GenesisValidator
instead ofcmttypes.GenesisValidator
.Analysis chain
Verify compatibility with existing code.
The change from
cmttypes.GenesisValidator
tosdk.GenesisValidator
aligns with the shift towards using Cosmos SDK types for theValidators
structure. This modification is likely part of a larger refactor to integrate more closely with the Cosmos SDK.However, it's important to ensure that existing code relying on the
cmttypes.GenesisValidator
type is updated to handle the newsdk.GenesisValidator
type to maintain compatibility and functionality related to validator management.Run the following script to identify instances of
cmttypes.GenesisValidator
usage in the codebase:If the script returns instances of
cmttypes.GenesisValidator
usage outside of test files or comments, update the code to handle the newsdk.GenesisValidator
type accordingly.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 287