Documentation
¶
Index ¶
- Constants
- Variables
- func CreateAccount(args []string)
- func ExportGMrcKey(args []string)
- func ExportMPKey(args []string)
- func GenerateMPKey(args []string)
- func GetBalance(args []string)
- func GetTransactionReceipt(args []string)
- func HandleAccountCommand(args []string)
- func HandleKeyCommand(args []string)
- func ListAccounts(args []string)
- func ListMPKeyHashes(args []string)
- func SendTransaction(args []string)
- func UnlockAccount(args []string)
- func UseMPKey(args []string)
- func UseUserAddress(args []string)
Constants ¶
View Source
const ( CREATE_ACCOUNT = "create" UNLOCK_ACCOUNT = "unlock" LIST_ACCOUNTS = "list" GET_BALANCE = "balance" SEND_TRANSACTION = "send" GET_TRANSACTION_RECEIPT = "receipt" EXPORT_GMRC_KEY = "export" USE_ACCOUNT = "use" )
Commands
View Source
const ( METH_DATA_CHILD_DIR = "/etc/meth/datadir" MIDDLEWARE_CONF_CHILD_PATH = "/etc/middleware/user_conf.json" EMPTY_USER_ADDRESS = "0x0000000000000000000000000000000000000000" )
View Source
const ( ACCOUNT = "account" KEY = "key" )
Commands
View Source
const ( USE_MPKEY = "use" GENERATE_MP_KEY = "generate" EXPORT_MP_KEY = "export" LIST_MPKEY_HASHES = "list" CANCEL = "cancel" )
Commands
Variables ¶
View Source
var ACCOUNT_COMMAND_MAP = map[string]func([]string){ CREATE_ACCOUNT: CreateAccount, UNLOCK_ACCOUNT: UnlockAccount, LIST_ACCOUNTS: ListAccounts, GET_BALANCE: GetBalance, SEND_TRANSACTION: SendTransaction, GET_TRANSACTION_RECEIPT: GetTransactionReceipt, EXPORT_GMRC_KEY: ExportGMrcKey, USE_ACCOUNT: UseUserAddress, }
View Source
var COMMAND_MAP = map[string]func([]string){ ACCOUNT: HandleAccountCommand, KEY: HandleKeyCommand, }
View Source
var KEY_COMMAND_MAP = map[string]func([]string){ USE_MPKEY: UseMPKey, GENERATE_MP_KEY: GenerateMPKey, EXPORT_MP_KEY: ExportMPKey, LIST_MPKEY_HASHES: ListMPKeyHashes, }
Functions ¶
func CreateAccount ¶
func CreateAccount(args []string)
func ExportGMrcKey ¶
func ExportGMrcKey(args []string)
func ExportMPKey ¶
func ExportMPKey(args []string)
func GenerateMPKey ¶
func GenerateMPKey(args []string)
func GetBalance ¶
func GetBalance(args []string)
func GetTransactionReceipt ¶
func GetTransactionReceipt(args []string)
func HandleAccountCommand ¶
func HandleAccountCommand(args []string)
func HandleKeyCommand ¶
func HandleKeyCommand(args []string)
func ListAccounts ¶
func ListAccounts(args []string)
func ListMPKeyHashes ¶
func ListMPKeyHashes(args []string)
func SendTransaction ¶
func SendTransaction(args []string)
func UnlockAccount ¶
func UnlockAccount(args []string)
func UseUserAddress ¶
func UseUserAddress(args []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.