cli

package
v0.50.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(
	genTxValidator func([]transaction.Msg) error,
	genMM genesisMM,
	exportable ExportableApp,
) *cobra.Command

Commands adds core sdk's sub-commands into genesis command.

func CommandsWithCustomMigrationMap

func CommandsWithCustomMigrationMap(
	genTxValidator func([]transaction.Msg) error,
	genMM genesisMM,
	exportable ExportableApp,
	migrationMap genutiltypes.MigrationMap,
) *cobra.Command

CommandsWithCustomMigrationMap adds core sdk's sub-commands into genesis command with custom migration map. This custom migration map can be used by the application to add its own migration map.

func ExportCmd

func ExportCmd(app ExportableApp) *cobra.Command

ExportCmd dumps app state to JSON.

Types

type ExportableApp

type ExportableApp interface {
	ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (v2.ExportedApp, error)
	LoadHeight(uint64) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL