Compare commits
7 Commits
iv-modify-
...
main
Author | SHA1 | Date | |
---|---|---|---|
45177bb2ce | |||
f1e443af88 | |||
31dd608608 | |||
0ba53a7369 | |||
98c682cdc1 | |||
60a78b5d6c | |||
a03267a44c |
12
README.md
12
README.md
@ -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
|
||||||
|
```
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
29
packages/blocks-watcher/codegen-config.yml
Normal file
29
packages/blocks-watcher/codegen-config.yml
Normal 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
|
@ -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"
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
29
packages/route-processor-watcher/codegen-config.yml
Normal file
29
packages/route-processor-watcher/codegen-config.yml
Normal 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
|
@ -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"
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
29
packages/sushiswap-watcher/codegen-config.yml
Normal file
29
packages/sushiswap-watcher/codegen-config.yml
Normal 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
|
@ -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"
|
||||||
|
|
||||||
|
Binary file not shown.
@ -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
|
||||||
|
Binary file not shown.
@ -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:
|
||||||
|
|
||||||
|
29
packages/v2-watcher/codegen-config.yml
Normal file
29
packages/v2-watcher/codegen-config.yml
Normal 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
|
@ -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"
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
29
packages/v3-watcher/codegen-config.yml
Normal file
29
packages/v3-watcher/codegen-config.yml
Normal 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
|
@ -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
9
stacks/README.md
Normal 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)
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user