diff --git a/client/flags.go b/client/flags.go index 62d912908ea1..01d0a9b0edb0 100644 --- a/client/flags.go +++ b/client/flags.go @@ -80,8 +80,8 @@ func PostCommands(cmds ...*cobra.Command) []*cobra.Command { c.Flags().Uint64(FlagAccountNumber, 0, "AccountNumber number to sign the tx") c.Flags().Uint64(FlagSequence, 0, "Sequence number to sign the tx") c.Flags().String(FlagMemo, "", "Memo to send along with transaction") - c.Flags().String(FlagFees, "", "Fees to pay along with transaction; eg: 10stake,1atom") - c.Flags().String(FlagGasPrices, "", "Gas prices to determine the transaction fee (e.g. 0.00001stake)") + c.Flags().String(FlagFees, "", "Fees to pay along with transaction; eg: 10uatom,7foobar") + c.Flags().String(FlagGasPrices, "", "Gas prices to determine the transaction fee (e.g. 0.00001uatom)") c.Flags().String(FlagNode, "tcp://localhost:26657", ": to tendermint rpc interface for this chain") c.Flags().Bool(FlagUseLedger, false, "Use a connected Ledger device") c.Flags().Float64(FlagGasAdjustment, DefaultGasAdjustment, "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored ") diff --git a/client/lcd/swagger-ui/swagger.yaml b/client/lcd/swagger-ui/swagger.yaml index 0c6b78da8c53..096a9a08cc94 100644 --- a/client/lcd/swagger-ui/swagger.yaml +++ b/client/lcd/swagger-ui/swagger.yaml @@ -1744,7 +1744,7 @@ definitions: properties: denom: type: string - example: steak + example: uatom amount: type: string example: "50" diff --git a/client/lcd/test_helpers.go b/client/lcd/test_helpers.go index 6e2ea73c6242..2005b18b0de5 100644 --- a/client/lcd/test_helpers.go +++ b/client/lcd/test_helpers.go @@ -198,7 +198,7 @@ func InitClientHome(t *testing.T, dir string) string { // TODO: Make InitializeTestLCD safe to call in multiple tests at the same time // InitializeTestLCD starts Tendermint and the LCD in process, listening on // their respective sockets where nValidators is the total number of validators -// and initAddrs are the accounts to initialize with some steak tokens. It +// and initAddrs are the accounts to initialize with some uatom tokens. It // returns a cleanup function, a set of validator public keys, and a port. func InitializeTestLCD(t *testing.T, nValidators int, initAddrs []sdk.AccAddress, minting bool) ( cleanup func(), valConsPubKeys []crypto.PubKey, valOperAddrs []sdk.ValAddress, port string) { diff --git a/cmd/gaia/app/sim_test.go b/cmd/gaia/app/sim_test.go index 2cba3545804c..9f6a322ca799 100644 --- a/cmd/gaia/app/sim_test.go +++ b/cmd/gaia/app/sim_test.go @@ -92,7 +92,7 @@ func appStateRandomizedFn(r *rand.Rand, accs []simulation.Account, genesisTimest numInitiallyBonded = numAccs } fmt.Printf("Selected randomly generated parameters for simulated genesis:\n"+ - "\t{amount of steak per account: %v, initially bonded validators: %v}\n", + "\t{amount of uatom per account: %v, initially bonded validators: %v}\n", amount, numInitiallyBonded) // randomly generate some genesis accounts diff --git a/cmd/gaia/cli_test/README.md b/cmd/gaia/cli_test/README.md index 37fd41ce7eff..7c8df6913a04 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,150uatom`) 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/cli_test/test_helpers.go b/cmd/gaia/cli_test/test_helpers.go index 16227acfba57..c5545c5085bc 100644 --- a/cmd/gaia/cli_test/test_helpers.go +++ b/cmd/gaia/cli_test/test_helpers.go @@ -29,7 +29,7 @@ import ( ) const ( - denom = "stake" + denom = "uatom" keyFoo = "foo" keyBar = "bar" fooDenom = "footoken" diff --git a/cmd/gaia/init/genesis_accts_test.go b/cmd/gaia/init/genesis_accts_test.go index 74af5a42b619..a3e53e5d657a 100644 --- a/cmd/gaia/init/genesis_accts_test.go +++ b/cmd/gaia/init/genesis_accts_test.go @@ -56,8 +56,8 @@ func TestAddGenesisAccount(t *testing.T) { args{ app.GenesisState{}, addr1, - sdk.NewCoins(sdk.NewInt64Coin("stake", 50)), - sdk.NewCoins(sdk.NewInt64Coin("stake", 100)), + sdk.NewCoins(sdk.NewInt64Coin("uatom", 50)), + sdk.NewCoins(sdk.NewInt64Coin("uatom", 100)), 0, 0, }, @@ -68,8 +68,8 @@ func TestAddGenesisAccount(t *testing.T) { args{ app.GenesisState{}, addr1, - sdk.NewCoins(sdk.NewInt64Coin("stake", 50)), - sdk.NewCoins(sdk.NewInt64Coin("stake", 50)), + sdk.NewCoins(sdk.NewInt64Coin("uatom", 50)), + sdk.NewCoins(sdk.NewInt64Coin("uatom", 50)), 1654668078, 1554668078, }, diff --git a/cmd/gaia/init/testnet.go b/cmd/gaia/init/testnet.go index fc59827a6cd6..5c817fef0662 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.001uatom)", ) return cmd diff --git a/docs/gaia/deploy-testnet.md b/docs/gaia/deploy-testnet.md index 2aa2f692e452..b51168bfd726 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) 1000000000uatom,1000000000validatortoken # Generate the transaction that creates your validator gaiad gentx --name validator diff --git a/docs/spec/auth/01_concepts.md b/docs/spec/auth/01_concepts.md index 388c5a8ac81e..cf9251f0bb88 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.00001steak;0.05photinos` +`gaiad start ... --minimum-gas-prices=0.00001uatom;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..e2481a654a78 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, =10000uatom, =0.001uatom gaiacli tx staking delegate --from --gas auto --gas-prices // 提取所有的奖励 -// 参数设定样例: =0.001stake +// 参数设定样例: =0.001uatom gaiacli tx distr withdraw-all-rewards --from --gas auto --gas-prices // 向指定验证人申请解绑一定数量的Atom通证 // 解绑的通证需要3周后才能完全解绑并可以交易, -// 参数设定样例: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000stake, =0.001stake +// 参数设定样例: =cosmosvaloper18thamkhnj9wz8pa4nhnp9rldprgant57pk2m8s, =10000uatom, =0.001uatom 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.0001uatom -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=10uatom --gas auto --gas-prices --from // 增加对提案的抵押 // Retrieve proposalID from $gaiacli query gov proposals --status deposit_period // 通过 $gaiacli query gov proposals --status deposit_period 命令获得 `proposalID` -// 参数设定样例: =1stake +// 参数设定样例: =1uatom gaiacli tx gov deposit --gas auto --gas-prices --from @@ -495,7 +495,7 @@ gaiacli tx gov vote