From 5a831bd0f89c15ebe5d6a8d3f55d0779daf7308f Mon Sep 17 00:00:00 2001 From: Jeremiah Andrews Date: Mon, 4 Jun 2018 18:35:07 -0700 Subject: [PATCH] additional changes --- client/rpc/validators.go | 2 +- docs/staking/intro.rst | 16 ++++++++-------- docs/staking/testnet.rst | 2 +- x/slashing/client/cli/query.go | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/rpc/validators.go b/client/rpc/validators.go index 27b7fce99e..d1aa6c9c18 100644 --- a/client/rpc/validators.go +++ b/client/rpc/validators.go @@ -17,7 +17,7 @@ import ( //ValidatorCommand returns the validator set for a given height func ValidatorCommand() *cobra.Command { cmd := &cobra.Command{ - Use: "validatorset [height]", + Use: "validator-set [height]", Short: "Get the full tendermint validator set at given height", Args: cobra.MaximumNArgs(1), RunE: printValidators, diff --git a/docs/staking/intro.rst b/docs/staking/intro.rst index 5f7cdd950e..00a68811a8 100644 --- a/docs/staking/intro.rst +++ b/docs/staking/intro.rst @@ -260,11 +260,11 @@ the first part will look like: and you want the ``pub_key`` ``data`` that starts with ``96864CE``. -Now ``bob`` can declare candidacy to that pubkey: +Now ``bob`` can create a validator with that pubkey. :: - gaiacli stake create-validator --amount=10mycoin --name=bob --pubkey= --moniker=bobby + gaiacli stake create-validator --amount=10mycoin --name=bob --address-validator=
--pub-key= --moniker=bobby with an output like: @@ -312,7 +312,7 @@ Then ``charlie`` will delegate some mycoin to ``bob``: :: - gaiacli advanced tendermint tx delegate --amount=10mycoin --name=charlie --pubkey= + gaiacli stake delegate --amount=10mycoin --address-delegator= --address-validator= --name=charlie You'll see output like: @@ -334,7 +334,7 @@ To get more information about the candidate, try: :: - gaiacli stake validator --pubkey= + gaiacli stake validator
and you'll see output similar to: @@ -367,7 +367,7 @@ It's also possible the query the delegator's bond like so: :: - gaiacli stake delegation --delegator-address 48F74F48281C89E5E4BE9092F735EA519768E8EF --pubkey 52D6FCD8C92A97F7CCB01205ADF310A18411EA8FDCC10E65BF2FCDB05AD1689B + gaiacli stake delegation --address-delegator=
--address-validator=
with an output similar to: @@ -385,7 +385,7 @@ with an output similar to: } -where the ``--delegator-address`` is ``charlie``'s address and the ``-pubkey`` is the same as we've been using. +where the ``--address-delegator`` is ``charlie``'s address and the ``--address-validator`` is ``bob``'s address. Unbonding @@ -396,7 +396,7 @@ your VotingPower reduce and your account balance increase. :: - gaiacli stake unbond --amount=5mycoin --name=charlie --pubkey= + gaiacli stake unbond --amount=5mycoin --name=charlie --address-delegator=
--address-validator=
gaiacli account 48F74F48281C89E5E4BE9092F735EA519768E8EF -See the bond decrease with ``gaiacli query delegator-bond`` like above. +See the bond decrease with ``gaiacli stake delegation`` like above. diff --git a/docs/staking/testnet.rst b/docs/staking/testnet.rst index c5341fee66..4fca09c4ad 100644 --- a/docs/staking/testnet.rst +++ b/docs/staking/testnet.rst @@ -44,7 +44,7 @@ Nice. We can also lookup the validator set: :: - gaiacli advanced tendermint validatorset + gaiacli advanced tendermint validator-set Then, we try to transfer some ``steak`` to another account: diff --git a/x/slashing/client/cli/query.go b/x/slashing/client/cli/query.go index 35f99d2fa3..948e756675 100644 --- a/x/slashing/client/cli/query.go +++ b/x/slashing/client/cli/query.go @@ -16,7 +16,7 @@ import ( // get the command to query signing info func GetCmdQuerySigningInfo(storeName string, cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ - Use: "signing_info [validator-pubkey]", + Use: "signing-info [validator-pubkey]", Short: "Query a validator's signing information", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error {