changes to cli for current sdk develop (#40)

* changes to cli for current sdk develop

* minor fix
This commit is contained in:
Jeremiah Andrews 2018-06-08 12:58:07 -07:00 committed by GitHub
parent 9c8d2d1f6a
commit 9f9a2ed284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -234,32 +234,32 @@ Your `pubkey` can be used to create a new validator candidate by staking some to
You can find your node pubkey by running
```
gaiad show_validator
gaiad tendermint show_validator
```
and this returns your public key for the declare-candidate command
```
gaiacli declare-candidacy --amount=500steak --pubkey=<your_node_pubkey> --address-candidate=<your_address> --moniker=satoshi --chain-id=<name_of_the_testnet_chain> --sequence=1 --name=<key_name>
gaiacli stake create-validator --amount=500steak --pubkey=<your_node_pubkey> --address-candidate=<your_address> --moniker=satoshi --chain-id=<name_of_the_testnet_chain> --sequence=1 --name=<key_name>
```
You can add more information of the validator candidate such as`--website`, `--keybase-sig `or additional `--details`. If you want to edit the candidate info:
```
gaiacli edit-candidacy --details="To the cosmos !" --website="https://cosmos.network"
gaiacli stake edit-validator --details="To the cosmos !" --website="https://cosmos.network"
```
Finally, you can check all the candidate information by typing:
```
gaiacli candidate --address-candidate=<your_address> --chain-id=<name_of_the_testnet_chain>
gaiacli stake validator --address-candidate=<your_address> --chain-id=<name_of_the_testnet_chain>
```
To check that the validator is active you can find it on the validator set list:
```
gaiacli validatorset
gaiacli advanced tendermint validator-set
```
**Note:** Remember that to be in the validator set you need to have more total power than the Xnd validator, where X is the assigned size for the validator set \(by default _`X = 100`_\).
@ -273,7 +273,7 @@ You can delegate \(_i.e._ bind\) **Atoms** to a validator to become a [delegator
Bond your tokens to a validator candidate with the following command:
```
gaiacli delegate --amount=10steak --address-delegator=<your_address> --address-candidate=<bonded_validator_address> --name=<key_name> --chain-id=<name_of_testnet_chain> --sequence=2
gaiacli stake delegate --amount=10steak --address-delegator=<your_address> --address-candidate=<bonded_validator_address> --name=<key_name> --chain-id=<name_of_testnet_chain> --sequence=2
```
When tokens are bonded, they are pooled with all the other bonded tokens in the network. Validators and delegators obtain shares that represent their stake in this pool.
@ -283,7 +283,7 @@ When tokens are bonded, they are pooled with all the other bonded tokens in the
If for any reason the validator misbehaves or you just want to unbond a certain amount of the bonded tokens:
```
gaiacli unbond --address-delegator=<your_address> --address-candidate=<bonded_validator_address> --shares=MAX --name=<key_name> --chain-id=<name_of_testnet_chain> --sequence=3
gaiacli stake unbond --address-delegator=<your_address> --address-candidate=<bonded_validator_address> --shares=MAX --name=<key_name> --chain-id=<name_of_testnet_chain> --sequence=3
```
You can unbond a specific amount of`shares`\(eg:`12.1`\) or all of them \(`MAX`\).
@ -292,5 +292,5 @@ You should now see the unbonded tokens reflected in your balance and in your del
```
gaiacli account <your_address>
gaiacli delegator-bond --address-delegator=<your_address> --address-candidate=<bonded_validator_address> --chain-id=<name_of_testnet_chain>
gaiacli stake delegation --address-delegator=<your_address> --address-candidate=<bonded_validator_address> --chain-id=<name_of_testnet_chain>
```