package module import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" "cosmossdk.io/client/v2/autocli" bondv1 "git.vdb.to/cerc-io/laconic2d/api/cerc/bond/v1" ) var _ autocli.HasAutoCLIConfig = AppModule{} // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { return &autocliv1.ModuleOptions{ Query: &autocliv1.ServiceCommandDescriptor{ Service: bondv1.Query_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "Bonds", Use: "list", Short: "List bonds", PositionalArgs: []*autocliv1.PositionalArgDescriptor{}, }, }, }, Tx: &autocliv1.ServiceCommandDescriptor{ Service: bondv1.Msg_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "CreateBond", Use: "create [amount]", Short: "Create bond", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "coins"}, }, }, }, }, } }