Refactor import-state CLI to cli package (#250)

* Remove unnecessary upstream config arg to event watcher

* Initialize event watcher in CLI package

* Refactor import-state CLI to cli package
This commit is contained in:
prathamesh0
2022-11-22 16:41:15 +05:30
committed by GitHub
parent 6622d0874e
commit 6737ec756c
37 changed files with 369 additions and 513 deletions
+14 -1
View File
@@ -13,7 +13,8 @@ import {
StateSyncStatusInterface,
StateInterface,
getResultEvent,
ResultEvent
ResultEvent,
StateKind
} from '@cerc-io/util';
import { EthClient } from '@cerc-io/ipld-eth-client';
import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@cerc-io/solidity-mapper';
@@ -188,6 +189,10 @@ export class Indexer implements IndexerInterface {
return undefined;
}
async watchContract (address: string, kind: string, checkpoint: boolean, startingBlock: number): Promise<void> {
return undefined;
}
async processBlock (blockProgress: BlockProgressInterface): Promise<void> {
return undefined;
}
@@ -208,6 +213,14 @@ export class Indexer implements IndexerInterface {
return undefined;
}
async saveOrUpdateState (state: StateInterface): Promise<StateInterface> {
return {} as StateInterface;
}
async removeStates (blockNumber: number, kind: StateKind): Promise<void> {
// TODO Implement
}
getStateData (state: StateInterface): any {
return undefined;
}