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. (February 19, 2019). https://www.encyclopedia.com/religion/dictionaries-thesauruses-pictures-and-press-releases/hemacandra
"Hemacandra." The Concise Oxford Dictionary of World Religions. . Retrieved February 19, 2019 from Encyclopedia.com: https://www.encyclopedia.com/religion/dictionaries-thesauruses-pictures-and-press-releases/hemacandra