From 8388604a2817fe0f77af2d9a773de4dc9583da17 Mon Sep 17 00:00:00 2001 From: Frank Yang Date: Tue, 19 Mar 2019 17:50:28 +0800 Subject: [PATCH 1/5] Modify stake to atom in gaia's doc. #3833 --- .pending/improvements/gaiacli/3833-Modify-stake-to | 1 + cmd/gaia/cli_test/README.md | 2 +- cmd/gaia/init/testnet.go | 2 +- docs/gaia/deploy-testnet.md | 2 +- docs/gaia/validators/validator-setup.md | 2 +- docs/spec/auth/01_concepts.md | 2 +- docs/translations/cn/gaia/delegator-guide-cli.md | 14 +++++++------- docs/translations/kr/gaia/deploy-testnet.md | 2 +- docs/translations/kr/gaia/gaiacli.md | 10 +++++----- docs/translations/kr/gaia/ledger.md | 2 +- .../kr/gaia/validators/validator-setup.md | 2 +- x/gov/client/cli/tx.go | 2 +- x/staking/client/cli/tx.go | 2 +- 13 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 .pending/improvements/gaiacli/3833-Modify-stake-to diff --git a/.pending/improvements/gaiacli/3833-Modify-stake-to b/.pending/improvements/gaiacli/3833-Modify-stake-to new file mode 100644 index 000000000000..f399a0f76e7a --- /dev/null +++ b/.pending/improvements/gaiacli/3833-Modify-stake-to @@ -0,0 +1 @@ +#3833 Modify stake to atom in gaia's doc. \ No newline at end of file diff --git a/cmd/gaia/cli_test/README.md b/cmd/gaia/cli_test/README.md index 37fd41ce7eff..4638ca8098cc 100644 --- a/cmd/gaia/cli_test/README.md +++ b/cmd/gaia/cli_test/README.md @@ -36,7 +36,7 @@ This boilerplate above: - Ensures the tests run in parallel. Because the tests are calling out to `os/exec` for many operations these tests can take a long time to run. - Creates `.gaiad` and `.gaiacli` folders in a new temp folder. - Uses `gaiacli` to create 2 accounts for use in testing: `foo` and `bar` -- Creates a genesis file with coins (`1000footoken,1000feetoken,150stake`) controlled by the `foo` key +- Creates a genesis file with coins (`1000footoken,1000feetoken,150atom`) controlled by the `foo` key - Generates an initial bonding transaction (`gentx`) to make the `foo` key a validator at genesis - Starts `gaiad` and stops it once the test exits - Cleans up test state on a successful run diff --git a/cmd/gaia/init/testnet.go b/cmd/gaia/init/testnet.go index fc59827a6cd6..b19009e1dedf 100644 --- a/cmd/gaia/init/testnet.go +++ b/cmd/gaia/init/testnet.go @@ -85,7 +85,7 @@ Example: ) cmd.Flags().String( server.FlagMinGasPrices, fmt.Sprintf("0.000006%s", sdk.DefaultBondDenom), - "Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01photino,0.001stake)", + "Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01photino,0.001atom)", ) return cmd diff --git a/docs/gaia/deploy-testnet.md b/docs/gaia/deploy-testnet.md index 2aa2f692e452..f7d1b5aad1e8 100644 --- a/docs/gaia/deploy-testnet.md +++ b/docs/gaia/deploy-testnet.md @@ -44,7 +44,7 @@ gaiacli keys add validator # Add that key into the genesis.app_state.accounts array in the genesis file # NOTE: this command lets you set the number of coins. Make sure this account has some coins # with the genesis.app_state.staking.params.bond_denom denom, the default is staking -gaiad add-genesis-account $(gaiacli keys show validator -a) 1000000000stake,1000000000validatortoken +gaiad add-genesis-account $(gaiacli keys show validator -a) 1000000000atom,1000000000validatortoken # Generate the transaction that creates your validator gaiad gentx --name validator diff --git a/docs/gaia/validators/validator-setup.md b/docs/gaia/validators/validator-setup.md index 7dea4e6cf45e..3c8c9ba9b2b8 100644 --- a/docs/gaia/validators/validator-setup.md +++ b/docs/gaia/validators/validator-setup.md @@ -63,7 +63,7 @@ file of the Cosmos Hub mainnet. If the mainnet is already live, skip this sectio ::: If you want to participate in genesis as a validator, you need to justify that -you have some stake at genesis, create one (or multiple) transactions to bond this stake to your validator address, and include this transaction in the genesis file. +you have some atom at genesis, create one (or multiple) transactions to bond this atom to your validator address, and include this transaction in the genesis file. Your `cosmosvalconspub` can be used to create a new validator by staking tokens. You can find your validator pubkey by running: diff --git a/docs/spec/auth/01_concepts.md b/docs/spec/auth/01_concepts.md index 6d428d5b079c..6c41f25df13f 100644 --- a/docs/spec/auth/01_concepts.md +++ b/docs/spec/auth/01_concepts.md @@ -15,7 +15,7 @@ signature verification, as well as costs proportional to the tx size. Operators should set minimum gas prices when starting their nodes. They must set the unit costs of gas in each token denomination they wish to support: -`gaiad start ... --minimum-gas-prices=0.00001stake;0.05photinos` +`gaiad start ... --minimum-gas-prices=0.00001atom;0.05photinos` When adding transactions to mempool or gossipping transactions, validators check if the transaction's gas prices, which are determined by the provided fees, meet diff --git a/docs/translations/cn/gaia/delegator-guide-cli.md b/docs/translations/cn/gaia/delegator-guide-cli.md index 5d34db0d4636..8980d60ae830 100644 --- a/docs/translations/cn/gaia/delegator-guide-cli.md +++ b/docs/translations/cn/gaia/delegator-guide-cli.md @@ -399,20 +399,20 @@ fees = gas * gasPrices ```bash // 向指定验证人绑定一定数量的Atom通证 -// 参数设定样例: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000stake, =0.001stake +// 参数设定样例: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000atom, =0.001atom gaiacli tx staking delegate --from --gas auto --gas-prices // 提取所有的奖励 -// 参数设定样例: =0.001stake +// 参数设定样例: =0.001atom gaiacli tx distr withdraw-all-rewards --from --gas auto --gas-prices // 向指定验证人申请解绑一定数量的Atom通证 // 解绑的通证需要3周后才能完全解绑并可以交易, -// 参数设定样例: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000stake, =0.001stake +// 参数设定样例: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000atom, =0.001atom gaiacli tx staking unbond --from --gas auto --gas-prices ``` @@ -469,14 +469,14 @@ Cosmos Hub有一个内建的治理系统,该系统允许抵押通证的持有 ```bash // 提交一个提案 // =text/parameter_change/software_upgrade -// ex value for flag: =0.0001stake +// ex value for flag: =0.0001atom -gaiacli tx gov submit-proposal --title "Test Proposal" --description "My awesome proposal" --type --deposit=10stake --gas auto --gas-prices --from +gaiacli tx gov submit-proposal --title "Test Proposal" --description "My awesome proposal" --type --deposit=10atom --gas auto --gas-prices --from // 增加对提案的抵押 // Retrieve proposalID from $gaiacli query gov proposals --status deposit_period // 通过 $gaiacli query gov proposals --status deposit_period 命令获得 `proposalID` -// 参数设定样例: =1stake +// 参数设定样例: =1atom gaiacli tx gov deposit --gas auto --gas-prices --from @@ -495,7 +495,7 @@ gaiacli tx gov vote