Compare commits

..

24 Commits

Author SHA1 Message Date
IshaVenikar
ca62ed4a69 Remove node_modules from sushiswap build folder 2024-06-18 12:36:01 +05:30
IshaVenikar
4a2665cad5 Create stack for route-processor watcher 2024-06-17 11:55:29 +05:30
IshaVenikar
4b700c76d1 Create stack for sushiswap blocks watcher 2024-06-17 11:36:16 +05:30
IshaVenikar
37477f4820 Add config template for sushiswap watcher 2024-06-17 11:08:04 +05:30
IshaVenikar
95cfbe4351 Add compose file and stack instructions for sushiswap 2024-06-14 15:24:13 +05:30
IshaVenikar
4ae58dbd71 Add job runner and server scripts in common folder 2024-06-14 15:15:17 +05:30
IshaVenikar
039f696574 Add v2 watcher stack instructions 2024-06-14 15:15:14 +05:30
IshaVenikar
0bde228b8d Add config template and scripts for v3 watcher 2024-06-14 15:13:43 +05:30
IshaVenikar
31bba912ec Add docker compose file for v2 2024-06-14 15:13:43 +05:30
IshaVenikar
97b120a8e2 Fix mount paths for mounted files 2024-06-14 11:26:06 +05:30
IshaVenikar
bb64e99d51 Set working_dir to v3 watcher in compose file 2024-06-13 19:02:26 +05:30
IshaVenikar
eada17f594 Update mount paths for mounted files 2024-06-13 18:53:22 +05:30
IshaVenikar
b2a4b8b0fd Update port mapping and stack path in readme 2024-06-13 18:47:25 +05:30
IshaVenikar
dc9eba3d6a Update sushiswap watcher image name 2024-06-13 17:44:10 +05:30
IshaVenikar
02f5ec9c97 Make volume names consistent 2024-06-13 17:34:20 +05:30
IshaVenikar
8e4d8fa382 Update stack repo URL in instructions 2024-06-13 17:34:05 +05:30
IshaVenikar
30d4b311e1 Add v3 watcher stack instructions 2024-06-13 17:33:51 +05:30
IshaVenikar
27498c4d76 Add container build script 2024-06-13 17:33:35 +05:30
IshaVenikar
86454e4629 Modify config template for v3 watcher 2024-06-13 17:33:10 +05:30
IshaVenikar
973a9a4006 Use sushiswap prefix for stack components 2024-06-13 17:30:13 +05:30
IshaVenikar
076c0da300 Exclude stacks folder in docker image 2024-06-13 17:29:37 +05:30
IshaVenikar
9b10dc8980 Update stack name 2024-06-13 17:28:36 +05:30
IshaVenikar
e48e677d02 Add config template and scripts for v3 watcher 2024-06-13 17:27:03 +05:30
IshaVenikar
cb27e53853 Add docker compose file for v3 2024-06-13 13:55:12 +05:30
21 changed files with 49 additions and 190 deletions

View File

@ -1,13 +1 @@
# 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,7 +7,11 @@
## Setup ## Setup
* Follow root [README.md setup](../../README.md#setup) * Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher: * Create a postgres12 database for the watcher:

View File

@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000 checkpointInterval = 2000
# Enable state creation # Enable state creation
enableState = false # CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build" subgraphPath = "./subgraph-build"

View File

@ -7,7 +7,11 @@
## Setup ## Setup
* Follow root [README.md setup](../../README.md#setup) * Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher: * Create a postgres12 database for the watcher:

View File

@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000 checkpointInterval = 2000
# Enable state creation # Enable state creation
enableState = false # CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build" subgraphPath = "./subgraph-build"

View File

@ -7,7 +7,11 @@
## Setup ## Setup
* Follow root [README.md setup](../../README.md#setup) * Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher: * Create a postgres12 database for the watcher:

View File

@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000 checkpointInterval = 2000
# Enable state creation # Enable state creation
enableState = false # CAUTION: Disable only if state creation is not desired or can be filled subsequently
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/abi/Uniswap/UniswapV2Factory.json file: Factory/node_modules/abi/Uniswap/UniswapV2Factory.json
- name: Pair - name: Pair
file: Factory/abi/Uniswap/UniswapV2Pair.json file: Factory/node_modules/abi/Uniswap/UniswapV2Pair.json
- name: SushiToken - name: SushiToken
file: Factory/abi/SUSHI/SushiToken.json file: Factory/node_modules/abi/SUSHI/SushiToken.json
- name: ERC20 - name: ERC20
file: Factory/abi/ERC20/ERC20.json file: Factory/node_modules/abi/ERC20/ERC20.json
- name: SymbolBytes32 - name: SymbolBytes32
file: Factory/abi/ERC20/SymbolBytes32.json file: Factory/node_modules/abi/ERC20/SymbolBytes32.json
- name: NameBytes32 - name: NameBytes32
file: Factory/abi/ERC20/NameBytes32.json file: Factory/node_modules/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/abi/Uniswap/UniswapV2Factory.json file: Pair/node_modules/abi/Uniswap/UniswapV2Factory.json
- name: Pair - name: Pair
file: Pair/abi/Uniswap/UniswapV2Pair.json file: Pair/node_modules/abi/Uniswap/UniswapV2Pair.json
- name: ERC20 - name: ERC20
file: Pair/abi/ERC20/ERC20.json file: Pair/node_modules/abi/ERC20/ERC20.json
- name: SymbolBytes32 - name: SymbolBytes32
file: Pair/abi/ERC20/SymbolBytes32.json file: Pair/node_modules/abi/ERC20/SymbolBytes32.json
- name: NameBytes32 - name: NameBytes32
file: Pair/abi/ERC20/NameBytes32.json file: Pair/node_modules/abi/ERC20/NameBytes32.json
eventHandlers: eventHandlers:
- event: Sync(uint112,uint112) - event: Sync(uint112,uint112)
handler: onSync handler: onSync

View File

@ -7,7 +7,11 @@
## Setup ## Setup
* Follow root [README.md setup](../../README.md#setup) * Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher: * Create a postgres12 database for the watcher:

View File

@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000 checkpointInterval = 2000
# Enable state creation # Enable state creation
enableState = false # CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build" subgraphPath = "./subgraph-build"

View File

@ -7,7 +7,11 @@
## Setup ## Setup
* Follow root [README.md setup](../../README.md#setup) * Run the following command to install required packages:
```bash
yarn
```
* Create a postgres12 database for the watcher: * Create a postgres12 database for the watcher:

View File

@ -1,29 +0,0 @@
# 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,7 +10,8 @@
checkpointInterval = 2000 checkpointInterval = 2000
# Enable state creation # Enable state creation
enableState = false # CAUTION: Disable only if state creation is not desired or can be filled subsequently
enableState = true
subgraphPath = "./subgraph-build" subgraphPath = "./subgraph-build"

View File

@ -1,9 +0,0 @@
# 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-route-processor name: sushiswap-v2
description: "SushiSwap route processor watcher stack" description: "SushiSwap v2 watcher stack"
repos: repos:
containers: containers:
- cerc/watcher-sushiswap - cerc/watcher-sushiswap
pods: pods:
- watcher-sushiswap-route-processor - watcher-sushiswap-v2