Author SHA1 Message Date
IshaVenikar f72b355063 Add config template for sushiswap watcher 2024-06-19 12:50:44 +05:30
IshaVenikar 5e3751fa8d Add compose file and stack instructions for sushiswap 2024-06-19 12:50:34 +05:30
nabarunandIshaVenikar 0ba53a7369 Add stack for sushiswap v2 subgraph watcher (#9)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#9
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-06-19 07:06:02 +00:00
nabarunandIshaVenikar 98c682cdc1 Create stack for sushiswap v3 subgraph watcher (#8)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#8
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-06-19 05:47:59 +00:00
nabarun 60a78b5d6c Add readme step to build watchers (#7)
Part of [Generate watchers for sushiswap subgraphs deployed in graph-node](https://www.notion.so/Generate-watchers-for-sushiswap-subgraphs-deployed-in-graph-node-b3f2e475373d4ab1887d9f8720bd5ae6)

Reviewed-on: cerc-io/sushiswap-watcher-ts#7
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-06-13 12:21:41 +00:00
prathamesh a03267a44c Add codegen configs used to generate watchers (#6)
Part of [Generate watchers for sushiswap subgraphs deployed in graph-node](https://www.notion.so/Generate-watchers-for-sushiswap-subgraphs-deployed-in-graph-node-b3f2e475373d4ab1887d9f8720bd5ae6)

Reviewed-on: cerc-io/sushiswap-watcher-ts#6
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-13 12:16:43 +00:00
17 changed files with 173 additions and 43 deletions
+10
View File
@@ -1 +1,11 @@
# sushiswap-watcher-ts
Watchers for the [sushiswap-subgraphs](https://github.com/cerc-io/sushiswap-subgraphs/tree/watcher-ts) on Filecoin
## Setup
* Run the following command to install required packages:
```bash
yarn && yarn build
```
+1 -5
View File
@@ -7,11 +7,7 @@
## Setup
* Run the following command to install required packages:
```bash
yarn
```
* Follow root [README.md setup](../../README.md#setup)
* Create a postgres12 database for the watcher:
@@ -0,0 +1,29 @@
# Contracts to watch (required).
# Can pass empty array ([]) when using subgraphPath.
contracts: []
# Output folder path (logs output using `stdout` if not provided).
outputFolder: /home/user/cerc-io/sushiswap-watcher-ts/packages/blocks-watcher
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none
# Kind of watcher [lazy | active] (default: active).
kind: active
# Watcher server port (default: 3008).
port: 3008
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
# Config for subgraph
subgraph:
# Path to subgraph repo directory containing package.json
directory: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/blocks
# Package manager that is used in subgraph repo for dependencies
packageManager: pnpm
# Path to subgraph manifest/config file
configFile: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/blocks/subgraph.yaml
@@ -10,8 +10,7 @@
checkpointInterval = 2000
# Enable state creation
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
enableState = false
subgraphPath = "./subgraph-build"
+1 -5
View File
@@ -7,11 +7,7 @@
## Setup
* Run the following command to install required packages:
```bash
yarn
```
* Follow root [README.md setup](../../README.md#setup)
* Create a postgres12 database for the watcher:
@@ -0,0 +1,29 @@
# Contracts to watch (required).
# Can pass empty array ([]) when using subgraphPath.
contracts: []
# Output folder path (logs output using `stdout` if not provided).
outputFolder: /home/user/cerc-io/sushiswap-watcher-ts/packages/route-processor-watcher
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none
# Kind of watcher [lazy | active] (default: active).
kind: active
# Watcher server port (default: 3008).
port: 3008
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
# Config for subgraph
subgraph:
# Path to subgraph repo directory containing package.json
directory: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/route-processor
# Package manager that is used in subgraph repo for dependencies
packageManager: pnpm
# Path to subgraph manifest/config file
configFile: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/route-processor/subgraph.yaml
@@ -10,8 +10,7 @@
checkpointInterval = 2000
# Enable state creation
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
enableState = false
subgraphPath = "./subgraph-build"
+1 -5
View File
@@ -7,11 +7,7 @@
## Setup
* Run the following command to install required packages:
```bash
yarn
```
* Follow root [README.md setup](../../README.md#setup)
* Create a postgres12 database for the watcher:
@@ -0,0 +1,29 @@
# Contracts to watch (required).
# Can pass empty array ([]) when using subgraphPath.
contracts: []
# Output folder path (logs output using `stdout` if not provided).
outputFolder: /home/user/cerc-io/sushiswap-watcher-ts/packages/sushiswap-watcher
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none
# Kind of watcher [lazy | active] (default: active).
kind: active
# Watcher server port (default: 3008).
port: 3008
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
# Config for subgraph
subgraph:
# Path to subgraph repo directory containing package.json
directory: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/sushiswap
# Package manager that is used in subgraph repo for dependencies
packageManager: pnpm
# Path to subgraph manifest/config file
configFile: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/sushiswap/subgraph.yaml
@@ -10,8 +10,7 @@
checkpointInterval = 2000
# Enable state creation
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
enableState = false
subgraphPath = "./subgraph-build"
+1 -5
View File
@@ -7,11 +7,7 @@
## Setup
* Run the following command to install required packages:
```bash
yarn
```
* Follow root [README.md setup](../../README.md#setup)
* Create a postgres12 database for the watcher:
+29
View File
@@ -0,0 +1,29 @@
# Contracts to watch (required).
# Can pass empty array ([]) when using subgraphPath.
contracts: []
# Output folder path (logs output using `stdout` if not provided).
outputFolder: /home/user/cerc-io/sushiswap-watcher-ts/packages/v2-watcher
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none
# Kind of watcher [lazy | active] (default: active).
kind: active
# Watcher server port (default: 3008).
port: 3008
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
# Config for subgraph
subgraph:
# Path to subgraph repo directory containing package.json
directory: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/v2
# Package manager that is used in subgraph repo for dependencies
packageManager: pnpm
# Path to subgraph manifest/config file
configFile: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/v2/subgraph.yaml
+1 -2
View File
@@ -10,8 +10,7 @@
checkpointInterval = 2000
# Enable state creation
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
enableState = false
subgraphPath = "./subgraph-build"
+1 -5
View File
@@ -7,11 +7,7 @@
## Setup
* Run the following command to install required packages:
```bash
yarn
```
* Follow root [README.md setup](../../README.md#setup)
* Create a postgres12 database for the watcher:
+29
View File
@@ -0,0 +1,29 @@
# Contracts to watch (required).
# Can pass empty array ([]) when using subgraphPath.
contracts: []
# Output folder path (logs output using `stdout` if not provided).
outputFolder: /home/user/cerc-io/sushiswap-watcher-ts/packages/v3-watcher
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none
# Kind of watcher [lazy | active] (default: active).
kind: active
# Watcher server port (default: 3008).
port: 3008
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
# Config for subgraph
subgraph:
# Path to subgraph repo directory containing package.json
directory: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/v3
# Package manager that is used in subgraph repo for dependencies
packageManager: pnpm
# Path to subgraph manifest/config file
configFile: /home/user/cerc-io/sushiswap-subgraphs/subgraphs/v3/subgraph.yaml
+1 -2
View File
@@ -10,8 +10,7 @@
checkpointInterval = 2000
# Enable state creation
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
enableState = false
subgraphPath = "./subgraph-build"
@@ -30,13 +30,13 @@ services:
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
working_dir: /app/packages-watcher
working_dir: /app/packages/sushiswap-watcher
command: ["bash", "./start-job-runner.sh"]
volumes:
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages-watcher/environments/watcher-config-template.toml
- ../config/common/start-job-runner.sh:/app/packages-watcher/start-job-runner.sh
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages/sushiswap-watcher/environments/watcher-config-template.toml
- ../config/common/start-job-runner.sh:/app/packages/sushiswap-watcher/start-job-runner.sh
ports:
- "9000:9000"
- "9000"
healthcheck:
test: ["CMD", "nc", "-vz", "127.0.0.1", "9000"]
interval: 20s
@@ -57,12 +57,12 @@ services:
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
working_dir: /app/packages-watcher
working_dir: /app/packages/sushiswap-watcher
command: ["bash", "./start-server.sh"]
volumes:
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages-watcher/environments/watcher-config-template.toml
- ../config/common/start-server.sh:/app/packages-watcher/start-server.sh
- sushiswap_watcher_gql_logs_data:/app/packages-watcher/gql-logs
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages/sushiswap-watcher/environments/watcher-config-template.toml
- ../config/common/start-server.sh:/app/packages/sushiswap-watcher/start-server.sh
- sushiswap_watcher_gql_logs_data:/app/packages/sushiswap-watcher/gql-logs
ports:
- "3008"
- "9001"