Skip to content
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(ica/controller)!: migrate ica/controller parameters to be self managed #3590

Merged
merged 65 commits into from
Jun 14, 2023

Conversation

vishal-kanna
Copy link
Contributor

@vishal-kanna vishal-kanna commented May 16, 2023

Description

With this PR:

  • The ica/controller submodule now self-manages its parameters.
  • Unit and integration tests have been added for the ica/controller submodule's parameters.
  • Migration code has been implemented for moving parameters from x/params' subspace to the ica/controller submodule's keeper.
  • Migration unit and integration tests have been added.

closes: #3503

addresses: #2010

Commit Message / Changelog Entry

feat(ica/controller)!: migrate ica/controller parameters to be self managed

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.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@vishal-kanna vishal-kanna changed the title Ibcdev Feat :Migrate ICA host params to be self managed May 16, 2023
@colin-axner colin-axner changed the title Feat :Migrate ICA host params to be self managed Feat :Migrate ICA controller params to be self managed May 16, 2023
@damiannolan
Copy link
Member

Hey @vishal-kanna! Thanks for getting this started! There has been many comments on #3520 which could be useful to align the work in this PR. Let us know if you'd like to continue working on this, alternatively we could have someone pick up the remaining work and bring it over the finish line!

@srdtrk
Copy link
Member

srdtrk commented May 29, 2023

Thanks for the work @vishal-kanna. I will take over the remaining work now.

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one minor fix related to the controller or host keeper potentially being nil (it is allowed to have the ica module with just one of the keepers initialized)

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you @vishal-kanna and @srdtrk :)

One last thing would be logging msgs for both cases - successful migration and if keeper is nil and migrations are skipped. But I'm happy if they are handled as part of #3776

@srdtrk
Copy link
Member

srdtrk commented Jun 12, 2023

I will merge this after your approval @DimitrisJim

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great ❤️ left a small question for something unrelated.

@srdtrk srdtrk merged commit 4af67c6 into cosmos:main Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done 🥳
Development

Successfully merging this pull request may close these issues.

Migrate 27-interchain-accounts controller params to be self managed
7 participants