york factory was one of the hudson bay company 's fur trading posts , and its importance in the region had helped it to grow into a strange city of sorts , with a blacksmith , mercantile , and church , as well as the barns for storing fur , the barracks , and the shanties and makeshift dwellings which had sprung up around the main buildings .