Compare commits

..

7 Commits

Author SHA1 Message Date
45177bb2ce Add stack for sushiswap route processor subgraph watcher (#13)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#13
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-06-19 10:29:22 +00:00
f1e443af88 Add stack for blocks subgraph watcher (#12)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#12
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-06-19 09:18:51 +00:00
31dd608608 Add stack for sushiswap subgraph watcher (#11)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#11
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-06-19 07:47:10 +00:00
0ba53a7369 Add stack for sushiswap v2 subgraph watcher (#9)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#9
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-06-19 07:06:02 +00:00
98c682cdc1 Create stack for sushiswap v3 subgraph watcher (#8)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#8
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-06-19 05:47:59 +00:00
60a78b5d6c Add readme step to build watchers (#7)
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: cerc-io/sushiswap-watcher-ts#7
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-06-13 12:21:41 +00:00
a03267a44c 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: cerc-io/sushiswap-watcher-ts#6
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-13 12:16:43 +00:00
21 changed files with 190 additions and 49 deletions

View File

@ -1 +1,13 @@
# sushiswap-watcher-ts # sushiswap-watcher-ts
Watchers for the [sushiswap-subgraphs](https://github.com/cerc-io/sushiswap-subgraphs/tree/watcher-ts) on Filecoin
[Stacks](stacks/README.md) for the sushiswap-watchers
## Setup
* Run the following command to install required packages:
```bash
yarn && yarn build
```

View File

@ -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:

View File

@ -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

View File

@ -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"

View File

@ -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:

View File

@ -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

View File

@ -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"

View File

@ -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:

View File

@ -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

View File

@ -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"

View File

@ -19,17 +19,17 @@ dataSources:
entities: [] entities: []
abis: abis:
- name: Factory - name: Factory
file: Factory/node_modules/abi/Uniswap/UniswapV2Factory.json file: Factory/abi/Uniswap/UniswapV2Factory.json
- name: Pair - name: Pair
file: Factory/node_modules/abi/Uniswap/UniswapV2Pair.json file: Factory/abi/Uniswap/UniswapV2Pair.json
- name: SushiToken - name: SushiToken
file: Factory/node_modules/abi/SUSHI/SushiToken.json file: Factory/abi/SUSHI/SushiToken.json
- name: ERC20 - name: ERC20
file: Factory/node_modules/abi/ERC20/ERC20.json file: Factory/abi/ERC20/ERC20.json
- name: SymbolBytes32 - name: SymbolBytes32
file: Factory/node_modules/abi/ERC20/SymbolBytes32.json file: Factory/abi/ERC20/SymbolBytes32.json
- name: NameBytes32 - name: NameBytes32
file: Factory/node_modules/abi/ERC20/NameBytes32.json file: Factory/abi/ERC20/NameBytes32.json
eventHandlers: eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256) - event: PairCreated(indexed address,indexed address,address,uint256)
handler: onPairCreated handler: onPairCreated
@ -47,15 +47,15 @@ templates:
entities: [] entities: []
abis: abis:
- name: Factory - name: Factory
file: Pair/node_modules/abi/Uniswap/UniswapV2Factory.json file: Pair/abi/Uniswap/UniswapV2Factory.json
- name: Pair - name: Pair
file: Pair/node_modules/abi/Uniswap/UniswapV2Pair.json file: Pair/abi/Uniswap/UniswapV2Pair.json
- name: ERC20 - name: ERC20
file: Pair/node_modules/abi/ERC20/ERC20.json file: Pair/abi/ERC20/ERC20.json
- name: SymbolBytes32 - name: SymbolBytes32
file: Pair/node_modules/abi/ERC20/SymbolBytes32.json file: Pair/abi/ERC20/SymbolBytes32.json
- name: NameBytes32 - name: NameBytes32
file: Pair/node_modules/abi/ERC20/NameBytes32.json file: Pair/abi/ERC20/NameBytes32.json
eventHandlers: eventHandlers:
- event: Sync(uint112,uint112) - event: Sync(uint112,uint112)
handler: onSync handler: onSync

View File

@ -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:

View File

@ -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

View File

@ -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"

View File

@ -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:

View File

@ -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

View File

@ -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"

9
stacks/README.md Normal file
View File

@ -0,0 +1,9 @@
# sushiswap-watcher-stack
Stacks to run watchers for sushiswap-subgraphs
- [sushiswap-watcher](stack-orchestrator/stacks/sushiswap)
- [blocks-watcher](stack-orchestrator/stacks/sushiswap-blocks)
- [route-processor-watcher](stack-orchestrator/stacks/sushiswap-route-processor)
- [v2-watcher](stack-orchestrator/stacks/sushiswap-v2)
- [v3-watcher](stack-orchestrator/stacks/sushiswap-v3)

View File

@ -1,8 +1,8 @@
version: "1.0" version: "1.0"
name: sushiswap-v2 name: sushiswap-route-processor
description: "SushiSwap v2 watcher stack" description: "SushiSwap route processor watcher stack"
repos: repos:
containers: containers:
- cerc/watcher-sushiswap - cerc/watcher-sushiswap
pods: pods:
- watcher-sushiswap-v2 - watcher-sushiswap-route-processor