cmd

package
v0.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagCudosGenesisPath           = "cudos-genesis-path"
	FlagCudosGenesisSha256         = "cudos-genesis-sha256"
	FlagCudosMigrationConfigPath   = "cudos-migration-config-path"
	FlagCudosMigrationConfigSha256 = "cudos-migration-config-sha256"
)

Module init related flags

Variables

This section is empty.

Functions

func AddCudosFlags added in v0.14.0

func AddCudosFlags(startCmd *cobra.Command)

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddGenesisDelegationCmd

func AddGenesisDelegationCmd(defaultNodeHome string) *cobra.Command

AddGenesisDelegationCmd returns a command to add delegations to genesis.

func AddGenesisWasmMsgCmd

func AddGenesisWasmMsgCmd(defaultNodeHome string) *cobra.Command

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for simd. It is called once in the main function.

func NormaliseJsonFileContent added in v0.14.0

func NormaliseJsonFileContent(path string) (string, error)

func NormaliseJsonFileContentSha256Hex added in v0.14.0

func NormaliseJsonFileContentSha256Hex(path string) (string, error)

func NormalizeJSON added in v0.14.0

func NormalizeJSON(data interface{}) interface{}

NormalizeJSON recursively normalizes the JSON by sorting keys in maps and removing whitespace.

func NormalizeJSONString added in v0.14.0

func NormalizeJSONString(input string) (string, error)

NormalizeJSONString takes a JSON string, normalizes it, and returns the result as a minified string.

func ReadJSONFile added in v0.14.0

func ReadJSONFile(filePath string) (string, error)

ReadJSONFile reads the content of a JSON file and returns it as a []byte.

Types

This section is empty.

Jump to

Keyboard shortcuts

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