commands

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const KEYSPATH = "./keystorage/"

Variables

View Source
var ContractsCommands = []cli.Command{
	{
		Name:  "contracts",
		Usage: "interact with contracts",
		Subcommands: []cli.Command{{
			Name:  "token",
			Usage: "for token smart contract",
			Subcommands: []cli.Command{
				{
					Name:   "deploy",
					Usage:  "deploy token smart contract",
					Action: cmdTokenDeploy,
				},
				{
					Name:   "mint",
					Usage:  "mint tokens that will go to this Relay address",
					Action: cmdTokenMint,
				},
				{
					Name:   "transfer",
					Usage:  "tranfer tokens to a specified address",
					Action: cmdTokenTransfer,
				},
				{
					Name:   "info",
					Usage:  "gets ifo about the token stats",
					Action: cmdTokenInfo,
				},
				{
					Name:   "renunceownership",
					Usage:  "renunce ownership",
					Action: cmdTokenRenunceOwnership,
				},
			},
		},
		},
	},
}
View Source
var ServerCommands = []cli.Command{
	{
		Name:    "init",
		Aliases: []string{},
		Usage:   "initialize the database",
		Action:  cmdInit,
	},
	{
		Name:    "start",
		Aliases: []string{},
		Usage:   "start the server",
		Action:  cmdStart,
	},
	{
		Name:    "info",
		Aliases: []string{},
		Usage:   "get info about the server",
		Action:  cmdInfo,
	},
}
View Source
var WalletCommands = []cli.Command{
	{
		Name:  "wallet",
		Usage: "create and manage eth wallet",
		Subcommands: []cli.Command{{
			Name:   "new",
			Usage:  "create new Keystorage. Args: keystoreId password",
			Action: cmdWalletNew,
		},
			{
				Name:   "info",
				Usage:  "display info about the current relay wallets",
				Action: cmdWalletInfo,
			}},
	},
}

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