Skip to content

Commit

Permalink
Use lowercase to refine the command line regarding the assets, delega…
Browse files Browse the repository at this point in the history
…tion, and operator modules
  • Loading branch information
TimmyExogenous committed Feb 6, 2025
1 parent b914ff0 commit f5eabd8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
18 changes: 9 additions & 9 deletions x/assets/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GetQueryCmd() *cobra.Command {
// GetParamsCmd queries the module parameters
func GetParamsCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "Params",
Use: "params",
Short: "Gets assets module params",
Long: "Gets assets module params",
Args: cobra.NoArgs,
Expand Down Expand Up @@ -72,7 +72,7 @@ func GetParamsCmd() *cobra.Command {
// QueClientChainInfoByIndex queries the client chain info by index
func QueClientChainInfoByIndex() *cobra.Command {
cmd := &cobra.Command{
Use: "QueClientChainInfoByIndex <clientChainID>",
Use: "client-chain <clientChainID>",
Short: "Get client chain info by client chain Id",
Long: "Get client chain info by client chain Id",
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -104,7 +104,7 @@ func QueClientChainInfoByIndex() *cobra.Command {
// QueAllClientChainInfo queries all client chain info
func QueAllClientChainInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QueAllClientChainInfo",
Use: "all-client-chains",
Short: "Get all client chain info",
Long: "Get all client chain info",
Args: cobra.ExactArgs(0),
Expand All @@ -131,7 +131,7 @@ func QueAllClientChainInfo() *cobra.Command {
// QueStakingAssetInfo queries staking asset info
func QueStakingAssetInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QueStakingAssetInfo <assetAddr> <clientChainID>",
Use: "staking-asset <assetAddr> <clientChainID>",
Short: "Get staking asset info",
Long: "Get staking asset info",
Args: cobra.ExactArgs(2),
Expand Down Expand Up @@ -166,7 +166,7 @@ func QueStakingAssetInfo() *cobra.Command {
// QueAllStakingAssetsInfo queries all staking asset info
func QueAllStakingAssetsInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QueAllStakingAssetsInfo",
Use: "all-staking-assets",
Short: "Get all staking asset info",
Long: "Get all staking asset info",
Args: cobra.ExactArgs(0),
Expand All @@ -193,7 +193,7 @@ func QueAllStakingAssetsInfo() *cobra.Command {
// QueStakerAssetInfos queries staker asset info
func QueStakerAssetInfos() *cobra.Command {
cmd := &cobra.Command{
Use: "QueStakerAssetInfos <stakerID>",
Use: "staker-assets <stakerID>",
Short: "Get staker asset state",
Long: "Get staker asset state",
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -227,7 +227,7 @@ func QueStakerAssetInfos() *cobra.Command {
// QueStakerSpecifiedAssetAmount queries staker specified asset info
func QueStakerSpecifiedAssetAmount() *cobra.Command {
cmd := &cobra.Command{
Use: "QueStakerSpecifiedAssetAmount <clientChainID> <stakerAddr> <assetAddr>",
Use: "staker-asset-amount <clientChainID> <stakerAddr> <assetAddr>",
Short: "Get staker specified asset state",
Long: "Get staker specified asset state",
Args: cobra.ExactArgs(3),
Expand Down Expand Up @@ -262,7 +262,7 @@ func QueStakerSpecifiedAssetAmount() *cobra.Command {
// QueOperatorAssetInfos queries operator asset info
func QueOperatorAssetInfos() *cobra.Command {
cmd := &cobra.Command{
Use: "QueOperatorAssetInfos <operatorAddr>",
Use: "operator-assets <operatorAddr>",
Short: "Get operator asset state",
Long: "Get operator asset state",
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -295,7 +295,7 @@ func QueOperatorAssetInfos() *cobra.Command {
// QueOperatorSpecifiedAssetAmount queries specified operator asset info
func QueOperatorSpecifiedAssetAmount() *cobra.Command {
cmd := &cobra.Command{
Use: "QueOperatorSpecifiedAssetAmount <operatorAddr> <clientChainID> <assetAddr>",
Use: "operator-asset-amount <operatorAddr> <clientChainID> <assetAddr>",
Short: "Get operator specified asset state",
Long: "Get operator specified asset state",
Args: cobra.ExactArgs(3),
Expand Down
2 changes: 1 addition & 1 deletion x/assets/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewTxCmd() *cobra.Command {
// UpdateParams todo: it should be a gov proposal command in future.
func UpdateParams() *cobra.Command {
cmd := &cobra.Command{
Use: "UpdateParams Gateways",
Use: "update-params Gateways",
Short: "Set Authorized Gateways for assets module as comma separated list of hex addresses",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
16 changes: 8 additions & 8 deletions x/delegation/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func GetQueryCmd() *cobra.Command {
// QuerySingleDelegationInfo queries the single delegation info
func QuerySingleDelegationInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QuerySingleDelegationInfo <clientChainID> <stakerAddr> <assetAddr> <operatorAddr>",
Use: "delegation <clientChainID> <stakerAddr> <assetAddr> <operatorAddr>",
Short: "Get single delegation info",
Long: "Get single delegation info",
Args: cobra.ExactArgs(4),
Expand Down Expand Up @@ -83,7 +83,7 @@ func QuerySingleDelegationInfo() *cobra.Command {
// QueryDelegationInfo queries delegation info
func QueryDelegationInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryDelegationInfo <stakerID> <assetID>",
Use: "delegations <stakerID> <assetID>",
Short: "Get delegation info",
Long: "Get delegation info",
Args: cobra.ExactArgs(2),
Expand Down Expand Up @@ -120,7 +120,7 @@ func QueryDelegationInfo() *cobra.Command {
// QueryUndelegations queries all undelegations for staker and asset
func QueryUndelegations() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryUndelegations <stakerID> <assetID>",
Use: "undelegations <stakerID> <assetID>",
Short: "Get undelegations",
Long: "Get undelegations",
Args: cobra.ExactArgs(2),
Expand Down Expand Up @@ -158,7 +158,7 @@ func QueryUndelegations() *cobra.Command {
// QueryUndelegationsByEpochInfo queries all undelegations waiting to be completed by epoch info.
func QueryUndelegationsByEpochInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryUndelegationsByEpochInfo <epoch_identifier> <epoch_number>",
Use: "undelegations-by-epoch-info <epoch_identifier> <epoch_number>",
Short: "Get undelegations waiting to be completed",
Long: "Get undelegations waiting to be completed",
Args: cobra.ExactArgs(2),
Expand Down Expand Up @@ -195,7 +195,7 @@ func QueryUndelegationsByEpochInfo() *cobra.Command {
// QueryUndelegationHoldCount queries undelegation hold count for a record key.
func QueryUndelegationHoldCount() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryUndelegationHoldCount <stakerID> <assetID> <undelegationID>",
Use: "undelegation-hold-count <stakerID> <assetID> <undelegationID>",
Short: "Get undelegation hold count",
Long: "Get undelegation hold count",
Args: cobra.ExactArgs(3),
Expand Down Expand Up @@ -237,7 +237,7 @@ func QueryUndelegationHoldCount() *cobra.Command {
// QueryAssociatedOperatorByStaker queries the operator owner of the specified staker
func QueryAssociatedOperatorByStaker() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryAssociatedOperatorByStaker <stakerID>",
Use: "associated-operator-by-staker <stakerID>",
Short: "Get the associated operator for the specified staker",
Long: "Get the associated operator for the specified staker",
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -269,7 +269,7 @@ func QueryAssociatedOperatorByStaker() *cobra.Command {

func QueryAssociatedStakersByOperator() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryAssociatedStakersByOperator <operatorAddr>",
Use: "associated-stakers-by-operator <operatorAddr>",
Short: "Get the associated stakers for the specified operator",
Long: "Get the associated stakers for the specified operator",
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -301,7 +301,7 @@ func QueryAssociatedStakersByOperator() *cobra.Command {

func QueryDelegatedStakersByOperator() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryDelegatedStakersByOperator <operatorAddr> <assetID>",
Use: "delegated-stakers-by-operator <operatorAddr> <assetID>",
Short: "Get the delegated stakers for the specified operator and asset",
Long: "Get the delegated stakers for the specified operator and asset",
Args: cobra.ExactArgs(2),
Expand Down
8 changes: 4 additions & 4 deletions x/operator/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func GetAllOperatorConsAddrs() *cobra.Command {
// QueryOperatorUSDValue queries the opted-in USD value for the operator
func QueryOperatorUSDValue() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryOperatorUSDValue <operatorAddr> <avsAddr>",
Use: "operator-usd-value <operatorAddr> <avsAddr>",
Short: "Get the opted-in USD value",
Long: "Get the opted-in USD value for the operator",
Example: "exocored query operator QueryOperatorUSDValue exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57",
Expand All @@ -308,7 +308,7 @@ func QueryOperatorUSDValue() *cobra.Command {
// QueryAVSUSDValue queries the USD value for the avs
func QueryAVSUSDValue() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryAVSUSDValue <avsAddr>",
Use: "avs-usd-value <avsAddr>",
Short: "Get the USD value for the avs",
Long: "Get the USD value for the avs",
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -339,7 +339,7 @@ func QueryAVSUSDValue() *cobra.Command {
// QueryOperatorSlashInfo queries the slash information for the specified operator and AVS
func QueryOperatorSlashInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "QueryOperatorSlashInfo <operatorAddr> <avsAddr>",
Use: "operator-slash-info <operatorAddr> <avsAddr>",
Short: "Get the the slash information for the operator",
Long: "Get the the slash information for the operator",
Example: "exocored query operator QueryOperatorSlashInfo exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57",
Expand Down Expand Up @@ -437,7 +437,7 @@ func QueryAllAVSsByOperator() *cobra.Command {
// GetOptInfo queries opt info
func GetOptInfo() *cobra.Command {
cmd := &cobra.Command{
Use: "GetOptInfo <operatorAddr> <avsAddr>",
Use: "opt-info <operatorAddr> <avsAddr>",
Short: "Get opt info",
Long: "Get opt info of specified operator and AVS",
Example: "exocored query operator GetOptInfo exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57",
Expand Down

0 comments on commit f5eabd8

Please sign in to comment.