cmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidUsage usage is returned when the CLI arguments are invalid.
	ErrInvalidUsage = sdkerrors.Register(codespace, 1100, "invalid CLI usage")

	// ErrMorseExportState is returned with the JSON generated from `pocket util export-genesis-for-reset` is invalid.
	ErrMorseExportState = sdkerrors.Register(codespace, 1101, "morse export state failed")

	// ErrMorseStateTransform is returned upon general failure when transforming the MorseExportState into the MorseAccountState.
	ErrMorseStateTransform = sdkerrors.Register(codespace, 1102, "morse export to state transformation invalid")

	// ErrInvalidMorseAccountState is used when the morse account state hash doesn't match the expected hash.
	ErrInvalidMorseAccountState = sdkerrors.Register(codespace, 1103, "morse account state is invalid")
)

Functions

func ClaimAccountCmd

func ClaimAccountCmd() *cobra.Command

func ClaimApplicationCmd

func ClaimApplicationCmd() *cobra.Command

func ClaimSupplierCmd

func ClaimSupplierCmd() *cobra.Command

func CollectMorseAccountsCmd

func CollectMorseAccountsCmd() *cobra.Command

DEV_NOTE: AutoCLI does not apply here because there is no gRPC service, message, or query.

Purpose:

  • Facilitate deterministic (reproducible) transformation from Morse's export data structure (MorseStateExport) into Shannon's import data structure (MorseAccountState)
  • Prepare data for use in the MsgImportMorseAccountState message

Note: - Does not interact with the network directly

func ImportMorseAccountsCmd

func ImportMorseAccountsCmd() *cobra.Command

func LoadMorsePrivateKey

func LoadMorsePrivateKey(morseKeyExportPath, passphrase string, noPrompt bool) (ed25519.PrivKey, error)

LoadMorsePrivateKey reads, deserializes, decrypts and returns an exported Morse private key from morseKeyExportPath.

func UnarmorDecryptPrivKey

func UnarmorDecryptPrivKey(armorStr []byte, passphrase string) (ed25519.PrivKey, error)

UnarmorDecryptPrivKey deserializes and decrypts the exported Morse private key file in armorStr using the passphrase.

func ValidateMorseAccountsCmd

func ValidateMorseAccountsCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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