diff --git a/store/dbadapter/store.go b/store/dbadapter/store.go index 16e54aec96..3ec0d0c648 100644 --- a/store/dbadapter/store.go +++ b/store/dbadapter/store.go @@ -10,7 +10,7 @@ import ( "cosmossdk.io/store/types" ) -// Store is a wrapper type for dbm.Db with implementation of KVStore +// Store is a wrapper type for dbm.DB with implementation of KVStore type Store struct { dbm.DB } diff --git a/tools/confix/upgrade.go b/tools/confix/upgrade.go index 29fdb51111..e0cccbce45 100644 --- a/tools/confix/upgrade.go +++ b/tools/confix/upgrade.go @@ -17,7 +17,7 @@ import ( ) // Upgrade reads the configuration file at configPath and applies any -// transformations necessary to Upgrade it to the current version. If this +// transformations necessary to upgrade it to the current version. If this // succeeds, the transformed output is written to outputPath. As a special // case, if outputPath == "" the output is written to stdout. // diff --git a/tools/cosmovisor/cmd/cosmovisor/init_test.go b/tools/cosmovisor/cmd/cosmovisor/init_test.go index 2cb30c00fe..2ccb77951e 100644 --- a/tools/cosmovisor/cmd/cosmovisor/init_test.go +++ b/tools/cosmovisor/cmd/cosmovisor/init_test.go @@ -160,7 +160,7 @@ type BufferedPipe struct { // buffer is the channel used to communicate buffer contents. buffer chan []byte - // stated is true if this BufferedPipe has been started. + // started is true if this BufferedPipe has been started. started bool } diff --git a/x/auth/vesting/client/cli/tx.go b/x/auth/vesting/client/cli/tx.go index 23b48f0b03..37166fd88d 100644 --- a/x/auth/vesting/client/cli/tx.go +++ b/x/auth/vesting/client/cli/tx.go @@ -146,7 +146,7 @@ func NewMsgCreatePeriodicVestingAccountCmd(ac address.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "create-periodic-vesting-account [to_address] [periods_json_file]", Short: "Create a new vesting account funded with an allocation of tokens.", - Long: `A sequence of coins and period length in seconds. Periods are sequential, in that the duration of of a period only starts at the end of the previous period. The duration of the first period starts upon account creation. For instance, the following periods.json file shows 20 "test" coins vesting 30 days apart from each other. + Long: `A sequence of coins and period length in seconds. Periods are sequential, in that the duration of a period only starts at the end of the previous period. The duration of the first period starts upon account creation. For instance, the following periods.json file shows 20 "test" coins vesting 30 days apart from each other. Where periods.json contains: An array of coin strings and unix epoch times for coins to vest diff --git a/x/authz/README.md b/x/authz/README.md index df4e49830e..fc71238256 100644 --- a/x/authz/README.md +++ b/x/authz/README.md @@ -264,7 +264,7 @@ Example: simd tx authz grant cosmos1.. send --spend-limit=100stake --allow-list=cosmos1...,cosmos2... --from=cosmos1.. ``` -* The `generic` authorization_type refers to the built-in `GenericAuthorization` type. The custom flag available is `msg-type` ( required) documented [here](#genericauthorization). +* The `generic` authorization_type refers to the built-in `GenericAuthorization` type. The custom flag available is `msg-type` (required) documented [here](#genericauthorization). > Note: `msg-type` is any valid Cosmos SDK `Msg` type url. @@ -274,7 +274,7 @@ Example: simd tx authz grant cosmos1.. generic --msg-type=/cosmos.bank.v1beta1.MsgSend --from=cosmos1.. ``` -* The `delegate`,`unbond`,`redelegate` authorization_types refer to the built-in `StakeAuthorization` type. The custom flags available are `spend-limit` (optional), `allowed-validators` (optional) and `deny-validators` (optional) documented [here](#stakeauthorization). +* The `delegate`,`unbond`,`redelegate` authorization_types refer to the built-in `StakeAuthorization` type. The custom flags available are `spend-limit` (optional), `allowed-validators` (optional) and `deny-validators` (optional) documented [here](#stakeauthorization). > Note: `allowed-validators` and `deny-validators` cannot both be empty. `spend-limit` represents the `MaxTokens` diff --git a/x/bank/keeper/genesis_test.go b/x/bank/keeper/genesis_test.go index 598d551828..cc1462b657 100644 --- a/x/bank/keeper/genesis_test.go +++ b/x/bank/keeper/genesis_test.go @@ -98,7 +98,7 @@ func (suite *KeeperTestSuite) TestTotalSupply() { { "calculation NOT matching genesis Supply field", types.NewGenesisState(defaultGenesis.Params, balances, sdk.NewCoins(sdk.NewCoin("wrongcoin", sdkmath.NewInt(1))), defaultGenesis.DenomMetadata, defaultGenesis.SendEnabled), - nil, true, "genesis supply is incorrect, expected 1wrongcoin, got 21barcoin,11foocoin", + nil, true, "genesis supply is incorrect, expected 1wrongcoin, got 21barcoin, 11foocoin", }, { "calculation matches genesis Supply field", diff --git a/x/bank/migrations/v3/keys.go b/x/bank/migrations/v3/keys.go index 1b7afe3f9e..e1d6bd711c 100644 --- a/x/bank/migrations/v3/keys.go +++ b/x/bank/migrations/v3/keys.go @@ -5,7 +5,7 @@ var DenomAddressPrefix = []byte{0x03} // CreateDenomAddressPrefix creates a prefix for a reverse index of denomination // to account balance for that denomination. func CreateDenomAddressPrefix(denom string) []byte { - // we add a "zero" byte at the end - null byte terminator, to allow prefix denom prefix + // we add a "zero" byte at the end - null byte terminator, to allow denom prefix // scan. Setting it is not needed (key[last] = 0) - because this is the default. key := make([]byte, len(DenomAddressPrefix)+len(denom)+1) copy(key, DenomAddressPrefix) diff --git a/x/bank/simulation/genesis.go b/x/bank/simulation/genesis.go index b1a83e55f2..2d4cb5ef11 100644 --- a/x/bank/simulation/genesis.go +++ b/x/bank/simulation/genesis.go @@ -47,7 +47,7 @@ func RandomGenesisSendEnabled(r *rand.Rand, bondDenom string) []types.SendEnable // P(sef) = 18.0% = SendEnabled entry that does not equal the default = P(stc') + P(sfc) = .045 + .135 = .180 // // P(t) = 81.0% = Bond denom is sendable = P(a'c) + P(st) = .360 + .450 = .810 - // P(f) = 19.0% = Bond demon is NOT sendable = P(a'c') + P(sf) = .040 + .150 = .190 + // P(f) = 19.0% = Bond denom is NOT sendable = P(a'c') + P(sf) = .040 + .150 = .190 return rv } diff --git a/x/circuit/README.md b/x/circuit/README.md index b01b8fac91..253ca497d4 100644 --- a/x/circuit/README.md +++ b/x/circuit/README.md @@ -21,7 +21,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.50.1/baseapp/msg_service_router.go# ``` :::note -The `CircuitBreakerDecorator` works for most use cases, but [does not check the inner messages of a transaction](https://docs.cosmos.network/main/learn/beginner/tx-lifecycle#antehandler). This some transactions (such as `x/authz` transactions or some `x/gov` transactions) may pass the ante handler. **This does not affect the circuit breaker** as the message router check will still fail the transaction. +The `CircuitBreakerDecorator` works for most use cases, but [does not check the inner messages of a transaction](https://docs.cosmos.network/main/learn/beginner/tx-lifecycle#antehandler). This means some transactions (such as `x/authz` transactions or some `x/gov` transactions) may pass the ante handler. **This does not affect the circuit breaker** as the message router check will still fail the transaction. This tradeoff is to avoid introducing more dependencies in the `x/circuit` module. Chains can re-define the `CircuitBreakerDecorator` to check for inner messages if they wish to do so. :::