diff --git a/x/authz/README.md b/x/authz/README.md index 41cfccc628..df4e49830e 100644 --- a/x/authz/README.md +++ b/x/authz/README.md @@ -96,7 +96,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/x/staking/types/authz.go#L In order to prevent DoS attacks, granting `StakeAuthorization`s with `x/authz` incurs gas. `StakeAuthorization` allows you to authorize another account to delegate, undelegate, or redelegate to validators. The authorizer can define a list of validators they allow or deny delegations to. The Cosmos SDK iterates over these lists and charge 10 gas for each validator in both of the lists. -Since the state maintaining a list for granter, grantee pair with same expiration, we are iterating over the list to remove the grant (incase of any revoke of paritcular `msgType`) from the list and we are charging 20 gas per iteration. +Since the state maintaining a list for granter, grantee pair with same expiration, we are iterating over the list to remove the grant (incase of any revoke of particular `msgType`) from the list and we are charging 20 gas per iteration. ## State diff --git a/x/bank/keeper/keeper.go b/x/bank/keeper/keeper.go index 6883e60aa5..7d6bc75c4e 100644 --- a/x/bank/keeper/keeper.go +++ b/x/bank/keeper/keeper.go @@ -447,7 +447,7 @@ func (k BaseKeeper) trackDelegation(ctx context.Context, addr sdk.AccAddress, ba return nil } -// trackUndelegation trakcs undelegation of the given account if it is a vesting account +// trackUndelegation tracks undelegation of the given account if it is a vesting account func (k BaseKeeper) trackUndelegation(ctx context.Context, addr sdk.AccAddress, amt sdk.Coins) error { acc := k.ak.GetAccount(ctx, addr) if acc == nil { diff --git a/x/bank/types/genesis.go b/x/bank/types/genesis.go index 861374e093..6f10e77132 100644 --- a/x/bank/types/genesis.go +++ b/x/bank/types/genesis.go @@ -112,7 +112,7 @@ func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.R // Params.SendEnabled slice is empty, this is a noop. // // If the main SendEnabled slice already has entries, the Params.SendEnabled -// entries are added. In case of the same demon in both, preference is given to +// entries are added. In case of the same denom in both, preference is given to // the existing (main GenesisState field) entry. func (gs *GenesisState) MigrateSendEnabled() { gs.SendEnabled = gs.GetAllSendEnabled() diff --git a/x/circuit/keeper/msg_server.go b/x/circuit/keeper/msg_server.go index 8c47c8b86c..39e4b78891 100644 --- a/x/circuit/keeper/msg_server.go +++ b/x/circuit/keeper/msg_server.go @@ -136,7 +136,7 @@ func (srv msgServer) TripCircuitBreaker(ctx context.Context, msg *types.MsgTripC } // ResetCircuitBreaker resumes processing of Msg's in the state machine that -// have been been paused using TripCircuitBreaker. +// have been paused using TripCircuitBreaker. func (srv msgServer) ResetCircuitBreaker(ctx context.Context, msg *types.MsgResetCircuitBreaker) (*types.MsgResetCircuitBreakerResponse, error) { keeper := srv.Keeper address, err := srv.addressCodec.StringToBytes(msg.Authority) diff --git a/x/crisis/README.md b/x/crisis/README.md index b75a5ab6b0..631f9d857e 100644 --- a/x/crisis/README.md +++ b/x/crisis/README.md @@ -66,7 +66,7 @@ The crisis module emits the following events: ### Handlers -#### MsgVerifyInvariance +#### MsgVerifyInvariant | Type | Attribute Key | Attribute Value | |-----------|---------------|------------------| diff --git a/x/epochs/README.md b/x/epochs/README.md index 7b0b0b2857..d56970668c 100644 --- a/x/epochs/README.md +++ b/x/epochs/README.md @@ -6,7 +6,7 @@ sidebar_position: 1 ## Abstract -Often in the SDK, we would like to run certain code every-so often. The +Often in the SDK, we would like to run certain code every so often. The purpose of `epochs` module is to allow other modules to set that they would like to be signaled once every period. So another module can specify it wants to execute code once a week, starting at UTC-time = x. diff --git a/x/genutil/client/cli/gentx.go b/x/genutil/client/cli/gentx.go index 4a158a2c99..70069115c4 100644 --- a/x/genutil/client/cli/gentx.go +++ b/x/genutil/client/cli/gentx.go @@ -30,7 +30,7 @@ import ( ) // GenTxCmd builds the application's gentx command. -func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, valAdddressCodec address.Codec) *cobra.Command { +func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, valAddressCodec address.Codec) *cobra.Command { ipDefault, _ := server.ExternalIP() fsCreateValidator, defaultsDesc := cli.CreateValidatorMsgFlagSet(ipDefault) @@ -160,7 +160,7 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o createValCfg.Amount = amount // create a 'create-validator' message - txBldr, msg, err := cli.BuildCreateValidatorMsg(clientCtx, createValCfg, txFactory, true, valAdddressCodec) + txBldr, msg, err := cli.BuildCreateValidatorMsg(clientCtx, createValCfg, txFactory, true, valAddressCodec) if err != nil { return errors.Wrap(err, "failed to build create-validator message") } diff --git a/x/gov/migrations/v3/json.go b/x/gov/migrations/v3/json.go index 06f1c82082..4b02b522c6 100644 --- a/x/gov/migrations/v3/json.go +++ b/x/gov/migrations/v3/json.go @@ -20,7 +20,7 @@ func MigrateJSON(oldState *v1beta1.GenesisState) (*v1.GenesisState, error) { return nil, err } - depParams, votingParms, tallyParams := convertToNewDepParams(oldState.DepositParams), convertToNewVotingParams(oldState.VotingParams), convertToNewTallyParams(oldState.TallyParams) + depParams, votingParams, tallyParams := convertToNewDepParams(oldState.DepositParams), convertToNewVotingParams(oldState.VotingParams), convertToNewTallyParams(oldState.TallyParams) return &v1.GenesisState{ StartingProposalId: oldState.StartingProposalId, @@ -28,7 +28,7 @@ func MigrateJSON(oldState *v1beta1.GenesisState) (*v1.GenesisState, error) { Votes: newVotes, Proposals: newProps, DepositParams: &depParams, - VotingParams: &votingParms, + VotingParams: &votingParams, TallyParams: &tallyParams, }, nil } diff --git a/x/gov/migrations/v5/store.go b/x/gov/migrations/v5/store.go index 22e336a418..4e74659f7e 100644 --- a/x/gov/migrations/v5/store.go +++ b/x/gov/migrations/v5/store.go @@ -52,7 +52,7 @@ func MigrateStore(ctx sdk.Context, storeService corestoretypes.KVStoreService, c return err } - // Set the default consisitution if it is not set + // Set the default constitution if it is not set if ok, err := constitutionCollection.Has(ctx); !ok || err != nil { if err := constitutionCollection.Set(ctx, "This chain has no constitution."); err != nil { return err