Documentation ¶
Index ¶
- Variables
- func LoadSEROConfig() error
- func NewAccountFlow(cli *openwcli.CLI) error
- func SERO_CreateAccountOnServer(cli *openwcli.CLI, name, password, symbol string, wallet *openwsdk.Wallet) (*openwsdk.Account, []*openwsdk.Address, error)
- func SERO_SignRawTransaction(rawTx *openwsdk.RawTransaction, key *hdkeystore.HDKey) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppNameFlag = cli.StringFlag{ Name: "name", Usage: "Application Name", } SymbolFlag = cli.StringFlag{ Name: "symbol, s", Usage: "Currency symbol", } BatchFlag = cli.BoolFlag{ Name: "batch", Usage: "Create address with batch", } InitFlag = cli.BoolFlag{ Name: "i, init", Usage: "Init operate", } LogDirFlag = cli.StringFlag{ Name: "logdir", Usage: "log files directory", } DebugFlag = cli.BoolFlag{ Name: "debug", Usage: "print debug log info", } PathFlag = cli.StringFlag{ Name: "path, p", Usage: "directory path", } FileFlag = cli.StringFlag{ Name: "file, f", Usage: "file path", } ConfFlag = cli.StringFlag{ Name: "conf, c", Usage: "config file path", } )
View Source
var ( Version = "" GitRev = "" BuildTime = "" )
View Source
var (
// 钱包命令
CmdVersion = cli.Command{
Name: "version",
Usage: "show version information",
ArgsUsage: "",
Action: version,
Category: "OPENW-SERO COMMANDS",
}
)
View Source
var ( // 通信节点命令 Commands = []cli.Command{ CmdVersion, { Name: "genkeychain", Usage: "Generate new keychain and print it", ArgsUsage: "", Action: genkeychain, Category: "OPENW-SERO COMMANDS", }, { Name: "noderegister", Usage: "create new keychain and register node to openw-server", ArgsUsage: "", Action: noderegister, Category: "OPENW-SERO COMMANDS", }, { Name: "nodeinfo", Usage: "show node information", ArgsUsage: "", Action: nodeinfo, Category: "OPENW-SERO COMMANDS", }, { Name: "listwallet", Usage: "show all wallet information", Action: listwallet, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "newwallet", Usage: "create a new wallet", ArgsUsage: "<symbol>", Action: newwallet, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "newaccount", Usage: "create a new assets account", ArgsUsage: "<symbol>", Action: newaccount, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "listaccount", Usage: "show all assets account", ArgsUsage: "<symbol>", Action: listaccount, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "newaddress", Usage: "select account to create batch address", ArgsUsage: "<symbol>", Action: newaddress, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "searchaddress", Usage: "search address info", ArgsUsage: "<symbol>", Action: searchaddress, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "transfer", Usage: "transfer certain amount of coins/tokens to destination address", ArgsUsage: "<symbol>", Action: transfer, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "transferall", Usage: "transfer all of coins/token to destination address", ArgsUsage: "<symbol>", Action: transferall, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "listsuminfo", Usage: "show assets account summary info", ArgsUsage: "<symbol>", Action: listsuminfo, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "setsum", Usage: "setup assets account summary info", ArgsUsage: "<symbol>", Action: setsum, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "startsum", Usage: "start summary account task", ArgsUsage: "<symbol>", Action: startsum, Category: "WALLET COMMANDS", Flags: []cli.Flag{ FileFlag, }, }, { Name: "updateinfo", Usage: "update info from openw-server", ArgsUsage: "<symbol>", Action: updateinfo, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "listsymbol", Usage: "show all symbols info", ArgsUsage: "<symbol>", Action: listsymbol, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "listtokencontract", Usage: "show all token contract info", ArgsUsage: "<symbol>", Action: listtokencontract, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "listaddress", Usage: "select account to show all address", ArgsUsage: "<symbol>", Action: listaddress, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "trustserver", Usage: "start trusteeship wallet service for transmit node", ArgsUsage: "<symbol>", Action: trustserver, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, { Name: "listtokenbalance", Usage: "show account all token balance", ArgsUsage: "<symbol>", Action: listtokenbalance, Category: "WALLET COMMANDS", Flags: []cli.Flag{}, }, } )
Functions ¶
func SERO_CreateAccountOnServer ¶
func SERO_CreateAccountOnServer(cli *openwcli.CLI, name, password, symbol string, wallet *openwsdk.Wallet) (*openwsdk.Account, []*openwsdk.Address, error)
SERO_CreateAccountOnServer
func SERO_SignRawTransaction ¶
func SERO_SignRawTransaction(rawTx *openwsdk.RawTransaction, key *hdkeystore.HDKey) error
SignRawTransaction 签名交易单
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.