func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage {
	return ModuleCdc.MustMarshalJSON(ExportGenesis(ctx, am.keeper))
}
ExportGenesis returns the evidence module's exported genesis state as raw JSON bytes.
package evidence
import (
	"encoding/json"
	"fmt"
	"github.com/KuChainNetwork/kuchain/chain/genesis"
	"github.com/KuChainNetwork/kuchain/chain/msg"
	chainType "github.com/KuChainNetwork/kuchain/chain/types"
	"github.com/KuChainNetwork/kuchain/x/asset/keeper"
	"github.com/KuChainNetwork/kuchain/x/evidence/client"
	"github.com/KuChainNetwork/kuchain/x/evidence/client/cli"
	"github.com/KuChainNetwork/kuchain/x/evidence/client/rest"
	"github.com/cosmos/cosmos-sdk/client/context"
	"github.com/cosmos/cosmos-sdk/codec"
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/cosmos/cosmos-sdk/types/module"
	"github.com/gorilla/mux"
	"github.com/spf13/cobra"
	abci "github.com/tendermint/tendermint/abci/types"
)
var (
	_ module.AppModule      = AppModule{}
	_ module.AppModuleBasic = AppModuleBasic{}
)
type AppModuleBasic struct {
	genesis.ModuleBasicBase
	evidenceHandlers []client.EvidenceHandler  
}
func NewAppModuleBasic() AppModuleBasic {
	return AppModuleBasic{
		ModuleBasicBase:  genesis.NewModuleBasicBase(ModuleCdc, DefaultGenesisState()),
		evidenceHandlers: make([]client.EvidenceHandler, 0),
	}
}
func (AppModuleBasic) Name() string {
	return ModuleName
}
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec) {
	RegisterCodec(cdc)
}
func (a AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router) {
	evidenceRESTHandlers := make([]rest.EvidenceRESTHandler, len(a.evidenceHandlers))
	for i, evidenceHandler := range a.evidenceHandlers {
		evidenceRESTHandlers[i] = evidenceHandler.RESTHandler(ctx)
	}
	rest.RegisterRoutes(ctx, rtr, evidenceRESTHandlers)
}
func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command {
	evidenceCLIHandlers := make([]*cobra.Command, len(a.evidenceHandlers))
	for i, evidenceHandler := range a.evidenceHandlers {
		evidenceCLIHandlers[i] = evidenceHandler.CLIHandler(cdc)
	}
	return cli.GetTxCmd(StoreKey, cdc, evidenceCLIHandlers)
}
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command {
	return cli.GetQueryCmd(StoreKey, cdc)
}
type AppModule struct {
	AppModuleBasic
	keeper        Keeper
	assetKeeper   keeper.AssetKeeper
	accountAuther chainType.AccountAuther
}
func NewAppModule(keeper Keeper, accountAuther chainType.AccountAuther, assetKeeper keeper.AssetKeeper) AppModule {
	return AppModule{
		AppModuleBasic: NewAppModuleBasic(),
		keeper:         keeper,
		assetKeeper:    assetKeeper,
		accountAuther:  accountAuther,
	}
}
func (am AppModule) Name() string {
	return am.AppModuleBasic.Name()
}
func (AppModule) Route() string {
	return RouterKey
}
func (AppModule) QuerierRoute() string {
	return QuerierRoute
}
func (am AppModule) NewHandler() sdk.Handler {
	return msg.WarpHandler(am.assetKeeper, am.accountAuther, NewHandler(am.keeper))
}
func (am AppModule) NewQuerierHandler() sdk.Querier {
	return NewQuerier(am.keeper)
}
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {}
func (am AppModule) InitGenesis(ctx sdk.Context, bz json.RawMessage) []abci.ValidatorUpdate {
	var gs GenesisState
	err := ModuleCdc.UnmarshalJSON(bz, &gs)
	if err != nil {
		panic(fmt.Sprintf("failed to unmarshal %s genesis state: %s", ModuleName, err))
	}
	InitGenesis(ctx, am.keeper, gs)
	return []abci.ValidatorUpdate{}
}