35 lines
696 B
Go
35 lines
696 B
Go
|
package params
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
|
||
|
"github.com/cosmos/cosmos-sdk/codec"
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
"github.com/cosmos/cosmos-sdk/x/params/types"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
_ sdk.AppModuleBasic = AppModuleBasic{}
|
||
|
)
|
||
|
|
||
|
const moduleName = "params"
|
||
|
|
||
|
// app module basics object
|
||
|
type AppModuleBasic struct{}
|
||
|
|
||
|
// module name
|
||
|
func (AppModuleBasic) Name() string {
|
||
|
return moduleName
|
||
|
}
|
||
|
|
||
|
// register module codec
|
||
|
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec) {
|
||
|
types.RegisterCodec(cdc)
|
||
|
}
|
||
|
|
||
|
// default genesis state
|
||
|
func (AppModuleBasic) DefaultGenesis() json.RawMessage { return nil }
|
||
|
|
||
|
// module validate genesis
|
||
|
func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) error { return nil }
|