watcher-ts/packages/uni-watcher
Ashwin Phatak a4f5d43bc5
Extra info for handling events (tx, block) (#136)
* Extra info in events for downstream processing.

* Changes in uni-info-watcher after change in uni-watcher event schema.

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
2021-07-13 17:32:57 +05:30
..
environments Save watched contracts in db. (#122) 2021-07-06 15:58:03 +05:30
src Extra info for handling events (tx, block) (#136) 2021-07-13 17:32:57 +05:30
.eslintignore Uniswap watcher package with event schema (#113) 2021-07-01 16:42:37 +05:30
.eslintrc.json Uniswap watcher package with event schema (#113) 2021-07-01 16:42:37 +05:30
.gitignore Uniswap watcher package with event schema (#113) 2021-07-01 16:42:37 +05:30
index.ts Factory PoolCreated event handler (#120) 2021-07-06 16:55:11 +05:30
package.json Handle pool initialize event (#127) 2021-07-09 12:38:25 +05:30
README.md Handle pool created event (#124) 2021-07-07 11:10:10 +05:30
tsconfig.json Uniswap watcher package with event schema (#113) 2021-07-01 16:42:37 +05:30

Uniswap Watcher

Run the server:

$ yarn server

Start watching the factory contract:

Example:

$ yarn watch:contract --address 0xfE0034a874c2707c23F91D7409E9036F5e08ac34 --kind factory --startingBlock 100

Scripts

  • yarn server

    Start the GraphQL server.

  • yarn watch:contract

    Add contract to watch.

  • yarn lint

    Lint files.

    # Lint fix.
    $ yarn lint --fix