docs(x/genutil): audit genutil (backport #21471) (#21476)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2024-08-30 09:43:55 +00:00
committed by GitHub
co-authored by Julien Robert
parent 8486e3a5c7
commit 31b4c2e26b
3 changed files with 6 additions and 3 deletions
-2
View File
@@ -13,8 +13,6 @@ import (
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
)
// TODO(serverv2): remove app exporter notion that is server v1 specific
type genesisMM interface {
DefaultGenesis() map[string]json.RawMessage
ValidateGenesis(genesisData map[string]json.RawMessage) error
+1 -1
View File
@@ -21,7 +21,7 @@ type genesisMM interface {
// Commands adds core sdk's sub-commands into genesis command.
func Commands(genutilModule genutil.AppModule, genMM genesisMM, appExport v2.AppExporter) *cobra.Command {
return CommandsWithCustomMigrationMap(genutilModule, genMM, appExport, genutiltypes.MigrationMap{})
return CommandsWithCustomMigrationMap(genutilModule, genMM, appExport, cli.MigrationMap)
}
// CommandsWithCustomMigrationMap adds core sdk's sub-commands into genesis command with custom migration map.
+5
View File
@@ -0,0 +1,5 @@
// v2 contains logic and CLI used for genutil by server/v2 / runtime/v2 applications.
// It contains the AppExporter struct which is used when exporting the application state.
// Additionnaly it holds the a custom Export command specific to the v2 application.
// The rest of the CLI commands are the same as the ones in the genutil module.
package v2