-
Notifications
You must be signed in to change notification settings - Fork 624
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
feat: migration to gov v1 #4620
Conversation
* Add proto message for Recover client, implement sdk.Message interface. * Update modules/core/02-client/types/msgs.go Co-authored-by: Damian Nolan <[email protected]> * Apply suggestions from code review Co-authored-by: Charly <[email protected]> * Remove gogoproto false for cmp, lint, move ibctesting address inline. --------- Co-authored-by: Damian Nolan <[email protected]> Co-authored-by: Charly <[email protected]>
…ce proposals (#4436) * add protos and keeper function placeholder * add keeper functions/tests, msgs and tests
* Add 02-client implementation for Recover client. * Partially address feedback. * Docu RecoverClient, add label, re-use error.
* Add message server handler for recovering a client * Don't assign to deprecated attrs, clean up unused fields. * Further clean-up, remove declaration of unmutated vars.
* Add cmd for submitting a recover client prop. * Bump cosmossdk in e2e. * Use govtypes.ModuleName, rename old govtypes to govv1beta1 * Update modules/core/02-client/client/cli/tx.go Co-authored-by: Damian Nolan <[email protected]> * Add auth flag. --------- Co-authored-by: Damian Nolan <[email protected]>
chore: bump feat/govv1
Co-authored-by: Colin Axnér <[email protected]>
* docs: recover client update * Update docs/ibc/proposals.md * Apply suggestions from code review Co-authored-by: Carlos Rodriguez <[email protected]> --------- Co-authored-by: Carlos Rodriguez <[email protected]>
* refactor: remove legacy client update proposal * e2e: swap from ClientUpdateProposal e2e to RecoverClient * refactor: remove unused events
Co-authored-by: colin axner <[email protected]>
…ed client (#4594) * add new event type * update event name
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.
Dropping a green check! All in all, pretty clean and easy to review! I only left some nits.
I can ack any follow up commits if needs be but looks good to me! 🚀
* wip e2e test * query proposal * update upgrade height in plan * rm unnecessary wait/authority * rm test artifact from merge * add checks for scheduled plan * hook up upgrade query client * plan height * pr fixes * update test * import space * update newchainID value * update clientID upgrade * linter * gci * rm unnecessary event --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Damian Nolan <[email protected]> Co-authored-by: colin axnér <[email protected]> Co-authored-by: Sishir Giri <[email protected]> Co-authored-by: srdtrk <[email protected]> Co-authored-by: Cian Hatton <[email protected]> Co-authored-by: Julien Robert <[email protected]> Co-authored-by: Carlos Rodriguez <[email protected]> Co-authored-by: Jim Fasarakis-Hilliard <[email protected]> Co-authored-by: sontrinh16 <[email protected]> Co-authored-by: catShaark <[email protected]> Co-authored-by: khanh-notional <[email protected]>
* chore: update docs for UpgradeProposal -> MsgIBCSoftwareUpgrade * chore: anticipate link change * fix event docs
I noticed the ordering of the msgs is inconsistent, I will update as follows:
|
…aviour, recover, ibcsoftwareupgrade, update params
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4620 +/- ##
==========================================
+ Coverage 79.27% 79.44% +0.16%
==========================================
Files 188 188
Lines 13046 13109 +63
==========================================
+ Hits 10342 10414 +72
+ Misses 2270 2265 -5
+ Partials 434 430 -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.
ACK latest 👍
Thanks @colin-axner! And thank you to @charleenfei and @DimitrisJim for their work on the feat branch! ❤️
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.
thanks for opening this and fixing up conflicts @colin-axner !
Co-authored-by: Charly <[email protected]>
self ACK on the changes |
# Conflicts: # e2e/tests/core/02-client/client_test.go
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.
Great work everyone getting this migration done.
Bye bye, auf Wiedersehen, adios v1beta1 proposals, we will miss you... not! 💔
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! Most of the comments I left are nits and can be safely ignored, there are just a few questions.
Great work on this everyone ❤️
@@ -242,97 +245,145 @@ func NewUpgradeClientCmd() *cobra.Command { | |||
return cmd | |||
} | |||
|
|||
// NewCmdSubmitUpdateClientProposal implements a command handler for submitting an update IBC client proposal transaction. | |||
func NewCmdSubmitUpdateClientProposal() *cobra.Command { | |||
// newSubmitRecoverClientProposalCmd defines the command to recover an IBC light client |
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.
// newSubmitRecoverClientProposalCmd defines the command to recover an IBC light client | |
// newSubmitRecoverClientProposalCmd defines the command to recover an IBC light client. |
AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)). | ||
AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) | ||
|
||
AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)) |
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.
@damiannolan brought this up in the docs review, is the NewParamChangeProposalHandler
still required?
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.
Probably not. maybe we can remove in a followup since it should have been removed with param migration?
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.
can hold off on merging #4628 until then I think
modules/core/keeper/msg_server.go
Outdated
} | ||
|
||
if err = k.ClientKeeper.ScheduleIBCSoftwareUpgrade(ctx, msg.Plan, upgradedClientState); err != nil { | ||
return nil, errorsmod.Wrapf(err, "cannot schedule IBC client upgrade") |
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.
return nil, errorsmod.Wrapf(err, "cannot schedule IBC client upgrade") | |
return nil, errorsmod.Wrap(err, "cannot schedule IBC client upgrade") |
I believe Wrapf
expects format args
Description
closes: #1282
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.