0g-chain/x/auction/keeper/params.go

17 lines
348 B
Go
Raw Normal View History

2019-11-25 19:46:02 +00:00
package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
2020-04-30 14:13:31 +00:00
2019-11-25 19:46:02 +00:00
"github.com/kava-labs/kava/x/auction/types"
)
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
2019-11-25 19:46:02 +00:00
k.paramSubspace.SetParamSet(ctx, &params)
}
func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) {
2019-11-25 19:46:02 +00:00
k.paramSubspace.GetParamSet(ctx, &params)
return
}