cli
cli copied to clipboard
Deprecate use of `x/params`
The Cosmos SDK is moving to deprecate the usage of the x/params module in future releases (starting in v0.47.x I believe). This is because x/params contains some of the remaining usages of AMINO in the codebase.
Modules will now self manage parameters. Overall, this makes sense as it removes AMINO and decouples modules a bit more. More details can be found with the corresponding ADR.
Updated templates will include:
- removing
x/paramsfrom theapptemplate - scaffolding new modules with an
UpdateParamsTx - add an
authorityfield to the module keeper. This is an address that is enabled by governance to submit theUpdateParamsTx (authtypes.NewModuleAddress(govtypes.ModuleName).String())
Here is an example of migrating away from x/params in the x/distr module: