Skip to content

Commit

Permalink
modules and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Aug 30, 2024
1 parent 9c6b79a commit ab007fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions ignite/pkg/chaincmd/chaincmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ const (
commandGentx = "gentx"
commandCollectGentxs = "collect-gentxs"
commandValidateGenesis = "validate"
commandExportGenssis = "export"
commandShowNodeID = "show-node-id"
commandStatus = "status"
commandTx = "tx"
commandQuery = "query"
commandUnsafeReset = "unsafe-reset-all"
commandExport = "export"
commandTendermint = "tendermint"

optionHome = "--home"
Expand Down Expand Up @@ -488,7 +488,8 @@ func (c ChainCmd) UnsafeResetCommand() step.Option {
// ExportCommand returns the command to export the state of the blockchain into a genesis file.
func (c ChainCmd) ExportCommand() step.Option {
command := []string{
commandExport,
commandGenesis,
commandExportGenssis,
}
return c.daemonCommand(command)
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/pkg/cosmosbuf/buf.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (

// CMDGenerate generate command.
CMDGenerate Command = "generate"
CMDExport Command = "export"
CMDExport Command = "genesis export"
CMDDep Command = "dep"

specCacheNamespace = "generate.buf"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
authtypes "cosmossdk.io/x/auth/types"
govtypes "cosmossdk.io/x/gov/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"google.golang.org/grpc"
<%= if (isIBC) { %>porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types"
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
Expand Down Expand Up @@ -127,9 +128,9 @@ func NewAppModule(
}

// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServerImpl(am.keeper))
func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) {
types.RegisterMsgServer(registrar, keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(registrar, keeper.NewQueryServerImpl(am.keeper))
}

// InitGenesis performs the module's genesis initialization. It returns no validator updates.
Expand Down

0 comments on commit ab007fc

Please sign in to comment.