github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/gov/module_adapter.go (about) 1 package gov 2 3 import ( 4 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/client/context" 5 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 6 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types/module" 7 "github.com/gorilla/mux" 8 "github.com/spf13/cobra" 9 10 "github.com/fibonacci-chain/fbc/x/gov/types" 11 12 anytypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types" 13 GovCli "github.com/fibonacci-chain/fbc/x/gov/client/cli" 14 "github.com/grpc-ecosystem/grpc-gateway/runtime" 15 ) 16 17 var ( 18 _ module.AppModuleBasicAdapter = AppModuleBasic{} 19 ) 20 21 func (a AppModuleBasic) RegisterInterfaces(registry anytypes.InterfaceRegistry) { 22 } 23 24 func (a AppModuleBasic) RegisterGRPCGatewayRoutes(cliContext context.CLIContext, serveMux *runtime.ServeMux) { 25 } 26 27 func (a AppModuleBasic) GetTxCmdV2(cdc *codec.CodecProxy, reg anytypes.InterfaceRegistry) *cobra.Command { 28 proposalCLIHandlers := make([]*cobra.Command, len(a.proposalHandlers)) 29 for i, proposalHandler := range a.proposalHandlers { 30 proposalCLIHandlers[i] = proposalHandler.CLIHandler(cdc, reg) 31 } 32 33 return GovCli.GetTxCmd(types.StoreKey, cdc.GetCdc(), proposalCLIHandlers) 34 } 35 36 func (a AppModuleBasic) GetQueryCmdV2(cdc *codec.CodecProxy, reg anytypes.InterfaceRegistry) *cobra.Command { 37 return nil 38 } 39 40 func (a AppModuleBasic) RegisterRouterForGRPC(cliCtx context.CLIContext, r *mux.Router) {}