mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-12 18:47:30 +00:00
Update codegen with changes implemented in mobymask watcher (#148)
* Update codegen with index-block CLI and remove graph-node * Add filter logs by contract flag * Skip generating GQL API for immutable variables * Add config for maxEventsBlockRange * Add new flags in existing watchers
This commit is contained in:
@@ -82,7 +82,11 @@ export class Indexer {
|
||||
async fetchEvents (blockHash: string): Promise<Array<ResultEvent>> {
|
||||
assert(this._config.watch);
|
||||
const contract = this._config.watch.lighthouse;
|
||||
const { logs, block } = await this._ethClient.getLogs({ blockHash, contract });
|
||||
|
||||
const [{ logs }, { block }] = await Promise.all([
|
||||
this._ethClient.getLogs({ blockHash, contract }),
|
||||
this._ethClient.getBlockByHash(blockHash)
|
||||
]);
|
||||
|
||||
const {
|
||||
allEthHeaderCids: {
|
||||
|
||||
Reference in New Issue
Block a user