chore: fix spelling errors (#23270)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Alex | Interchain Labs <alex@skip.money>
This commit is contained in:
parent
87dfe258b2
commit
06f5339d78
6
.github/.codespellignore
vendored
6
.github/.codespellignore
vendored
@ -2,8 +2,10 @@ cips
|
||||
pullrequest
|
||||
keypair
|
||||
pastTime
|
||||
hasTables
|
||||
Nam
|
||||
EyT
|
||||
upTo
|
||||
pullRequests
|
||||
pullRequests
|
||||
AccountAt
|
||||
expRes
|
||||
hasTables
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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
|
||||
```
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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":
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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)
|
||||
|
||||
2
docs/build/building-apps/upgrades/0.52.md
vendored
2
docs/build/building-apps/upgrades/0.52.md
vendored
@ -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
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user