Skip to content

Commit 4a15864

Browse files
committed
tACK
1 parent 924c520 commit 4a15864

File tree

8 files changed

+49
-25
lines changed

8 files changed

+49
-25
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
7272
* (server) [#24072](https://github.com/cosmos/cosmos-sdk/pull/24072) Return BlockHeader by shallow copy in server Context.
7373
* (x/bank) [#24053](https://github.com/cosmos/cosmos-sdk/pull/24053) Resolve a foot-gun by swapping send restrictions check in `InputOutputCoins` before coin deduction.
7474
* (codec/types) [#24336](https://github.com/cosmos/cosmos-sdk/pull/24336) Most types definitions were moved to `github.com/cosmos/gogoproto/types/any` with aliases to these left in `codec/types` so that there should be no breakage to existing code. This allows protobuf generated code to optionally reference the SDK's custom `Any` type without a direct dependency on the SDK. This can be done by changing the `protoc` `M` parameter for `any.proto` to `Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any`.
75+
* [#24387](https://github.com/cosmos/cosmos-sdk/pull/24387) Add commands for all proposals thanks to AutoCLI. Additionally, improve UX commands thanks to AutoCLI:
76+
* f.e `<appd> tx bank send alice $(simd keys show bob -a) 100stake` can be directly `<appd> tx bank send alice bob 100stake` now. This is true for all fields that take an address.
7577

7678
### Bug Fixes
7779

x/auth/vesting/client/cli/tx.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ func GetTxCmd(ac address.Codec) *cobra.Command {
3434
}
3535

3636
txCmd.AddCommand(
37-
NewMsgCreateVestingAccountCmd(ac),
38-
NewMsgCreatePermanentLockedAccountCmd(ac),
3937
NewMsgCreatePeriodicVestingAccountCmd(ac),
4038
)
4139

@@ -44,6 +42,8 @@ func GetTxCmd(ac address.Codec) *cobra.Command {
4442

4543
// NewMsgCreateVestingAccountCmd returns a CLI command handler for creating a
4644
// MsgCreateVestingAccount transaction.
45+
// Deprecated: This command is deprecated and will be removed in a future release.
46+
// The module is using its AutoCLI command instead.
4747
func NewMsgCreateVestingAccountCmd(ac address.Codec) *cobra.Command {
4848
cmd := &cobra.Command{
4949
Use: "create-vesting-account [to_address] [amount] [end_time]",
@@ -91,8 +91,9 @@ timestamp.`,
9191
return cmd
9292
}
9393

94-
// NewMsgCreatePermanentLockedAccountCmd returns a CLI command handler for creating a
95-
// MsgCreatePermanentLockedAccount transaction.
94+
// NewMsgCreatePermanentLockedAccountCmd returns a CLI command handler for creating a MsgCreatePermanentLockedAccount transaction.
95+
// Deprecated: This command is deprecated and will be removed in a future release.
96+
// The module is using its AutoCLI command instead.
9697
func NewMsgCreatePermanentLockedAccountCmd(ac address.Codec) *cobra.Command {
9798
cmd := &cobra.Command{
9899
Use: "create-permanent-locked-account [to_address] [amount]",

x/authz/client/cli/tx.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func GetTxCmd(ac address.Codec) *cobra.Command {
4747

4848
AuthorizationTxCmd.AddCommand(
4949
NewCmdGrantAuthorization(ac),
50-
NewCmdRevokeAuthorization(ac),
5150
NewCmdExecAuthorization(),
5251
)
5352

@@ -229,6 +228,8 @@ func getExpireTime(cmd *cobra.Command) (*time.Time, error) {
229228
}
230229

231230
// NewCmdRevokeAuthorization returns a CLI command handler for creating a MsgRevoke transaction.
231+
// Deprecated: This command is deprecated and will be removed in a future release.
232+
// The module is using its AutoCLI command instead.
232233
func NewCmdRevokeAuthorization(ac address.Codec) *cobra.Command {
233234
cmd := &cobra.Command{
234235
Use: "revoke [grantee] [msg-type-url] --from=[granter]",

x/distribution/client/cli/tx.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ func NewTxCmd(valAc, ac address.Codec) *cobra.Command {
3838
}
3939

4040
distTxCmd.AddCommand(
41-
NewWithdrawRewardsCmd(valAc, ac),
4241
NewWithdrawAllRewardsCmd(valAc, ac),
43-
NewSetWithdrawAddrCmd(ac),
44-
NewFundCommunityPoolCmd(ac),
45-
NewDepositValidatorRewardsPoolCmd(valAc, ac),
4642
)
4743

4844
return distTxCmd
@@ -72,6 +68,8 @@ func newSplitAndApply(
7268
}
7369

7470
// NewWithdrawRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction.
71+
// Deprecated: This command is deprecated and will be removed in a future release.
72+
// The module is using its AutoCLI command instead.
7573
func NewWithdrawRewardsCmd(valCodec, ac address.Codec) *cobra.Command {
7674
bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix()
7775

@@ -185,6 +183,8 @@ $ %[1]s tx distribution withdraw-all-rewards --from mykey
185183
}
186184

187185
// NewSetWithdrawAddrCmd returns a CLI command handler for creating a MsgSetWithdrawAddress transaction.
186+
// Deprecated: This command is deprecated and will be removed in a future release.
187+
// The module is using its AutoCLI command instead.
188188
func NewSetWithdrawAddrCmd(ac address.Codec) *cobra.Command {
189189
bech32PrefixAccAddr := sdk.GetConfig().GetBech32AccountAddrPrefix()
190190

@@ -224,6 +224,8 @@ $ %s tx distribution set-withdraw-addr %s1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
224224
}
225225

226226
// NewFundCommunityPoolCmd returns a CLI command handler for creating a MsgFundCommunityPool transaction.
227+
// Deprecated: This command is deprecated and will be removed in a future release.
228+
// The module is using its AutoCLI command instead.
227229
func NewFundCommunityPoolCmd(ac address.Codec) *cobra.Command {
228230
cmd := &cobra.Command{
229231
Use: "fund-community-pool [amount]",
@@ -265,6 +267,8 @@ $ %s tx distribution fund-community-pool 100uatom --from mykey
265267

266268
// NewDepositValidatorRewardsPoolCmd returns a CLI command handler for creating
267269
// a MsgDepositValidatorRewardsPool transaction.
270+
// Deprecated: This command is deprecated and will be removed in a future release.
271+
// The module is using its AutoCLI command instead.
268272
func NewDepositValidatorRewardsPoolCmd(valCodec, ac address.Codec) *cobra.Command {
269273
cmd := &cobra.Command{
270274
Use: "fund-validator-rewards-pool [val_addr] [amount]",

x/gov/client/cli/tx.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,9 @@ func NewTxCmd(legacyPropCmds []*cobra.Command) *cobra.Command {
6868
}
6969

7070
govTxCmd.AddCommand(
71-
NewCmdDeposit(),
72-
NewCmdVote(),
7371
NewCmdWeightedVote(),
7472
NewCmdSubmitProposal(),
7573
NewCmdDraftProposal(),
76-
NewCmdCancelProposal(),
7774

7875
// Deprecated
7976
cmdSubmitLegacyProp,
@@ -155,6 +152,8 @@ metadata example:
155152
}
156153

157154
// NewCmdCancelProposal implements submitting a cancel proposal transaction command.
155+
// Deprecated: This command is deprecated and will be removed in a future release.
156+
// The module is using its AutoCLI command instead.
158157
func NewCmdCancelProposal() *cobra.Command {
159158
cmd := &cobra.Command{
160159
Use: "cancel-proposal [proposal-id]",
@@ -254,6 +253,8 @@ $ %s tx gov submit-legacy-proposal --title="Test Proposal" --description="My awe
254253
}
255254

256255
// NewCmdDeposit implements depositing tokens for an active proposal.
256+
// Deprecated: This command is deprecated and will be removed in a future release.
257+
// The module is using its AutoCLI command instead.
257258
func NewCmdDeposit() *cobra.Command {
258259
cmd := &cobra.Command{
259260
Use: "deposit [proposal-id] [deposit]",
@@ -302,6 +303,8 @@ $ %s tx gov deposit 1 10stake --from mykey
302303
}
303304

304305
// NewCmdVote implements creating a new vote command.
306+
// Deprecated: This command is deprecated and will be removed in a future release.
307+
// The module is using its AutoCLI command instead.
305308
func NewCmdVote() *cobra.Command {
306309
cmd := &cobra.Command{
307310
Use: "vote [proposal-id] [option]",

x/group/client/cli/tx.go

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,11 @@ func TxCmd(name string, ac address.Codec) *cobra.Command {
3838

3939
txCmd.AddCommand(
4040
MsgCreateGroupCmd(),
41-
MsgUpdateGroupAdminCmd(),
42-
MsgUpdateGroupMetadataCmd(),
4341
MsgUpdateGroupMembersCmd(),
4442
MsgCreateGroupWithPolicyCmd(),
4543
MsgCreateGroupPolicyCmd(),
46-
MsgUpdateGroupPolicyAdminCmd(),
4744
MsgUpdateGroupPolicyDecisionPolicyCmd(ac),
48-
MsgUpdateGroupPolicyMetadataCmd(),
49-
MsgWithdrawProposalCmd(),
5045
MsgSubmitProposalCmd(),
51-
MsgVoteCmd(),
52-
MsgExecCmd(),
53-
MsgLeaveGroupCmd(),
5446
NewCmdDraftProposal(),
5547
)
5648

@@ -196,6 +188,8 @@ Set a member's weight to "0" to delete it.
196188
}
197189

198190
// MsgUpdateGroupAdminCmd creates a CLI command for Msg/UpdateGroupAdmin.
191+
// Deprecated: This command is deprecated and will be removed in a future release.
192+
// The module is using its AutoCLI command instead.
199193
func MsgUpdateGroupAdminCmd() *cobra.Command {
200194
cmd := &cobra.Command{
201195
Use: "update-group-admin [admin] [group-id] [new-admin]",
@@ -240,6 +234,8 @@ func MsgUpdateGroupAdminCmd() *cobra.Command {
240234
}
241235

242236
// MsgUpdateGroupMetadataCmd creates a CLI command for Msg/UpdateGroupMetadata.
237+
// Deprecated: This command is deprecated and will be removed in a future release.
238+
// The module is using its AutoCLI command instead.
243239
func MsgUpdateGroupMetadataCmd() *cobra.Command {
244240
cmd := &cobra.Command{
245241
Use: "update-group-metadata [admin] [group-id] [metadata]",
@@ -457,6 +453,8 @@ Here, we can use percentage decision policy when needed, where 0 < percentage <=
457453
}
458454

459455
// MsgUpdateGroupPolicyAdminCmd creates a CLI command for Msg/UpdateGroupPolicyAdmin.
456+
// Deprecated: This command is deprecated and will be removed in a future release.
457+
// The module is using its AutoCLI command instead.
460458
func MsgUpdateGroupPolicyAdminCmd() *cobra.Command {
461459
cmd := &cobra.Command{
462460
Use: "update-group-policy-admin [admin] [group-policy-account] [new-admin]",
@@ -537,6 +535,8 @@ func MsgUpdateGroupPolicyDecisionPolicyCmd(ac address.Codec) *cobra.Command {
537535
}
538536

539537
// MsgUpdateGroupPolicyMetadataCmd creates a CLI command for Msg/UpdateGroupPolicyMetadata.
538+
// Deprecated: This command is deprecated and will be removed in a future release.
539+
// The module is using its AutoCLI command instead.
540540
func MsgUpdateGroupPolicyMetadataCmd() *cobra.Command {
541541
cmd := &cobra.Command{
542542
Use: "update-group-policy-metadata [admin] [group-policy-account] [new-metadata]",
@@ -660,6 +660,8 @@ metadata example:
660660
}
661661

662662
// MsgWithdrawProposalCmd creates a CLI command for Msg/WithdrawProposal.
663+
// Deprecated: This command is deprecated and will be removed in a future release.
664+
// The module is using its AutoCLI command instead.
663665
func MsgWithdrawProposalCmd() *cobra.Command {
664666
cmd := &cobra.Command{
665667
Use: "withdraw-proposal [proposal-id] [group-policy-admin-or-proposer]",
@@ -706,6 +708,8 @@ Parameters:
706708
}
707709

708710
// MsgVoteCmd creates a CLI command for Msg/Vote.
711+
// Deprecated: This command is deprecated and will be removed in a future release.
712+
// The module is using its AutoCLI command instead.
709713
func MsgVoteCmd() *cobra.Command {
710714
cmd := &cobra.Command{
711715
Use: "vote [proposal-id] [voter] [vote-option] [metadata]",
@@ -766,6 +770,8 @@ Parameters:
766770
}
767771

768772
// MsgExecCmd creates a CLI command for Msg/Exec.
773+
// Deprecated: This command is deprecated and will be removed in a future release.
774+
// The module is using its AutoCLI command instead.
769775
func MsgExecCmd() *cobra.Command {
770776
cmd := &cobra.Command{
771777
Use: "exec [proposal-id]",
@@ -797,6 +803,8 @@ func MsgExecCmd() *cobra.Command {
797803
}
798804

799805
// MsgLeaveGroupCmd creates a CLI command for Msg/LeaveGroup.
806+
// Deprecated: This command is deprecated and will be removed in a future release.
807+
// The module is using its AutoCLI command instead.
800808
func MsgLeaveGroupCmd() *cobra.Command {
801809
cmd := &cobra.Command{
802810
Use: "leave-group [member-address] [group-id]",

x/staking/client/cli/tx.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ func NewTxCmd(valAddrCodec, ac address.Codec) *cobra.Command {
4646
stakingTxCmd.AddCommand(
4747
NewCreateValidatorCmd(valAddrCodec),
4848
NewEditValidatorCmd(valAddrCodec),
49-
NewDelegateCmd(valAddrCodec, ac),
50-
NewRedelegateCmd(valAddrCodec, ac),
51-
NewUnbondCmd(valAddrCodec, ac),
52-
NewCancelUnbondingDelegation(valAddrCodec, ac),
5349
)
5450

5551
return stakingTxCmd
@@ -178,6 +174,8 @@ func NewEditValidatorCmd(ac address.Codec) *cobra.Command {
178174
}
179175

180176
// NewDelegateCmd returns a CLI command handler for creating a MsgDelegate transaction.
177+
// Deprecated: This command is deprecated and will be removed in a future release.
178+
// The module is using its AutoCLI command instead.
181179
func NewDelegateCmd(valAddrCodec, ac address.Codec) *cobra.Command {
182180
cmd := &cobra.Command{
183181
Use: "delegate [validator-addr] [amount]",
@@ -224,6 +222,8 @@ $ %s tx staking delegate cosmosvalopers1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1
224222
}
225223

226224
// NewRedelegateCmd returns a CLI command handler for creating a MsgBeginRedelegate transaction.
225+
// Deprecated: This command is deprecated and will be removed in a future release.
226+
// The module is using its AutoCLI command instead.
227227
func NewRedelegateCmd(valAddrCodec, ac address.Codec) *cobra.Command {
228228
cmd := &cobra.Command{
229229
Use: "redelegate [src-validator-addr] [dst-validator-addr] [amount]",
@@ -275,6 +275,8 @@ $ %s tx staking redelegate cosmosvalopers1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
275275
}
276276

277277
// NewUnbondCmd returns a CLI command handler for creating a MsgUndelegate transaction.
278+
// Deprecated: This command is deprecated and will be removed in a future release.
279+
// The module is using its AutoCLI command instead.
278280
func NewUnbondCmd(valAddrCodec, ac address.Codec) *cobra.Command {
279281
bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix()
280282

@@ -323,6 +325,8 @@ $ %s tx staking unbond %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj 100stake --from
323325
}
324326

325327
// NewCancelUnbondingDelegation returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction.
328+
// Deprecated: This command is deprecated and will be removed in a future release.
329+
// The module is using its AutoCLI command instead.
326330
func NewCancelUnbondingDelegation(valAddrCodec, ac address.Codec) *cobra.Command {
327331
bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix()
328332

x/upgrade/client/cli/tx.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func GetTxCmd(ac addresscodec.Codec) *cobra.Command {
3737

3838
cmd.AddCommand(
3939
NewCmdSubmitUpgradeProposal(ac),
40-
NewCmdSubmitCancelUpgradeProposal(ac),
4140
)
4241

4342
return cmd
@@ -133,6 +132,8 @@ func NewCmdSubmitUpgradeProposal(ac addresscodec.Codec) *cobra.Command {
133132
}
134133

135134
// NewCmdSubmitCancelUpgradeProposal implements a command handler for submitting a software upgrade cancel proposal transaction.
135+
// Deprecated: This command is deprecated and will be removed in a future release.
136+
// The module is using its AutoCLI command instead.
136137
func NewCmdSubmitCancelUpgradeProposal(ac addresscodec.Codec) *cobra.Command {
137138
cmd := &cobra.Command{
138139
Use: "cancel-software-upgrade [flags]",

0 commit comments

Comments
 (0)