watcher-ts/packages/uni-watcher
Ashwin Phatak 7f5229bf2f
Watch pool burn and swap events (#128)
* Remove test scripts, moved to vulcanize/uniswap-v3-core#watcher-ts.

* Move uniswap analysis docs.

* Watch pool burn and swap events.
2021-07-09 12:30:50 +05:30
..
environments Save watched contracts in db. (#122) 2021-07-06 15:58:03 +05:30
src Watch pool burn and swap events (#128) 2021-07-09 12:30:50 +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 created event (#124) 2021-07-07 11:10:10 +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