Add a CLI in eden-watcher to fill state for a given range (#176)

* Add a CLI to fill state for a given range

* Refactor code

* Add a CLI to reset IPLD state

* Replace ORDER BY clause in the query to get latest IPLD block

* Optimize delete query in CLI to reset IPLD state

* Add an option to decouple subgraph state creation from mapping code

* Use a raw SQL query to delete IPLD blocks in a block range

* Accomodate changes in codegen
This commit is contained in:
prathamesh0
2022-09-09 16:23:41 +05:30
committed by GitHub
parent 4e5ec36f07
commit e30af92901
29 changed files with 569 additions and 99 deletions
+1 -3
View File
@@ -3,11 +3,9 @@
//
import yargs from 'yargs';
import { ethers, providers } from 'ethers';
import { providers } from 'ethers';
import debug from 'debug';
import { readAbi } from './common';
const log = debug('vulcanize:test');
const main = async (): Promise<void> => {