From e84b19142abee41036d89872d408bf782eb62096 Mon Sep 17 00:00:00 2001 From: Cosmos SDK <113218068+github-prbot@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:10:43 +0100 Subject: [PATCH] chore: typos fix by misspell-fixer (#18683) Co-authored-by: github-merge-queue Co-authored-by: Julien Robert --- CHANGELOG.md | 6 +++--- api/cosmos/gov/v1/genesis.pulsar.go | 8 ++++---- api/cosmos/gov/v1/query.pulsar.go | 2 +- api/cosmos/staking/v1beta1/staking.pulsar.go | 2 +- docs/architecture/adr-037-gov-split-vote.md | 2 +- docs/architecture/adr-050-sign-mode-textual.md | 2 +- docs/build/building-modules/01-module-manager.md | 2 +- docs/spec/fee_distribution/f1_fee_distr.tex | 2 +- proto/cosmos/gov/v1/genesis.proto | 8 ++++---- proto/cosmos/gov/v1/query.proto | 2 +- proto/cosmos/staking/v1beta1/staking.proto | 2 +- tests/e2e/auth/suite.go | 4 ++-- x/auth/vesting/README.md | 2 +- x/authz/README.md | 2 +- x/gov/README.md | 2 +- x/gov/types/config.go | 2 +- x/gov/types/v1/genesis.pb.go | 8 ++++---- x/gov/types/v1/query.pb.go | 2 +- x/group/internal/orm/sequence_property_test.go | 2 +- x/nft/simulation/operations.go | 4 ++-- x/staking/README.md | 4 ++-- x/staking/types/staking.pb.go | 2 +- 22 files changed, 36 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f2c93f1862b..e6bab49a3dbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -212,7 +212,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (baseapp) [#16239](https://github.com/cosmos/cosmos-sdk/pull/16239) Add Gas Limits to allow node operators to resource bound queries. * (cli) [#16209](https://github.com/cosmos/cosmos-sdk/pull/16209) Make `StartCmd` more customizable. * (types/simulation) [#16074](https://github.com/cosmos/cosmos-sdk/pull/16074) Add generic SimulationStoreDecoder for modules using collections. -* (genutil) [#16046](https://github.com/cosmos/cosmos-sdk/pull/16046) Add "module-name" flag to genutil `add-genesis-account` to enable intializing module accounts at genesis.* [#15970](https://github.com/cosmos/cosmos-sdk/pull/15970) Enable SIGN_MODE_TEXTUAL. +* (genutil) [#16046](https://github.com/cosmos/cosmos-sdk/pull/16046) Add "module-name" flag to genutil `add-genesis-account` to enable initializing module accounts at genesis.* [#15970](https://github.com/cosmos/cosmos-sdk/pull/15970) Enable SIGN_MODE_TEXTUAL. * (types) [#15958](https://github.com/cosmos/cosmos-sdk/pull/15958) Add `module.NewBasicManagerFromManager` for creating a basic module manager from a module manager. * (types/module) [#15829](https://github.com/cosmos/cosmos-sdk/pull/15829) Add new endblocker interface to handle valset updates. * (runtime) [#15818](https://github.com/cosmos/cosmos-sdk/pull/15818) Provide logger through `depinject` instead of appBuilder. @@ -692,7 +692,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/gov) [#15151](https://github.com/cosmos/cosmos-sdk/pull/15151) Add `burn_vote_quorum`, `burn_proposal_deposit_prevote` and `burn_vote_veto` params to allow applications to decide if they would like to burn deposits * (client) [#14509](https://github.com/cosmos/cosmos-sdk/pull/#14509) Added `AddKeyringFlags` function. * (x/bank) [#14045](https://github.com/cosmos/cosmos-sdk/pull/14045) Add CLI command `spendable-balances`, which also accepts the flag `--denom`. -* (x/slashing, x/staking) [#14363](https://github.com/cosmos/cosmos-sdk/pull/14363) Add the infraction a validator commited type as an argument to a `SlashWithInfractionReason` keeper method. +* (x/slashing, x/staking) [#14363](https://github.com/cosmos/cosmos-sdk/pull/14363) Add the infraction a validator committed type as an argument to a `SlashWithInfractionReason` keeper method. * (client) [#14051](https://github.com/cosmos/cosmos-sdk/pull/14051) Add `--grpc` client option. * (x/genutil) [#14149](https://github.com/cosmos/cosmos-sdk/pull/14149) Add `genutilcli.GenesisCoreCommand` command, which contains all genesis-related sub-commands. * (x/evidence) [#13740](https://github.com/cosmos/cosmos-sdk/pull/13740) Add new proto field `hash` of type `string` to `QueryEvidenceRequest` which helps to decode the hash properly while using query API. @@ -2745,7 +2745,7 @@ sure you are aware of any relevant breaking changes. * (types) [#5581](https://github.com/cosmos/cosmos-sdk/pull/5581) Add convenience functions {,Must}Bech32ifyAddressBytes. * (types/module) [#5724](https://github.com/cosmos/cosmos-sdk/issues/5724) The `types/module` package does no longer depend on `x/simulation`. * (types) [#5585](https://github.com/cosmos/cosmos-sdk/pull/5585) IBC additions: - * `Coin` denomination max lenght has been increased to 32. + * `Coin` denomination max length has been increased to 32. * Added `CapabilityKey` alias for `StoreKey` to match IBC spec. * (types/rest) [#5900](https://github.com/cosmos/cosmos-sdk/pull/5900) Add Check\*Error function family to spare developers from replicating tons of boilerplate code. * (types) [#6128](https://github.com/cosmos/cosmos-sdk/pull/6137) Add `String()` method to `GasMeter`. diff --git a/api/cosmos/gov/v1/genesis.pulsar.go b/api/cosmos/gov/v1/genesis.pulsar.go index 3f932406779b..2afcb1be6bae 100644 --- a/api/cosmos/gov/v1/genesis.pulsar.go +++ b/api/cosmos/gov/v1/genesis.pulsar.go @@ -1240,21 +1240,21 @@ type GenesisState struct { // proposals defines all the proposals present at genesis. Proposals []*Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"` // Deprecated: Prefer to use `params` instead. - // deposit_params defines all the paramaters of related to deposit. + // deposit_params defines all the parameters of related to deposit. // // Deprecated: Do not use. DepositParams *DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"` // Deprecated: Prefer to use `params` instead. - // voting_params defines all the paramaters of related to voting. + // voting_params defines all the parameters of related to voting. // // Deprecated: Do not use. VotingParams *VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"` // Deprecated: Prefer to use `params` instead. - // tally_params defines all the paramaters of related to tally. + // tally_params defines all the parameters of related to tally. // // Deprecated: Do not use. TallyParams *TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"` - // params defines all the paramaters of x/gov module. + // params defines all the parameters of x/gov module. // // Since: cosmos-sdk 0.47 Params *Params `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"` diff --git a/api/cosmos/gov/v1/query.pulsar.go b/api/cosmos/gov/v1/query.pulsar.go index c4cd092958f7..dbf8a2df0028 100644 --- a/api/cosmos/gov/v1/query.pulsar.go +++ b/api/cosmos/gov/v1/query.pulsar.go @@ -9160,7 +9160,7 @@ type QueryParamsResponse struct { // // Deprecated: Do not use. TallyParams *TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"` - // params defines all the paramaters of x/gov module. + // params defines all the parameters of x/gov module. // // Since: cosmos-sdk 0.47 Params *Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"` diff --git a/api/cosmos/staking/v1beta1/staking.pulsar.go b/api/cosmos/staking/v1beta1/staking.pulsar.go index 7fe0fec480ff..41d3d7925ec8 100644 --- a/api/cosmos/staking/v1beta1/staking.pulsar.go +++ b/api/cosmos/staking/v1beta1/staking.pulsar.go @@ -15942,7 +15942,7 @@ type ConsPubKeyRotationHistory struct { OldConsPubkey *anypb.Any `protobuf:"bytes,2,opt,name=old_cons_pubkey,json=oldConsPubkey,proto3" json:"old_cons_pubkey,omitempty"` // new_cons_pubkey is the new consensus public key of the validator, as a Protobuf Any. NewConsPubkey *anypb.Any `protobuf:"bytes,3,opt,name=new_cons_pubkey,json=newConsPubkey,proto3" json:"new_cons_pubkey,omitempty"` - // height defines the block height at which the rotation event occured. + // height defines the block height at which the rotation event occurred. Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // fee holds the amount of fee deduced for the rotation. Fee *v1beta1.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` diff --git a/docs/architecture/adr-037-gov-split-vote.md b/docs/architecture/adr-037-gov-split-vote.md index 0a3b9bc43ddb..c369ad8b1cf1 100644 --- a/docs/architecture/adr-037-gov-split-vote.md +++ b/docs/architecture/adr-037-gov-split-vote.md @@ -2,7 +2,7 @@ ## Changelog -* 2020/10/28: Intial draft +* 2020/10/28: Initial draft ## Status diff --git a/docs/architecture/adr-050-sign-mode-textual.md b/docs/architecture/adr-050-sign-mode-textual.md index 2d2aaee365b6..0a04e7c76175 100644 --- a/docs/architecture/adr-050-sign-mode-textual.md +++ b/docs/architecture/adr-050-sign-mode-textual.md @@ -310,7 +310,7 @@ The current specification is not set in stone, and future iterations are to be e 1. Updates that require changes of the hardware device embedded application. 2. Updates that only modify the envelope and the value renderers. -Updates in the 1st category include changes of the `Screen` struct or its corresponding CBOR encoding. This type of updates require a modification of the hardware signer application, to be able to decode and parse the new types. Backwards-compatibility must also be guaranteed, so that the new hardware application works with existing versions of the SDK. These updates require the coordination of multiple parties: SDK developers, hardware application developers (currently: Zondax), and client-side developers (e.g. CosmJS). Furthermore, a new submission of the hardware device application may be necessary, which, dependending on the vendor, can take some time. As such, we recommend to avoid this type of updates as much as possible. +Updates in the 1st category include changes of the `Screen` struct or its corresponding CBOR encoding. This type of updates require a modification of the hardware signer application, to be able to decode and parse the new types. Backwards-compatibility must also be guaranteed, so that the new hardware application works with existing versions of the SDK. These updates require the coordination of multiple parties: SDK developers, hardware application developers (currently: Zondax), and client-side developers (e.g. CosmJS). Furthermore, a new submission of the hardware device application may be necessary, which, depending on the vendor, can take some time. As such, we recommend to avoid this type of updates as much as possible. Updates in the 2nd category include changes to any of the value renderers or to the transaction envelope. For example, the ordering of fields in the envelope can be swapped, or the timestamp formatting can be modified. Since SIGN_MODE_TEXTUAL sends `Screen`s to the hardware device, this type of change do not need a hardware wallet application update. They are however state-machine-breaking, and must be documented as such. They require the coordination of SDK developers with client-side developers (e.g. CosmJS), so that the updates are released on both sides close to each other in time. diff --git a/docs/build/building-modules/01-module-manager.md b/docs/build/building-modules/01-module-manager.md index dfd17d5f5536..e0ab0e54f02f 100644 --- a/docs/build/building-modules/01-module-manager.md +++ b/docs/build/building-modules/01-module-manager.md @@ -273,7 +273,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-alpha.0/types/module/module.go It implements the following methods: * `NewBasicManager(modules ...AppModuleBasic)`: Constructor function. It takes a list of the application's `AppModuleBasic` and builds a new `BasicManager`. This function is generally called in the `init()` function of [`app.go`](../../learn/beginner/00-app-anatomy.md#core-application-file) to quickly initialize the independent elements of the application's modules (click [here](https://github.com/cosmos/gaia/blob/main/app/app.go#L59-L74) to see an example). -* `NewBasicManagerFromManager(manager *Manager, customModuleBasics map[string]AppModuleBasic)`: Contructor function. It creates a new `BasicManager` from a `Manager`. The `BasicManager` will contain all `AppModuleBasic` from the `AppModule` manager using `CoreAppModuleBasicAdaptor` whenever possible. Module's `AppModuleBasic` can be overridden by passing a custom AppModuleBasic map +* `NewBasicManagerFromManager(manager *Manager, customModuleBasics map[string]AppModuleBasic)`: Constructor function. It creates a new `BasicManager` from a `Manager`. The `BasicManager` will contain all `AppModuleBasic` from the `AppModule` manager using `CoreAppModuleBasicAdaptor` whenever possible. Module's `AppModuleBasic` can be overridden by passing a custom AppModuleBasic map * `RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)`: Registers the [`codec.LegacyAmino`s](../../learn/advanced/05-encoding.md#amino) of each of the application's `AppModuleBasic`. This function is usually called early on in the [application's construction](../../learn/beginner/00-app-anatomy.md#constructor). * `RegisterInterfaces(registry codectypes.InterfaceRegistry)`: Registers interface types and implementations of each of the application's `AppModuleBasic`. * `DefaultGenesis(cdc codec.JSONCodec)`: Provides default genesis information for modules in the application by calling the [`DefaultGenesis(cdc codec.JSONCodec)`](./08-genesis.md#defaultgenesis) function of each module. It only calls the modules that implements the `HasGenesisBasics` interfaces. diff --git a/docs/spec/fee_distribution/f1_fee_distr.tex b/docs/spec/fee_distribution/f1_fee_distr.tex index b6bb6b3265a2..22e86102653f 100644 --- a/docs/spec/fee_distribution/f1_fee_distr.tex +++ b/docs/spec/fee_distribution/f1_fee_distr.tex @@ -102,7 +102,7 @@ \subsection{Slashing} The solution here is to instead store each period created by a slash in the validators state. Then when withdrawing, you must iterate over all slashes between when you started and ended. -Suppose you delegated at period $0$, a y\% slash occured at period $2$, and your withdrawal creates period $4$. +Suppose you delegated at period $0$, a y\% slash occurred at period $2$, and your withdrawal creates period $4$. Then you receive funds from periods $0$ to $2$ as normal. The equations for funds you receive for periods $2$ to $4$ now uses $(1 - y)x$ for your stake instead of just $x$ stake. When there are multiple slashes, you just account for the accumulated slash factor. diff --git a/proto/cosmos/gov/v1/genesis.proto b/proto/cosmos/gov/v1/genesis.proto index d6dd5109051e..1df3b98022ef 100644 --- a/proto/cosmos/gov/v1/genesis.proto +++ b/proto/cosmos/gov/v1/genesis.proto @@ -18,15 +18,15 @@ message GenesisState { // proposals defines all the proposals present at genesis. repeated Proposal proposals = 4; // Deprecated: Prefer to use `params` instead. - // deposit_params defines all the paramaters of related to deposit. + // deposit_params defines all the parameters of related to deposit. DepositParams deposit_params = 5 [deprecated = true]; // Deprecated: Prefer to use `params` instead. - // voting_params defines all the paramaters of related to voting. + // voting_params defines all the parameters of related to voting. VotingParams voting_params = 6 [deprecated = true]; // Deprecated: Prefer to use `params` instead. - // tally_params defines all the paramaters of related to tally. + // tally_params defines all the parameters of related to tally. TallyParams tally_params = 7 [deprecated = true]; - // params defines all the paramaters of x/gov module. + // params defines all the parameters of x/gov module. // // Since: cosmos-sdk 0.47 Params params = 8; diff --git a/proto/cosmos/gov/v1/query.proto b/proto/cosmos/gov/v1/query.proto index 33e77071e87f..2477c8a58a69 100644 --- a/proto/cosmos/gov/v1/query.proto +++ b/proto/cosmos/gov/v1/query.proto @@ -153,7 +153,7 @@ message QueryParamsResponse { // Deprecated: Prefer to use `params` instead. // tally_params defines the parameters related to tally. TallyParams tally_params = 3 [deprecated = true]; - // params defines all the paramaters of x/gov module. + // params defines all the parameters of x/gov module. // // Since: cosmos-sdk 0.47 Params params = 4; diff --git a/proto/cosmos/staking/v1beta1/staking.proto b/proto/cosmos/staking/v1beta1/staking.proto index f7596c57d7f4..432f0bec4c2d 100644 --- a/proto/cosmos/staking/v1beta1/staking.proto +++ b/proto/cosmos/staking/v1beta1/staking.proto @@ -420,7 +420,7 @@ message ConsPubKeyRotationHistory { google.protobuf.Any old_cons_pubkey = 2 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; // new_cons_pubkey is the new consensus public key of the validator, as a Protobuf Any. google.protobuf.Any new_cons_pubkey = 3 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - // height defines the block height at which the rotation event occured. + // height defines the block height at which the rotation event occurred. uint64 height = 4; // fee holds the amount of fee deduced for the rotation. cosmos.base.v1beta1.Coin fee = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; diff --git a/tests/e2e/auth/suite.go b/tests/e2e/auth/suite.go index cee85a1be372..ffc364e08cee 100644 --- a/tests/e2e/auth/suite.go +++ b/tests/e2e/auth/suite.go @@ -874,7 +874,7 @@ func (s *E2ETestSuite) TestCLIMultisignSortSignatures() { var balRes banktypes.QueryAllBalancesResponse err = clientCtx.Codec.UnmarshalJSON(resp, &balRes) s.Require().NoError(err) - intialCoins := balRes.Balances + initialCoins := balRes.Balances // Send coins from validator to multisig. sendTokens := sdk.NewInt64Coin(s.cfg.BondDenom, 10) @@ -891,7 +891,7 @@ func (s *E2ETestSuite) TestCLIMultisignSortSignatures() { s.Require().NoError(err) err = clientCtx.Codec.UnmarshalJSON(resp, &balRes) s.Require().NoError(err) - diff, _ := balRes.Balances.SafeSub(intialCoins...) + diff, _ := balRes.Balances.SafeSub(initialCoins...) s.Require().Equal(sendTokens.Amount, diff.AmountOf(s.cfg.BondDenom)) tokens := sdk.NewCoins(sdk.NewInt64Coin(s.cfg.BondDenom, 5)) diff --git a/x/auth/vesting/README.md b/x/auth/vesting/README.md index 5c04614f7c25..ed3cab15006a 100644 --- a/x/auth/vesting/README.md +++ b/x/auth/vesting/README.md @@ -543,7 +543,7 @@ V' = 0 V' = 25 ``` -3. During vesting period 2, 5 coins are transfered and 5 coins are delegated +3. During vesting period 2, 5 coins are transferred and 5 coins are delegated ```text DV = 5 diff --git a/x/authz/README.md b/x/authz/README.md index 2ab2dcba7c74..79c85c3bf4a5 100644 --- a/x/authz/README.md +++ b/x/authz/README.md @@ -82,7 +82,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/x/bank/types/send_authoriz #### StakeAuthorization -`StakeAuthorization` implements the `Authorization` interface for messages in the [staking module](https://docs.cosmos.network/v0.44/modules/staking/). It takes an `AuthorizationType` to specify whether you want to authorise delegating, undelegating or redelegating (i.e. these have to be authorised seperately). It also takes a required `MaxTokens` that keeps track of a limit to the amount of tokens that can be delegated/undelegated/redelegated. If left empty, the amount is unlimited. Additionally, this Msg takes an `AllowList` or a `DenyList`, which allows you to select which validators you allow or deny grantees to stake with. +`StakeAuthorization` implements the `Authorization` interface for messages in the [staking module](https://docs.cosmos.network/v0.44/modules/staking/). It takes an `AuthorizationType` to specify whether you want to authorise delegating, undelegating or redelegating (i.e. these have to be authorised separately). It also takes a required `MaxTokens` that keeps track of a limit to the amount of tokens that can be delegated/undelegated/redelegated. If left empty, the amount is unlimited. Additionally, this Msg takes an `AllowList` or a `DenyList`, which allows you to select which validators you allow or deny grantees to stake with. ```protobuf reference https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/proto/cosmos/staking/v1beta1/authz.proto#L11-L35 diff --git a/x/gov/README.md b/x/gov/README.md index d26637ef151c..bb3bb94fc5de 100644 --- a/x/gov/README.md +++ b/x/gov/README.md @@ -2487,7 +2487,7 @@ Example Output: ## Metadata -The gov module has two locations for metadata where users can provide further context about the on-chain actions they are taking. By default all metadata fields have a 255 character length field where metadata can be stored in json format, either on-chain or off-chain depending on the amount of data required. Here we provide a recommendation for the json structure and where the data should be stored. There are two important factors in making these recommendations. First, that the gov and group modules are consistent with one another, note the number of proposals made by all groups may be quite large. Second, that client applications such as block explorers and governance interfaces have confidence in the consistency of metadata structure accross chains. +The gov module has two locations for metadata where users can provide further context about the on-chain actions they are taking. By default all metadata fields have a 255 character length field where metadata can be stored in json format, either on-chain or off-chain depending on the amount of data required. Here we provide a recommendation for the json structure and where the data should be stored. There are two important factors in making these recommendations. First, that the gov and group modules are consistent with one another, note the number of proposals made by all groups may be quite large. Second, that client applications such as block explorers and governance interfaces have confidence in the consistency of metadata structure across chains. ### Proposal diff --git a/x/gov/types/config.go b/x/gov/types/config.go index 39a809688c64..919d54e5b9ad 100644 --- a/x/gov/types/config.go +++ b/x/gov/types/config.go @@ -1,6 +1,6 @@ package types -// Config is a config struct used for intialising the gov module to avoid using globals. +// Config is a config struct used for initializing the gov module to avoid using globals. type Config struct { // MaxTitleLen defines the amount of characters that can be used for proposal title MaxTitleLen uint64 diff --git a/x/gov/types/v1/genesis.pb.go b/x/gov/types/v1/genesis.pb.go index 914dfec140d3..bdb88b12ceb0 100644 --- a/x/gov/types/v1/genesis.pb.go +++ b/x/gov/types/v1/genesis.pb.go @@ -33,15 +33,15 @@ type GenesisState struct { // proposals defines all the proposals present at genesis. Proposals []*Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"` // Deprecated: Prefer to use `params` instead. - // deposit_params defines all the paramaters of related to deposit. + // deposit_params defines all the parameters of related to deposit. DepositParams *DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"` // Deprecated: Do not use. // Deprecated: Prefer to use `params` instead. - // voting_params defines all the paramaters of related to voting. + // voting_params defines all the parameters of related to voting. VotingParams *VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"` // Deprecated: Do not use. // Deprecated: Prefer to use `params` instead. - // tally_params defines all the paramaters of related to tally. + // tally_params defines all the parameters of related to tally. TallyParams *TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"` // Deprecated: Do not use. - // params defines all the paramaters of x/gov module. + // params defines all the parameters of x/gov module. // // Since: cosmos-sdk 0.47 Params *Params `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"` diff --git a/x/gov/types/v1/query.pb.go b/x/gov/types/v1/query.pb.go index 55c18bfc19b6..4898356b7e7b 100644 --- a/x/gov/types/v1/query.pb.go +++ b/x/gov/types/v1/query.pb.go @@ -602,7 +602,7 @@ type QueryParamsResponse struct { // Deprecated: Prefer to use `params` instead. // tally_params defines the parameters related to tally. TallyParams *TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"` // Deprecated: Do not use. - // params defines all the paramaters of x/gov module. + // params defines all the parameters of x/gov module. // // Since: cosmos-sdk 0.47 Params *Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"` diff --git a/x/group/internal/orm/sequence_property_test.go b/x/group/internal/orm/sequence_property_test.go index ac73762d5528..87aa0a65dbfb 100644 --- a/x/group/internal/orm/sequence_property_test.go +++ b/x/group/internal/orm/sequence_property_test.go @@ -15,7 +15,7 @@ func TestSequence(t *testing.T) { func testSequenceMachine(t *rapid.T) { // Init sets up the real Sequence, including choosing a random initial value, - // and intialises the model state + // and initializes the model state ctx := NewMockContext() store := ctx.KVStore(storetypes.NewKVStoreKey("test")) diff --git a/x/nft/simulation/operations.go b/x/nft/simulation/operations.go index 82163ae009a3..5128d8147749 100644 --- a/x/nft/simulation/operations.go +++ b/x/nft/simulation/operations.go @@ -92,7 +92,7 @@ func SimulateMsgSend( return simtypes.NoOpMsg(nft.ModuleName, TypeMsgSend, err.Error()), nil, err } - recieverStr, err := ak.AddressCodec().BytesToString(receiver.Address.Bytes()) + receiverStr, err := ak.AddressCodec().BytesToString(receiver.Address.Bytes()) if err != nil { return simtypes.NoOpMsg(nft.ModuleName, TypeMsgSend, err.Error()), nil, err } @@ -101,7 +101,7 @@ func SimulateMsgSend( ClassId: n.ClassId, Id: n.Id, Sender: senderStr, - Receiver: recieverStr, + Receiver: receiverStr, } tx, err := simtestutil.GenSignedMockTx( diff --git a/x/staking/README.md b/x/staking/README.md index c011a593dd34..dd3c6d56b75e 100644 --- a/x/staking/README.md +++ b/x/staking/README.md @@ -464,7 +464,7 @@ When a Validator is slashed, the following occurs: * The total `slashAmount` is calculated as the `slashFactor` (a chain parameter) \* `TokensFromConsensusPower`, the total number of tokens bonded to the validator at the time of the infraction. -* Every unbonding delegation and pseudo-unbonding redelegation such that the infraction occured before the unbonding or +* Every unbonding delegation and pseudo-unbonding redelegation such that the infraction occurred before the unbonding or redelegation began from the validator are slashed by the `slashFactor` percentage of the initialBalance. * Each amount slashed from redelegations and unbonding delegations is subtracted from the total slash amount. @@ -472,7 +472,7 @@ When a Validator is slashed, the following occurs: `NonBondedPool` depending on the validator's status. This reduces the total supply of tokens. In the case of a slash due to any infraction that requires evidence to submitted (for example double-sign), the slash -occurs at the block where the evidence is included, not at the block where the infraction occured. +occurs at the block where the evidence is included, not at the block where the infraction occurred. Put otherwise, validators are not slashed retroactively, only when they are caught. #### Slash Unbonding Delegation diff --git a/x/staking/types/staking.pb.go b/x/staking/types/staking.pb.go index 58148c020649..c1ffb680733a 100644 --- a/x/staking/types/staking.pb.go +++ b/x/staking/types/staking.pb.go @@ -1329,7 +1329,7 @@ type ConsPubKeyRotationHistory struct { OldConsPubkey *types1.Any `protobuf:"bytes,2,opt,name=old_cons_pubkey,json=oldConsPubkey,proto3" json:"old_cons_pubkey,omitempty"` // new_cons_pubkey is the new consensus public key of the validator, as a Protobuf Any. NewConsPubkey *types1.Any `protobuf:"bytes,3,opt,name=new_cons_pubkey,json=newConsPubkey,proto3" json:"new_cons_pubkey,omitempty"` - // height defines the block height at which the rotation event occured. + // height defines the block height at which the rotation event occurred. Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // fee holds the amount of fee deduced for the rotation. Fee types2.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee"`