* Create watcher in eth_call mode for Conditional Star Release contract * Add methods for unhandled types in conditional-star-release watcher * Update readme about unhandled queries * Remove already supported queries from readme --------- Co-authored-by: Dhruv Srivastava <dhruvdhs.ds@gmail.com>
29 lines
548 B
TypeScript
29 lines
548 B
TypeScript
//
|
|
// Copyright 2022 Vulcanize, Inc.
|
|
//
|
|
|
|
import 'reflect-metadata';
|
|
import debug from 'debug';
|
|
|
|
import { IndexBlockCmd } from '@cerc-io/cli';
|
|
|
|
import { Database } from '../database';
|
|
import { Indexer } from '../indexer';
|
|
|
|
const log = debug('vulcanize:index-block');
|
|
|
|
const main = async (): Promise<void> => {
|
|
const indexBlockCmd = new IndexBlockCmd();
|
|
await indexBlockCmd.init(Database);
|
|
|
|
await indexBlockCmd.initIndexer(Indexer);
|
|
|
|
await indexBlockCmd.exec();
|
|
};
|
|
|
|
main().catch(err => {
|
|
log(err);
|
|
}).finally(() => {
|
|
process.exit(0);
|
|
});
|