github.com/cosmos/cosmos-sdk@v0.50.10/x/mint/autocli.go (about)

     1  package mint
     2  
     3  import (
     4  	autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
     5  	mintv1beta1 "cosmossdk.io/api/cosmos/mint/v1beta1"
     6  )
     7  
     8  func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
     9  	return &autocliv1.ModuleOptions{
    10  		Query: &autocliv1.ServiceCommandDescriptor{
    11  			Service: mintv1beta1.Query_ServiceDesc.ServiceName,
    12  			RpcCommandOptions: []*autocliv1.RpcCommandOptions{
    13  				{
    14  					RpcMethod: "Params",
    15  					Use:       "params",
    16  					Short:     "Query the current minting parameters",
    17  				},
    18  				{
    19  					RpcMethod: "Inflation",
    20  					Use:       "inflation",
    21  					Short:     "Query the current minting inflation value",
    22  				},
    23  				{
    24  					RpcMethod: "AnnualProvisions",
    25  					Use:       "annual-provisions",
    26  					Short:     "Query the current minting annual provisions value",
    27  				},
    28  			},
    29  		},
    30  		Tx: &autocliv1.ServiceCommandDescriptor{
    31  			Service: mintv1beta1.Msg_ServiceDesc.ServiceName,
    32  			RpcCommandOptions: []*autocliv1.RpcCommandOptions{
    33  				{
    34  					RpcMethod: "UpdateParams",
    35  					Skip:      true, // skipped because authority gated
    36  				},
    37  			},
    38  		},
    39  	}
    40  }