mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-07 16:34:06 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user