Commit 6780aa90 authored by linj's avatar linj Committed by vipwzw

token cmd

get_finish_created -> created get_precreated -> precreated token_assets -> assets token_balance -> balance get_token_logs -> logs
parent bccd6190
...@@ -35,7 +35,7 @@ func TokenCmd() *cobra.Command { ...@@ -35,7 +35,7 @@ func TokenCmd() *cobra.Command {
CreateTokenTransferCmd(), CreateTokenTransferCmd(),
CreateTokenWithdrawCmd(), CreateTokenWithdrawCmd(),
GetTokensPreCreatedCmd(), GetTokensPreCreatedCmd(),
GetTokensFinishCreatedCmd(), GetTokensCreatedCmd(),
GetTokenAssetsCmd(), GetTokenAssetsCmd(),
GetTokenBalanceCmd(), GetTokenBalanceCmd(),
CreateRawTokenPreCreateTxCmd(), CreateRawTokenPreCreateTxCmd(),
...@@ -136,7 +136,7 @@ func createTokenWithdraw(cmd *cobra.Command, args []string) { ...@@ -136,7 +136,7 @@ func createTokenWithdraw(cmd *cobra.Command, args []string) {
// GetTokensPreCreatedCmd get precreated tokens // GetTokensPreCreatedCmd get precreated tokens
func GetTokensPreCreatedCmd() *cobra.Command { func GetTokensPreCreatedCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "get_precreated", Use: "precreated",
Short: "Get precreated tokens", Short: "Get precreated tokens",
Run: getPreCreatedTokens, Run: getPreCreatedTokens,
} }
...@@ -179,10 +179,10 @@ func getPreCreatedTokens(cmd *cobra.Command, args []string) { ...@@ -179,10 +179,10 @@ func getPreCreatedTokens(cmd *cobra.Command, args []string) {
} }
} }
// GetTokensFinishCreatedCmd get finish created tokens // GetTokensCreatedCmd get finish created tokens
func GetTokensFinishCreatedCmd() *cobra.Command { func GetTokensCreatedCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "get_finish_created", Use: "created",
Short: "Get finish created tokens", Short: "Get finish created tokens",
Run: getFinishCreatedTokens, Run: getFinishCreatedTokens,
} }
...@@ -229,7 +229,7 @@ func getFinishCreatedTokens(cmd *cobra.Command, args []string) { ...@@ -229,7 +229,7 @@ func getFinishCreatedTokens(cmd *cobra.Command, args []string) {
// GetTokenAssetsCmd get token assets // GetTokenAssetsCmd get token assets
func GetTokenAssetsCmd() *cobra.Command { func GetTokenAssetsCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "token_assets", Use: "assets",
Short: "Get token assets", Short: "Get token assets",
Run: tokenAssets, Run: tokenAssets,
} }
...@@ -287,7 +287,7 @@ func parseTokenAssetsRes(arg interface{}) (interface{}, error) { ...@@ -287,7 +287,7 @@ func parseTokenAssetsRes(arg interface{}) (interface{}, error) {
// GetTokenBalanceCmd get token balance // GetTokenBalanceCmd get token balance
func GetTokenBalanceCmd() *cobra.Command { func GetTokenBalanceCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "token_balance", Use: "balance",
Short: "Get token balance of one or more addresses", Short: "Get token balance of one or more addresses",
Run: tokenBalance, Run: tokenBalance,
} }
...@@ -544,7 +544,7 @@ func tokenBurn(cmd *cobra.Command, args []string) { ...@@ -544,7 +544,7 @@ func tokenBurn(cmd *cobra.Command, args []string) {
// GetTokenLogsCmd get logs of token // GetTokenLogsCmd get logs of token
func GetTokenLogsCmd() *cobra.Command { func GetTokenLogsCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "get_token_logs", Use: "logs",
Short: "Get logs of token", Short: "Get logs of token",
Run: getTokenLogs, Run: getTokenLogs,
} }
...@@ -589,7 +589,7 @@ func getTokenLogsFlags(cmd *cobra.Command) { ...@@ -589,7 +589,7 @@ func getTokenLogsFlags(cmd *cobra.Command) {
// GetTokenCmd get token // GetTokenCmd get token
func GetTokenCmd() *cobra.Command { func GetTokenCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "get_token", Use: "info",
Short: "Get token info", Short: "Get token info",
Run: getToken, Run: getToken,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment