Getting a pool instance with the data fetched
Usually before work begins, the preparation includes the following steps:
Using mainnet data to initialize a core pool
Replaying events up to the specified block
SimulatorClient
(clientInstance.initCorePoolFromMainnet
and clientInstance.recoverFromMainnetEventDBFile
) is designed to do that. See Fetching all the data of a certain pool from Ethereum.
If you have tried MainnetDataDownloader
to download or update event logs(See Uniswap-v3-Events-Downloader), then you are supposed to get the pool instance in this way:
PreviousFetching all the data of a certain pool from EthereumNextLoading and streaming events into a pool
Last updated