The code below shows an example of creating a pool with a tick map data provider and simulating a swap with it.