From 89845483fb66e3e56a2bbadcdace49c3313559f7 Mon Sep 17 00:00:00 2001 From: Puneet <59960662+puneet2019@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:50:45 +0530 Subject: [PATCH] fix typos (#710) --- CHANGELOG.md | 10 +++++----- CONTRIBUTING.md | 2 +- app/params/doc.go | 4 ++-- interchaintest/ibc_transfer_test.go | 2 +- proto/pstake/ratesync/v1beta1/ratesync.proto | 2 +- x/liquidstakeibc/spec/README.md | 2 +- x/liquidstakeibc/types/errors.go | 2 +- x/liquidstakeibc/types/genesis.go | 20 ++++++++++---------- x/liquidstakeibc/types/genesis_test.go | 4 ++-- x/lscosmos/types/codec.go | 2 +- x/ratesync/types/ratesync.pb.go | 2 +- 11 files changed, 26 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5748dd192..d67aec55e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -192,7 +192,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Removed - [#516](https://github.com/persistenceOne/pstake-native/pull/516),[#517](https://github.com/persistenceOne/pstake-native/pull/517),[#515](https://github.com/persistenceOne/pstake-native/pull/515) - lscosmos: depracate, remove functional code + lscosmos: deprecate, remove functional code ## [v2.1.0-rc0] - 2023-04-20 @@ -200,7 +200,7 @@ Never released. ### Improvements -- [#411](https://github.com/persistenceOne/pstake-native/pull/411) add admin functionality to disable module incase of +- [#411](https://github.com/persistenceOne/pstake-native/pull/411) add admin functionality to disable module in case of failure. - [#410](https://github.com/persistenceOne/pstake-native/pull/410) reset IBC state instead of retrying IBC. - [#422](https://github.com/persistenceOne/pstake-native/pull/422) sdkv46 @@ -224,8 +224,8 @@ Never released. - [#545](https://github.com/persistenceOne/pstake-native/pull/545) fix failed unbondings on mainnet - [#549](https://github.com/persistenceOne/pstake-native/pull/549) add test for GetUnstakingEpochForPacket -- [#550](https://github.com/persistenceOne/pstake-native/pull/550) udpate height -- [#551](https://github.com/persistenceOne/pstake-native/pull/551) add undelegations json as embeded file +- [#550](https://github.com/persistenceOne/pstake-native/pull/550) update height +- [#551](https://github.com/persistenceOne/pstake-native/pull/551) add undelegations json as embedded file ## [v2.0.0] - 2023-02-18 @@ -278,7 +278,7 @@ Never released. ### Improvements -- [#372](https://github.com/persistenceOne/pstake-native/pull/372) increase ICA timeout to 15mins, so it doesnt timeout +- [#372](https://github.com/persistenceOne/pstake-native/pull/372) increase ICA timeout to 15mins, so it doesn't timeout during upgrades ## [v1.1.0] -2022-10-24 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4682625bb..393799e61 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -168,7 +168,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 `, tc #, i #`. -`` is an optional short description of whats failing, `tc` is the +`` is an optional short description of what's failing, `tc` is the index within the table of the testcase 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 diff --git a/app/params/doc.go b/app/params/doc.go index 0d5338dc4..4c1a6c0a3 100644 --- a/app/params/doc.go +++ b/app/params/doc.go @@ -3,9 +3,9 @@ Package params defines the simulation parameters in the pstake. It contains the default weights used for each transaction used on the module's simulation. These weights define the chance for a transaction to be simulated at -any gived operation. +any given operation. -You can repace the default values for the weights by providing a params.json +You can replace the default values for the weights by providing a params.json file with the weights defined for each of the transaction operations: { diff --git a/interchaintest/ibc_transfer_test.go b/interchaintest/ibc_transfer_test.go index faffa4fc8..03f1ca2ee 100644 --- a/interchaintest/ibc_transfer_test.go +++ b/interchaintest/ibc_transfer_test.go @@ -140,7 +140,7 @@ func TestPersistenceGaiaIBCTransfer(t *testing.T) { func() { err := r.StopRelayer(ctx, eRep) if err != nil { - t.Logf("an error occured while stopping the relayer: %s", err) + t.Logf("an error occurred while stopping the relayer: %s", err) } }, ) diff --git a/proto/pstake/ratesync/v1beta1/ratesync.proto b/proto/pstake/ratesync/v1beta1/ratesync.proto index 34b37d007..cc90b7032 100644 --- a/proto/pstake/ratesync/v1beta1/ratesync.proto +++ b/proto/pstake/ratesync/v1beta1/ratesync.proto @@ -45,7 +45,7 @@ message LiquidStake{ // needs to be uploaded before hand uint64 code_i_d = 2; - // state of instantiation, do not support gov based instantiation. (need ICA to be atleast admin) + // state of instantiation, do not support gov based instantiation. (need ICA to be at least admin) InstantiationState instantiation = 3; // address of instantiated contract. string contract_address = 4; diff --git a/x/liquidstakeibc/spec/README.md b/x/liquidstakeibc/spec/README.md index b6ac295d5..b5ffb108e 100644 --- a/x/liquidstakeibc/spec/README.md +++ b/x/liquidstakeibc/spec/README.md @@ -9,7 +9,7 @@ The Persistence chain module `x/liquidstakeibc`, is the main implementation of t 1. [Concepts](#Concepts) 2. [State](#State) 3. [Proposals](#Proposals) -4. [Mesages](#Messages) +4. [Messages](#Messages) 5. [Events](#Events) 6. [Queries](#Queries) 7. [Keepers](#Keepers) diff --git a/x/liquidstakeibc/types/errors.go b/x/liquidstakeibc/types/errors.go index fc4c432d0..ec00a9607 100644 --- a/x/liquidstakeibc/types/errors.go +++ b/x/liquidstakeibc/types/errors.go @@ -27,5 +27,5 @@ var ( ErrLSMNotEnabled = errorsmod.Register(ModuleName, 2019, "host chain has LSM staking disabled") ErrLSMDepositProcessing = errorsmod.Register(ModuleName, 2020, "already processing LSM deposit") ErrLSMValidatorInvalidState = errorsmod.Register(ModuleName, 2021, "validator invalid state") - ErrInsufficientDeposits = errorsmod.Register(ModuleName, 2022, "insufficent deposits") + ErrInsufficientDeposits = errorsmod.Register(ModuleName, 2022, "insufficient deposits") ) diff --git a/x/liquidstakeibc/types/genesis.go b/x/liquidstakeibc/types/genesis.go index f991aa06f..70c9d2d13 100644 --- a/x/liquidstakeibc/types/genesis.go +++ b/x/liquidstakeibc/types/genesis.go @@ -29,11 +29,11 @@ func (gs *GenesisState) Validate() error { } hc, ok := hostChainMap[deposit.ChainId] if !ok { - return fmt.Errorf("deposit for chain %s doesnt have a valid chain id", deposit.ChainId) + return fmt.Errorf("deposit for chain %s doesn't have a valid chain id", deposit.ChainId) } if hc.IBCDenom() != deposit.Amount.Denom { return fmt.Errorf( - "deposit for chain %s doesnt have the correct host chain denom: %s, should be %s", + "deposit for chain %s doesn't have the correct host chain denom: %s, should be %s", deposit.ChainId, deposit.Amount.Denom, hc.IBCDenom(), @@ -43,11 +43,11 @@ func (gs *GenesisState) Validate() error { for _, unbonding := range gs.Unbondings { hc, ok := hostChainMap[unbonding.ChainId] if !ok { - return fmt.Errorf("unbonding for chain %s doesnt have a valid chain id", unbonding.ChainId) + return fmt.Errorf("unbonding for chain %s doesn't have a valid chain id", unbonding.ChainId) } if hc.MintDenom() != unbonding.BurnAmount.Denom { return fmt.Errorf( - "unbonding for chain %s doesnt have the correct burn amount denom: %s, should be %s", + "unbonding for chain %s doesn't have the correct burn amount denom: %s, should be %s", hc.ChainId, unbonding.BurnAmount.Denom, hc.MintDenom(), @@ -55,7 +55,7 @@ func (gs *GenesisState) Validate() error { } if hc.HostDenom != unbonding.UnbondAmount.Denom { return fmt.Errorf( - "unbonding for chain %s doesnt have the correct host chain denom: %s, should be %s", + "unbonding for chain %s doesn't have the correct host chain denom: %s, should be %s", hc.ChainId, unbonding.UnbondAmount.Denom, hc.HostDenom, @@ -68,11 +68,11 @@ func (gs *GenesisState) Validate() error { for _, userUnbonding := range gs.UserUnbondings { hc, ok := hostChainMap[userUnbonding.ChainId] if !ok { - return fmt.Errorf("user unbonding for chain %s doesnt have a valid chain id", userUnbonding.ChainId) + return fmt.Errorf("user unbonding for chain %s doesn't have a valid chain id", userUnbonding.ChainId) } if hc.MintDenom() != userUnbonding.StkAmount.Denom { return fmt.Errorf( - "user unbonding for chain %s doesnt have the correct mint amount denom: %s, should be %s", + "user unbonding for chain %s doesn't have the correct mint amount denom: %s, should be %s", hc.ChainId, userUnbonding.StkAmount.Denom, hc.MintDenom(), @@ -80,7 +80,7 @@ func (gs *GenesisState) Validate() error { } if hc.HostDenom != userUnbonding.UnbondAmount.Denom { return fmt.Errorf( - "user unbonding for chain %s doesnt have the correct host chain denom: %s, should be %s", + "user unbonding for chain %s doesn't have the correct host chain denom: %s, should be %s", hc.ChainId, userUnbonding.UnbondAmount.Denom, hc.HostDenom, @@ -93,11 +93,11 @@ func (gs *GenesisState) Validate() error { for _, valUnbonding := range gs.ValidatorUnbondings { hc, ok := hostChainMap[valUnbonding.ChainId] if !ok { - return fmt.Errorf("validator unbonding for chain %s doesnt have a valid chain id", valUnbonding.ChainId) + return fmt.Errorf("validator unbonding for chain %s doesn't have a valid chain id", valUnbonding.ChainId) } if hc.HostDenom != valUnbonding.Amount.Denom { return fmt.Errorf( - "validator unbonding for chain %s doesnt have the correct host chain denom: %s, should be %s", + "validator unbonding for chain %s doesn't have the correct host chain denom: %s, should be %s", hc.ChainId, valUnbonding.Amount.Denom, hc.HostDenom, diff --git a/x/liquidstakeibc/types/genesis_test.go b/x/liquidstakeibc/types/genesis_test.go index db00ee207..fa4488a4f 100644 --- a/x/liquidstakeibc/types/genesis_test.go +++ b/x/liquidstakeibc/types/genesis_test.go @@ -52,7 +52,7 @@ func TestGenesisState_Validate(t *testing.T) { valid: false, }, { - desc: "deposits of non existant chain-id", + desc: "deposits of non existent chain-id", genState: func() *types.GenesisState { genesis := ValidGenesis() genesis.Deposits = append(genesis.Deposits, &types.Deposit{ @@ -93,7 +93,7 @@ func TestGenesisState_Validate(t *testing.T) { valid: false, }, { - desc: "unbondings of non existant chain-id", + desc: "unbondings of non existent chain-id", genState: func() *types.GenesisState { genesis := ValidGenesis() genesis.Unbondings = append(genesis.Unbondings, &types.Unbonding{ChainId: "nonExistent-1"}) diff --git a/x/lscosmos/types/codec.go b/x/lscosmos/types/codec.go index b3bd086e6..433a6f78b 100644 --- a/x/lscosmos/types/codec.go +++ b/x/lscosmos/types/codec.go @@ -39,7 +39,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { ) // add the structs that implements sdk.Msg interface registry.RegisterImplementations((*govtypes.Content)(nil), - // add the stucts that implements govTypes.Content interface + // add the structs that implements govTypes.Content interface &MinDepositAndFeeChangeProposal{}, &PstakeFeeAddressChangeProposal{}, &AllowListedValidatorSetChangeProposal{}, diff --git a/x/ratesync/types/ratesync.pb.go b/x/ratesync/types/ratesync.pb.go index d5a6afc25..8432a8ed6 100644 --- a/x/ratesync/types/ratesync.pb.go +++ b/x/ratesync/types/ratesync.pb.go @@ -217,7 +217,7 @@ type LiquidStake struct { FeatureType FeatureType `protobuf:"varint,1,opt,name=feature_type,json=featureType,proto3,enum=pstake.ratesync.v1beta1.FeatureType" json:"feature_type,omitempty"` // needs to be uploaded before hand CodeID uint64 `protobuf:"varint,2,opt,name=code_i_d,json=codeID,proto3" json:"code_i_d,omitempty"` - // state of instantiation, do not support gov based instantiation. (need ICA to be atleast admin) + // state of instantiation, do not support gov based instantiation. (need ICA to be at least admin) Instantiation InstantiationState `protobuf:"varint,3,opt,name=instantiation,proto3,enum=pstake.ratesync.v1beta1.InstantiationState" json:"instantiation,omitempty"` // address of instantiated contract. ContractAddress string `protobuf:"bytes,4,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`