chore: typos fix by misspell-fixer (#18683)

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Cosmos SDK 2023-12-11 10:10:43 +01:00 committed by GitHub
parent 8cfdabb2ed
commit e84b19142a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 36 additions and 36 deletions

View File

@ -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`.

View File

@ -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"`

View File

@ -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"`

View File

@ -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"`

View File

@ -2,7 +2,7 @@
## Changelog
* 2020/10/28: Intial draft
* 2020/10/28: Initial draft
## Status

View File

@ -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.

View File

@ -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.

View File

@ -102,7 +102,7 @@ TODO: Consider removing this section in favor of just using the current section
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.

View File

@ -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;

View File

@ -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;

View File

@ -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];

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"`

View File

@ -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"`

View File

@ -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"))

View File

@ -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(

View File

@ -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

View File

@ -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"`