Author SHA1 Message Date
IshaVenikar d570655cc5 Add config template for sushiswap watcher 2024-06-14 14:38:47 +05:30
IshaVenikar b17608f6a4 Add compose file and stack instructions for sushiswap 2024-06-14 14:38:30 +05:30
IshaVenikar beb14ab9c8 Add job runner and server scripts in common folder 2024-06-14 14:15:54 +05:30
IshaVenikar 117d67a135 Add v2 watcher stack instructions 2024-06-14 12:31:23 +05:30
IshaVenikar 053c46b086 Add config template and scripts for v3 watcher 2024-06-14 11:06:43 +05:30
IshaVenikar 8777ae778d Add docker compose file for v2 2024-06-14 11:00:59 +05:30
IshaVenikar 33af360b06 Fix mount paths for mounted files 2024-06-14 10:47:14 +05:30
IshaVenikar bb64e99d51 Set working_dir to v3 watcher in compose file 2024-06-13 19:02:26 +05:30
IshaVenikar eada17f594 Update mount paths for mounted files 2024-06-13 18:53:22 +05:30
IshaVenikar b2a4b8b0fd Update port mapping and stack path in readme 2024-06-13 18:47:25 +05:30
IshaVenikar dc9eba3d6a Update sushiswap watcher image name 2024-06-13 17:44:10 +05:30
IshaVenikar 02f5ec9c97 Make volume names consistent 2024-06-13 17:34:20 +05:30
IshaVenikar 8e4d8fa382 Update stack repo URL in instructions 2024-06-13 17:34:05 +05:30
IshaVenikar 30d4b311e1 Add v3 watcher stack instructions 2024-06-13 17:33:51 +05:30
IshaVenikar 27498c4d76 Add container build script 2024-06-13 17:33:35 +05:30
IshaVenikar 86454e4629 Modify config template for v3 watcher 2024-06-13 17:33:10 +05:30
IshaVenikar 973a9a4006 Use sushiswap prefix for stack components 2024-06-13 17:30:13 +05:30
IshaVenikar 076c0da300 Exclude stacks folder in docker image 2024-06-13 17:29:37 +05:30
IshaVenikar 9b10dc8980 Update stack name 2024-06-13 17:28:36 +05:30
IshaVenikar e48e677d02 Add config template and scripts for v3 watcher 2024-06-13 17:27:03 +05:30
IshaVenikar cb27e53853 Add docker compose file for v3 2024-06-13 13:55:12 +05:30
17 changed files with 43 additions and 173 deletions
-10
View File
@@ -1,11 +1 @@
# 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
```
+5 -1
View File
@@ -7,7 +7,11 @@
## Setup
* Follow root [README.md setup](../../README.md#setup)
* Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher:
@@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000
# Enable state creation
enableState = false
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build"
+5 -1
View File
@@ -7,7 +7,11 @@
## Setup
* Follow root [README.md setup](../../README.md#setup)
* Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher:
@@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000
# Enable state creation
enableState = false
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build"
+5 -1
View File
@@ -7,7 +7,11 @@
## Setup
* Follow root [README.md setup](../../README.md#setup)
* Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher:
@@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000
# Enable state creation
enableState = false
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build"
+5 -1
View File
@@ -7,7 +7,11 @@
## Setup
* Follow root [README.md setup](../../README.md#setup)
* Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher:
-29
View File
@@ -1,29 +0,0 @@
# 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
+2 -1
View File
@@ -10,7 +10,8 @@
checkpointInterval = 2000
# Enable state creation
enableState = false
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build"
+5 -1
View File
@@ -7,7 +7,11 @@
## Setup
* Follow root [README.md setup](../../README.md#setup)
* Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher:
-29
View File
@@ -1,29 +0,0 @@
# 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
+2 -1
View File
@@ -10,7 +10,8 @@
checkpointInterval = 2000
# Enable state creation
enableState = false
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
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/sushiswap-watcher
working_dir: /app/packages-watcher
command: ["bash", "./start-job-runner.sh"]
volumes:
- ../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
- ../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
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/sushiswap-watcher
working_dir: /app/packages-watcher
command: ["bash", "./start-server.sh"]
volumes:
- ../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
- ../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
ports:
- "3008"
- "9001"