From ce82e01ec416e6348192595e451bfd4e92eb5583 Mon Sep 17 00:00:00 2001 From: gamarin2 Date: Tue, 19 Mar 2019 00:58:11 +0100 Subject: [PATCH] Merge PR #3922: DOCS: gamarin/master docs update --- docs/gaia/delegator-guide-cli.md | 32 ++++++++++++++++++++------------ docs/gaia/installation.md | 1 + 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/docs/gaia/delegator-guide-cli.md b/docs/gaia/delegator-guide-cli.md index 03a3051d4a..a77914c1ef 100644 --- a/docs/gaia/delegator-guide-cli.md +++ b/docs/gaia/delegator-guide-cli.md @@ -286,7 +286,7 @@ gaiacli config trust-node false Finally, let us set the `chain-id` of the blockchain we want to interact with: ```bash -gaiacli config chain-id gos-6 +gaiacli config chain-id cosmoshub-1 ``` ## Querying the state @@ -299,7 +299,7 @@ gaiacli config chain-id gos-6 ```bash // query account balances and other account-related information -gaiacli query account +gaiacli query account // query the list of validators gaiacli query staking validators @@ -348,7 +348,7 @@ Transactions on the Cosmos Hub network need to include a transaction fee in orde fees = ceil(gas * gasPrices) ``` -The `gas` is dependent on the transaction. Different transaction require different amount of `gas`. The `gas` amount for a transaction is calculated as it is being processed, but there is a way to estimate it beforehand by using the `auto` value for the `gas` flag. Of course, this only gives an estimate. You can adjust this estimate with the flag `--gas-adjustment` (default `1.0`) if you want to be sure you provide enough `gas` for the transaction. +The `gas` is dependent on the transaction. Different transaction require different amount of `gas`. The `gas` amount for a transaction is calculated as it is being processed, but there is a way to estimate it beforehand by using the `auto` value for the `gas` flag. Of course, this only gives an estimate. You can adjust this estimate with the flag `--gas-adjustment` (default `1.0`) if you want to be sure you provide enough `gas` for the transaction. For the remainder of this tutorial, we will use a `--gas-adjustment` of `1.5`. The `gasPrice` is the price of each unit of `gas`. Each validator sets a `min-gas-price` value, and will only include transactions that have a `gasPrice` greater than their `min-gas-price`. @@ -376,20 +376,20 @@ For mainnet, the recommended `gas-prices` is `0.025uatom`. // Bond a certain amount of Atoms to a given validator // ex value for flags: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000000uatom, =0.025uatom -gaiacli tx staking delegate --from --gas auto --gas-prices +gaiacli tx staking delegate --from --gas auto --gas-adjustment 1.5 --gas-prices // Withdraw all rewards // ex value for flag: =0.025uatom -gaiacli tx distr withdraw-all-rewards --from --gas auto --gas-prices +gaiacli tx distr withdraw-all-rewards --from --gas auto --gas-adjustment 1.5 --gas-prices // Unbond a certain amount of Atoms from a given validator // You will have to wait 3 weeks before your Atoms are fully unbonded and transferrable // ex value for flags: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000000uatom, =0.025uatom -gaiacli tx staking unbond --from --gas auto --gas-prices +gaiacli tx staking unbond --from --gas auto --gas-adjustment 1.5 --gas-prices ``` ::: warning @@ -444,19 +444,19 @@ At the end of the voting period, the proposal is accepted if there are more than // =text/parameter_change/software_upgrade // ex value for flag: =0.025uatom -gaiacli tx gov submit-proposal --title "Test Proposal" --description "My awesome proposal" --type --deposit=10000000uatom --gas auto --gas-prices --from +gaiacli tx gov submit-proposal --title "Test Proposal" --description "My awesome proposal" --type --deposit=10000000uatom --gas auto --gas-adjustment 1.5 --gas-prices --from // Increase deposit of a proposal // Retrieve proposalID from $gaiacli query gov proposals --status deposit_period // ex value for parameter: =10000000uatom -gaiacli tx gov deposit --gas auto --gas-prices --from +gaiacli tx gov deposit --gas auto --gas-adjustment 1.5 --gas-prices --from // Vote on a proposal // Retrieve proposalID from $gaiacli query gov proposals --status voting_period //