During the Revolution, most states wrote their own what?

During the Revolution, most states wrote their own what?