Question about parallels to real life history

I know that the books is incorporating aspects of real history so are the first two poppy wars based on the opium wars?