Skip to content

Commit c3ae21b

Browse files
authored
Refactor processor in indexer (#922)
* use mappings instead of if checking * split in separate files * use get did
1 parent 0f6f222 commit c3ae21b

16 files changed

Lines changed: 1967 additions & 1968 deletions

src/components/Indexer/crawlerThread.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import {
33
getCrawlingInterval,
44
getDeployedContractBlock,
55
getNetworkHeight,
6-
processBlocks,
7-
processChunkLogs,
86
retrieveChunkEvents
97
} from './utils.js'
108
import { Blockchain } from '../../utils/blockchain.js'
@@ -16,6 +14,7 @@ import { INDEXER_LOGGER } from '../../utils/logging/common.js'
1614
import { getDatabase } from '../../utils/database.js'
1715
import { JsonRpcApiProvider, Log, Signer } from 'ethers'
1816
import { DEVELOPMENT_CHAIN_ID } from '../../utils/address.js'
17+
import { processBlocks, processChunkLogs } from './processor.js'
1918

2019
export interface ReindexTask {
2120
txId: string

0 commit comments

Comments
 (0)