diff --git a/x/authz/client/cli/query.go b/x/authz/client/cli/query.go index a197f89b1..7cd2ec1ad 100644 --- a/x/authz/client/cli/query.go +++ b/x/authz/client/cli/query.go @@ -95,6 +95,7 @@ $ %s query %s grants cosmos1skjw.. cosmos1skjwj.. %s return cmd } +// GetQueryGranterGrants returns cmd to query for all grants for a granter. func GetQueryGranterGrants() *cobra.Command { cmd := &cobra.Command{ Use: "granter-grants [granter-addr]", @@ -143,6 +144,7 @@ $ %s q %s granter-grants cosmos1skj.. return cmd } +// GetQueryGranteeGrants returns cmd to query for all grants for a grantee. func GetQueryGranteeGrants() *cobra.Command { cmd := &cobra.Command{ Use: "grantee-grants [grantee-addr]", diff --git a/x/authz/client/cli/tx.go b/x/authz/client/cli/tx.go index f094faea4..d03e3d228 100644 --- a/x/authz/client/cli/tx.go +++ b/x/authz/client/cli/tx.go @@ -51,6 +51,7 @@ func GetTxCmd() *cobra.Command { return AuthorizationTxCmd } +// NewCmdGrantAuthorization returns a CLI command handler for creating a MsgGrant transaction. func NewCmdGrantAuthorization() *cobra.Command { cmd := &cobra.Command{ Use: "grant --from ", @@ -199,6 +200,7 @@ func getExpireTime(cmd *cobra.Command) (*time.Time, error) { return &e, nil } +// NewCmdRevokeAuthorization returns a CLI command handler for creating a MsgRevoke transaction. func NewCmdRevokeAuthorization() *cobra.Command { cmd := &cobra.Command{ Use: "revoke [grantee] [msg-type-url] --from=[granter]", @@ -232,6 +234,7 @@ Example: return cmd } +// NewCmdExecAuthorization returns a CLI command handler for creating a MsgExec transaction. func NewCmdExecAuthorization() *cobra.Command { cmd := &cobra.Command{ Use: "exec [tx-json-file] --from [grantee]", diff --git a/x/distribution/client/cli/tx.go b/x/distribution/client/cli/tx.go index f62e93818..24174d9d0 100644 --- a/x/distribution/client/cli/tx.go +++ b/x/distribution/client/cli/tx.go @@ -74,6 +74,7 @@ func newSplitAndApply( return nil } +// NewWithdrawRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction. func NewWithdrawRewardsCmd() *cobra.Command { bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix() @@ -119,6 +120,7 @@ $ %s tx distribution withdraw-rewards %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj return cmd } +// NewWithdrawAllRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction. func NewWithdrawAllRewardsCmd() *cobra.Command { cmd := &cobra.Command{ Use: "withdraw-all-rewards", @@ -182,6 +184,7 @@ $ %[1]s tx distribution withdraw-all-rewards --from mykey return cmd } +// NewSetWithdrawAddrCmd returns a CLI command handler for creating a MsgSetWithdrawAddress transaction. func NewSetWithdrawAddrCmd() *cobra.Command { bech32PrefixAccAddr := sdk.GetConfig().GetBech32AccountAddrPrefix() @@ -220,6 +223,7 @@ $ %s tx distribution set-withdraw-addr %s1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p return cmd } +// NewFundCommunityPoolCmd returns a CLI command handler for creating a MsgFundCommunityPool transaction. func NewFundCommunityPoolCmd() *cobra.Command { cmd := &cobra.Command{ Use: "fund-community-pool [amount]", diff --git a/x/slashing/client/cli/tx.go b/x/slashing/client/cli/tx.go index 6ef7f56c2..bcb7836e6 100644 --- a/x/slashing/client/cli/tx.go +++ b/x/slashing/client/cli/tx.go @@ -24,6 +24,7 @@ func NewTxCmd() *cobra.Command { return slashingTxCmd } +// NewUnjailTxCmd returns a CLI command handler for creating a MsgUnjail transaction. func NewUnjailTxCmd() *cobra.Command { cmd := &cobra.Command{ Use: "unjail", diff --git a/x/staking/client/cli/tx.go b/x/staking/client/cli/tx.go index 1ffe7d89a..f184d27d6 100644 --- a/x/staking/client/cli/tx.go +++ b/x/staking/client/cli/tx.go @@ -51,6 +51,7 @@ func NewTxCmd() *cobra.Command { return stakingTxCmd } +// NewCreateValidatorCmd returns a CLI command handler for creating a MsgCreateValidator transaction. func NewCreateValidatorCmd() *cobra.Command { cmd := &cobra.Command{ Use: "create-validator", @@ -90,6 +91,7 @@ func NewCreateValidatorCmd() *cobra.Command { return cmd } +// NewEditValidatorCmd returns a CLI command handler for creating a MsgEditValidator transaction. func NewEditValidatorCmd() *cobra.Command { cmd := &cobra.Command{ Use: "edit-validator", @@ -145,6 +147,7 @@ func NewEditValidatorCmd() *cobra.Command { return cmd } +// NewDelegateCmd returns a CLI command handler for creating a MsgDelegate transaction. func NewDelegateCmd() *cobra.Command { bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix() @@ -188,6 +191,7 @@ $ %s tx staking delegate %s1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1000stake --f return cmd } +// NewRedelegateCmd returns a CLI command handler for creating a MsgBeginRedelegate transaction. func NewRedelegateCmd() *cobra.Command { bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix() @@ -236,6 +240,7 @@ $ %s tx staking redelegate %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj %s1l2rsakp3 return cmd } +// NewUnbondCmd returns a CLI command handler for creating a MsgUndelegate transaction. func NewUnbondCmd() *cobra.Command { bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix() @@ -279,6 +284,7 @@ $ %s tx staking unbond %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj 100stake --from return cmd } +// NewCancelUnbondingDelegation returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction. func NewCancelUnbondingDelegation() *cobra.Command { bech32PrefixValAddr := sdk.GetConfig().GetBech32ValidatorAddrPrefix()