diff --git a/README.md b/README.md index 3fbe763..288447d 100644 --- a/README.md +++ b/README.md @@ -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 + ``` diff --git a/packages/blocks-watcher/README.md b/packages/blocks-watcher/README.md index 095ecb1..366e6bd 100644 --- a/packages/blocks-watcher/README.md +++ b/packages/blocks-watcher/README.md @@ -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: diff --git a/packages/blocks-watcher/codegen-config.yml b/packages/blocks-watcher/codegen-config.yml new file mode 100644 index 0000000..a0c82b2 --- /dev/null +++ b/packages/blocks-watcher/codegen-config.yml @@ -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 diff --git a/packages/blocks-watcher/environments/local.toml b/packages/blocks-watcher/environments/local.toml index 3c8c1c5..1b63e38 100644 --- a/packages/blocks-watcher/environments/local.toml +++ b/packages/blocks-watcher/environments/local.toml @@ -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" diff --git a/packages/route-processor-watcher/README.md b/packages/route-processor-watcher/README.md index 1f4f259..676712d 100644 --- a/packages/route-processor-watcher/README.md +++ b/packages/route-processor-watcher/README.md @@ -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: diff --git a/packages/route-processor-watcher/codegen-config.yml b/packages/route-processor-watcher/codegen-config.yml new file mode 100644 index 0000000..5e98e46 --- /dev/null +++ b/packages/route-processor-watcher/codegen-config.yml @@ -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 diff --git a/packages/route-processor-watcher/environments/local.toml b/packages/route-processor-watcher/environments/local.toml index 6c7b896..d839ca4 100644 --- a/packages/route-processor-watcher/environments/local.toml +++ b/packages/route-processor-watcher/environments/local.toml @@ -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" diff --git a/packages/sushiswap-watcher/README.md b/packages/sushiswap-watcher/README.md index 9061fbc..92e1231 100644 --- a/packages/sushiswap-watcher/README.md +++ b/packages/sushiswap-watcher/README.md @@ -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: diff --git a/packages/sushiswap-watcher/codegen-config.yml b/packages/sushiswap-watcher/codegen-config.yml new file mode 100644 index 0000000..d4dcacb --- /dev/null +++ b/packages/sushiswap-watcher/codegen-config.yml @@ -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 diff --git a/packages/sushiswap-watcher/environments/local.toml b/packages/sushiswap-watcher/environments/local.toml index c5baa72..969395b 100644 --- a/packages/sushiswap-watcher/environments/local.toml +++ b/packages/sushiswap-watcher/environments/local.toml @@ -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" diff --git a/packages/v2-watcher/README.md b/packages/v2-watcher/README.md index 053bc27..d3eb1ad 100644 --- a/packages/v2-watcher/README.md +++ b/packages/v2-watcher/README.md @@ -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: diff --git a/packages/v2-watcher/codegen-config.yml b/packages/v2-watcher/codegen-config.yml new file mode 100644 index 0000000..0ab76ec --- /dev/null +++ b/packages/v2-watcher/codegen-config.yml @@ -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 diff --git a/packages/v2-watcher/environments/local.toml b/packages/v2-watcher/environments/local.toml index c91253a..e90b792 100644 --- a/packages/v2-watcher/environments/local.toml +++ b/packages/v2-watcher/environments/local.toml @@ -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" diff --git a/packages/v3-watcher/README.md b/packages/v3-watcher/README.md index 368aed1..bb4742b 100644 --- a/packages/v3-watcher/README.md +++ b/packages/v3-watcher/README.md @@ -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: diff --git a/packages/v3-watcher/codegen-config.yml b/packages/v3-watcher/codegen-config.yml new file mode 100644 index 0000000..9abdc29 --- /dev/null +++ b/packages/v3-watcher/codegen-config.yml @@ -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 diff --git a/packages/v3-watcher/environments/local.toml b/packages/v3-watcher/environments/local.toml index 98254ca..7dd0580 100644 --- a/packages/v3-watcher/environments/local.toml +++ b/packages/v3-watcher/environments/local.toml @@ -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"