Add method in watchers to cache contract and fixes for running tests

This commit is contained in:
2021-12-28 16:08:05 +05:30
parent cb2fe2aa45
commit ba890e7d9a
6 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -75,7 +75,7 @@
yarn server
```
GQL console: http://localhost:3008/graphql
GQL console: http://localhost:3012/graphql
* If the watcher is an `active` watcher:
+4
View File
@@ -824,6 +824,10 @@ export class Indexer implements IndexerInterface {
return this._baseIndexer.watchContract(address, kind, checkpoint, startingBlock);
}
cacheContract (contract: Contract): void {
return this._baseIndexer.cacheContract(contract);
}
async saveEventEntity (dbEvent: Event): Promise<Event> {
return this._baseIndexer.saveEventEntity(dbEvent);
}