cmd

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFlagUsage = errors.Register(types.ModuleName, 1110, "invalid flag usage")

ErrInvalidFlagUsage is returned when CLI flags are used incorrectly or in incompatible combinations

Functions

func ParseAndSetNetworkRelatedFlags added in v0.1.13

func ParseAndSetNetworkRelatedFlags(cmd *cobra.Command) error

ParseAndSetNetworkRelatedFlags checks if the --network flag is set (i.e. not empty-string). If so, sets the following flags according to their hard-coded network-specific values: • --chain-id • --node • --grpc-addr • --grpc-insecure • --faucet-base-url

Types

type ArmoredJson

type ArmoredJson struct {
	Kdf        string `json:"kdf" yaml:"kdf"`
	Salt       string `json:"salt" yaml:"salt"`
	SecParam   string `json:"secparam" yaml:"secparam"`
	Hint       string `json:"hint" yaml:"hint"`
	Ciphertext string `json:"ciphertext" yaml:"ciphertext"`
}

ArmoredJson is a data structure which is used to (de)serialize the encrypted exported Morse private key file. Copy-pasted from https://github.com/pokt-network/pocket-core/blob/2cd25e82095dc52939fef58e9cc3deb1923c01f7/crypto/keys/mintkey/mintkey.go#L96

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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