-
Notifications
You must be signed in to change notification settings - Fork 244
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
Problem: x/params is deprecated, need to migrate away from it #735
Conversation
does it needs to be handled in other modules as well ? (ibc-go, gravity-bridge, ethermint) |
I think so as these modules also use the legacy |
Codecov Report
@@ Coverage Diff @@
## main #735 +/- ##
==========================================
+ Coverage 33.99% 34.26% +0.26%
==========================================
Files 28 30 +2
Lines 1506 1582 +76
==========================================
+ Hits 512 542 +30
- Misses 941 983 +42
- Partials 53 57 +4
|
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.
Is this PR ready, can you add an integration test for the gov param message?
yeah sure. I will add the integration test soon |
dbe0ca0
to
253ea28
Compare
and ideally check the migration is succesfully in the upgrade integration test. |
@yihuang all checks has passed except protobuf breakage, how could I escape this check? |
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.
LGTM overall, can you do a gov proposal to update parameters in integration test?
sure, add soon |
can you fix the conflicts? |
No problem but
I'm still trying to fix this |
fix rebase error
f96f9db
to
e0d4805
Compare
be5b60d
to
1c40f9c
Compare
/runsim |
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.
LGTM
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
close #632
According to the recent Cosmos-SDK ADR 046: Module Params , we should migrate
x/cronos
module away fromx/params
to enable stateful params changes, as well as more efficient params serialization.x/cronos
store instead ofsubspace
MsgUpdateParams
for grpcmsgServer
x/cronos
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)