diff --git a/.github/.codespellignore b/.github/.codespellignore index d5f973fc22..119b510492 100644 --- a/.github/.codespellignore +++ b/.github/.codespellignore @@ -2,8 +2,10 @@ cips pullrequest keypair pastTime -hasTables Nam EyT upTo -pullRequests \ No newline at end of file +pullRequests +AccountAt +expRes +hasTables diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index de41614b2c..6ceb7c7e07 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -2,7 +2,7 @@ ## Our Pledge -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards diff --git a/client/config/toml.go b/client/config/toml.go index 35787219a2..7a6d3959a2 100644 --- a/client/config/toml.go +++ b/client/config/toml.go @@ -73,7 +73,7 @@ func writeConfigFile(configFilePath string, config interface{}) error { return os.WriteFile(configFilePath, buffer.Bytes(), 0o600) } -// getClientConfig reads values from client.toml file and unmarshalls them into ClientConfig +// getClientConfig reads values from client.toml file and unmarshals them into ClientConfig func getClientConfig(configPath string, v *viper.Viper) (*Config, error) { v.AddConfigPath(configPath) v.SetConfigName("client") diff --git a/client/v2/README.md b/client/v2/README.md index 0176733c2f..8d0c973309 100644 --- a/client/v2/README.md +++ b/client/v2/README.md @@ -304,7 +304,7 @@ To sign a file `sign-file` command offers some helpful flags: --encoding string Choose an encoding method for the file content to be added as msg data (no-encoding|base64|hex) (default "no-encoding") --indent string Choose an indent for the tx (default " ") --notEmitUnpopulated Don't show unpopulated fields in the tx - --output string Choose an output format for the tx (json|text (default "json") + --output string Choose an output format for the tx (json|text) (default "json") --output-document string The document will be written to the given file instead of STDOUT ``` diff --git a/client/v2/autocli/config/config.go b/client/v2/autocli/config/config.go index c775acc5ce..9a64ef6d83 100644 --- a/client/v2/autocli/config/config.go +++ b/client/v2/autocli/config/config.go @@ -114,7 +114,7 @@ func writeConfigFile(configFilePath string, config *Config) error { return os.WriteFile(configFilePath, b, 0o600) } -// readConfig reads values from client.toml file and unmarshalls them into ClientConfig +// readConfig reads values from client.toml file and unmarshals them into ClientConfig func readConfig(configPath string, v *viper.Viper) (*Config, error) { v.AddConfigPath(configPath) v.SetConfigName("client") diff --git a/client/v2/offchain/verify.go b/client/v2/offchain/verify.go index 5e87cb9012..7a6b838204 100644 --- a/client/v2/offchain/verify.go +++ b/client/v2/offchain/verify.go @@ -95,7 +95,7 @@ func verify(addressCodec address.Codec, txConfig clitx.TxConfig, dTx clitx.Tx) e return nil } -// unmarshal unmarshalls a digest to a Tx using protobuf protojson. +// unmarshal unmarshals a digest to a Tx using protobuf protojson. func unmarshal(format string, bz []byte, config clitx.TxConfig) (clitx.Tx, error) { switch format { case "json": diff --git a/codec/testutil/codec.go b/codec/testutil/codec.go index c3c14ee1f4..5f1cf1fbd2 100644 --- a/codec/testutil/codec.go +++ b/codec/testutil/codec.go @@ -58,7 +58,7 @@ func (o CodecOptions) NewCodec() *codec.ProtoCodec { return codec.NewProtoCodec(o.NewInterfaceRegistry()) } -// GetAddressCodec returns the address codec. If not address codec was provided it'll create a new one based on the +// GetAddressCodec returns the address codec. If no address codec was provided it'll create a new one based on the // bech32 prefix. func (o CodecOptions) GetAddressCodec() coreaddress.Codec { if o.AddressCodec != nil { diff --git a/core/appmodule/doc.go b/core/appmodule/doc.go index 311f6e25a2..5d0e126aea 100644 --- a/core/appmodule/doc.go +++ b/core/appmodule/doc.go @@ -1,4 +1,4 @@ -// Package appmodule defines what is needed for an module to be used in the Cosmos SDK (runtime). +// Package appmodule defines what is needed for a module to be used in the Cosmos SDK (runtime). // It is equivalent to the appmodulev2 package, but less flexible to stay compatible with baseapp instead of server/v2. // If you are looking at integrating dependency injection into your module please see depinject appconfig documentation. package appmodule diff --git a/core/appmodule/v2/module.go b/core/appmodule/v2/module.go index e01818cdaf..b7ffc837c7 100644 --- a/core/appmodule/v2/module.go +++ b/core/appmodule/v2/module.go @@ -23,7 +23,7 @@ type AppModule interface { // custom logic before BeginBlock. type HasPreBlocker interface { AppModule - // PreBlock is method that will be run before BeginBlock. + // PreBlock is a method that will be run before BeginBlock. PreBlock(context.Context) error } @@ -85,7 +85,7 @@ type HasTxValidator[T transaction.Tx] interface { } // HasUpdateValidators is an extension interface that contains information about the AppModule and UpdateValidators. -// It can be seen as the alternative of the Cosmos SDK' HasABCIEndBlocker. +// It can be seen as the alternative of the Cosmos SDK HasABCIEndBlocker. // Both are still supported. type HasUpdateValidators interface { AppModule diff --git a/core/store/store.go b/core/store/store.go index 5c50855e2b..c3f0a4e4c7 100644 --- a/core/store/store.go +++ b/core/store/store.go @@ -142,7 +142,7 @@ type ReaderMap interface { // WriterMap represents a writable actor state. type WriterMap interface { ReaderMap - // GetWriter must the return a WritableState + // GetWriter must return a WritableState // for the provided actor namespace. GetWriter(actor []byte) (Writer, error) // ApplyStateChanges applies all the state changes diff --git a/core/testing/memdb.go b/core/testing/memdb.go index 526a6d45ef..6d8ccb6811 100644 --- a/core/testing/memdb.go +++ b/core/testing/memdb.go @@ -430,7 +430,7 @@ func (b *memDBBatch) Write() error { } } - // Make sure batch cannot be used afterwards. Callers should still call Close(), for + // Make sure batch cannot be used afterwards. Callers should still call Close(). return b.Close() } diff --git a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h index 76af839691..a808d4cb5a 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h +++ b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h @@ -534,7 +534,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul( * uniformly random 32-byte arrays, or equal to zero. 1 otherwise. * Args: ctx: pointer to a context object initialized for validation * (cannot be NULL). - * In/Out: pubkey: pointer to a public key obkect. + * In/Out: pubkey: pointer to a public key object. * In: tweak: pointer to a 32-byte tweak. */ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_mul( diff --git a/crypto/types/multisig/multisignature.go b/crypto/types/multisig/multisignature.go index f6e2b372e0..7d4a2d17cb 100644 --- a/crypto/types/multisig/multisignature.go +++ b/crypto/types/multisig/multisignature.go @@ -36,7 +36,7 @@ func getIndex(pk types.PubKey, keys []types.PubKey) int { } // AddSignature adds a signature to the multisig, at the corresponding index. The index must -// represent the pubkey index in the LegacyAmingPubKey structure, which verifies this signature. +// represent the pubkey index in the LegacyAminoPubKey structure, which verifies this signature. // If the signature already exists, replace it. func AddSignature(mSig *signing.MultiSignatureData, sig signing.SignatureData, index int) { newSigIndex := mSig.BitArray.NumTrueBitsBefore(index) diff --git a/docs/build/building-apps/upgrades/0.52.md b/docs/build/building-apps/upgrades/0.52.md index 0b93ba8ab0..5eb00b0caf 100644 --- a/docs/build/building-apps/upgrades/0.52.md +++ b/docs/build/building-apps/upgrades/0.52.md @@ -322,7 +322,7 @@ if err != nil { The vesting account message and CLI are removed. Existing vesting accounts remain, but you cannot create new ones. -In order to create new vesting accounts you need to add the accounts module to your chain. We provide vesting acccounts by default which have simlar logic to the previous vesting accounts. If you would like custom vesting accounts, they can be implemented in `x/accounts`. +In order to create new vesting accounts you need to add the accounts module to your chain. We provide vesting accounts by default which have similar logic to the previous vesting accounts. If you would like custom vesting accounts, they can be implemented in `x/accounts`. ### Introducing x/accounts AccountNumber diff --git a/docs/learn/beginner/00-app-anatomy.md b/docs/learn/beginner/00-app-anatomy.md index aebf18c0cf..d924a9d3ec 100644 --- a/docs/learn/beginner/00-app-anatomy.md +++ b/docs/learn/beginner/00-app-anatomy.md @@ -187,7 +187,7 @@ Note that `sdk.Msg`s are bundled in [transactions](../advanced/01-transactions.m When a valid block of transactions is received by the full-node, CometBFT relays each one to the application via [`DeliverTx`](https://docs.cometbft.com/v0.37/spec/abci/abci++_app_requirements#specifics-of-responsedelivertx). Then, the application handles the transaction: -1. Upon receiving the transaction, the application first unmarshalls it from `[]byte`. +1. Upon receiving the transaction, the application first unmarshals it from `[]byte`. 2. Then, it verifies a few things about the transaction like [fee payment and signatures](./04-gas-fees.md#antehandler) before extracting the `Msg`(s) contained in the transaction. 3. `sdk.Msg`s are encoded using Protobuf [`Any`s](#register-codec). By analyzing each `Any`'s `type_url`, baseapp's `msgServiceRouter` routes the `sdk.Msg` to the corresponding module's `Msg` service. 4. If the message is successfully processed, the state is updated. diff --git a/docs/rfc/rfc-004-accounts.md b/docs/rfc/rfc-004-accounts.md index c465508ef3..d4abf7ffd8 100644 --- a/docs/rfc/rfc-004-accounts.md +++ b/docs/rfc/rfc-004-accounts.md @@ -51,7 +51,7 @@ their structure and functionality. Instead of representing accounts as simple `google.Protobuf.Any` structures stored in state with no business logic attached, this proposal suggests a more sophisticated account representation that is closer to module entities. In fact, accounts should be able to receive messages and process them in the same way modules do, and be capable of storing -state in a isolated (prefixed) portion of state belonging only to them, in the same way as modules do. +state in an isolated (prefixed) portion of state belonging only to them, in the same way as modules do. ### Account Message Reception diff --git a/x/staking/keeper/cons_pubkey.go b/x/staking/keeper/cons_pubkey.go index 189cdf3efd..33d71c589a 100644 --- a/x/staking/keeper/cons_pubkey.go +++ b/x/staking/keeper/cons_pubkey.go @@ -126,7 +126,7 @@ func (k Keeper) updateToNewPubkey(ctx context.Context, val types.Validator, oldP } // setConsAddrToValidatorIdentifierMap adds an entry in the state with the current consAddr to the initial consAddr of the validator. -// It first tries to find the validatorIdentifier if there is a entry already present in the state. +// It first tries to find the validatorIdentifier if there is an entry already present in the state. func (k Keeper) setConsAddrToValidatorIdentifierMap(ctx context.Context, oldConsAddr, newConsAddr sdk.ConsAddress) error { validatorIdentifier, err := k.ConsAddrToValidatorIdentifierMap.Get(ctx, oldConsAddr) if err != nil && !errors.Is(err, collections.ErrNotFound) { diff --git a/x/tx/signing/textual/protoreflect_list_test.go b/x/tx/signing/textual/protoreflect_list_test.go index 53591d0016..e4413a2f82 100644 --- a/x/tx/signing/textual/protoreflect_list_test.go +++ b/x/tx/signing/textual/protoreflect_list_test.go @@ -7,7 +7,7 @@ import ( var _ protoreflect.List = (*genericList[proto.Message])(nil) -// NewGenericList creates a empty list that satisfies the protoreflect.List +// NewGenericList creates an empty list that satisfies the protoreflect.List // interface. func NewGenericList[T proto.Message](list []T) protoreflect.List { return &genericList[T]{&list}