Skip to content

Commit

Permalink
deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Feb 25, 2025
1 parent da14035 commit 9d78872
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/params/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 1

# `x/params`

> Note: The Params module has been depreacted in favour of each module housing its own parameters.
NOTE: `x/params` is deprecated as of Cosmos SDK v0.53 and will be removed in the next release.

## Abstract

Expand Down
4 changes: 4 additions & 0 deletions x/params/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
)

// Keeper of the global paramstore
//
// Deprecated: the params keeper is deprecated and will be removed in the next Cosmos SDK major release.
type Keeper struct {
cdc codec.BinaryCodec
legacyAmino *codec.LegacyAmino
Expand All @@ -20,6 +22,8 @@ type Keeper struct {
}

// NewKeeper constructs a params keeper
//
// Deprecated: the params keeper is deprecated and will be removed in the next Cosmos SDK major release.
func NewKeeper(cdc codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) Keeper {
return Keeper{
cdc: cdc,
Expand Down
4 changes: 4 additions & 0 deletions x/params/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@ func (am AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistr
}

// AppModule implements an application module for the distribution module.
//
// Deprecated: the params module is deprecated and will be removed in the next Cosmos SDK major release.
type AppModule struct {
AppModuleBasic

keeper keeper.Keeper
}

// NewAppModule creates a new AppModule object
//
// Deprecated: the params module is deprecated and will be removed in the next Cosmos SDK major release.
func NewAppModule(k keeper.Keeper) AppModule {
return AppModule{
AppModuleBasic: AppModuleBasic{},
Expand Down

0 comments on commit 9d78872

Please sign in to comment.