From 2c07a380f1c58be07f2379fb2ea642a0513d1bd0 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:30:19 +0200 Subject: [PATCH] chore: fix typos (#1973) * fix typos * fix typo * fix typos * fix typos * fix typo Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- CONTRIBUTING.md | 2 +- RELEASES.md | 4 ++-- RELEASE_PROCESS.md | 6 +++--- UPGRADING.md | 4 ++-- tests/e2e/state.go | 2 +- tests/integration/unbonding.go | 2 +- tests/mbt/model/ccv.qnt | 2 +- x/ccv/consumer/keeper/validators.go | 2 +- x/ccv/provider/ibc_middleware.go | 2 +- x/ccv/provider/keeper/consumer_equivocation.go | 6 +++--- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8b8389315e..6ff634077c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -179,7 +179,7 @@ Additionally, **each PR should only address a single issue**. ### Pull Request Templates -There are three PR templates. The [default template](./.github/PULL_REQUEST_TEMPLATE.md) contains links to the three templates. Please go the the `Preview` tab and select the appropriate sub-template: +There are three PR templates. The [default template](./.github/PULL_REQUEST_TEMPLATE.md) contains links to the three templates. Please go to the `Preview` tab and select the appropriate sub-template: - The [production template](./.github/PULL_REQUEST_TEMPLATE/production.md) is for types `fix`, `feat`, and `refactor`. - The [docs template](./.github/PULL_REQUEST_TEMPLATE/docs.md) is for documentation changes. diff --git a/RELEASES.md b/RELEASES.md index 0e48b15368..983af29995 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -30,7 +30,7 @@ This includes events, queries, CLI interfaces. ## Release Cycle ICS follows a traditional release cycle involving release candidates (RCs) releases before finalizing a new version. -The stable release guarantees do not go into affect until a final release is performed. +The stable release guarantees do not go into effect until a final release is performed. ❗***It is never advisable to use a non-final release in production.*** @@ -95,4 +95,4 @@ The following table indicates the compatibility of currently active releases: | `v3.2.0` || ✅ | | `v4.0.0` || ✅ | | `v4.2.0` || ✅ | -| `v5.0.0` || ✅ | \ No newline at end of file +| `v5.0.0` || ✅ | diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index e1c74d428b..1c26c8c5ff 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -12,7 +12,7 @@ This document outlines the release process for Interchain Security (ICS). For details on ICS releases, see [RELEASES.md](./RELEASES.md). -The procedure of cutting a major or minor release consist of the following steps: +The procedure of cutting a major or minor release consists of the following steps: - Create a new version section in the `CHANGELOG.md` (follow the procedure described [below](#changelog)) - Create release notes, in `RELEASE_NOTES.md`, highlighting the new features and changes in the version. @@ -71,7 +71,7 @@ Before cutting a _**release candidate**_ (e.g., `v3.3.0-rc0`), the following ste unclog release v3.3.0 ``` - `unclog release` requires an editor. This can be set either by configuring - an `$EDITOR` environment variable or by manually specify an editor binary path + an `$EDITOR` environment variable or by manually specifying an editor binary path via the `--editor` flag. - add the date as the summary of the release (`unclog release` requires adding a summary), e.g., ```md @@ -208,4 +208,4 @@ git push origin v3.2.0 ``` For final releases, once the tag is created, use the GitHub interface to create a release. -Note that this is not necessary for release candidates. \ No newline at end of file +Note that this is not necessary for release candidates. diff --git a/UPGRADING.md b/UPGRADING.md index 425fd511a3..9dbd730032 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -80,7 +80,7 @@ Upgrading the provider from `v2.x.y` to `v3.3.0` will not require state migratio ## [v3.2.x](https://github.com/cosmos/interchain-security/tree/release/v3.2.x) -`v3.2.0` bumps IBC to `v7.3`. As a result, `legacy_ibc_testing` is not longer required and was removed, see https://github.com/cosmos/interchain-security/pull/1185. This means that when upgrading to `v3.2.0`, any customized tests relying on `legacy_ibc_testing` need to be updated. +`v3.2.0` bumps IBC to `v7.3`. As a result, `legacy_ibc_testing` is no longer required and was removed, see https://github.com/cosmos/interchain-security/pull/1185. This means that when upgrading to `v3.2.0`, any customized tests relying on `legacy_ibc_testing` need to be updated. ### Consumer @@ -124,7 +124,7 @@ Legacy APIs of the `AppModule` interface have been removed from ccv modules. For #### Imports -Imports for ics23 have been updated as the repository have been migrated from confio to cosmos. +Imports for ics23 have been updated as the repository has been migrated from confio to cosmos. ```diff import ( diff --git a/tests/e2e/state.go b/tests/e2e/state.go index 636121333f..1b3e0795b4 100644 --- a/tests/e2e/state.go +++ b/tests/e2e/state.go @@ -915,7 +915,7 @@ func (tc TestConfig) getTrustedHeight( var trustedHeight gjson.Result // iterate on the relayer's response - // and parse the the command "result" + // and parse the command "result" for scanner.Scan() { out := scanner.Text() if len(gjson.Get(out, "result").Array()) > 0 { diff --git a/tests/integration/unbonding.go b/tests/integration/unbonding.go index e7af063d7b..3092d54ec8 100644 --- a/tests/integration/unbonding.go +++ b/tests/integration/unbonding.go @@ -486,7 +486,7 @@ func (s *CCVTestSuite) TestTooManyLastValidators() { lastVals := pk.GetLastBondedValidators(s.providerCtx()) // pass one block to apply the validator set changes - // (calls ApplyAndReturnValidatorSetUpdates in the the staking module EndBlock) + // (calls ApplyAndReturnValidatorSetUpdates in the staking module EndBlock) s.providerChain.NextBlock() // verify that the number of bonded validators is decreased by one diff --git a/tests/mbt/model/ccv.qnt b/tests/mbt/model/ccv.qnt index 80aed91ec2..83adcea357 100644 --- a/tests/mbt/model/ccv.qnt +++ b/tests/mbt/model/ccv.qnt @@ -396,7 +396,7 @@ module ccv { } // Delivers the next queued VscMaturedPacket from a consumer chain to the provider chain. - // Arguments are the currentState and the the consumer chain, from which the packet will be delivered. + // Arguments are the currentState and the consumer chain, from which the packet will be delivered. // If this packet will time out on the provider on delivery, // the consumer will be dropped. // The first return is the result of the operation, the second result is a boolean diff --git a/x/ccv/consumer/keeper/validators.go b/x/ccv/consumer/keeper/validators.go index 24a1c5a57c..504a8cd075 100644 --- a/x/ccv/consumer/keeper/validators.go +++ b/x/ccv/consumer/keeper/validators.go @@ -119,7 +119,7 @@ func (k Keeper) Slash(ctx sdk.Context, addr sdk.ConsAddress, infractionHeight, p return k.SlashWithInfractionReason(ctx, addr, infractionHeight, power, slashFactor, stakingtypes.Infraction_INFRACTION_UNSPECIFIED) } -// Slash queues a slashing request for the the provider chain +// Slash queues a slashing request for the provider chain // All queued slashing requests will be cleared in EndBlock // Called by Slashing keeper in SlashWithInfractionReason func (k Keeper) SlashWithInfractionReason(ctx sdk.Context, addr sdk.ConsAddress, infractionHeight, power int64, slashFactor sdk.Dec, infraction stakingtypes.Infraction) math.Int { diff --git a/x/ccv/provider/ibc_middleware.go b/x/ccv/provider/ibc_middleware.go index fb4d96890f..ef0837ae5b 100644 --- a/x/ccv/provider/ibc_middleware.go +++ b/x/ccv/provider/ibc_middleware.go @@ -212,7 +212,7 @@ func (im IBCMiddleware) GetAppVersion(ctx sdk.Context, portID, channelID string) // It follows the same logic than the OnRecvPacket method of the IBC transfer module // see https://github.com/cosmos/ibc-go/blob/v7.3.2/modules/apps/transfer/keeper/relay.go#L162 func GetProviderDenom(denom string, packet channeltypes.Packet) (providerDenom string) { - // If the the prefix denom corresponds to the packet's source port and channel, + // If the prefix denom corresponds to the packet's source port and channel, // returns the base denom if ibctransfertypes.ReceiverChainIsSource(packet.GetSourcePort(), packet.GetSourceChannel(), denom) { voucherPrefix := ibctransfertypes.GetDenomPrefix(packet.GetSourcePort(), packet.GetSourceChannel()) diff --git a/x/ccv/provider/keeper/consumer_equivocation.go b/x/ccv/provider/keeper/consumer_equivocation.go index 8fc9808304..b8e19e6d9c 100644 --- a/x/ccv/provider/keeper/consumer_equivocation.go +++ b/x/ccv/provider/keeper/consumer_equivocation.go @@ -450,7 +450,7 @@ func (k Keeper) SlashValidator(ctx sdk.Context, providerAddr types.ProviderConsA // CRUD section // -// SetEquivocationEvidenceMinHeight sets the the minimum height +// SetEquivocationEvidenceMinHeight sets the minimum height // of a valid consumer equivocation evidence for a given consumer chain ID func (k Keeper) SetEquivocationEvidenceMinHeight(ctx sdk.Context, chainID string, height uint64) { store := ctx.KVStore(k.storeKey) @@ -460,7 +460,7 @@ func (k Keeper) SetEquivocationEvidenceMinHeight(ctx sdk.Context, chainID string store.Set(types.EquivocationEvidenceMinHeightKey(chainID), heightBytes) } -// GetEquivocationEvidenceMinHeight returns the the minimum height +// GetEquivocationEvidenceMinHeight returns the minimum height // of a valid consumer equivocation evidence for a given consumer chain ID func (k Keeper) GetEquivocationEvidenceMinHeight(ctx sdk.Context, chainID string) uint64 { store := ctx.KVStore(k.storeKey) @@ -472,7 +472,7 @@ func (k Keeper) GetEquivocationEvidenceMinHeight(ctx sdk.Context, chainID string return binary.BigEndian.Uint64(bz) } -// DeleteEquivocationEvidenceMinHeight deletes the the minimum height +// DeleteEquivocationEvidenceMinHeight deletes the minimum height // of a valid consumer equivocation evidence for a given consumer chain ID func (k Keeper) DeleteEquivocationEvidenceMinHeight(ctx sdk.Context, chainID string) { store := ctx.KVStore(k.storeKey)