MCPcopy Create free account
hub / github.com/akash-network/node / genesisCommand

Function genesisCommand

cmd/akash/cmd/root.go:99–111  ·  view source on GitHub ↗

genesisCommand builds genesis-related `simd genesis` command. Users may provide application specific commands as a parameter

(encodingConfig sdkutil.EncodingConfig, cmds ...*cobra.Command)

Source from the content-addressed store, hash-verified

97
98// genesisCommand builds genesis-related `simd genesis` command. Users may provide application specific commands as a parameter
99func genesisCommand(encodingConfig sdkutil.EncodingConfig, cmds ...*cobra.Command) *cobra.Command {
100 home := app.DefaultHome
101
102 cmd := cli.GetGenesisCmd(app.ModuleBasics(), encodingConfig.TxConfig, app.DefaultHome, encodingConfig.SigningOptions.ValidatorAddressCodec)
103
104 for _, subCmd := range cmds {
105 cmd.AddCommand(subCmd)
106 }
107
108 cmd.AddCommand(AddGenesisAccountCmd(home))
109
110 return cmd
111}

Callers 1

initRootCmdFunction · 0.85

Calls 2

ModuleBasicsFunction · 0.92
AddGenesisAccountCmdFunction · 0.85

Tested by

no test coverage detected