Handle subgraph template create when filterLogsByAddresses set to true (#447)

* Handle subgraph template create when filterLogsByAddresses set to true

* Fix historical processing stopping after running for multiple batches

* Add new method in graph-node test dummy indexer
This commit is contained in:
2023-11-03 14:08:55 +05:30
committed by GitHub
parent 7f37dac888
commit 0d7e3ddc8b
9 changed files with 168 additions and 41 deletions
@@ -119,6 +119,14 @@ export class Indexer implements IndexerInterface {
return [];
}
async fetchEventsForContracts (blockHash: string, blockNumber: number, addresses: string[]): Promise<DeepPartial<EventInterface>[]> {
assert(blockHash);
assert(blockNumber);
assert(addresses);
return [];
}
async saveBlockAndFetchEvents (block: BlockProgressInterface): Promise<[BlockProgressInterface, DeepPartial<EventInterface>[]]> {
return [block, []];
}