 The eastern Javanese kingdoms of Kediri, Singhasari and Majapahit were mainly dependent on rice agriculture, yet also pursued trade within the Indonesian archipelago, and with China and India.Majapahit was established by Wijaya and by the end of the reign of Hayam Wuruk (r. 1350–89) it claimed sovereignty over the entire Indonesian archipelago, although control was likely limited to Java, Bali and Madura.Hayam Wuruk's prime minister, Gajah Mada, led many of the kingdom's territorial conquests.