cosmos-sdk/x/epochs/autocli.go
Hieu Vu 1028e27f79
feat(x/epochs): upstream osmosis epoch module (#19697)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2024-04-04 08:10:25 +00:00

28 lines
732 B
Go

package epochs
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
epochsv1beta1 "cosmossdk.io/api/cosmos/epochs/v1beta1"
)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: epochsv1beta1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "EpochInfos",
Use: "epoch-infos",
Short: "Query running epoch infos",
},
{
RpcMethod: "CurrentEpoch",
Use: "current-epoch",
Short: "Query current epoch by specified identifier",
},
},
},
}
}