azimuth-watcher-ts/packages/delegated-sending-watcher/src/fill.ts
Nabarun Gogoi e4cfdd62f1
Add watcher in eth_call mode for DelegatedSending contract (#10)
* Create watcher in eth_call mode for Delegated Sending contract

* Update readme about unhandled queries

* Add queries giving error to unsupported list

---------

Co-authored-by: Dhruv Srivastava <dhruvdhs.ds@gmail.com>
2023-04-13 09:48:48 +05:30

34 lines
614 B
TypeScript

//
// Copyright 2021 Vulcanize, Inc.
//
import 'reflect-metadata';
import debug from 'debug';
import { FillCmd } from '@cerc-io/cli';
import { Database } from './database';
import { Indexer } from './indexer';
const log = debug('vulcanize:fill');
export const main = async (): Promise<any> => {
const fillCmd = new FillCmd();
await fillCmd.init(Database);
await fillCmd.initIndexer(Indexer);
await fillCmd.exec();
};
main().catch(err => {
log(err);
}).finally(() => {
process.exit();
});
process.on('SIGINT', () => {
log(`Exiting process ${process.pid} with code 0`);
process.exit(0);
});