func NewAppModule(keeper Keeper, supplyKeeper types.SupplyKeeper) AppModule {
	return AppModule{
		AppModuleBasic: AppModuleBasic{},
		keeper:         keeper,
		supplyKeeper:   supplyKeeper,
	}
}
NewAppModule creates a new AppModule object
package distribution
import (
	"encoding/json"
	"math/rand"
	"github.com/gorilla/mux"
	"github.com/spf13/cobra"
	abci "github.com/tendermint/tendermint/abci/types"
	"github.com/Dipper-Labs/Dipper-Protocol/app/v0/distribution/client/cli"
	"github.com/Dipper-Labs/Dipper-Protocol/app/v0/distribution/client/rest"
	"github.com/Dipper-Labs/Dipper-Protocol/app/v0/distribution/keeper"
	"github.com/Dipper-Labs/Dipper-Protocol/app/v0/distribution/simulation"
	"github.com/Dipper-Labs/Dipper-Protocol/app/v0/distribution/types"
	stakingkeeper "github.com/Dipper-Labs/Dipper-Protocol/app/v0/staking/keeper"
	"github.com/Dipper-Labs/Dipper-Protocol/client/context"
	"github.com/Dipper-Labs/Dipper-Protocol/codec"
	sdk "github.com/Dipper-Labs/Dipper-Protocol/types"
	"github.com/Dipper-Labs/Dipper-Protocol/types/module"
	simtypes "github.com/Dipper-Labs/Dipper-Protocol/types/simulation"
)
var (
	_ module.AppModule           = AppModule{}
	_ module.AppModuleBasic      = AppModuleBasic{}
	_ module.AppModuleSimulation = AppModule{}
)
type AppModuleBasic struct{}
func (AppModuleBasic) Name() string {
	return ModuleName
}
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec) {
	RegisterCodec(cdc)
}
func (AppModuleBasic) DefaultGenesis() json.RawMessage {
	return ModuleCdc.MustMarshalJSON(DefaultGenesisState())
}
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error {
	var data GenesisState
	err := ModuleCdc.UnmarshalJSON(bz, &data)
	if err != nil {
		return err
	}
	return ValidateGenesis(data)
}
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router) {
	rest.RegisterRoutes(ctx, rtr, StoreKey)
}
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command {
	return cli.GetTxCmd(StoreKey, cdc)
}
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command {
	return cli.GetQueryCmd(StoreKey, cdc)
}
type AppModule struct {
	AppModuleBasic
	keeper          Keeper
	supplyKeeper    types.SupplyKeeper
	akForSimulation keeper.AccountKeeper  
	skForSimulation stakingkeeper.Keeper  
}