Skip to content

Commit

Permalink
feat(consensus): wire autocli query (backport #16633) (#16646)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 22, 2023
1 parent e991124 commit 7539520
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions x/consensus/autocli.go
Original file line number Diff line number Diff line change
@@ -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.
}
}

0 comments on commit 7539520

Please sign in to comment.