The things that China Agree to do once the Treaty of Nanjing was signed are:
-create a "fair and reasonable" tariff
-allow Britain to trade at five ports
-surrender the territory of Hong Kong
All of these agreement was the requirements that both China and the British Empire decided to agreed on in order to stop the opium wars between the two nations.