feat: simapp/v2 (#20412)

Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: unknown unknown <unknown@unknown>
This commit is contained in:
Matt Kocubinski
2024-06-19 15:18:32 +00:00
committed by GitHub
co-authored by marbar3778 Marko Likhita Polavarapu unknown unknown
parent ca195c1527
commit 2d014b26c2
28 changed files with 3137 additions and 12 deletions
+5 -2
View File
@@ -21,7 +21,6 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/input"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/version"
"github.com/cosmos/cosmos-sdk/x/genutil"
"github.com/cosmos/cosmos-sdk/x/genutil/types"
@@ -70,9 +69,13 @@ func displayInfo(dst io.Writer, info printInfo) error {
return err
}
type hasDefaultGenesis interface {
DefaultGenesis() map[string]json.RawMessage
}
// InitCmd returns a command that initializes all files needed for Tendermint
// and the respective application.
func InitCmd(mm *module.Manager) *cobra.Command {
func InitCmd(mm hasDefaultGenesis) *cobra.Command {
cmd := &cobra.Command{
Use: "init [moniker]",
Short: "Initialize private validator, p2p, genesis, and application configuration files",