docs: fix multiple typos (#25019)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
parent
f73ea2b5e9
commit
4c6bdd257a
@ -236,8 +236,8 @@ func (s *E2ETestSuite) TestGetProposalDepositGRPC() {
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get deposit with wrong depositer address",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "1", "wrongDepositerAddress"),
|
||||
"get deposit with wrong depositor address",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "1", "wrongDepositorAddress"),
|
||||
true,
|
||||
},
|
||||
{
|
||||
|
||||
@ -313,7 +313,7 @@ As a chain developer, you decide that you'd like to provide clarity to your key
|
||||
* token holders
|
||||
* developers (yourself)
|
||||
|
||||
You use the constitution to immutably store some Markdown in genesis, so that when difficult questions come up, the constutituon can provide guidance to the community.
|
||||
You use the constitution to immutably store some Markdown in genesis, so that when difficult questions come up, the constitution can provide guidance to the community.
|
||||
|
||||
### Proposals
|
||||
|
||||
@ -719,7 +719,7 @@ simd query gov --help
|
||||
The `deposit` command allows users to query a deposit for a given proposal from a given depositor.
|
||||
|
||||
```bash
|
||||
simd query gov deposit [proposal-id] [depositer-addr] [flags]
|
||||
simd query gov deposit [proposal-id] [depositor-addr] [flags]
|
||||
```
|
||||
|
||||
Example:
|
||||
@ -1149,7 +1149,7 @@ simd tx gov submit-legacy-proposal param-change proposal.json --from cosmos1..
|
||||
|
||||
#### cancel-proposal
|
||||
|
||||
Once proposal is canceled, from the deposits of proposal `deposits * proposal_cancel_ratio` will be burned or sent to `ProposalCancelDest` address , if `ProposalCancelDest` is empty then deposits will be burned. The `remaining deposits` will be sent to depositers.
|
||||
Once proposal is canceled, from the deposits of proposal `deposits * proposal_cancel_ratio` will be burned or sent to `ProposalCancelDest` address , if `ProposalCancelDest` is empty then deposits will be burned. The `remaining deposits` will be sent to depositors.
|
||||
|
||||
```bash
|
||||
simd tx gov cancel-proposal [proposal-id] [flags]
|
||||
|
||||
@ -61,7 +61,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
||||
},
|
||||
{
|
||||
RpcMethod: "Deposit",
|
||||
Use: "deposit [proposal-id] [depositer-addr]",
|
||||
Use: "deposit [proposal-id] [depositor-addr]",
|
||||
Short: "Query details of a deposit",
|
||||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
||||
{ProtoField: "proposal_id"},
|
||||
|
||||
@ -195,7 +195,7 @@ func (k Keeper) ChargeDeposit(ctx context.Context, proposalID uint64, destAddres
|
||||
}
|
||||
|
||||
for _, deposit := range deposits {
|
||||
depositerAddress, err := k.authKeeper.AddressCodec().StringToBytes(deposit.Depositor)
|
||||
depositorAddress, err := k.authKeeper.AddressCodec().StringToBytes(deposit.Depositor)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -221,13 +221,13 @@ func (k Keeper) ChargeDeposit(ctx context.Context, proposalID uint64, destAddres
|
||||
|
||||
if !remainingAmount.IsZero() {
|
||||
err := k.bankKeeper.SendCoinsFromModuleToAccount(
|
||||
ctx, types.ModuleName, depositerAddress, remainingAmount,
|
||||
ctx, types.ModuleName, depositorAddress, remainingAmount,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
err = k.Deposits.Remove(ctx, collections.Join(deposit.ProposalId, sdk.AccAddress(depositerAddress)))
|
||||
err = k.Deposits.Remove(ctx, collections.Join(deposit.ProposalId, sdk.AccAddress(depositorAddress)))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@ -1406,7 +1406,7 @@ func (suite *KeeperTestSuite) TestLegacyMsgDeposit() {
|
||||
expErr: true,
|
||||
expErrMsg: "not found",
|
||||
},
|
||||
"empty depositer": {
|
||||
"empty depositor": {
|
||||
preRun: func() uint64 {
|
||||
return pID
|
||||
},
|
||||
|
||||
@ -46,7 +46,7 @@ var (
|
||||
const (
|
||||
OpMsgCreateGroup = "op_weight_msg_create_group"
|
||||
OpMsgUpdateGroupAdmin = "op_weight_msg_update_group_admin"
|
||||
OpMsgUpdateGroupMetadata = "op_wieght_msg_update_group_metadata"
|
||||
OpMsgUpdateGroupMetadata = "op_weight_msg_update_group_metadata"
|
||||
OpMsgUpdateGroupMembers = "op_weight_msg_update_group_members"
|
||||
OpMsgCreateGroupPolicy = "op_weight_msg_create_group_account"
|
||||
OpMsgCreateGroupWithPolicy = "op_weight_msg_create_group_with_policy"
|
||||
@ -694,9 +694,9 @@ func simulateMsgUpdateGroupMembers(
|
||||
}
|
||||
|
||||
// set existing random group member weight to zero to remove from the group
|
||||
existigMembers := res.Members
|
||||
if len(existigMembers) > 1 {
|
||||
memberToRemove := existigMembers[r.Intn(len(existigMembers))]
|
||||
existingMembers := res.Members
|
||||
if len(existingMembers) > 1 {
|
||||
memberToRemove := existingMembers[r.Intn(len(existingMembers))]
|
||||
var isDuplicateMember bool
|
||||
for idx, m := range members {
|
||||
if m.Address == memberToRemove.Member.Address {
|
||||
|
||||
@ -56,7 +56,7 @@ func NewThresholdDecisionPolicy(threshold string, votingPeriod, minExecutionPeri
|
||||
return &ThresholdDecisionPolicy{threshold, &DecisionPolicyWindows{votingPeriod, minExecutionPeriod}}
|
||||
}
|
||||
|
||||
// GetVotingPeriod returns the voitng period of ThresholdDecisionPolicy
|
||||
// GetVotingPeriod returns the voting period of ThresholdDecisionPolicy
|
||||
func (p ThresholdDecisionPolicy) GetVotingPeriod() time.Duration {
|
||||
return p.Windows.VotingPeriod
|
||||
}
|
||||
@ -161,7 +161,7 @@ func NewPercentageDecisionPolicy(percentage string, votingPeriod, executionPerio
|
||||
return &PercentageDecisionPolicy{percentage, &DecisionPolicyWindows{votingPeriod, executionPeriod}}
|
||||
}
|
||||
|
||||
// GetVotingPeriod returns the voitng period of PercentageDecisionPolicy
|
||||
// GetVotingPeriod returns the voting period of PercentageDecisionPolicy
|
||||
func (p PercentageDecisionPolicy) GetVotingPeriod() time.Duration {
|
||||
return p.Windows.VotingPeriod
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
// TestRandomizedGenState tests the normal scenario of applying RandomizedGenState.
|
||||
// Abonormal scenarios are not tested here.
|
||||
// Abnormal scenarios are not tested here.
|
||||
func TestRandomizedGenState(t *testing.T) {
|
||||
encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{})
|
||||
|
||||
|
||||
@ -231,7 +231,7 @@ func TestSubspace(t *testing.T) {
|
||||
require.Equal(t, kv.param, indirect(kv.ptr), "stored param not equal, tc #%d", i)
|
||||
|
||||
require.Panics(t, func() { space.Get(ctx, []byte("invalid"), kv.ptr) }, "invalid space.Get not panics when no value exists, tc #%d", i)
|
||||
require.Equal(t, kv.param, indirect(kv.ptr), "invalid space.Get unmarshalls when no value existt, tc #%d", i)
|
||||
require.Equal(t, kv.param, indirect(kv.ptr), "invalid space.Get unmarshalls when no value exist, tc #%d", i)
|
||||
|
||||
require.Panics(t, func() { space.Get(ctx, []byte(kv.key), nil) }, "invalid space.Get not panics when the pointer is nil, tc #%d", i)
|
||||
require.Panics(t, func() { space.Get(ctx, []byte(kv.key), new(invalid)) }, "invalid space.Get not panics when the pointer is different type, tc #%d", i)
|
||||
|
||||
@ -163,7 +163,7 @@ func (s Subspace) Modified(ctx sdk.Context, key []byte) bool {
|
||||
return tstore.Has(key)
|
||||
}
|
||||
|
||||
// checkType verifies that the provided key and value are comptable and registered.
|
||||
// checkType verifies that the provided key and value are compatible and registered.
|
||||
func (s Subspace) checkType(key []byte, value any) {
|
||||
attr, ok := s.table.m[string(key)]
|
||||
if !ok {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user