From 116d3c8ab5d18c1fc065db8e28bb1f5ded6648ee Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Fri, 11 Aug 2023 10:02:36 +0530 Subject: [PATCH] Add a sushiswap-graph stack --- .../docker-compose-contract-sushiswap.yml | 14 +++++++ app/data/pod-list.txt | 1 + app/data/stacks/sushiswap-graph/README.md | 41 +++++++++++++++++++ app/data/stacks/sushiswap-graph/stack.yml | 18 ++++++++ 4 files changed, 74 insertions(+) create mode 100644 app/data/compose/docker-compose-contract-sushiswap.yml create mode 100644 app/data/stacks/sushiswap-graph/README.md create mode 100644 app/data/stacks/sushiswap-graph/stack.yml diff --git a/app/data/compose/docker-compose-contract-sushiswap.yml b/app/data/compose/docker-compose-contract-sushiswap.yml new file mode 100644 index 00000000..aad5c85a --- /dev/null +++ b/app/data/compose/docker-compose-contract-sushiswap.yml @@ -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 diff --git a/app/data/pod-list.txt b/app/data/pod-list.txt index 5355c90e..c6e55b8d 100644 --- a/app/data/pod-list.txt +++ b/app/data/pod-list.txt @@ -31,3 +31,4 @@ mainnet-go-opera lasso reth watcher-sushiswap +contract-sushiswap diff --git a/app/data/stacks/sushiswap-graph/README.md b/app/data/stacks/sushiswap-graph/README.md new file mode 100644 index 00000000..76ee04ad --- /dev/null +++ b/app/data/stacks/sushiswap-graph/README.md @@ -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") +``` diff --git a/app/data/stacks/sushiswap-graph/stack.yml b/app/data/stacks/sushiswap-graph/stack.yml new file mode 100644 index 00000000..427fed51 --- /dev/null +++ b/app/data/stacks/sushiswap-graph/stack.yml @@ -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