fix: multiple typos of different importance (#24987)

Co-authored-by: User <user@example.com>
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
crStiv
2025-07-24 21:22:04 +00:00
committed by GitHub
co-authored by User Alex | Interchain Labs
parent c047bf741c
commit 64348183e7
15 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -468,7 +468,7 @@ When a Validator is slashed, the following occurs:
redelegation began from the validator are slashed by the `slashFactor` percentage of the initialBalance.
* Each amount slashed from redelegations and unbonding delegations is subtracted from the
total slash amount.
* The `remaingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or
* The `remainingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or
`NonBondedPool` depending on the validator's status. This reduces the total supply of tokens.
In the case of a slash due to any infraction that requires evidence to submitted (for example double-sign), the slash
@@ -2312,7 +2312,7 @@ A user can query the `staking` module using REST endpoints.
#### DelegatorDelegations
The `DelegtaorDelegations` REST endpoint queries all delegations of a given delegator address.
The `DelegatorDelegations` REST endpoint queries all delegations of a given delegator address.
```bash
/cosmos/staking/v1beta1/delegations/{delegatorAddr}
+1 -1
View File
@@ -43,7 +43,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
{
RpcMethod: "ValidatorUnbondingDelegations",
Use: "unbonding-delegations-from [validator-addr]",
Short: "Query all unbonding delegatations from a validator",
Short: "Query all unbonding delegations from a validator",
Long: "Query delegations that are unbonding _from_ a validator.",
Example: fmt.Sprintf("$ %s query staking unbonding-delegations-from [val-addr]", version.AppName),
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
+1 -1
View File
@@ -2,7 +2,7 @@ package v3
import "github.com/cosmos/cosmos-sdk/x/staking/types"
// MigrateJSON accepts exported v0.43 x/stakinng genesis state and migrates it to
// MigrateJSON accepts exported v0.43 x/staking genesis state and migrates it to
// v0.46 x/staking genesis state. The migration includes:
//
// - Add MinCommissionRate param.
+1 -1
View File
@@ -20,7 +20,7 @@ var (
DelegationByValIndexKey = []byte{0x71} // key for delegations by a validator
)
// ParseDelegationKey parses given key and returns delagator, validator address bytes
// ParseDelegationKey parses given key and returns delegator, validator address bytes
func ParseDelegationKey(bz []byte) (sdk.AccAddress, sdk.ValAddress, error) {
prefixLength := len(DelegationKey)
if prefix := bz[:prefixLength]; !bytes.Equal(prefix, DelegationKey) {
+1 -1
View File
@@ -91,7 +91,7 @@ func TestRandomizedGenState1(t *testing.T) {
Rand: r,
}, "invalid memory address or nil pointer dereference"},
{
// panic => reason: numBonded != len(Accnounts)
// panic => reason: numBonded != len(Accounts)
module.SimulationState{
AppParams: make(simtypes.AppParams),
Cdc: cdc,
+1 -1
View File
@@ -107,7 +107,7 @@ func MsgUndelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgUnde
delegator := testData.GetAccount(reporter, delAddr)
if hasMaxUD := must(k.HasMaxUnbondingDelegationEntries(ctx, delegator.Address, valAddr)); hasMaxUD {
reporter.Skipf("max unbodings")
reporter.Skipf("max unbondings")
return nil, nil
}
+1 -1
View File
@@ -622,7 +622,7 @@ func SimulateMsgBeginRedelegate(
}
if hasRecRedel {
return simtypes.NoOpMsg(types.ModuleName, msgType, "receveing redelegation is not allowed"), nil, nil // skip
return simtypes.NoOpMsg(types.ModuleName, msgType, "receiving redelegation is not allowed"), nil, nil // skip
}
// get random destination validator
+1 -1
View File
@@ -401,7 +401,7 @@ func (s *SimTestSuite) setupValidatorRewards(ctx sdk.Context, valAddress sdk.Val
decCoins := sdk.DecCoins{sdk.NewDecCoinFromDec(sdk.DefaultBondDenom, math.LegacyOneDec())}
historicalRewards := distrtypes.NewValidatorHistoricalRewards(decCoins, 2)
s.Require().NoError(s.distrKeeper.SetValidatorHistoricalRewards(ctx, valAddress, 2, historicalRewards))
// setup current revards
// setup current rewards
currentRewards := distrtypes.NewValidatorCurrentRewards(decCoins, 3)
s.Require().NoError(s.distrKeeper.SetValidatorCurrentRewards(ctx, valAddress, currentRewards))
}
+2 -2
View File
@@ -108,12 +108,12 @@ func (sh *Helper) Undelegate(delegator sdk.AccAddress, val sdk.ValAddress, amoun
}
}
// CheckValidator asserts that a validor exists and has a given status (if status!="")
// CheckValidator asserts that a validator exists and has a given status (if status!="")
// and if has a right jailed flag.
func (sh *Helper) CheckValidator(addr sdk.ValAddress, status stakingtypes.BondStatus, jailed bool) stakingtypes.Validator {
v, err := sh.k.GetValidator(sh.Ctx, addr)
require.NoError(sh.t, err)
require.Equal(sh.t, jailed, v.Jailed, "wrong Jalied status")
require.Equal(sh.t, jailed, v.Jailed, "wrong Jailed status")
if status >= 0 {
require.Equal(sh.t, status, v.Status)
}
+1 -1
View File
@@ -7,7 +7,7 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
)
// NewGenesisState creates a new GenesisState instanc e
// NewGenesisState creates a new GenesisState instance
func NewGenesisState(params Params, validators []Validator, delegations []Delegation) *GenesisState {
return &GenesisState{
Params: params,
+1 -1
View File
@@ -420,7 +420,7 @@ func (v Validator) RemoveTokens(tokens math.Int) Validator {
}
// RemoveDelShares removes delegator shares from a validator.
// NOTE: because token fractions are left in the valiadator,
// NOTE: because token fractions are left in the validator,
//
// the exchange rate of future shares of this validator can increase.
func (v Validator) RemoveDelShares(delShares math.LegacyDec) (Validator, math.Int) {