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

chore: remove all use of x/params #7900

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

chore: remove all use of x/params #7900

wants to merge 8 commits into from

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented Jan 30, 2025

Description

Remove the now unsupported x/params module in ibc-go v10. Apps moving to Cosmos SDK v0.52.x will need to remove x/params so removing it from ibc-go will remove help remove it entirely from an app using the stack.

For now, I just moved the existing MigrateParams functions to be a no-op, but I can remove them if desired.

closes: #XXXX


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 the 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/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Copy link
Contributor

@gjermundgaraba gjermundgaraba left a comment

Choose a reason for hiding this comment

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

Love getting rid of this <3
It looks like there might still be some x/params left somewhere as it is still in the go.mod, is there more we should remove?

@@ -10,3 +10,6 @@ const (
// ParamsKey is the store key for the interchain accounts controller parameters
ParamsKey = "params"
)

// KeyControllerEnabled is the store key for ControllerEnabled Params for legacy purposes.
var KeyControllerEnabled = []byte("ControllerEnabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't see much reason for this to be left behind now?
Looking it up on this branch, it looks like it is only used in tests, which also tells me there might be more code to remove?

m.keeper.SetParams(ctx, params)
m.keeper.Logger.Info("successfully migrated ica/host submodule to self-manage params")
}
func (Migrator) MigrateParams(_ context.Context) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nah, let's just delete the whole thing.

var (
// KeyHostEnabled is the store key for HostEnabled Params for legacy purposes.
// Deprecated: this will be removed.
KeyHostEnabled = []byte("HostEnabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

These too

@@ -58,6 +57,7 @@ require (
cosmossdk.io/x/evidence v0.0.0-00010101000000-000000000000 // indirect
cosmossdk.io/x/group v0.0.0-00010101000000-000000000000 // indirect
cosmossdk.io/x/nft v0.0.0-00010101000000-000000000000 // indirect
cosmossdk.io/x/params v0.0.0-00010101000000-000000000000 // indirect
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be anything left to keep this around?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nope - can remove


m.keeper.SetParams(ctx, params)
m.keeper.Logger.Info("successfully migrated transfer app self-manage params")
func (Migrator) MigrateParams(_ context.Context) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets toss it :D

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants