Compare commits
24 Commits
main
...
iv-modify-
Author | SHA1 | Date | |
---|---|---|---|
|
ca62ed4a69 | ||
|
4a2665cad5 | ||
|
4b700c76d1 | ||
|
37477f4820 | ||
|
95cfbe4351 | ||
|
4ae58dbd71 | ||
|
039f696574 | ||
|
0bde228b8d | ||
|
31bba912ec | ||
|
97b120a8e2 | ||
|
bb64e99d51 | ||
|
eada17f594 | ||
|
b2a4b8b0fd | ||
|
dc9eba3d6a | ||
|
02f5ec9c97 | ||
|
8e4d8fa382 | ||
|
30d4b311e1 | ||
|
27498c4d76 | ||
|
86454e4629 | ||
|
973a9a4006 | ||
|
076c0da300 | ||
|
9b10dc8980 | ||
|
e48e677d02 | ||
|
cb27e53853 |
12
README.md
12
README.md
@ -1,13 +1 @@
|
||||
# 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,7 +7,11 @@
|
||||
|
||||
## 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:
|
||||
|
||||
|
@ -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
|
@ -10,7 +10,8 @@
|
||||
checkpointInterval = 2000
|
||||
|
||||
# Enable state creation
|
||||
enableState = false
|
||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
||||
enableState = true
|
||||
|
||||
subgraphPath = "./subgraph-build"
|
||||
|
||||
|
@ -7,7 +7,11 @@
|
||||
|
||||
## 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:
|
||||
|
||||
|
@ -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
|
@ -10,7 +10,8 @@
|
||||
checkpointInterval = 2000
|
||||
|
||||
# Enable state creation
|
||||
enableState = false
|
||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
||||
enableState = true
|
||||
|
||||
subgraphPath = "./subgraph-build"
|
||||
|
||||
|
@ -7,7 +7,11 @@
|
||||
|
||||
## 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:
|
||||
|
||||
|
@ -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
|
@ -10,7 +10,8 @@
|
||||
checkpointInterval = 2000
|
||||
|
||||
# Enable state creation
|
||||
enableState = false
|
||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
||||
enableState = true
|
||||
|
||||
subgraphPath = "./subgraph-build"
|
||||
|
||||
|
Binary file not shown.
@ -19,17 +19,17 @@ dataSources:
|
||||
entities: []
|
||||
abis:
|
||||
- name: Factory
|
||||
file: Factory/abi/Uniswap/UniswapV2Factory.json
|
||||
file: Factory/node_modules/abi/Uniswap/UniswapV2Factory.json
|
||||
- name: Pair
|
||||
file: Factory/abi/Uniswap/UniswapV2Pair.json
|
||||
file: Factory/node_modules/abi/Uniswap/UniswapV2Pair.json
|
||||
- name: SushiToken
|
||||
file: Factory/abi/SUSHI/SushiToken.json
|
||||
file: Factory/node_modules/abi/SUSHI/SushiToken.json
|
||||
- name: ERC20
|
||||
file: Factory/abi/ERC20/ERC20.json
|
||||
file: Factory/node_modules/abi/ERC20/ERC20.json
|
||||
- name: SymbolBytes32
|
||||
file: Factory/abi/ERC20/SymbolBytes32.json
|
||||
file: Factory/node_modules/abi/ERC20/SymbolBytes32.json
|
||||
- name: NameBytes32
|
||||
file: Factory/abi/ERC20/NameBytes32.json
|
||||
file: Factory/node_modules/abi/ERC20/NameBytes32.json
|
||||
eventHandlers:
|
||||
- event: PairCreated(indexed address,indexed address,address,uint256)
|
||||
handler: onPairCreated
|
||||
@ -47,15 +47,15 @@ templates:
|
||||
entities: []
|
||||
abis:
|
||||
- name: Factory
|
||||
file: Pair/abi/Uniswap/UniswapV2Factory.json
|
||||
file: Pair/node_modules/abi/Uniswap/UniswapV2Factory.json
|
||||
- name: Pair
|
||||
file: Pair/abi/Uniswap/UniswapV2Pair.json
|
||||
file: Pair/node_modules/abi/Uniswap/UniswapV2Pair.json
|
||||
- name: ERC20
|
||||
file: Pair/abi/ERC20/ERC20.json
|
||||
file: Pair/node_modules/abi/ERC20/ERC20.json
|
||||
- name: SymbolBytes32
|
||||
file: Pair/abi/ERC20/SymbolBytes32.json
|
||||
file: Pair/node_modules/abi/ERC20/SymbolBytes32.json
|
||||
- name: NameBytes32
|
||||
file: Pair/abi/ERC20/NameBytes32.json
|
||||
file: Pair/node_modules/abi/ERC20/NameBytes32.json
|
||||
eventHandlers:
|
||||
- event: Sync(uint112,uint112)
|
||||
handler: onSync
|
||||
|
Binary file not shown.
@ -7,7 +7,11 @@
|
||||
|
||||
## 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:
|
||||
|
||||
|
@ -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
|
@ -10,7 +10,8 @@
|
||||
checkpointInterval = 2000
|
||||
|
||||
# Enable state creation
|
||||
enableState = false
|
||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
||||
enableState = true
|
||||
|
||||
subgraphPath = "./subgraph-build"
|
||||
|
||||
|
@ -7,7 +7,11 @@
|
||||
|
||||
## 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:
|
||||
|
||||
|
@ -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
|
@ -10,7 +10,8 @@
|
||||
checkpointInterval = 2000
|
||||
|
||||
# Enable state creation
|
||||
enableState = false
|
||||
# CAUTION: Disable only if state creation is not desired or can be filled subsequently
|
||||
enableState = true
|
||||
|
||||
subgraphPath = "./subgraph-build"
|
||||
|
||||
|
@ -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)
|
@ -1,8 +1,8 @@
|
||||
version: "1.0"
|
||||
name: sushiswap-route-processor
|
||||
description: "SushiSwap route processor watcher stack"
|
||||
name: sushiswap-v2
|
||||
description: "SushiSwap v2 watcher stack"
|
||||
repos:
|
||||
containers:
|
||||
- cerc/watcher-sushiswap
|
||||
pods:
|
||||
- watcher-sushiswap-route-processor
|
||||
- watcher-sushiswap-v2
|
||||
|
Loading…
Reference in New Issue
Block a user