From 5a1728c371cc7d60405e44d8fa79d2d9e04df6df Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 18 Apr 2024 11:07:08 +0000 Subject: [PATCH] Add codegen config used to generate the watcher (#3) Part of [Generate ajna-finance subgraph watcher with codegen](https://www.notion.so/Generate-ajna-finance-subgraph-watcher-with-codegen-5b80ac149b3f449fb138f5d92cc5485e) Reviewed-on: https://git.vdb.to/cerc-io/ajna-watcher-ts/pulls/3 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- codegen-config.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 codegen-config.yml diff --git a/codegen-config.yml b/codegen-config.yml new file mode 100644 index 0000000..60708a6 --- /dev/null +++ b/codegen-config.yml @@ -0,0 +1,35 @@ +# 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/ajna-watcher-ts + +# 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/ajna-subgraph + + # Package manager that is used in subgraph repo for dependencies + packageManager: yarn + + # Path to subgraph manifest/config file + configFile: /home/user/cerc-io/ajna-subgraph/subgraph.yaml + + # Networks config file path used when building subgraph (optional) + networkFilePath: /home/user/cerc-io/ajna-subgraph/networks.json + + # Network configuration to use from the networks config file (optional) + network: filecoin