Documentation ¶
Index ¶
Constants ¶
View Source
const (
NAME = "credential"
)
Variables ¶
View Source
var METH_ACCOUNT_SUGGESTIONS = []prompt.Suggest{
{Text: credential_commands.CREATE_ACCOUNT, Description: "Create account"},
{Text: credential_commands.UNLOCK_ACCOUNT, Description: "Unlock account"},
{Text: credential_commands.LIST_ACCOUNTS, Description: "List accounts"},
{Text: credential_commands.SEND_TRANSACTION, Description: "Send a transaction"},
{Text: credential_commands.GET_BALANCE, Description: "Get balance for an account"},
{Text: credential_commands.GET_TRANSACTION_RECEIPT, Description: "Get receipt for a transaction"},
{Text: credential_commands.EXPORT_GMRC_KEY, Description: "Export Go Marconi Keystore associated with an account"},
{Text: credential_commands.USE_ACCOUNT, Description: "Use account address"},
}
Mode suggestions
View Source
var METH_KEY_SUGGESTIONS = []prompt.Suggest{
{Text: credential_commands.GENERATE_MP_KEY, Description: "Generate nodekey"},
{Text: credential_commands.USE_MPKEY, Description: "Set nodekey to use with other commands"},
{Text: credential_commands.EXPORT_MP_KEY, Description: "Export nodekey"},
{Text: credential_commands.LIST_MPKEY_HASHES, Description: "List nodekeys"},
}
Mode suggestions
View Source
var METH_SUGGESTIONS = []prompt.Suggest{ {Text: credential_commands.ACCOUNT, Description: "Account related commands"}, {Text: credential_commands.KEY, Description: "Key related commands"}, {Text: modes.RETURN_TO_ROOT, Description: "Return to home menu"}, {Text: modes.EXIT_CMD, Description: "Exit mcli"}, }
Mode suggestions
Functions ¶
This section is empty.
Types ¶
type CredsMode ¶
Menu/Mode for m-eth related operations
func NewCredsMode ¶
Create a new m-eth cmd struct, use this to create a CredsMode otherwise suggestion and handlers wont be properly initialized
func (*CredsMode) HandleCommand ¶
Click to show internal directories.
Click to hide internal directories.