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

17 lines
349 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
2024-05-01 03:17:24 +00:00
"github.com/0glabs/0g-chain/x/auction/types"
2019-11-25 19:46:02 +00:00
)
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
}