steer-protocol-watcher-ts/src/cli/reset-cmds/state.ts
Nabarun Gogoi 5b954a9dcd
Generate watcher using codegen (#1)
* Generate watcher

* Update config toml for filecoin subgraph watcher

* Update readme with subgraph link
2024-10-14 12:34:23 +05:30

25 lines
478 B
TypeScript

//
// Copyright 2022 Vulcanize, Inc.
//
import { ResetStateCmd } from '@cerc-io/cli';
import { Database } from '../../database';
export const command = 'state';
export const desc = 'Reset State to a given block number';
export const builder = {
blockNumber: {
type: 'number'
}
};
export const handler = async (argv: any): Promise<void> => {
const resetStateCmd = new ResetStateCmd();
await resetStateCmd.init(argv, Database);
await resetStateCmd.exec();
};