Alchemy was returning errors when fetching VoteChange events due to their query limit which requires a block range of 2k or log limit of 10k. This PR adds a new method on the ContractDataSource called getEvents which will recursively split the block range in half if the request fails until all events in the range are fetched.
Alchemy was returning errors when fetching
VoteChange
events due to their query limit which requires a block range of 2k or log limit of 10k. This PR adds a new method on theContractDataSource
calledgetEvents
which will recursively split the block range in half if the request fails until all events in the range are fetched.