commands

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 钱包命令
	CmdWallet = cli.Command{
		Name:      "wallet",
		Usage:     "Manage multi currency wallet",
		ArgsUsage: "",
		Category:  "Application COMMANDS",
		Description: `
You create, import, restore wallet

`,

		Subcommands: []cli.Command{
			{

				Name:      "config",
				Usage:     "config a currency account",
				ArgsUsage: "<symbol>",
				Action:    walletConfig,
				Category:  "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
					utils.InitFlag,
				},
				Description: `
	wmd wallet config -s <symbol>

This command will init the wallet node.

	`,
			},
			{

				Name:     "list",
				Usage:    "Get all wallet information",
				Action:   getWalletList,
				Category: "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
				},
			},
			{

				Name:      "new",
				Usage:     "new a currency wallet",
				ArgsUsage: "<symbol>",
				Action:    createNewWallet,
				Category:  "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
				},
				Description: `
	wmd wallet new -s <symbol>

This command will start the wallet node, and create new wallet.

	`,
			},
			{

				Name:     "batchaddr",
				Usage:    "Create batch address for wallet",
				Action:   batchAddress,
				Category: "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
					utils.BatchFlag,
				},
				Description: `
	wmd wallet batchaddr -s <symbol>

This command will create batch address for your given wallet id.

	`,
			},

			{

				Name:     "startsum",
				Usage:    "Start a timer to sum wallet balance",
				Action:   startSummary,
				Category: "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
					utils.BatchFlag,
				},
				Description: `
	wmd wallet startsum -s ada

This command will Start a timer to sum wallet balance.
When the total balance over the threshold, wallet will send money
to a sum address.

	`,
			},
			{

				Name:     "transfer",
				Usage:    "Select a wallet transfer assets",
				Action:   sendTransaction,
				Category: "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
				},
				Description: `
	wmd wallet transfer -s <symbol>

This command will transfer the coin.

	`,
			},
			{

				Name:     "backup",
				Usage:    "Backup wallet key in filePath: ./data/<symbol>/key/",
				Action:   backupWalletKey,
				Category: "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
				},
				Description: `
	wmd wallet backup -s ada

This command will Backup wallet key in filePath: ./data/<symbol>/key/.

	`,
			},
			{

				Name:     "restore",
				Usage:    "Restore a wallet by backup data",
				Action:   restoreWallet,
				Category: "WALLET COMMANDS",
				Flags: []cli.Flag{
					utils.SymbolFlag,
				},
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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