mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 04:46:20 +00:00
f7df56bb75
* Update Token entities. * Complete handlePoolCreated in events. Co-authored-by: nabarun <nabarun@deepstacksoft.com>
35 lines
425 B
Markdown
35 lines
425 B
Markdown
# Uniswap Watcher
|
|
|
|
Run the server:
|
|
|
|
```bash
|
|
$ yarn server
|
|
```
|
|
|
|
Start watching the factory contract:
|
|
|
|
Example:
|
|
|
|
```bash
|
|
$ 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.
|
|
|
|
```bash
|
|
# Lint fix.
|
|
$ yarn lint --fix
|
|
```
|