Skip to content

Commit

Permalink
fix typos (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 authored Jan 3, 2024
1 parent 50ab593 commit 8984548
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ 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

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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
`<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 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
Expand Down
4 changes: 2 additions & 2 deletions app/params/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
{
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/ibc_transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
},
)
Expand Down
2 changes: 1 addition & 1 deletion proto/pstake/ratesync/v1beta1/ratesync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion x/liquidstakeibc/spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/liquidstakeibc/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
20 changes: 10 additions & 10 deletions x/liquidstakeibc/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -43,19 +43,19 @@ 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(),
)
}
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,
Expand All @@ -68,19 +68,19 @@ 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(),
)
}
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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions x/liquidstakeibc/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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"})
Expand Down
2 changes: 1 addition & 1 deletion x/lscosmos/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down
2 changes: 1 addition & 1 deletion x/ratesync/types/ratesync.pb.go

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

0 comments on commit 8984548

Please sign in to comment.