diff --git a/x/airdrop/keeper/proposal_handler.go b/x/airdrop/keeper/proposal_handler.go index 831fe7699..7d57576a2 100644 --- a/x/airdrop/keeper/proposal_handler.go +++ b/x/airdrop/keeper/proposal_handler.go @@ -51,7 +51,7 @@ func HandleRegisterZoneDropProposal(ctx sdk.Context, k *Keeper, p *types.Registe } if cr.ChainId != p.ZoneDrop.ChainId { - return fmt.Errorf("invalid zonedrop proposal claim record [%d]: chainID missmatch, expected %q got %q", i, p.ZoneDrop.ChainId, cr.ChainId) + return fmt.Errorf("invalid zonedrop proposal claim record [%d]: chainID mismatch, expected %q got %q", i, p.ZoneDrop.ChainId, cr.ChainId) } sumMax += cr.MaxAllocation diff --git a/x/interchainstaking/keeper/callbacks.go b/x/interchainstaking/keeper/callbacks.go index 5d8d79244..f6159f28e 100644 --- a/x/interchainstaking/keeper/callbacks.go +++ b/x/interchainstaking/keeper/callbacks.go @@ -98,7 +98,7 @@ func ValsetCallback(k *Keeper, ctx sdk.Context, args []byte, query icqtypes.Quer } func ValidatorCallback(k *Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error { - zone, found := k.GetZone(ctx, query.GetChainId()) // cant we get rid of this check? + zone, found := k.GetZone(ctx, query.GetChainId()) // can't we get rid of this check? if !found { return fmt.Errorf("no registered zone for chain id: %s", query.GetChainId()) } diff --git a/x/interchainstaking/keeper/proposal_handler.go b/x/interchainstaking/keeper/proposal_handler.go index 67a4bc800..ae9d1447d 100644 --- a/x/interchainstaking/keeper/proposal_handler.go +++ b/x/interchainstaking/keeper/proposal_handler.go @@ -224,7 +224,7 @@ func (k *Keeper) HandleUpdateZoneProposal(ctx sdk.Context, p *types.UpdateZonePr return errors.New("unexpected connection format") } if zone.DepositAddress != nil || zone.DelegationAddress != nil || zone.PerformanceAddress != nil || zone.WithdrawalAddress != nil { - return errors.New("zone already intialised, cannot update connection_id") + return errors.New("zone already initialised, cannot update connection_id") } if k.BankKeeper.GetSupply(ctx, zone.LocalDenom).Amount.IsPositive() { return errors.New("zone has assets minted, cannot update connection_id without potentially losing assets") diff --git a/x/interchainstaking/keeper/proposal_handler_test.go b/x/interchainstaking/keeper/proposal_handler_test.go index 3a0895fe4..a14add6c1 100644 --- a/x/interchainstaking/keeper/proposal_handler_test.go +++ b/x/interchainstaking/keeper/proposal_handler_test.go @@ -351,7 +351,7 @@ func (suite *KeeperTestSuite) TestHandleUpdateZoneProposal() { }, }, { - name: "invalid - zone intialised", + name: "invalid - zone initialised", setup: func(ctx sdk.Context, quicksilver *app.Quicksilver) { proposal := &icstypes.RegisterZoneProposal{ Title: "register zone A", @@ -379,7 +379,7 @@ func (suite *KeeperTestSuite) TestHandleUpdateZoneProposal() { quicksilver.IBCKeeper.ConnectionKeeper.SetConnection(ctx, suite.path.EndpointA.ConnectionID, connectiontypes.ConnectionEnd{ClientId: "07-tendermint-0"}) suite.NoError(suite.setupChannelForICA(ctx, suite.chainB.ChainID, suite.path.EndpointA.ConnectionID, "deposit", zone.AccountPrefix)) }, - expectErr: "zone already intialised, cannot update connection_id", + expectErr: "zone already initialised, cannot update connection_id", proposals: func(zone icstypes.Zone) []icstypes.UpdateZoneProposal { return []icstypes.UpdateZoneProposal{ { diff --git a/x/interchainstaking/keeper/redemptions.go b/x/interchainstaking/keeper/redemptions.go index f522b5d75..871c7145b 100644 --- a/x/interchainstaking/keeper/redemptions.go +++ b/x/interchainstaking/keeper/redemptions.go @@ -325,7 +325,7 @@ func AllocateWithdrawalsFromValidators( WITHDRAWAL: for _, hash := range utils.Keys(amountToWithdrawPerWithdrawal) { for { - // if amountToWithdrawPerWithdrawal has been satisified, then continue. + // if amountToWithdrawPerWithdrawal has been satisfied, then continue. if amountToWithdrawPerWithdrawal[hash].IsZero() { continue WITHDRAWAL } diff --git a/x/interchainstaking/keeper/withdrawal_record.go b/x/interchainstaking/keeper/withdrawal_record.go index e0c577d01..c29d4472c 100644 --- a/x/interchainstaking/keeper/withdrawal_record.go +++ b/x/interchainstaking/keeper/withdrawal_record.go @@ -24,7 +24,7 @@ func (k *Keeper) InitWithdrawalRecordSequence(ctx sdk.Context) { store.Set(types.KeyPrefixRequeuedWithdrawalRecordSeq, bz) } -// GetNextWithdrawalRecordSequence returns and increments the global withdrawal record seqeuence. +// GetNextWithdrawalRecordSequence returns and increments the global withdrawal record sequence. func (k *Keeper) GetNextWithdrawalRecordSequence(ctx sdk.Context) uint64 { var sequence uint64 store := ctx.KVStore(k.storeKey) diff --git a/x/interchainstaking/spec/README.md b/x/interchainstaking/spec/README.md index 6ccad3e7a..6b5c07ff2 100644 --- a/x/interchainstaking/spec/README.md +++ b/x/interchainstaking/spec/README.md @@ -305,7 +305,7 @@ type Delegation struct { - **DelegationAddress** - the delegator address on the remote zone; - **ValidatorAddress** - the validator address on the remote zone; - **Amount** - the amount delegated; -- **Height** - the block height at which the delegation occured; +- **Height** - the block height at which the delegation occurred; - **RedelegationEnd** - ; ### PortConnectionTuple @@ -400,7 +400,7 @@ type MsgSignalIntent struct { ### signal-intent -Signal validator delegation intent by providing a comma seperated string +Signal validator delegation intent by providing a comma separated string containing a decimal weight and the bech32 validator address. `quicksilverd signal-intent [chain_id] [delegation_intent]` @@ -830,7 +830,7 @@ See [WithdrawalAddress Balances](#withdrawaladdress-balances). ### Queries, Requests & Callbacks -This module registeres the following queries, requests and callbacks. +This module registers the following queries, requests and callbacks. #### DepositAddress Balances @@ -890,7 +890,7 @@ See [x/participationrewards/spec](../../participationrewards/spec/README.md). #### Validator Set Query -An essential query to ensure that the registred zone state accurately reflects +An essential query to ensure that the registered zone state accurately reflects the validator set of the remote zone for bonded, unbonded and unbonding validators. diff --git a/x/participationrewards/keeper/keeper_test.go b/x/participationrewards/keeper/keeper_test.go index 274227050..02ffc6091 100644 --- a/x/participationrewards/keeper/keeper_test.go +++ b/x/participationrewards/keeper/keeper_test.go @@ -175,7 +175,7 @@ func (suite *KeeperTestSuite) setupTestZones() { Is_118: true, WithdrawalAddress: &icstypes.ICAAccount{ Address: withdrawalAddress1, - PortName: suite.chainB.ChainID + ".withrawal", + PortName: suite.chainB.ChainID + ".withdrawal", WithdrawalAddress: withdrawalAddress1, }, DustThreshold: math.NewInt(1000000), @@ -193,7 +193,7 @@ func (suite *KeeperTestSuite) setupTestZones() { Is_118: true, WithdrawalAddress: &icstypes.ICAAccount{ Address: withdrawalAddress2, - PortName: suite.chainA.ChainID + ".withrawal", + PortName: suite.chainA.ChainID + ".withdrawal", WithdrawalAddress: withdrawalAddress2, }, DustThreshold: math.NewInt(1000000), @@ -334,7 +334,7 @@ func (suite *KeeperTestSuite) setupTestZones() { }, WithdrawalAddress: &icstypes.ICAAccount{ Address: withdrawalAddress, - PortName: "osmosis-1.withrawal", + PortName: "osmosis-1.withdrawal", WithdrawalAddress: withdrawalAddress, }, Is_118: true, diff --git a/x/participationrewards/keeper/protocol_data.go b/x/participationrewards/keeper/protocol_data.go index dc3b6884d..3e5d8ef79 100644 --- a/x/participationrewards/keeper/protocol_data.go +++ b/x/participationrewards/keeper/protocol_data.go @@ -80,7 +80,7 @@ func (k *Keeper) IterateAllProtocolDatas(ctx sdk.Context, fn func(index int64, k } } -// AllKeyedProtocolDatas returns a slice containing all protocol datas and their keys from the store. +// AllKeyedProtocolDatas returns a slice containing all protocol data and their keys from the store. func (k *Keeper) AllKeyedProtocolDatas(ctx sdk.Context) []*types.KeyedProtocolData { out := make([]*types.KeyedProtocolData, 0) k.IterateAllProtocolDatas(ctx, func(_ int64, key string, data types.ProtocolData) (stop bool) { diff --git a/x/participationrewards/spec/README.md b/x/participationrewards/spec/README.md index 19f3e170e..0a209838e 100644 --- a/x/participationrewards/spec/README.md +++ b/x/participationrewards/spec/README.md @@ -383,7 +383,7 @@ The following is performed at the end of every epoch: 5. Distribute validator selection rewards; * Calculate qAsset holdings: 1. Obtain qAssets held by account (locally and off-chain via claims / Poof of - Posession); + Possession); 2. Calculate user proportion (cap at 2%); 3. Normalize and distribute allocation; * Allocate lockup rewards by sending portion to `feeCollector` for distribution @@ -397,7 +397,7 @@ The following is performed at the end of every epoch: ### Queries, Requests & Callbacks -This module registeres the following queries, requests and callbacks. +This module registers the following queries, requests and callbacks. #### Performance Delegation Rewards