func NewAppModule(k *keeper.Keeper) AppModule {
	return AppModule{
		AppModule: tibc.NewAppModule(k.Keeper),
		k:         k,
	}
}
NewAppModule creates a new AppModule object
package tibc
import (
	"github.com/bianjieai/irita/modules/tibc/client/cli"
	"github.com/bianjieai/irita/modules/tibc/keeper"
	tibctypes "github.com/bianjieai/irita/modules/tibc/types"
	tibc "github.com/bianjieai/tibc-go/modules/tibc/core"
	clienttypes "github.com/bianjieai/tibc-go/modules/tibc/core/02-client/types"
	packettypes "github.com/bianjieai/tibc-go/modules/tibc/core/04-packet/types"
	host "github.com/bianjieai/tibc-go/modules/tibc/core/24-host"
	"github.com/bianjieai/tibc-go/modules/tibc/core/types"
	codectypes "github.com/cosmos/cosmos-sdk/codec/types"
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/cosmos/cosmos-sdk/types/module"
	"github.com/spf13/cobra"
)
var (
	_ module.AppModule = AppModule{}
)
type AppModule struct {
	tibc.AppModule
	k *keeper.Keeper
}
func (AppModule) GetTxCmd() *cobra.Command {
	return cli.NewTxCmd()
}
func (am AppModule) Route() sdk.Route {
	return sdk.NewRoute(host.RouterKey, NewHandler(*am.k))
}
func (am AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
	types.RegisterInterfaces(registry)
	tibctypes.RegisterInterfaces(registry)
}
func (am AppModule) RegisterServices(cfg module.Configurator) {
	tibctypes.RegisterMsgServer(cfg.MsgServer(), am.k)
	clienttypes.RegisterMsgServer(cfg.MsgServer(), am.k.Keeper)
	packettypes.RegisterMsgServer(cfg.MsgServer(), am.k.Keeper)
	types.RegisterQueryService(cfg.QueryServer(), am.k.Keeper)
}