cli icon indicating copy to clipboard operation
cli copied to clipboard

Deprecate use of `x/params`

Open aljo242 opened this issue 3 years ago • 0 comments

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/params from the app template
  • scaffolding new modules with an UpdateParams Tx
  • add an authority field to the module keeper. This is an address that is enabled by governance to submit the UpdateParams Tx (authtypes.NewModuleAddress(govtypes.ModuleName).String())

Here is an example of migrating away from x/params in the x/distr module:

aljo242 avatar Aug 12 '22 14:08 aljo242