feat(consensus): wire autocli query (#16633)
This commit is contained in:
parent
854978f382
commit
e80407abe8
23
x/consensus/autocli.go
Normal file
23
x/consensus/autocli.go
Normal file
@ -0,0 +1,23 @@
|
||||
package consensus
|
||||
|
||||
import (
|
||||
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
|
||||
consensusv1 "cosmossdk.io/api/cosmos/consensus/v1"
|
||||
)
|
||||
|
||||
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
|
||||
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
||||
return &autocliv1.ModuleOptions{
|
||||
Query: &autocliv1.ServiceCommandDescriptor{
|
||||
Service: consensusv1.Query_ServiceDesc.ServiceName,
|
||||
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
|
||||
{
|
||||
RpcMethod: "Params",
|
||||
Use: "params",
|
||||
Short: "Query the current consensus parameters",
|
||||
},
|
||||
},
|
||||
},
|
||||
// Tx is purposely left empty, as the only tx is MsgUpdateParams which is gov gated.
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user