505ad2ab70
* Migrating auctions module from DXNS * Adding appropriate comments on proto definitions * Addressing review comments and fixing build issues * Addressing review comments * Adding README for auction module and fixing build/run issues * Removing DXNS references and migrating DXNS utils to Ethermint * Setting default genesis param values * Defining constants in params and assigning ParamSetPairs * Fixing issues with auction bid reveals Co-authored-by: bipulprasad <Bipul@qubecinema.com>
19 lines
434 B
Go
19 lines
434 B
Go
package keeper
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/tharsis/ethermint/x/auction/types"
|
|
)
|
|
|
|
// GetParams - Get all parameteras as types.Params.
|
|
func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) {
|
|
k.paramSubspace.GetParamSet(ctx, ¶ms)
|
|
return
|
|
}
|
|
|
|
// SetParams - set the params.
|
|
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
|
|
k.paramSubspace.SetParamSet(ctx, ¶ms)
|
|
}
|