What all these frontier enclaves had in common were rules under which Chinese merchants could deal with foreigners under conditions that were not subject to Chinese government restrictions.