Triṣaṣṭiśalākāpuruṣacarita (The Deeds of the Sixty-Three Eminent Men) has a last section on Mahāvīra which includes a kind of Jain utopia, in which the king will usually avoid prostitutes, and the queen will be chaste.
His Yogaśastra (Treatise on Yoga) takes yoga in a very broad sense and becomes a compendium on appropriate Jain behaviour.
"Hemacandra." The Concise Oxford Dictionary of World Religions. . Encyclopedia.com. (December 10, 2018). https://www.encyclopedia.com/religion/dictionaries-thesauruses-pictures-and-press-releases/hemacandra
"Hemacandra." The Concise Oxford Dictionary of World Religions. . Retrieved December 10, 2018 from Encyclopedia.com: https://www.encyclopedia.com/religion/dictionaries-thesauruses-pictures-and-press-releases/hemacandra