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
parent 8486e3a5c7
commit 31b4c2e26b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

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

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
x/genutil/v2/doc.go Normal file
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