2021-06-17 12:26:38 +00:00
|
|
|
# watcher-ts
|
2021-05-11 11:08:30 +00:00
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
2021-05-13 10:19:15 +00:00
|
|
|
This project uses [yarn workspaces](https://classic.yarnpkg.com/en/docs/workspaces/).
|
|
|
|
|
2021-12-09 05:09:35 +00:00
|
|
|
Install packages (Node.JS v16.13.1):
|
2021-05-11 11:08:30 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn
|
|
|
|
```
|
|
|
|
|
2022-04-28 11:43:32 +00:00
|
|
|
Build packages:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn build
|
|
|
|
```
|
|
|
|
|
2022-04-27 10:07:13 +00:00
|
|
|
## Tests
|
|
|
|
|
|
|
|
* [graph-node](./packages/graph-node/README.md)
|
|
|
|
|
|
|
|
## Services
|
2021-06-17 12:26:38 +00:00
|
|
|
|
2021-07-16 11:05:49 +00:00
|
|
|
The default config files used by the watchers assume the following services are setup and running on localhost:
|
2021-06-04 09:49:30 +00:00
|
|
|
|
2021-07-16 11:05:49 +00:00
|
|
|
* `vulcanize/go-ethereum` on port 8545
|
|
|
|
* `vulcanize/ipld-eth-server` with native GQL API enabled, on port 8082
|
2021-06-04 09:49:30 +00:00
|
|
|
|
2022-04-27 10:07:13 +00:00
|
|
|
### Note
|
2021-08-11 10:57:42 +00:00
|
|
|
|
|
|
|
* In `vulcanize/ipld-eth-server`, add the following statement to `[ethereum]` section in `environments/config.toml`:
|
2021-09-21 11:13:55 +00:00
|
|
|
|
2021-08-11 10:57:42 +00:00
|
|
|
`chainConfig = "./chain.json" # ETH_CHAIN_CONFIG`
|
|
|
|
|
2022-04-28 11:43:32 +00:00
|
|
|
## Watchers
|
|
|
|
|
|
|
|
* [eden-watcher](./packages/eden-watcher/README.md)
|
2022-11-28 13:24:09 +00:00
|
|
|
* [erc20-watcher](./packages/erc20-watcher/README.md)
|
|
|
|
* [erc721-watcher](./packages/erc721-watcher/README.md)
|
|
|
|
* [graph-test-watcher](./packages/graph-test-watcher/README.md)
|
|
|
|
* [mobymask-watcher](./packages/mobymask-watcher/README.md)
|
2023-01-10 15:02:05 +00:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
* To update versions in all packages run the following:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn version:set <VERSION>
|
|
|
|
yarn version:set-codegen <VERSION>
|
|
|
|
```
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn version:set 0.2.20
|
|
|
|
yarn version:set-codegen 0.2.20
|
|
|
|
```
|