From a03267a44c99f79db5a4a93969ed4da6feba4279 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 13 Jun 2024 12:16:43 +0000 Subject: [PATCH] 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: https://git.vdb.to/cerc-io/sushiswap-watcher-ts/pulls/6 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- packages/blocks-watcher/codegen-config.yml | 29 +++++++++++++++++++ .../blocks-watcher/environments/local.toml | 3 +- .../codegen-config.yml | 29 +++++++++++++++++++ .../environments/local.toml | 3 +- packages/sushiswap-watcher/codegen-config.yml | 29 +++++++++++++++++++ .../sushiswap-watcher/environments/local.toml | 3 +- packages/v2-watcher/codegen-config.yml | 29 +++++++++++++++++++ packages/v2-watcher/environments/local.toml | 3 +- packages/v3-watcher/codegen-config.yml | 29 +++++++++++++++++++ packages/v3-watcher/environments/local.toml | 3 +- 10 files changed, 150 insertions(+), 10 deletions(-) create mode 100644 packages/blocks-watcher/codegen-config.yml create mode 100644 packages/route-processor-watcher/codegen-config.yml create mode 100644 packages/sushiswap-watcher/codegen-config.yml create mode 100644 packages/v2-watcher/codegen-config.yml create mode 100644 packages/v3-watcher/codegen-config.yml 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/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/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/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/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"