The Stato da Terra Firma (lit. the Mainland State) was all the Venetian mainland dominions, established from the late 1300s.
The Republic of Venice never had an actual formal constitution, much less a written constitution. Neither did it have any kind of foundational event.