Merge pull request #43 from cosmos/dev/sequence-numbers

Fix sequence numbers
This commit is contained in:
Adrian Brink 2018-06-07 11:38:49 -07:00 committed by GitHub
commit 134a50d155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ The best way to get coins at the moment is to ask in Riot chat. We plan to have
## Send tokens
```
gaiacli send --amount=1000fermion --chain-id=<name_of_testnet_chain> --sequence=1 --name=<key_name> --to=<destination_address>
gaiacli send --amount=1000fermion --chain-id=<name_of_testnet_chain> --sequence=0 --name=<key_name> --to=<destination_address>
```
The `--amount` flag defines the corresponding amount of the coin in the format `--amount=<value|coin_name>`
@ -247,7 +247,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=1
gaiacli 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.
@ -257,7 +257,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=1
gaiacli 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`\).