Add a sushiswap-graph stack

This commit is contained in:
Prathamesh Musale 2023-08-11 10:02:36 +05:30 committed by Nabarun
parent 59e0458c74
commit 116d3c8ab5
4 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,14 @@
version: '3.2'
services:
# Deploys the core (UniswapV3Factory) contract
sushiswap-v3-core:
image: cerc/sushiswap-v3-core:local
env_file:
- ../config/watcher-sushiswap/lotus-params.env
# Deploys the periphery (NFPM, token, etc.) contracts
sushiswap-v3-periphery:
image: cerc/sushiswap-v3-periphery:local
env_file:
- ../config/watcher-sushiswap/lotus-params.env

View File

@ -31,3 +31,4 @@ mainnet-go-opera
lasso
reth
watcher-sushiswap
contract-sushiswap

View File

@ -0,0 +1,41 @@
# SushiSwap Graph
## Setup
Clone required repositories:
```bash
laconic-so --stack sushiswap-graph setup-repositories
```
Build the container images:
```bash
laconic-so --stack sushiswap-graph build-containers
```
## Deploy
Deploy the stack:
```bash
laconic-so --stack sushiswap-graph deploy --cluster sushigraph up
```
## Clean up
Stop all the services running in background run:
```bash
laconic-so --stack sushiswap-graph deploy --cluster sushigraph down
```
Clear volumes created by this stack:
```bash
# List all relevant volumes
docker volume ls -q --filter "name=sushigraph"
# Remove all the listed volumes
docker volume rm $(docker volume ls -q --filter "name=sushigraph")
```

View File

@ -0,0 +1,18 @@
version: "1.0"
name: sushiswap-graph
description: "An end-to-end SushiSwap Graph stack"
repos:
## fixturenet-lotus repo
- github.com/filecoin-project/lotus
## sushiswap repos
- github.com/cerc-io/sushiswap-v3-core@watcher-ts
- github.com/cerc-io/sushiswap-v3-periphery@watcher-ts
containers:
## fixturenet-lotus image
- cerc/lotus
## sushiswap contract deployment images
- cerc/sushiswap-v3-core
- cerc/sushiswap-v3-periphery
pods:
- fixturenet-lotus
- contract-sushiswap