Renamed client/commands/proofs to client/commands/query

This commit is contained in:
Ethan Frey
2017-08-04 20:50:36 +02:00
parent 6dae258767
commit d6d6b75736
12 changed files with 43 additions and 43 deletions
@@ -5,7 +5,7 @@ import (
"github.com/spf13/viper"
"github.com/tendermint/basecoin/client/commands"
proofcmd "github.com/tendermint/basecoin/client/commands/proofs"
"github.com/tendermint/basecoin/client/commands/query"
"github.com/tendermint/basecoin/docs/guide/counter/plugins/counter"
"github.com/tendermint/basecoin/stack"
@@ -23,10 +23,10 @@ func counterQueryCmd(cmd *cobra.Command, args []string) error {
prove := !viper.GetBool(commands.FlagTrustNode)
key := stack.PrefixedKey(counter.NameCounter, counter.StateKey())
h, err := proofcmd.GetParsed(key, &cp, prove)
h, err := query.GetParsed(key, &cp, prove)
if err != nil {
return err
}
return proofcmd.OutputProof(cp, h)
return query.OutputProof(cp, h)
}
+5 -5
View File
@@ -9,8 +9,8 @@ import (
"github.com/tendermint/tmlibs/cli"
"github.com/tendermint/basecoin/client/commands"
"github.com/tendermint/basecoin/client/commands/proofs"
"github.com/tendermint/basecoin/client/commands/proxy"
"github.com/tendermint/basecoin/client/commands/query"
"github.com/tendermint/basecoin/client/commands/seeds"
txcmd "github.com/tendermint/basecoin/client/commands/txs"
bcount "github.com/tendermint/basecoin/docs/guide/counter/cmd/countercli/commands"
@@ -37,10 +37,10 @@ func main() {
commands.AddBasicFlags(BaseCli)
// Prepare queries
proofs.RootCmd.AddCommand(
query.RootCmd.AddCommand(
// These are default parsers, optional in your app
proofs.TxQueryCmd,
proofs.KeyQueryCmd,
query.TxQueryCmd,
query.KeyQueryCmd,
coincmd.AccountQueryCmd,
noncecmd.NonceQueryCmd,
@@ -72,7 +72,7 @@ func main() {
commands.ResetCmd,
keycmd.RootCmd,
seeds.RootCmd,
proofs.RootCmd,
query.RootCmd,
txcmd.RootCmd,
proxy.RootCmd,
)