Accommodate CLI refactoring changes to codegen (#261)

* Use watch-contract CLI from cli package in codegen

* Use reset CLIs from cli package in codegen

* Use create checkpoint CLI from cli package in codegen

* Use inspect-cid CLI from cli package in codegen

* Use import state CLI from cli package in codegen

* Use export-state and verify-checkpoint CLI from cli package in codegen

* Use server CLI from cli package in codegen

* Use job-runner CLI from cli package in codegen

* Use index-block CLI from cli package in codegen

* Use fill CLI from cli package in codegen

* Minor codegen fixes

* Update watcher instructions to run job-runner before server
This commit is contained in:
prathamesh0
2022-11-25 11:31:20 +05:30
committed by GitHub
parent 590482ee53
commit 63a2c5804e
49 changed files with 249 additions and 1259 deletions
@@ -21,8 +21,8 @@ export const builder = {
};
export const handler = async (argv: any): Promise<void> => {
const createCheckpointCmd = new VerifyCheckpointCmd();
await createCheckpointCmd.init(argv, Database, Indexer);
const verifyCheckpointCmd = new VerifyCheckpointCmd();
await verifyCheckpointCmd.init(argv, Database, Indexer);
await createCheckpointCmd.exec();
await verifyCheckpointCmd.exec();
};
@@ -6,7 +6,6 @@ import fs from 'fs';
import path from 'path';
import 'reflect-metadata';
import debug from 'debug';
import 'graphql-import-node';
import { ServerCmd } from '@cerc-io/cli';