Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f72b355063 | ||
|
|
5e3751fa8d | ||
|
|
0ba53a7369 | ||
|
|
98c682cdc1 | ||
|
|
60a78b5d6c | ||
|
|
a03267a44c |
@@ -1 +1,11 @@
|
|||||||
# sushiswap-watcher-ts
|
# 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
|
||||||
|
```
|
||||||
|
|||||||
@@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
* Run the following command to install required packages:
|
* Follow root [README.md setup](../../README.md#setup)
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
* Create a postgres12 database for the watcher:
|
* 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
|
checkpointInterval = 2000
|
||||||
|
|
||||||
# Enable state creation
|
# Enable state creation
|
||||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
enableState = false
|
||||||
enableState = true
|
|
||||||
|
|
||||||
subgraphPath = "./subgraph-build"
|
subgraphPath = "./subgraph-build"
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
* Run the following command to install required packages:
|
* Follow root [README.md setup](../../README.md#setup)
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
* Create a postgres12 database for the watcher:
|
* 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
|
checkpointInterval = 2000
|
||||||
|
|
||||||
# Enable state creation
|
# Enable state creation
|
||||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
enableState = false
|
||||||
enableState = true
|
|
||||||
|
|
||||||
subgraphPath = "./subgraph-build"
|
subgraphPath = "./subgraph-build"
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
* Run the following command to install required packages:
|
* Follow root [README.md setup](../../README.md#setup)
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
* Create a postgres12 database for the watcher:
|
* 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
|
checkpointInterval = 2000
|
||||||
|
|
||||||
# Enable state creation
|
# Enable state creation
|
||||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
enableState = false
|
||||||
enableState = true
|
|
||||||
|
|
||||||
subgraphPath = "./subgraph-build"
|
subgraphPath = "./subgraph-build"
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
* Run the following command to install required packages:
|
* Follow root [README.md setup](../../README.md#setup)
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
* Create a postgres12 database for the watcher:
|
* 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/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
|
||||||
@@ -10,8 +10,7 @@
|
|||||||
checkpointInterval = 2000
|
checkpointInterval = 2000
|
||||||
|
|
||||||
# Enable state creation
|
# Enable state creation
|
||||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
enableState = false
|
||||||
enableState = true
|
|
||||||
|
|
||||||
subgraphPath = "./subgraph-build"
|
subgraphPath = "./subgraph-build"
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
* Run the following command to install required packages:
|
* Follow root [README.md setup](../../README.md#setup)
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
* Create a postgres12 database for the watcher:
|
* 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/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
|
||||||
@@ -10,8 +10,7 @@
|
|||||||
checkpointInterval = 2000
|
checkpointInterval = 2000
|
||||||
|
|
||||||
# Enable state creation
|
# Enable state creation
|
||||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
enableState = false
|
||||||
enableState = true
|
|
||||||
|
|
||||||
subgraphPath = "./subgraph-build"
|
subgraphPath = "./subgraph-build"
|
||||||
|
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||||
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
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"]
|
command: ["bash", "./start-job-runner.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages-watcher/environments/watcher-config-template.toml
|
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages/sushiswap-watcher/environments/watcher-config-template.toml
|
||||||
- ../config/common/start-job-runner.sh:/app/packages-watcher/start-job-runner.sh
|
- ../config/common/start-job-runner.sh:/app/packages/sushiswap-watcher/start-job-runner.sh
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "9000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-vz", "127.0.0.1", "9000"]
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "9000"]
|
||||||
interval: 20s
|
interval: 20s
|
||||||
@@ -57,12 +57,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||||
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
||||||
working_dir: /app/packages-watcher
|
working_dir: /app/packages/sushiswap-watcher
|
||||||
command: ["bash", "./start-server.sh"]
|
command: ["bash", "./start-server.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages-watcher/environments/watcher-config-template.toml
|
- ../config/watcher-sushiswap/watcher-config-template.toml:/app/packages/sushiswap-watcher/environments/watcher-config-template.toml
|
||||||
- ../config/common/start-server.sh:/app/packages-watcher/start-server.sh
|
- ../config/common/start-server.sh:/app/packages/sushiswap-watcher/start-server.sh
|
||||||
- sushiswap_watcher_gql_logs_data:/app/packages-watcher/gql-logs
|
- sushiswap_watcher_gql_logs_data:/app/packages/sushiswap-watcher/gql-logs
|
||||||
ports:
|
ports:
|
||||||
- "3008"
|
- "3008"
|
||||||
- "9001"
|
- "9001"
|
||||||
|
|||||||
Reference in New Issue
Block a user