gpu-compute-chain/x/cosmostest/keeper/params.go

17 lines
375 B
Go
Raw Normal View History

2022-08-25 16:51:14 -07:00
package keeper
import (
"cosmos-test/x/cosmostest/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// GetParams get all parameters as types.Params
func (k Keeper) GetParams(ctx sdk.Context) types.Params {
return types.NewParams()
}
// SetParams set the params
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
k.paramstore.SetParamSet(ctx, &params)
}