Refactor job-runner CLI to cli package (#255)

* Fix eden-watcher server initialization

* Add an indexer method to watch subgraph contracts

* Refactor job-runner CLI to cli package

* Move watcher reset commands to refactored code
This commit is contained in:
prathamesh0
2022-11-23 18:20:16 +05:30
committed by GitHub
parent cc28474537
commit 4bfb007a7e
17 changed files with 222 additions and 505 deletions
+1
View File
@@ -109,6 +109,7 @@ export interface IndexerInterface {
parseEventNameAndArgs?: (kind: string, logObj: any) => any
isWatchedContract: (address: string) => ContractInterface | undefined;
getContractsByKind?: (kind: string) => ContractInterface[]
addContracts?: () => Promise<void>
cacheContract: (contract: ContractInterface) => void;
watchContract: (address: string, kind: string, checkpoint: boolean, startingBlock: number) => Promise<void>
getEntityTypesMap?: () => Map<string, { [key: string]: string }>