-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
backport: Use enum instead of int32 for BondStatus (#7499) #7516
Conversation
* Migrate staking module * Add gov legacy * Add comments * Add x/distrib * x/crisis * x/mint * Fix test * migrate x/genutil * Fix lint * Fix staking constants * Fix test * Update x/genutil/legacy/v040/migrate.go Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> * Add migrate script instead of change BondStatus constants * Change staking bondStatus to enum * Fix test * Fix another test * Remove staking exported * fix references * Better constants * Fix build * Fix lint * Remove buf version * Fix tests * Fix test Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## v0.40.x #7516 +/- ##
==========================================
Coverage ? 56.02%
==========================================
Files ? 592
Lines ? 37243
Branches ? 0
==========================================
Hits ? 20865
Misses ? 14261
Partials ? 2117 |
@amaurymartiny I think its better if this changelog entry stay in an unreleased section, and then we can combine relevant entries & tag as an RC1 section when ready for the next release candidate. |
Side note: This is a breaking change (even a proto-breaking change). I guess we're okay with breaking changes between RCs, right? Since RC0 has been released with v1beta1, if we want to put this in another RC, I should probably update the proto version to v1beta2. The alternative would be to wait 0.41 (and hopefully a .v1 version for most proto packages) |
Yes
I think that's okay, maybe not strictly necessary but makes sense |
Breaking changes between RCs are totally acceptable -- they're release candidates |
@amaurymartiny Is this ready for review? |
@clevinson Yes. If you want to include this backport directly in #7590 to avoid merge conflicts, we can do that too. |
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.
ACK
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.
utACK
@amaurymartiny it will be good to get this merged independently of #7590, as the staking module changes in #7599 are dependent on this. |
ref: #7464 (comment)
Backports:
git cherry-pick 33e7297c791980428d0c698989ffa760284258f2