watcher-ts/packages/uni-info-watcher/src
prathamesh0 51b200709b Generate IPLD blocks table and related GQL API (#260)
* Add ipld-blocks entity generation

* Populate ipld-blocks table

* Rename ipld-block entity and update after each event

* Move ipld-hook to hooks.ts

* Change IPLD block structure

* Add cid field in blocks

* Fetch prev. IPLDBlock for a contract

* GQL API to query IPLDBlock by CID

* Save cid in blocks in existing watchers

* Update codegen docs

* GQL API for getting last derived state (#3)

* GQL API for getting last derived state

* Rename query to getState

* Change query names to getState and getStateByCid

* Save BigInt as string

* Move function to prepare IPLDBlock to indexer

* Refactor IPLDBlock hook

* Add genesis hook

* Call post-block hook after a block is marked as complete

* Add IPLDBlock checkpointing

* Use queryRunner instead of a new repo for queries

* Add a query to get block in ipld-eth-client

* Get latest checkpoints for all contracts for checkpointing.

* Call post-block hook in a queue

* Pass server config to Indexer in watch-contract cli

Co-authored-by: nikugogoi <nabarun@deepstacksoft.com>
2021-12-28 16:08:04 +05:30
..
cli Fix job-runner stop and restart in uni-watcher (#319) 2021-12-17 11:57:09 +05:30
entity Generate IPLD blocks table and related GQL API (#260) 2021-12-28 16:08:04 +05:30
mock Enable source maps for transpiled files (#242) 2021-09-07 16:01:15 +05:30
types/common Add APGL license and copyright notices (#212) 2021-08-12 15:28:13 +05:30
utils Store contract addresses in uni-info-watcher entities in lowercase (#322) 2021-12-17 17:55:41 +05:30
client.ts Refactoring pruning and reorg handling code (#227) 2021-08-25 12:47:53 +05:30
database.md Implement heirarchical query for getting previous entity (#216) 2021-08-16 17:55:23 +05:30
database.ts Fix job-runner stop and restart in uni-watcher (#319) 2021-12-17 11:57:09 +05:30
events.ts Generate IPLD blocks table and related GQL API (#260) 2021-12-28 16:08:04 +05:30
fill.ts Performance improvements for fill CLI (#314) 2021-12-16 17:16:48 +05:30
get-prev-entity.test.ts Update uni-info-watcher with changes in uniswap subgraph mapping (#298) 2021-12-03 16:24:13 +05:30
indexer.ts Generate IPLD blocks table and related GQL API (#260) 2021-12-28 16:08:04 +05:30
job-runner.ts Generate IPLD blocks table and related GQL API (#260) 2021-12-28 16:08:04 +05:30
queries.ts Refactoring, extract uni-info-watcher GQL client (#226) 2021-08-24 11:55:29 +05:30
resolvers.ts Handle missing blocks in postgraphile by making RPC call (#296) 2021-12-03 16:23:11 +05:30
schema.ts Bug fixes from smoke testing (#238) 2021-08-31 18:05:29 +05:30
server.ts Generate IPLD blocks table and related GQL API (#260) 2021-12-28 16:08:04 +05:30
smoke.test.ts Store contract addresses in uni-info-watcher entities in lowercase (#322) 2021-12-17 17:55:41 +05:30