Skip to content

Commit

Permalink
chore: typos fixes by cosmos-sdk bot (#18689)
Browse files Browse the repository at this point in the history
Co-authored-by: github-merge-queue <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
Co-authored-by: marbar3778 <[email protected]>
  • Loading branch information
4 people authored Dec 11, 2023
1 parent 39865d8 commit 8f0d5b1
Show file tree
Hide file tree
Showing 113 changed files with 195 additions and 202 deletions.
1 change: 0 additions & 1 deletion .github/.codespellignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cips
pullrequest
keypair
stStr
pastTime
36 changes: 18 additions & 18 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CODING_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ When testing a function under a variety of different inputs, we prefer to use
[table driven tests](https://github.com/golang/go/wiki/TableDrivenTests).
Table driven test error messages should follow the following format
`<desc>, tc #<index>, i #<index>`.
`<desc>` is an optional short description of whats failing, `tc` is the
`<desc>` is an optional short description of what's failing, `tc` is the
index within the test case table that is failing, and `i` is when there
is a loop, exactly which iteration of the loop failed.
The idea is you should be able to see the
Expand Down
4 changes: 2 additions & 2 deletions RELEASE_PROCESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ The **Stable Release Managers** evaluate and approve or reject updates and backp
according to the [stable release policy](#stable-release-policy) and [release procedure](#major-release-procedure).
Decisions are made by consensus.

Their responsibilites include:
Their responsibilities include:

* Driving the Stable Release Exception process.
* Approving/rejecting proposed changes to a stable release series.
Expand Down Expand Up @@ -235,7 +235,7 @@ Note: The Cosmos SDK team is in an active process of limiting Go modules that de
The Cosmos SDK team should strive to release modules that depend on the Cosmos SDK at the same time or soon after a major version Cosmos SDK itself.
Those modules can be considered as part of the Cosmos SDK, but features and improvements are released at a different cadence.

* When a module is supposed to be used in an app (e.g `x/` modules), due to the dependency on the SDK, tagging a new version of a module must be done from a Cosmos SDK release branch. A compability matrix must be provided in the `README.md` of that module with the corresponding versions.
* When a module is supposed to be used in an app (e.g `x/` modules), due to the dependency on the SDK, tagging a new version of a module must be done from a Cosmos SDK release branch. A compatibility matrix must be provided in the `README.md` of that module with the corresponding versions.
* Modules that import the SDK but do not need to be imported in an app (`e.g. cosmovisor`) must be released from the `main` branch and follow the process defined below.

### Modules that do not depend on the Cosmos SDK
Expand Down
6 changes: 3 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Issue: https://github.com/cosmos/iavl/issues/548
* Users should be able to pick between delayed execution and optimistic
* RFC/ADR is merged
* Implementation started.
* Progess:
* Progress:
* On pause till ABCI 2.0 is merged

### Client UX
Expand Down Expand Up @@ -159,14 +159,14 @@ Issue: https://github.com/cosmos/iavl/issues/548
* KvStoreService is being added to all modules
* [ ] [Remove global bech32](https://github.com/cosmos/cosmos-sdk/issues/13140)
* Objective:
* Depreacte global bech32 setting
* Deprecate global bech32 setting
* Progress:
* All modules except bank use the `address.Codec`
* [ ] Make sdk.Msg only be `proto.message`
* Objectives:
* Reduce sdk.Msg to only be proto.message
* Reduce boilerplate in `msgs.go`
* Progess:
* Progress:
* [x] [Make ValidateBasic Optional](https://github.com/cosmos/cosmos-sdk/issues/15648)
* [ ] [Make GetSigners be optional](https://github.com/cosmos/cosmos-sdk/issues/15677)
* [ ] Remove GetsignBytes for legacy amino encoding
Expand Down
4 changes: 2 additions & 2 deletions api/cosmos/authz/v1beta1/event.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/cosmos/base/reflection/v2alpha1/reflection.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/cosmos/msg/textual/v1/textual.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/cosmos/staking/v1beta1/staking.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/tendermint/abci/types.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/tendermint/crypto/proof.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ func (app *BaseApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.Respons
return res, err
}

// checkHalt checkes if height or time exceeds halt-height or halt-time respectively.
// checkHalt checks if height or time exceeds halt-height or halt-time respectively.
func (app *BaseApp) checkHalt(height int64, time time.Time) error {
var halt bool
switch {
Expand Down
2 changes: 1 addition & 1 deletion baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ type BaseApp struct {
// ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates
// that no blocks should be pruned.
//
// Note: CometBFT block pruning is dependant on this parameter in conjunction
// Note: CometBFT block pruning is dependent on this parameter in conjunction
// with the unbonding (safety threshold) period, state pruning and state sync
// snapshot parameters to determine the correct minimum value of
// ResponseCommit.RetainHeight.
Expand Down
2 changes: 1 addition & 1 deletion client/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestCustomTemplateAndConfig(t *testing.T) {

customClientConfigTemplate := config.DefaultClientConfigTemplate + `
# This is the gas adjustment factor used by the tx commands.
# Sets the default and can be overwriten by the --gas-adjustment flag in tx commands.
# Sets the default and can be overwritten by the --gas-adjustment flag in tx commands.
gas-adjustment = {{ .GasConfig.GasAdjustment }}
# Memo to include in all transactions.
note = "{{ .Note }}"
Expand Down
2 changes: 1 addition & 1 deletion client/debug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func getCodecInterfaces() *cobra.Command {
}
}

// getCodecInterfaceImpls creates and returns a new cmd used for listing all registered implemenations of a given interface on the application codec.
// getCodecInterfaceImpls creates and returns a new cmd used for listing all registered implementations of a given interface on the application codec.
func getCodecInterfaceImpls() *cobra.Command {
return &cobra.Command{
Use: "list-implementations [interface]",
Expand Down
28 changes: 14 additions & 14 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14171,7 +14171,7 @@ paths:
vetoed. Default value: 1/3.
params:
description: |-
params defines all the paramaters of x/gov module.
params defines all the parameters of x/gov module.

Since: cosmos-sdk 0.47
type: object
Expand Down Expand Up @@ -19195,7 +19195,7 @@ paths:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an
list of unbonding ids, each uniquely identifying an
unbonding of this validator
description: >-
Validator defines a validator, together with the total
Expand Down Expand Up @@ -19819,7 +19819,7 @@ paths:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an
list of unbonding ids, each uniquely identifying an
unbonding of this validator
description: >-
Validator defines a validator, together with the total amount
Expand Down Expand Up @@ -20458,7 +20458,7 @@ paths:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an
list of unbonding ids, each uniquely identifying an
unbonding of this validator
description: >-
Validator defines a validator, together with the total
Expand Down Expand Up @@ -21517,7 +21517,7 @@ paths:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an
list of unbonding ids, each uniquely identifying an
unbonding of this validator
description: >-
Validator defines a validator, together with the total
Expand Down Expand Up @@ -22139,7 +22139,7 @@ paths:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an
list of unbonding ids, each uniquely identifying an
unbonding of this validator
description: >-
Validator defines a validator, together with the total amount
Expand Down Expand Up @@ -51844,7 +51844,7 @@ definitions:
vetoed. Default value: 1/3.
params:
description: |-
params defines all the paramaters of x/gov module.
params defines all the parameters of x/gov module.

Since: cosmos-sdk 0.47
type: object
Expand Down Expand Up @@ -53712,7 +53712,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding of
list of unbonding ids, each uniquely identifying an unbonding of
this validator
description: >-
Validator defines a validator, together with the total amount of the
Expand Down Expand Up @@ -54309,7 +54309,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding of
list of unbonding ids, each uniquely identifying an unbonding of
this validator
description: >-
Validator defines a validator, together with the total amount of the
Expand Down Expand Up @@ -54631,7 +54631,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding of
list of unbonding ids, each uniquely identifying an unbonding of
this validator
description: >-
Validator defines a validator, together with the total amount of the
Expand Down Expand Up @@ -55060,7 +55060,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding
list of unbonding ids, each uniquely identifying an unbonding
of this validator
description: >-
Validator defines a validator, together with the total amount of
Expand Down Expand Up @@ -55747,7 +55747,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding of
list of unbonding ids, each uniquely identifying an unbonding of
this validator
description: >-
Validator defines a validator, together with the total amount of the
Expand Down Expand Up @@ -56145,7 +56145,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding of
list of unbonding ids, each uniquely identifying an unbonding of
this validator
description: >-
Validator defines a validator, together with the total amount of the
Expand Down Expand Up @@ -56813,7 +56813,7 @@ definitions:
type: string
format: uint64
title: >-
list of unbonding ids, each uniquely identifing an unbonding of this
list of unbonding ids, each uniquely identifying an unbonding of this
validator
description: >-
Validator defines a validator, together with the total amount of the
Expand Down
2 changes: 1 addition & 1 deletion client/input/input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestReadLineFromBuf(t *testing.T) {
require.ErrorIs(t, err, io.EOF)
})

t.Run("it returns the error if it's not EOF regardles if it read something or not", func(t *testing.T) {
t.Run("it returns the error if it's not EOF regardless if it read something or not", func(t *testing.T) {
expectedErr := errors.New("oh no")
fr.fnc = func(p []byte) (int, error) {
return copy(p, []byte("hello")), expectedErr
Expand Down
2 changes: 1 addition & 1 deletion client/tx/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func checkMultipleSigners(tx authsigning.Tx) error {
// Sign signs a given tx with a named key. The bytes signed over are canconical.
// The resulting signature will be added to the transaction builder overwriting the previous
// ones if overwrite=true (otherwise, the signature will be appended).
// Signing a transaction with mutltiple signers in the DIRECT mode is not supprted and will
// Signing a transaction with mutltiple signers in the DIRECT mode is not supported and will
// return an error.
// An error is returned upon failure.
func Sign(ctx context.Context, txf Factory, name string, txBuilder client.TxBuilder, overwriteSig bool) error {
Expand Down
2 changes: 1 addition & 1 deletion codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

type (
// Codec defines a functionality for serializing other objects.
// Users can defin a custom Protobuf-based serialization.
// Users can define a custom Protobuf-based serialization.
// Note, Amino can still be used without any dependency on Protobuf.
// SDK provides to Codec implementations:
//
Expand Down
4 changes: 2 additions & 2 deletions collections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ we specified in the range.

Then we use again th `Values` method of the `Iterator` to collect all the results.

`collections.Range` also offers a `Prefix` API which is not appliable to all keys types,
`collections.Range` also offers a `Prefix` API which is not applicable to all keys types,
for example uint64 cannot be prefix because it is of constant size, but a `string` key
can be prefixed.

Expand Down Expand Up @@ -796,7 +796,7 @@ in `Pair` keys iterations.
```

As we can see here we're passing the type parameters of the `collections.Pair` because golang type inference
with respect to generics is not as permissive as other languages, so we need to explitly say what are the types of the pair key.
with respect to generics is not as permissive as other languages, so we need to explicitly say what are the types of the pair key.

#### GetAllAddressesBalancesBetween

Expand Down
2 changes: 1 addition & 1 deletion collections/colltest/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (m mockValueCodec[T]) Decode(b []byte) (t T, err error) {

typ, exists := m.seenTypes[wrappedValue.TypeName]
if !exists {
return t, fmt.Errorf("uknown type %s, you're dealing with interfaces... in order to make the interface types known for the MockValueCodec, you need to first encode them", wrappedValue.TypeName)
return t, fmt.Errorf("unknown type %s, you're dealing with interfaces... in order to make the interface types known for the MockValueCodec, you need to first encode them", wrappedValue.TypeName)
}

newT := reflect.New(typ).Interface()
Expand Down
2 changes: 1 addition & 1 deletion contrib/images/simd-dlv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Cosmos-SDK provides you with a local network to bootstrap a chain in your machine, but how does one debug a node or module?

If we start a single node, we won't be able to debug transactions as the machine will be in bootstrapping phase trying to find peers to connect too, thats why we need to start a local network.
If we start a single node, we won't be able to debug transactions as the machine will be in bootstrapping phase trying to find peers to connect too, that's why we need to start a local network.

But the current `localnet-start` does not provide us with debugging tools so that's why there is a different image for debugging a local network, that is to avoid any issues in the future were debugging won't be needed.

Expand Down
2 changes: 1 addition & 1 deletion crypto/hd/hdpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func uint32ToBytes(i uint32) []byte {
return b[:]
}

// i64 returns the two halfs of the SHA512 HMAC of key and data.
// i64 returns the two halves of the SHA512 HMAC of key and data.
func i64(key, data []byte) (il, ir [32]byte) {
mac := hmac.New(sha512.New, key)
// sha512 does not err
Expand Down
6 changes: 3 additions & 3 deletions crypto/keyring/keyring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1972,14 +1972,14 @@ func TestRenameKey(t *testing.T) {
},
},
{
name: "cant rename a key that doesnt exist",
name: "can't rename a key that doesnt exist",
run: func(kr Keyring) {
err := kr.Rename("bogus", "bogus2")
require.Error(t, err)
},
},
{
name: "cant rename a key to an already existing key name",
name: "can't rename a key to an already existing key name",
run: func(kr Keyring) {
key1, key2 := "existingKey", "existingKey2" // create 2 keys
newKeyRecord(t, kr, key1)
Expand All @@ -1990,7 +1990,7 @@ func TestRenameKey(t *testing.T) {
},
},
{
name: "cant rename key to itself",
name: "can't rename key to itself",
run: func(kr Keyring) {
keyName := "keyName"
newKeyRecord(t, kr, keyName)
Expand Down
Loading

0 comments on commit 8f0d5b1

Please sign in to comment.