OSDN Git Service

Thanos did someting
[bytom/vapor.git] / cmd / vaporcli / commands / wallet.go
diff --git a/cmd/vaporcli/commands/wallet.go b/cmd/vaporcli/commands/wallet.go
deleted file mode 100644 (file)
index 823781e..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-package commands
-
-import (
-       "os"
-
-       "github.com/spf13/cobra"
-       jww "github.com/spf13/jwalterweatherman"
-
-       "github.com/vapor/util"
-)
-
-var walletInfoCmd = &cobra.Command{
-       Use:   "wallet-info",
-       Short: "Print the information of wallet",
-       Args:  cobra.NoArgs,
-       Run: func(cmd *cobra.Command, args []string) {
-               data, exitCode := util.ClientCall("/wallet-info")
-               if exitCode != util.Success {
-                       os.Exit(exitCode)
-               }
-               printJSON(data)
-       },
-}
-
-var rescanWalletCmd = &cobra.Command{
-       Use:   "rescan-wallet",
-       Short: "Trigger to rescan block information into related wallet",
-       Args:  cobra.NoArgs,
-       Run: func(cmd *cobra.Command, args []string) {
-               if _, exitCode := util.ClientCall("/rescan-wallet"); exitCode != util.Success {
-                       os.Exit(exitCode)
-               }
-
-               jww.FEEDBACK.Println("Successfully trigger rescanning wallet")
-       },
-}