Skip to content

Commit

Permalink
chore: rename in place testnet command (#4349)
Browse files Browse the repository at this point in the history
Co-authored-by: Danilo Pantani <[email protected]>
  • Loading branch information
julienrbrt and Pantani committed Sep 11, 2024
1 parent b88bf2f commit b5cdee2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
10 changes: 10 additions & 0 deletions ignite/templates/app/files-minimal/app/app.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ func (app *App) AppCodec() codec.Codec {
return app.appCodec
}

// InterfaceRegistry returns App's interfaceRegistry.
func (app *App) InterfaceRegistry() codectypes.InterfaceRegistry {
return app.interfaceRegistry
}

// TxConfig returns App's tx config.
func (app *App) TxConfig() client.TxConfig {
return app.txConfig
}

// GetKey returns the KVStoreKey for the provided store key.
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey {
kvStoreKey, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.KVStoreKey)
Expand Down
10 changes: 10 additions & 0 deletions ignite/templates/app/files/app/app.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,16 @@ func (app *App) AppCodec() codec.Codec {
return app.appCodec
}

// InterfaceRegistry returns App's interfaceRegistry.
func (app *App) InterfaceRegistry() codectypes.InterfaceRegistry {
return app.interfaceRegistry
}

// TxConfig returns App's tx config.
func (app *App) TxConfig() client.TxConfig {
return app.txConfig
}

// GetKey returns the KVStoreKey for the provided store key.
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey {
kvStoreKey, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.KVStoreKey)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func initRootCmd(
) {
rootCmd.AddCommand(
genutilcli.InitCmd(basicManager, app.DefaultNodeHome),
NewTestnetCmd(addModuleInitFlags),
NewInPlaceTestnetCmd(addModuleInitFlags),
debug.Cmd(),
confixcmd.ConfigCommand(),
pruning.Cmd(newApp, app.DefaultNodeHome),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type valArgs struct {
homeDir string
}

func NewTestnetCmd(addStartFlags servertypes.ModuleInitFlags) *cobra.Command {
func NewInPlaceTestnetCmd(addStartFlags servertypes.ModuleInitFlags) *cobra.Command {
cmd := server.InPlaceTestnetCreator(newTestnetApp)
addStartFlags(cmd)
cmd.Short = "Updates chain's application and consensus state with provided validator info and starts the node"
Expand Down

0 comments on commit b5cdee2

Please sign in to comment.