Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 781 Bytes
import { BlockchainParser } from "./BlockchainParser";
import { TokensParser } from "./TokensParser";
import { BlockchainState } from "./BlockchainState";
import { PusherScanner } from "../pusher/PusherScanner";
import { setDelay } from "./Utils";
const parser = new BlockchainParser();
const pusher = new PusherScanner();
const tokensParser = new TokensParser();
const blockchainState = new BlockchainState();
export class ParseStarter {
start(): void {
blockchainState.getState().then(() => {
this.startParsers()
}).catch(() => {
setDelay(5000).then(() => {
this.start()
})
})
}
startParsers(): void {
parser.start();
pusher.start();
tokensParser.start();
}
}
You can’t perform that action at this time.