When did Buenos Aires enact a centralist constitution ?
The Argentine Confederation thus functioned , albeit amid ongoing conflicts , until the 1852 Battle of Caseros , when Rosas was deposed and exiled .