fix: typos across the codebase (#25045)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
parent
2789409491
commit
4700ea2136
@ -96,7 +96,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/x/staking/types/authz.go#L
|
||||
|
||||
In order to prevent DoS attacks, granting `StakeAuthorization`s with `x/authz` incurs gas. `StakeAuthorization` allows you to authorize another account to delegate, undelegate, or redelegate to validators. The authorizer can define a list of validators they allow or deny delegations to. The Cosmos SDK iterates over these lists and charge 10 gas for each validator in both of the lists.
|
||||
|
||||
Since the state maintaining a list for granter, grantee pair with same expiration, we are iterating over the list to remove the grant (incase of any revoke of paritcular `msgType`) from the list and we are charging 20 gas per iteration.
|
||||
Since the state maintaining a list for granter, grantee pair with same expiration, we are iterating over the list to remove the grant (incase of any revoke of particular `msgType`) from the list and we are charging 20 gas per iteration.
|
||||
|
||||
## State
|
||||
|
||||
|
||||
@ -447,7 +447,7 @@ func (k BaseKeeper) trackDelegation(ctx context.Context, addr sdk.AccAddress, ba
|
||||
return nil
|
||||
}
|
||||
|
||||
// trackUndelegation trakcs undelegation of the given account if it is a vesting account
|
||||
// trackUndelegation tracks undelegation of the given account if it is a vesting account
|
||||
func (k BaseKeeper) trackUndelegation(ctx context.Context, addr sdk.AccAddress, amt sdk.Coins) error {
|
||||
acc := k.ak.GetAccount(ctx, addr)
|
||||
if acc == nil {
|
||||
|
||||
@ -112,7 +112,7 @@ func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.R
|
||||
// Params.SendEnabled slice is empty, this is a noop.
|
||||
//
|
||||
// If the main SendEnabled slice already has entries, the Params.SendEnabled
|
||||
// entries are added. In case of the same demon in both, preference is given to
|
||||
// entries are added. In case of the same denom in both, preference is given to
|
||||
// the existing (main GenesisState field) entry.
|
||||
func (gs *GenesisState) MigrateSendEnabled() {
|
||||
gs.SendEnabled = gs.GetAllSendEnabled()
|
||||
|
||||
@ -136,7 +136,7 @@ func (srv msgServer) TripCircuitBreaker(ctx context.Context, msg *types.MsgTripC
|
||||
}
|
||||
|
||||
// ResetCircuitBreaker resumes processing of Msg's in the state machine that
|
||||
// have been been paused using TripCircuitBreaker.
|
||||
// have been paused using TripCircuitBreaker.
|
||||
func (srv msgServer) ResetCircuitBreaker(ctx context.Context, msg *types.MsgResetCircuitBreaker) (*types.MsgResetCircuitBreakerResponse, error) {
|
||||
keeper := srv.Keeper
|
||||
address, err := srv.addressCodec.StringToBytes(msg.Authority)
|
||||
|
||||
@ -66,7 +66,7 @@ The crisis module emits the following events:
|
||||
|
||||
### Handlers
|
||||
|
||||
#### MsgVerifyInvariance
|
||||
#### MsgVerifyInvariant
|
||||
|
||||
| Type | Attribute Key | Attribute Value |
|
||||
|-----------|---------------|------------------|
|
||||
|
||||
@ -6,7 +6,7 @@ sidebar_position: 1
|
||||
|
||||
## Abstract
|
||||
|
||||
Often in the SDK, we would like to run certain code every-so often. The
|
||||
Often in the SDK, we would like to run certain code every so often. The
|
||||
purpose of `epochs` module is to allow other modules to set that they
|
||||
would like to be signaled once every period. So another module can
|
||||
specify it wants to execute code once a week, starting at UTC-time = x.
|
||||
|
||||
@ -30,7 +30,7 @@ import (
|
||||
)
|
||||
|
||||
// GenTxCmd builds the application's gentx command.
|
||||
func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, valAdddressCodec address.Codec) *cobra.Command {
|
||||
func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, valAddressCodec address.Codec) *cobra.Command {
|
||||
ipDefault, _ := server.ExternalIP()
|
||||
fsCreateValidator, defaultsDesc := cli.CreateValidatorMsgFlagSet(ipDefault)
|
||||
|
||||
@ -160,7 +160,7 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o
|
||||
createValCfg.Amount = amount
|
||||
|
||||
// create a 'create-validator' message
|
||||
txBldr, msg, err := cli.BuildCreateValidatorMsg(clientCtx, createValCfg, txFactory, true, valAdddressCodec)
|
||||
txBldr, msg, err := cli.BuildCreateValidatorMsg(clientCtx, createValCfg, txFactory, true, valAddressCodec)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to build create-validator message")
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ func MigrateJSON(oldState *v1beta1.GenesisState) (*v1.GenesisState, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
depParams, votingParms, tallyParams := convertToNewDepParams(oldState.DepositParams), convertToNewVotingParams(oldState.VotingParams), convertToNewTallyParams(oldState.TallyParams)
|
||||
depParams, votingParams, tallyParams := convertToNewDepParams(oldState.DepositParams), convertToNewVotingParams(oldState.VotingParams), convertToNewTallyParams(oldState.TallyParams)
|
||||
|
||||
return &v1.GenesisState{
|
||||
StartingProposalId: oldState.StartingProposalId,
|
||||
@ -28,7 +28,7 @@ func MigrateJSON(oldState *v1beta1.GenesisState) (*v1.GenesisState, error) {
|
||||
Votes: newVotes,
|
||||
Proposals: newProps,
|
||||
DepositParams: &depParams,
|
||||
VotingParams: &votingParms,
|
||||
VotingParams: &votingParams,
|
||||
TallyParams: &tallyParams,
|
||||
}, nil
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ func MigrateStore(ctx sdk.Context, storeService corestoretypes.KVStoreService, c
|
||||
return err
|
||||
}
|
||||
|
||||
// Set the default consisitution if it is not set
|
||||
// Set the default constitution if it is not set
|
||||
if ok, err := constitutionCollection.Has(ctx); !ok || err != nil {
|
||||
if err := constitutionCollection.Set(ctx, "This chain has no constitution."); err != nil {
|
||||
return err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user