Refactor export-state and verify checkpoint CLIs to cli package (#252)

* Refactor export-state CLI to cli package

* Refactor verify checkpoint CLI to cli package

* Update mock indexer object
This commit is contained in:
prathamesh0
2022-11-22 18:27:49 +05:30
committed by GitHub
parent ace52d9da3
commit 122a64c2f9
13 changed files with 333 additions and 590 deletions
+12
View File
@@ -209,10 +209,22 @@ export class Indexer implements IndexerInterface {
return undefined;
}
async getLatestState (contractAddress: string, kind: StateKind | null, blockNumber?: number): Promise<StateInterface | undefined> {
return undefined;
}
async getStateByCID (cid: string): Promise<StateInterface | undefined> {
return undefined;
}
async createCheckpoint (contractAddress: string, blockHash: string): Promise<string | undefined> {
return undefined;
}
async getLatestStateIndexedBlock (): Promise<BlockProgressInterface> {
return {} as BlockProgressInterface;
}
async saveOrUpdateState (state: StateInterface): Promise<StateInterface> {
return {} as StateInterface;
}